From a70a17e38da58631152d0e4eaf7df04a7b13f4b6 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 15 Apr 2026 13:35:15 -0400 Subject: [PATCH 1/9] fix(generator): fall back to java.lang.Object for unknown types. --- generator/src/googleapis/codegen/java_generator.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/generator/src/googleapis/codegen/java_generator.py b/generator/src/googleapis/codegen/java_generator.py index 609f1782a20..f017edb7ada 100755 --- a/generator/src/googleapis/codegen/java_generator.py +++ b/generator/src/googleapis/codegen/java_generator.py @@ -261,12 +261,10 @@ def _GetTypeInfo(self, def_dict): if result: return result - # TODO(user): Uncomment this and update golden files. - # result = self.type_map.get((json_type, None)) - # if result: - # return result - # - # raise ValueError('Unknown type: %s format: %s' % (json_type, json_format)) + # Fallback to the unformatted base type if exact format mapping is not found. + result = self.type_map.get((json_type, None)) + if result: + return result return (utilities.CamelCase(json_type), None, None) From 4d84a72e5084adb2dabf31ba0d124fa637237f5c Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 15 Apr 2026 14:08:16 -0400 Subject: [PATCH 2/9] chore: generate 20% of v1/2.0.0 clients for demo --- .../v1/2.0.0/README.md | 4 +- .../alloydb/v1/CloudAlloyDBAdmin.java | 49 +- .../v1/model/AutomatedBackupPolicy.java | 6 +- .../api/services/alloydb/v1/model/Backup.java | 30 +- .../v1/model/BackupDrEnabledWindow.java | 24 +- .../alloydb/v1/model/BackupDrPitrSource.java | 6 +- .../services/alloydb/v1/model/Cluster.java | 18 +- .../v1/model/ContinuousBackupInfo.java | 12 +- .../v1/model/ContinuousBackupSource.java | 6 +- .../services/alloydb/v1/model/Instance.java | 18 +- .../alloydb/v1/model/MaintenanceSchedule.java | 6 +- .../api/services/alloydb/v1/model/Node.java | 24 - .../alloydb/v1/model/OperationMetadata.java | 12 +- ...enterPartnerapiV1mainBackupDRMetadata.java | 6 +- ...tabasecenterPartnerapiV1mainBackupRun.java | 12 +- ...PartnerapiV1mainConfigBasedSignalData.java | 6 +- ...rPartnerapiV1mainDatabaseResourceFeed.java | 6 +- ...1mainDatabaseResourceHealthSignalData.java | 6 +- ...tnerapiV1mainDatabaseResourceMetadata.java | 38 +- ...abaseResourceRecommendationSignalData.java | 6 +- ...erapiV1mainDatabaseResourceSignalData.java | 32 +- ...rtnerapiV1mainObservabilityMetricData.java | 6 +- ...nterPartnerapiV1mainRetentionSettings.java | 18 +- ...erPartnerapiV1mainUpcomingMaintenance.java | 12 +- .../alloydb/v1/model/TimeBasedRetention.java | 6 +- .../alloydb/v1/model/TrialMetadata.java | 24 +- .../v1/2.0.0/pom.xml | 4 +- .../model/EnrollmentToken.java | 6 +- .../v1/2.0.0/README.md | 4 +- .../google/api/services/apigee/v1/Apigee.java | 138 +- ...iservingMcpMcpToolDataHandlingProfile.java | 92 + .../ApiservingMcpMcpToolLifecycleProfile.java | 68 + .../GoogleCloudApigeeV1AnalyticsConfig.java | 6 +- .../GoogleCloudApigeeV1ApiDebugSession.java | 6 +- ...CloudApigeeV1ApiSecurityRuntimeConfig.java | 6 +- ...ogleCloudApigeeV1ApimServiceExtension.java | 12 +- ...puteSecurityAssessmentResultsResponse.java | 6 +- .../GoogleCloudApigeeV1CanaryEvaluation.java | 18 +- .../GoogleCloudApigeeV1DebugSession.java | 6 +- .../v1/model/GoogleCloudApigeeV1DnsZone.java | 12 +- ...PResolutionConfigHeaderIndexAlgorithm.java | 9 +- .../GoogleCloudApigeeV1EnvironmentConfig.java | 6 +- .../GoogleCloudApigeeV1IngressConfig.java | 6 +- ...udApigeeV1ReportInstanceStatusRequest.java | 6 +- .../model/GoogleCloudApigeeV1RoutingRule.java | 6 +- ...GoogleCloudApigeeV1RuntimeTraceConfig.java | 66 +- ...oudApigeeV1RuntimeTraceConfigOverride.java | 65 +- ...ogleCloudApigeeV1ScheduledMaintenance.java | 6 +- .../GoogleCloudApigeeV1ScoreComponent.java | 12 +- .../GoogleCloudApigeeV1SecurityAction.java | 24 +- ...gleCloudApigeeV1SecurityActionsConfig.java | 6 +- ...CloudApigeeV1SecurityAssessmentResult.java | 6 +- ...SecurityAssessmentResultScoringResult.java | 6 +- .../GoogleCloudApigeeV1SecurityFeedback.java | 12 +- .../GoogleCloudApigeeV1SecurityIncident.java | 18 +- ...udApigeeV1SecurityMonitoringCondition.java | 12 +- .../GoogleCloudApigeeV1SecurityProfile.java | 18 +- ...oudApigeeV1SecurityProfileEnvironment.java | 6 +- ...SecurityProfileEnvironmentAssociation.java | 6 +- .../GoogleCloudApigeeV1SecurityProfileV2.java | 12 +- ...leCloudApigeeV1SecurityReportMetadata.java | 12 +- .../v1/model/GoogleCloudApigeeV1Space.java | 12 +- .../model/GoogleCloudApigeeV1TraceConfig.java | 18 +- ...ApigeeV1UpdateSecurityIncidentRequest.java | 6 +- .../model/GoogleIamV1SetIamPolicyRequest.java | 6 +- .../apigee/v1/model/GoogleTypeInterval.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../ces/v1/CustomerEngagementSuite.java | 215 +- .../api/services/ces/v1/model/Agent.java | 12 +- .../google/api/services/ces/v1/model/App.java | 12 +- .../api/services/ces/v1/model/AppVersion.java | 6 +- .../ces/v1/model/AudioProcessingConfig.java | 6 +- .../ces/v1/model/BigQueryExportSettings.java | 27 +- .../api/services/ces/v1/model/Changelog.java | 6 +- .../services/ces/v1/model/Conversation.java | 12 +- .../api/services/ces/v1/model/DataStore.java | 6 +- .../api/services/ces/v1/model/Deployment.java | 12 +- .../api/services/ces/v1/model/Example.java | 12 +- .../v1/model/GenerateChatTokenResponse.java | 6 +- .../api/services/ces/v1/model/Guardrail.java | 12 +- .../ces/v1/model/LanguageSettings.java | 33 +- .../api/services/ces/v1/model/Message.java | 6 +- .../services/ces/v1/model/Omnichannel.java | 12 +- .../model/OmnichannelOperationMetadata.java | 12 +- .../ces/v1/model/OperationMetadata.java | 12 +- .../ces/v1/model/SecuritySettings.java | 12 +- .../services/ces/v1/model/SessionConfig.java | 30 - .../api/services/ces/v1/model/Span.java | 18 +- .../api/services/ces/v1/model/Tool.java | 12 +- .../api/services/ces/v1/model/Toolset.java | 12 +- .../ces/v1/model/WidgetToolDataMapping.java | 36 +- .../google-api-services-ces/v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../services/cloudbuild/v1/CloudBuild.java | 42 +- .../cloudbuild/v1/model/ApprovalResult.java | 6 +- .../cloudbuild/v1/model/Artifacts.java | 27 - ...ConnectedRepositoriesResponseMetadata.java | 12 +- ...ConnectedRepositoriesResponseMetadata.java | 12 +- .../v1/model/BitbucketServerConfig.java | 6 +- .../services/cloudbuild/v1/model/Build.java | 30 +- .../cloudbuild/v1/model/BuildStep.java | 6 +- .../cloudbuild/v1/model/BuildTrigger.java | 6 +- ...itbucketServerConfigOperationMetadata.java | 12 +- ...tHubEnterpriseConfigOperationMetadata.java | 12 +- .../CreateGitLabConfigOperationMetadata.java | 12 +- .../CreateWorkerPoolOperationMetadata.java | 12 +- ...itbucketServerConfigOperationMetadata.java | 12 +- ...tHubEnterpriseConfigOperationMetadata.java | 12 +- .../DeleteGitLabConfigOperationMetadata.java | 12 +- .../DeleteWorkerPoolOperationMetadata.java | 12 +- .../cloudbuild/v1/model/Dependency.java | 24 - .../v1/model/GitHubEnterpriseConfig.java | 6 +- .../cloudbuild/v1/model/GitLabConfig.java | 6 +- .../v1/model/OperationMetadata.java | 12 +- ...sAppManifestCallbackOperationMetadata.java | 12 +- .../services/cloudbuild/v1/model/Results.java | 24 - .../cloudbuild/v1/model/TimeSpan.java | 12 +- ...itbucketServerConfigOperationMetadata.java | 12 +- ...tHubEnterpriseConfigOperationMetadata.java | 12 +- .../UpdateGitLabConfigOperationMetadata.java | 12 +- .../UpdateWorkerPoolOperationMetadata.java | 12 +- .../cloudbuild/v1/model/WorkerPool.java | 18 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../services/clouddeploy/v1/CloudDeploy.java | 55 +- .../v1/model/AdvanceRolloutOperation.java | 6 +- .../v1/model/AdvanceRolloutRule.java | 6 +- .../clouddeploy/v1/model/Automation.java | 12 +- .../clouddeploy/v1/model/AutomationRun.java | 24 +- .../v1/model/CanaryDeployment.java | 51 - .../v1/model/CloudRunMetadata.java | 36 - .../v1/model/CloudRunRenderMetadata.java | 54 - .../v1/model/CustomTargetType.java | 36 +- .../v1/model/DeliveryPipeline.java | 12 +- .../clouddeploy/v1/model/DeployPolicy.java | 12 +- .../clouddeploy/v1/model/DeploymentJobs.java | 27 - .../clouddeploy/v1/model/ExecutionConfig.java | 6 +- .../v1/model/GatewayServiceMesh.java | 12 +- .../services/clouddeploy/v1/model/Job.java | 24 - .../services/clouddeploy/v1/model/JobRun.java | 42 +- .../v1/model/OperationMetadata.java | 12 +- .../clouddeploy/v1/model/PhaseConfig.java | 51 - .../v1/model/PipelineReadyCondition.java | 6 +- .../clouddeploy/v1/model/Postdeploy.java | 27 - .../clouddeploy/v1/model/PostdeployJob.java | 24 - .../v1/model/PostdeployJobRun.java | 24 - .../clouddeploy/v1/model/Predeploy.java | 27 - .../clouddeploy/v1/model/PredeployJob.java | 24 - .../clouddeploy/v1/model/PredeployJobRun.java | 24 - .../v1/model/PromoteReleaseOperation.java | 6 +- .../v1/model/PromoteReleaseRule.java | 6 +- .../clouddeploy/v1/model/Release.java | 18 +- .../clouddeploy/v1/model/RenderMetadata.java | 27 - .../services/clouddeploy/v1/model/Retry.java | 6 +- .../clouddeploy/v1/model/RetryAttempt.java | 6 +- .../clouddeploy/v1/model/Rollout.java | 30 +- .../v1/model/SetIamPolicyRequest.java | 6 +- .../v1/model/SkaffoldSupportedCondition.java | 12 +- .../clouddeploy/v1/model/SkaffoldVersion.java | 12 +- .../clouddeploy/v1/model/Standard.java | 51 - .../services/clouddeploy/v1/model/Target.java | 12 +- .../v1/model/TargetsPresentCondition.java | 6 +- .../model/TimedPromoteReleaseCondition.java | 6 +- .../model/ToolVersionSupportedCondition.java | 12 +- .../clouddeploy/v1/model/VerifyJob.java | 30 - .../clouddeploy/v1/model/VerifyJobRun.java | 24 - .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../cloudfunctions/v1/CloudFunctions.java | 31 +- .../v1/model/CloudFunction.java | 12 +- .../v1/model/OperationMetadataV1.java | 6 +- .../v1/model/SetIamPolicyRequest.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../api/services/cloudkms/v1/CloudKMS.java | 213 +- .../cloudkms/v1/model/Certificate.java | 12 +- .../services/cloudkms/v1/model/CryptoKey.java | 36 +- .../cloudkms/v1/model/CryptoKeyVersion.java | 30 +- .../cloudkms/v1/model/EkmConnection.java | 6 +- .../services/cloudkms/v1/model/ImportJob.java | 24 +- ...yAccessJustificationsEnrollmentConfig.java | 15 +- .../model/KeyAccessJustificationsPolicy.java | 21 +- .../KeyAccessJustificationsPolicyConfig.java | 71 +- .../services/cloudkms/v1/model/KeyRing.java | 6 +- .../cloudkms/v1/model/RetiredResource.java | 6 +- .../v1/model/SetIamPolicyRequest.java | 6 +- ...ustificationsEnrollmentConfigResponse.java | 20 +- ...essJustificationsPolicyConfigResponse.java | 8 +- .../v1/model/SingleTenantHsmInstance.java | 24 +- .../SingleTenantHsmInstanceProposal.java | 30 +- .../v1/2.0.0/pom.xml | 4 +- .../model/CreateProjectMetadata.java | 6 +- .../cloudresourcemanager/model/Lien.java | 6 +- .../cloudresourcemanager/model/OrgPolicy.java | 6 +- .../model/Organization.java | 6 +- .../cloudresourcemanager/model/Project.java | 6 +- .../model/ProjectCreationStatus.java | 6 +- .../model/SetIamPolicyRequest.java | 6 +- .../services/cloudtrace/v1/CloudTrace.java | 12 +- .../cloudtrace/v1/model/TraceSpan.java | 12 +- .../v1/2.0.0/README.md | 4 +- .../api/services/dataform/v1/Dataform.java | 13569 +++++++--------- .../dataform/v1/model/CommitLogEntry.java | 6 +- .../dataform/v1/model/CompilationResult.java | 6 +- .../dataform/v1/model/DirectoryEntry.java | 24 - .../services/dataform/v1/model/Interval.java | 12 +- .../dataform/v1/model/OperationMetadata.java | 12 +- .../dataform/v1/model/Repository.java | 66 +- .../v1/model/ScheduledExecutionRecord.java | 6 +- .../v1/model/ScheduledReleaseRecord.java | 6 +- .../dataform/v1/model/WorkflowConfig.java | 12 +- .../services/dataform/v1/model/Workspace.java | 33 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../services/datamanager/v1/DataManager.java | 42 +- .../services/datamanager/v1/model/Event.java | 12 +- .../datamanager/v1/model/UserList.java | 6 +- .../v1/model/UserListLicensePricing.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../v1/model/AggregationResultBatch.java | 6 +- .../datastore/v1/model/CommitResponse.java | 6 +- .../datastore/v1/model/EntityResult.java | 12 +- .../datastore/v1/model/ExecutionStats.java | 6 +- .../GoogleDatastoreAdminV1CommonMetadata.java | 12 +- ...leDatastoreAdminV1beta1CommonMetadata.java | 12 +- .../datastore/v1/model/LookupResponse.java | 6 +- .../services/datastore/v1/model/Mutation.java | 6 +- .../datastore/v1/model/MutationResult.java | 12 +- .../datastore/v1/model/QueryResultBatch.java | 6 +- .../services/datastore/v1/model/ReadOnly.java | 6 +- .../datastore/v1/model/ReadOptions.java | 6 +- .../services/datastore/v1/model/Value.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../services/datastream/v1/Datastream.java | 37 +- .../datastream/v1/model/BackfillJob.java | 12 +- .../v1/model/BigQueryDestinationConfig.java | 6 +- .../v1/model/ConnectionProfile.java | 12 +- .../services/datastream/v1/model/Error.java | 6 +- .../datastream/v1/model/FieldViolation.java | 24 +- .../v1/model/GcsDestinationConfig.java | 6 +- .../v1/model/MongodbChangeStreamPosition.java | 6 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/model/PrivateConnection.java | 12 +- .../datastream/v1/model/RetryInfo.java | 6 +- .../services/datastream/v1/model/Route.java | 12 +- .../v1/model/SalesforceSourceConfig.java | 6 +- .../services/datastream/v1/model/Stream.java | 18 +- .../datastream/v1/model/StreamObject.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../firebaseappcheck/v1/Firebaseappcheck.java | 88 +- ...ogleFirebaseAppcheckV1AppAttestConfig.java | 6 +- ...GoogleFirebaseAppcheckV1AppCheckToken.java | 6 +- ...kV1BatchUpdateResourcePoliciesRequest.java | 6 +- ...eAppcheckV1BatchUpdateServicesRequest.java | 6 +- .../GoogleFirebaseAppcheckV1DebugToken.java | 36 +- ...leFirebaseAppcheckV1DeviceCheckConfig.java | 6 +- ...kV1GenerateAppAttestChallengeResponse.java | 6 +- ...eneratePlayIntegrityChallengeResponse.java | 6 +- ...FirebaseAppcheckV1PlayIntegrityConfig.java | 6 +- ...seAppcheckV1RecaptchaEnterpriseConfig.java | 6 +- ...leFirebaseAppcheckV1RecaptchaV3Config.java | 6 +- ...oogleFirebaseAppcheckV1ResourcePolicy.java | 6 +- ...ogleFirebaseAppcheckV1SafetyNetConfig.java | 6 +- .../GoogleFirebaseAppcheckV1Service.java | 99 - ...AppcheckV1UpdateResourcePolicyRequest.java | 6 +- ...irebaseAppcheckV1UpdateServiceRequest.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../v1/FirebaseAppHosting.java | 43 +- .../firebaseapphosting/v1/model/Backend.java | 18 +- .../firebaseapphosting/v1/model/Build.java | 18 +- .../v1/model/CodebaseSource.java | 6 +- .../v1/model/DnsUpdates.java | 6 +- .../firebaseapphosting/v1/model/Domain.java | 18 +- .../v1/model/DomainOperationMetadata.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../firebaseapphosting/v1/model/Rollout.java | 18 +- .../v1/model/RolloutPolicy.java | 6 +- .../firebaseapphosting/v1/model/Traffic.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../v1/FirebaseDataConnect.java | 43 +- .../v1/model/Connector.java | 12 +- .../v1/model/DataConnectProperties.java | 6 +- .../v1/model/HttpGraphql.java | 6 +- .../v1/model/OperationMetadata.java | 12 +- .../firebasedataconnect/v1/model/Schema.java | 12 +- .../firebasedataconnect/v1/model/Service.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/model/ManagedShortLink.java | 6 +- .../firebasehosting/v1/model/DnsUpdates.java | 6 +- .../firebasehosting/v1/model/HttpUpdate.java | 6 +- .../services/forms/v1/model/FormResponse.java | 12 +- .../v1/model/SetPublishSettingsRequest.java | 6 +- .../forms/v1/model/UpdateFormInfoRequest.java | 6 +- .../forms/v1/model/UpdateItemRequest.java | 6 +- .../forms/v1/model/UpdateSettingsRequest.java | 6 +- .../api/services/forms/v1/model/Watch.java | 12 +- .../v1/2.0.0/README.md | 4 +- .../healthcare/v1/CloudHealthcare.java | 79 +- .../v1/model/ActivateConsentRequest.java | 12 +- .../healthcare/v1/model/BlobStorageInfo.java | 6 +- .../services/healthcare/v1/model/Consent.java | 18 +- .../healthcare/v1/model/ConsentStore.java | 6 +- .../model/ExplainDataAccessConsentInfo.java | 6 +- .../v1/model/ExportMessagesRequest.java | 12 +- .../services/healthcare/v1/model/Message.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../model/RollbackFhirResourcesRequest.java | 6 +- .../model/RollbackHl7V2MessagesRequest.java | 6 +- .../v1/model/SetIamPolicyRequest.java | 6 +- .../healthcare/v1/model/Signature.java | 6 +- .../healthcare/v1/model/UserDataMapping.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- ...omeservicesLocalservicesV1BookingLead.java | 6 +- ...icesLocalservicesV1DetailedLeadReport.java | 6 +- ...sHomeservicesLocalservicesV1PhoneLead.java | 12 +- .../v1/2.0.0/README.md | 4 +- .../managedkafka/v1/ManagedKafka.java | 61 +- .../managedkafka/v1/model/Cluster.java | 12 +- .../managedkafka/v1/model/ConnectCluster.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/model/TaskRetryPolicy.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../manufacturers/v1/ManufacturerCenter.java | 6 +- .../manufacturers/v1/model/Issue.java | 6 +- .../v1/2.0.0/README.md | 4 +- .../monitoring/v1/model/Aggregation.java | 6 +- .../services/monitoring/v1/model/DataSet.java | 27 +- .../monitoring/v1/model/Dimension.java | 6 +- .../monitoring/v1/model/Interval.java | 12 +- .../monitoring/v1/model/MetricsScope.java | 12 +- .../monitoring/v1/model/MonitoredProject.java | 6 +- .../v1/model/OperationMetadata.java | 12 +- .../monitoring/v1/model/PieChartDataSet.java | 6 +- .../monitoring/v1/model/SparkChartView.java | 21 +- .../monitoring/v1/model/TableDataSet.java | 6 +- .../services/monitoring/v1/model/XyChart.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/model/Verification.java | 6 +- .../v1/2.0.0/README.md | 4 +- .../v1/Networkconnectivity.java | 6047 +++---- .../v1/model/AutomatedDnsCreationSpec.java | 6 +- .../v1/model/AutomatedDnsRecord.java | 12 +- .../networkconnectivity/v1/model/Config.java | 6 +- .../v1/model/Destination.java | 12 +- .../v1/model/DestinationEndpoint.java | 6 +- .../networkconnectivity/v1/model/Group.java | 12 +- .../networkconnectivity/v1/model/Hub.java | 12 +- .../v1/model/InternalRange.java | 12 +- .../model/MulticloudDataTransferConfig.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/model/PolicyBasedRoute.java | 12 +- .../v1/model/RegionalEndpoint.java | 12 +- .../networkconnectivity/v1/model/Route.java | 12 +- .../v1/model/RouteTable.java | 12 +- .../v1/model/ServiceClass.java | 12 +- .../v1/model/ServiceConfig.java | 6 +- .../v1/model/ServiceConnectionMap.java | 12 +- .../v1/model/ServiceConnectionPolicy.java | 12 +- .../v1/model/ServiceConnectionToken.java | 18 +- .../v1/model/SetIamPolicyRequest.java | 6 +- .../networkconnectivity/v1/model/Spoke.java | 12 +- .../v1/model/StateMetadata.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../networksecurity/v1/NetworkSecurity.java | 169 +- .../v1/model/AddressGroup.java | 12 +- .../v1/model/AuthorizationPolicy.java | 12 +- .../networksecurity/v1/model/AuthzPolicy.java | 39 +- ...uthzPolicyAuthzRuleToRequestOperation.java | 30 - .../v1/model/AuthzPolicyTarget.java | 33 +- .../v1/model/BackendAuthenticationConfig.java | 12 +- .../v1/model/ClientTlsPolicy.java | 12 +- .../v1/model/DnsThreatDetector.java | 12 +- .../v1/model/FirewallEndpoint.java | 21 +- .../v1/model/FirewallEndpointAssociation.java | 12 +- .../v1/model/GatewaySecurityPolicy.java | 12 +- .../v1/model/GatewaySecurityPolicyRule.java | 12 +- .../model/GoogleIamV1SetIamPolicyRequest.java | 6 +- .../v1/model/InterceptDeployment.java | 12 +- .../v1/model/InterceptDeploymentGroup.java | 12 +- .../v1/model/InterceptEndpointGroup.java | 12 +- .../InterceptEndpointGroupAssociation.java | 39 +- .../v1/model/MirroringDeployment.java | 12 +- .../v1/model/MirroringDeploymentGroup.java | 12 +- .../v1/model/MirroringEndpointGroup.java | 12 +- .../MirroringEndpointGroupAssociation.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/model/SecurityProfile.java | 12 +- .../v1/model/SecurityProfileGroup.java | 12 +- .../v1/model/ServerTlsPolicy.java | 12 +- .../v1/model/TlsInspectionPolicy.java | 12 +- .../networksecurity/v1/model/UrlList.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../networkservices/v1/NetworkServices.java | 109 +- .../v1/model/AuthzExtension.java | 27 +- .../v1/model/EndpointPolicy.java | 12 +- .../v1/model/ExtensionChainExtension.java | 39 +- .../networkservices/v1/model/Gateway.java | 66 +- .../networkservices/v1/model/GrpcRoute.java | 12 +- .../GrpcRouteFaultInjectionPolicyDelay.java | 6 +- .../v1/model/GrpcRouteRouteAction.java | 12 +- ...rpcRouteStatefulSessionAffinityPolicy.java | 6 +- .../networkservices/v1/model/HttpRoute.java | 12 +- .../HttpRouteFaultInjectionPolicyDelay.java | 6 +- .../v1/model/HttpRouteRetryPolicy.java | 6 +- .../v1/model/HttpRouteRouteAction.java | 12 +- ...ttpRouteStatefulSessionAffinityPolicy.java | 6 +- .../v1/model/LbEdgeExtension.java | 12 +- .../v1/model/LbRouteExtension.java | 12 +- .../v1/model/LbTrafficExtension.java | 12 +- .../networkservices/v1/model/Mesh.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/model/ServiceBinding.java | 12 +- .../v1/model/ServiceLbPolicy.java | 12 +- .../v1/model/SetIamPolicyRequest.java | 6 +- .../networkservices/v1/model/TcpRoute.java | 12 +- .../v1/model/TcpRouteRouteAction.java | 6 +- .../networkservices/v1/model/TlsRoute.java | 12 +- .../v1/model/TlsRouteRouteAction.java | 6 +- .../networkservices/v1/model/WasmPlugin.java | 12 +- .../v1/model/WasmPluginVersion.java | 12 +- .../v1/model/WasmPluginVersionDetails.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../ondemandscanning/v1/OnDemandScanning.java | 6 +- .../v1/model/AnalyzePackagesMetadata.java | 6 +- .../v1/model/AnalyzePackagesMetadataV1.java | 6 +- .../v1/model/BuildMetadata.java | 12 +- .../v1/model/BuildProvenance.java | 18 +- .../v1/model/DeploymentOccurrence.java | 12 +- .../v1/model/DiscoveryOccurrence.java | 18 +- .../v1/model/GrafeasV1FileLocation.java | 27 - ...asV1SlsaProvenanceZeroTwoSlsaMetadata.java | 12 +- .../ondemandscanning/v1/model/Metadata.java | 12 +- .../ondemandscanning/v1/model/Occurrence.java | 60 +- .../v1/model/SecretStatus.java | 6 +- .../v1/model/SlsaMetadata.java | 12 +- .../v1/model/WindowsUpdate.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../parallelstore/v1/Parallelstore.java | 6 +- .../parallelstore/v1/model/Instance.java | 12 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/PaymentsResellerSubscription.java | 6 +- .../v1/model/ExtendSubscriptionResponse.java | 18 +- .../v1/model/Promotion.java | 12 +- .../v1/model/ServicePeriod.java | 12 +- .../v1/model/Subscription.java | 36 +- .../v1/model/SubscriptionLineItem.java | 6 +- ...ItemBundleDetailsBundleElementDetails.java | 6 +- .../v1/model/UserSession.java | 6 +- .../v1/model/YoutubePayload.java | 6 +- .../v1/2.0.0/README.md | 4 +- .../api/services/redis/v1/CloudRedis.java | 5989 ++----- .../services/redis/v1/CloudRedisScopes.java | 8 - .../redis/v1/model/AutomatedBackupConfig.java | 6 +- .../api/services/redis/v1/model/Backup.java | 12 +- .../redis/v1/model/BackupClusterRequest.java | 8 +- .../redis/v1/model/BackupCollection.java | 12 +- .../redis/v1/model/BackupDRMetadata.java | 6 +- .../services/redis/v1/model/BackupFile.java | 6 +- .../services/redis/v1/model/BackupRun.java | 12 +- .../api/services/redis/v1/model/Cluster.java | 36 +- .../v1/model/ClusterMaintenancePolicy.java | 12 +- .../v1/model/ClusterMaintenanceSchedule.java | 12 +- .../redis/v1/model/ConfigBasedSignalData.java | 6 +- .../model/CrossClusterReplicationConfig.java | 6 +- .../redis/v1/model/DatabaseResourceFeed.java | 6 +- .../DatabaseResourceHealthSignalData.java | 6 +- .../v1/model/DatabaseResourceMetadata.java | 38 +- ...abaseResourceRecommendationSignalData.java | 6 +- .../v1/model/DatabaseResourceSignalData.java | 6 +- .../redis/v1/model/EncryptionInfo.java | 6 +- .../redis/v1/model/ExportBackupRequest.java | 2 +- .../GoogleCloudRedisV1OperationMetadata.java | 12 +- .../api/services/redis/v1/model/Instance.java | 6 +- .../model/ListBackupCollectionsResponse.java | 2 +- .../redis/v1/model/ListBackupsResponse.java | 2 +- .../redis/v1/model/ListClustersResponse.java | 2 +- .../redis/v1/model/MaintenancePolicy.java | 12 +- .../redis/v1/model/MaintenanceSchedule.java | 18 +- .../v1/model/ObservabilityMetricData.java | 6 +- .../redis/v1/model/OperationMetadata.java | 12 +- .../redis/v1/model/PersistenceConfig.java | 12 +- .../services/redis/v1/model/RDBConfig.java | 6 +- .../RescheduleClusterMaintenanceRequest.java | 6 +- .../model/RescheduleMaintenanceRequest.java | 6 +- .../redis/v1/model/RetentionSettings.java | 18 +- .../redis/v1/model/TlsCertificate.java | 12 +- .../redis/v1/model/UpcomingMaintenance.java | 12 +- .../v1/model/WeeklyMaintenanceWindow.java | 6 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../google/api/services/run/v1/CloudRun.java | 167 +- .../run/v1/model/ExecutionReference.java | 18 +- .../run/v1/model/ExecutionStatus.java | 12 +- .../v1/model/GoogleCloudRunV1Condition.java | 6 +- ...gleDevtoolsCloudbuildV1ApprovalResult.java | 6 +- .../GoogleDevtoolsCloudbuildV1Artifacts.java | 60 - .../GoogleDevtoolsCloudbuildV1Build.java | 30 +- .../GoogleDevtoolsCloudbuildV1BuildStep.java | 6 +- .../GoogleDevtoolsCloudbuildV1BuiltImage.java | 27 - .../GoogleDevtoolsCloudbuildV1Dependency.java | 24 - .../GoogleDevtoolsCloudbuildV1Results.java | 24 - .../GoogleDevtoolsCloudbuildV1TimeSpan.java | 12 +- ...GoogleLongrunningWaitOperationRequest.java | 6 +- .../services/run/v1/model/InstanceSpec.java | 6 +- .../api/services/run/v1/model/ObjectMeta.java | 12 +- .../run/v1/model/SetIamPolicyRequest.java | 6 +- .../api/services/run/v1/model/TaskStatus.java | 12 +- .../services/run/v1/model/VolumeMount.java | 6 +- .../google-api-services-run/v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../v1/ServiceNetworking.java | 6 +- .../v1/model/AddSubnetworkRequest.java | 6 +- .../v1/model/BackendRule.java | 9 +- .../v1/model/BatchingSettingsProto.java | 6 +- .../v1/model/CommonLanguageSettings.java | 9 +- .../v1/model/DnsRecordSet.java | 6 +- .../v1/model/LongRunning.java | 18 +- .../v1/model/MetricDescriptorMetadata.java | 12 +- .../v1/model/SelectiveGapicGeneration.java | 2 +- .../servicenetworking/v1/model/Service.java | 21 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- ...ogleIdentityStsV1ExchangeTokenRequest.java | 54 +- .../v1/model/GoogleIdentityStsV1Options.java | 12 +- .../google-api-services-sts/v1/2.0.0/pom.xml | 4 +- .../api/services/tpu/v1/model/Node.java | 6 +- .../tpu/v1/model/OperationMetadata.java | 12 +- .../api/services/tpu/v1/model/Symptom.java | 6 +- .../services/transcoder/v1/model/AdBreak.java | 6 +- .../transcoder/v1/model/AnimationEnd.java | 6 +- .../transcoder/v1/model/AnimationFade.java | 12 +- .../transcoder/v1/model/AnimationStatic.java | 6 +- .../transcoder/v1/model/EditAtom.java | 12 +- .../v1/model/H264CodecSettings.java | 6 +- .../v1/model/H265CodecSettings.java | 6 +- .../api/services/transcoder/v1/model/Job.java | 18 +- .../transcoder/v1/model/SegmentSettings.java | 6 +- .../transcoder/v1/model/SpriteSheet.java | 18 +- .../transcoder/v1/model/Vp9CodecSettings.java | 6 +- .../v1/2.0.0/README.md | 4 +- .../vpcaccess/v1/ServerlessVPCAccess.java | 31 +- .../vpcaccess/v1/model/OperationMetadata.java | 12 +- .../v1/model/OperationMetadataV1Alpha1.java | 12 +- .../v1/model/OperationMetadataV1Beta1.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../api/services/workflows/v1/Workflows.java | 31 +- .../workflows/v1/model/OperationMetadata.java | 12 +- .../services/workflows/v1/model/Workflow.java | 18 +- .../v1/2.0.0/pom.xml | 4 +- .../v1/2.0.0/README.md | 4 +- .../workstations/v1/CloudWorkstations.java | 121 +- .../GceHyperdiskBalancedHighAvailability.java | 6 +- .../v1/model/GenerateAccessTokenRequest.java | 12 +- .../v1/model/GenerateAccessTokenResponse.java | 6 +- .../v1/model/OperationMetadata.java | 12 +- .../v1/model/SetIamPolicyRequest.java | 6 +- .../v1/model/StartWorkstationRequest.java | 6 +- .../v1/model/StopWorkstationRequest.java | 6 +- .../workstations/v1/model/Workstation.java | 24 +- .../v1/model/WorkstationCluster.java | 93 +- .../v1/model/WorkstationConfig.java | 96 +- .../v1/2.0.0/pom.xml | 4 +- 572 files changed, 13779 insertions(+), 20611 deletions(-) create mode 100644 clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolDataHandlingProfile.java create mode 100644 clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolLifecycleProfile.java diff --git a/clients/google-api-services-alloydb/v1/2.0.0/README.md b/clients/google-api-services-alloydb/v1/2.0.0/README.md index 0b16221eec3..503cf19a5c1 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/README.md +++ b/clients/google-api-services-alloydb/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-alloydb - v1-rev20260326-2.0.0 + v1-rev20260226-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-alloydb:v1-rev20260326-2.0.0' + implementation 'com.google.apis:google-api-services-alloydb:v1-rev20260226-2.0.0' } ``` diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java index 070a36b4321..84ceb87d4bd 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends CloudAlloyDBAdminRequest databas * Output only. Delete time stamp * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -482,7 +482,7 @@ public String getDeleteTime() { * Output only. Delete time stamp * @param deleteTime deleteTime or {@code null} for none */ - public Instance setDeleteTime(String deleteTime) { + public Instance setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -882,7 +882,7 @@ public Instance setUid(java.lang.String uid) { * Output only. Update time stamp * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -890,7 +890,7 @@ public String getUpdateTime() { * Output only. Update time stamp * @param updateTime updateTime or {@code null} for none */ - public Instance setUpdateTime(String updateTime) { + public Instance setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/MaintenanceSchedule.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/MaintenanceSchedule.java index 17ca65c9936..6cd798d55cc 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/MaintenanceSchedule.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/MaintenanceSchedule.java @@ -37,13 +37,13 @@ public final class MaintenanceSchedule extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The scheduled start time for the maintenance. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -51,7 +51,7 @@ public String getStartTime() { * Output only. The scheduled start time for the maintenance. * @param startTime startTime or {@code null} for none */ - public MaintenanceSchedule setStartTime(String startTime) { + public MaintenanceSchedule setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/Node.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/Node.java index 81b97ba7748..0158fc0584a 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/Node.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/Node.java @@ -44,13 +44,6 @@ public final class Node extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String ip; - /** - * Output only. Indicates whether the node set up to be configured as a hot standby. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isHotStandby; - /** * Output only. Determined by state of the compute VM and postgres-service health. Compute VM * state can have values listed in https://cloud.google.com/compute/docs/instances/instance-life- @@ -101,23 +94,6 @@ public Node setIp(java.lang.String ip) { return this; } - /** - * Output only. Indicates whether the node set up to be configured as a hot standby. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsHotStandby() { - return isHotStandby; - } - - /** - * Output only. Indicates whether the node set up to be configured as a hot standby. - * @param isHotStandby isHotStandby or {@code null} for none - */ - public Node setIsHotStandby(java.lang.Boolean isHotStandby) { - this.isHotStandby = isHotStandby; - return this; - } - /** * Output only. Determined by state of the compute VM and postgres-service health. Compute VM * state can have values listed in https://cloud.google.com/compute/docs/instances/instance-life- diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/OperationMetadata.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/OperationMetadata.java index c611cdef1fa..825f64b0efd 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/OperationMetadata.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/OperationMetadata.java @@ -41,14 +41,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -108,7 +108,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -116,7 +116,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -125,7 +125,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -133,7 +133,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupDRMetadata.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupDRMetadata.java index 2bf345a3aa4..142f1c72ae5 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupDRMetadata.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupDRMetadata.java @@ -63,7 +63,7 @@ public final class StorageDatabasecenterPartnerapiV1mainBackupDRMetadata extends * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Required. Database resource id. @@ -144,7 +144,7 @@ public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setFullResourceName * Required. Last time backup configuration was refreshed. * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -152,7 +152,7 @@ public String getLastRefreshTime() { * Required. Last time backup configuration was refreshed. * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setLastRefreshTime(String lastRefreshTime) { + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupRun.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupRun.java index 84624ed8c3f..56dd02d03d0 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupRun.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainBackupRun.java @@ -34,7 +34,7 @@ public final class StorageDatabasecenterPartnerapiV1mainBackupRun extends com.go * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Information about why the backup operation failed. This is only present if the run has the @@ -49,7 +49,7 @@ public final class StorageDatabasecenterPartnerapiV1mainBackupRun extends com.go * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * The status of this run. REQUIRED @@ -62,7 +62,7 @@ public final class StorageDatabasecenterPartnerapiV1mainBackupRun extends com.go * The time the backup operation completed. REQUIRED * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -70,7 +70,7 @@ public String getEndTime() { * The time the backup operation completed. REQUIRED * @param endTime endTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainBackupRun setEndTime(String endTime) { + public StorageDatabasecenterPartnerapiV1mainBackupRun setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -98,7 +98,7 @@ public StorageDatabasecenterPartnerapiV1mainBackupRun setError(StorageDatabasece * The time the backup operation started. REQUIRED * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -106,7 +106,7 @@ public String getStartTime() { * The time the backup operation started. REQUIRED * @param startTime startTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainBackupRun setStartTime(String startTime) { + public StorageDatabasecenterPartnerapiV1mainBackupRun setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData.java index b083f767c68..4d82754090a 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData.java @@ -42,7 +42,7 @@ public final class StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData ex * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Database resource id. @@ -86,7 +86,7 @@ public StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData setFullResourc * Required. Last time signal was refreshed * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -94,7 +94,7 @@ public String getLastRefreshTime() { * Required. Last time signal was refreshed * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData setLastRefreshTime(String lastRefreshTime) { + public StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.java index 45c2331e4cb..7c0f64c31ab 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.java @@ -57,7 +57,7 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed ext * The value may be {@code null}. */ @com.google.api.client.util.Key - private String feedTimestamp; + private java.lang.String feedTimestamp; /** * Required. Type feed to be ingested into condor @@ -165,7 +165,7 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed setDatabaseReso * Required. Timestamp when feed is generated. * @return value or {@code null} for none */ - public String getFeedTimestamp() { + public java.lang.String getFeedTimestamp() { return feedTimestamp; } @@ -173,7 +173,7 @@ public String getFeedTimestamp() { * Required. Timestamp when feed is generated. * @param feedTimestamp feedTimestamp or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed setFeedTimestamp(String feedTimestamp) { + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed setFeedTimestamp(java.lang.String feedTimestamp) { this.feedTimestamp = feedTimestamp; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.java index de438bbc52a..a617a985359 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.java @@ -65,7 +65,7 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String eventTime; + private java.lang.String eventTime; /** * The external-uri of the signal, using which more information about this signal can be obtained. @@ -213,7 +213,7 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData set * Required. The last time at which the event described by this signal took place * @return value or {@code null} for none */ - public String getEventTime() { + public java.lang.String getEventTime() { return eventTime; } @@ -221,7 +221,7 @@ public String getEventTime() { * Required. The last time at which the event described by this signal took place * @param eventTime eventTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData setEventTime(String eventTime) { + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData setEventTime(java.lang.String eventTime) { this.eventTime = eventTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java index 318739e96be..fcc79fca5e5 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java @@ -17,7 +17,7 @@ package com.google.api.services.alloydb.v1.model; /** - * Common model for database resource instance metadata. Next ID: 32 + * Common model for database resource instance metadata. Next ID: 31 * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: @@ -63,7 +63,7 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata * The value may be {@code null}. */ @com.google.api.client.util.Key - private String creationTime; + private java.lang.String creationTime; /** * Current state of the instance. @@ -151,13 +151,6 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata @com.google.api.client.util.Key private StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo maintenanceInfo; - /** - * Optional. The modes of the database resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List modes; - /** * Identifier for this resource's immediate parent/primary resource if the current resource is a * replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the @@ -227,7 +220,7 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updationTime; + private java.lang.String updationTime; /** * User-provided labels associated with the resource @@ -317,7 +310,7 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setBackupdr * partner service. * @return value or {@code null} for none */ - public String getCreationTime() { + public java.lang.String getCreationTime() { return creationTime; } @@ -326,7 +319,7 @@ public String getCreationTime() { * partner service. * @param creationTime creationTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setCreationTime(String creationTime) { + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setCreationTime(java.lang.String creationTime) { this.creationTime = creationTime; return this; } @@ -539,23 +532,6 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setMaintena return this; } - /** - * Optional. The modes of the database resource. - * @return value or {@code null} for none - */ - public java.util.List getModes() { - return modes; - } - - /** - * Optional. The modes of the database resource. - * @param modes modes or {@code null} for none - */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setModes(java.util.List modes) { - this.modes = modes; - return this; - } - /** * Identifier for this resource's immediate parent/primary resource if the current resource is a * replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the @@ -712,7 +688,7 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setTagsSet( * The time at which the resource was updated and recorded at partner service. * @return value or {@code null} for none */ - public String getUpdationTime() { + public java.lang.String getUpdationTime() { return updationTime; } @@ -720,7 +696,7 @@ public String getUpdationTime() { * The time at which the resource was updated and recorded at partner service. * @param updationTime updationTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setUpdationTime(String updationTime) { + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setUpdationTime(java.lang.String updationTime) { this.updationTime = updationTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.java index 18e8445fece..4d5fac12373 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.java @@ -41,7 +41,7 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Required. Recommendation state @@ -115,7 +115,7 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignal * Required. last time recommendationw as refreshed * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -123,7 +123,7 @@ public String getLastRefreshTime() { * Required. last time recommendationw as refreshed * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData setLastRefreshTime(String lastRefreshTime) { + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData.java index fe9e1c9f135..44f73f55247 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData.java @@ -19,7 +19,7 @@ /** * Database resource signal data. This is used to send signals to Condor which are based on the * DB/Instance/Fleet level configurations. These will be used to send signals for all inventory - * types. Next ID: 10 + * types. 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 AlloyDB API. For a detailed explanation see: @@ -50,14 +50,7 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalDa * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; - - /** - * Resource location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; + private java.lang.String lastRefreshTime; /** * Database resource id. @@ -132,7 +125,7 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData setFullRe * Required. Last time signal was refreshed * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -140,28 +133,11 @@ public String getLastRefreshTime() { * Required. Last time signal was refreshed * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData setLastRefreshTime(String lastRefreshTime) { + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } - /** - * Resource location. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * Resource location. - * @param location location or {@code null} for none - */ - public StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData setLocation(java.lang.String location) { - this.location = location; - return this; - } - /** * Database resource id. * @return value or {@code null} for none diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData.java index dff8f105203..445578c7718 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData.java @@ -48,7 +48,7 @@ public final class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData * The value may be {@code null}. */ @com.google.api.client.util.Key - private String observationTime; + private java.lang.String observationTime; /** * Required. Database resource name associated with the signal. Resource name to follow CAIS @@ -103,7 +103,7 @@ public StorageDatabasecenterPartnerapiV1mainObservabilityMetricData setMetricTyp * Required. The time the metric value was observed. * @return value or {@code null} for none */ - public String getObservationTime() { + public java.lang.String getObservationTime() { return observationTime; } @@ -111,7 +111,7 @@ public String getObservationTime() { * Required. The time the metric value was observed. * @param observationTime observationTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainObservabilityMetricData setObservationTime(String observationTime) { + public StorageDatabasecenterPartnerapiV1mainObservabilityMetricData setObservationTime(java.lang.String observationTime) { this.observationTime = observationTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainRetentionSettings.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainRetentionSettings.java index 1748e32540e..eb976b626a8 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainRetentionSettings.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainRetentionSettings.java @@ -34,7 +34,7 @@ public final class StorageDatabasecenterPartnerapiV1mainRetentionSettings extend * The value may be {@code null}. */ @com.google.api.client.util.Key - private String durationBasedRetention; + private java.lang.String durationBasedRetention; /** * The value may be {@code null}. @@ -53,20 +53,20 @@ public final class StorageDatabasecenterPartnerapiV1mainRetentionSettings extend * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeBasedRetention; + private java.lang.String timeBasedRetention; /** * Timestamp based retention period i.e. 2024-05-01T00:00:00Z * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timestampBasedRetentionTime; + private java.lang.String timestampBasedRetentionTime; /** * Duration based retention period i.e. 172800 seconds (2 days) * @return value or {@code null} for none */ - public String getDurationBasedRetention() { + public java.lang.String getDurationBasedRetention() { return durationBasedRetention; } @@ -74,7 +74,7 @@ public String getDurationBasedRetention() { * Duration based retention period i.e. 172800 seconds (2 days) * @param durationBasedRetention durationBasedRetention or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainRetentionSettings setDurationBasedRetention(String durationBasedRetention) { + public StorageDatabasecenterPartnerapiV1mainRetentionSettings setDurationBasedRetention(java.lang.String durationBasedRetention) { this.durationBasedRetention = durationBasedRetention; return this; } @@ -114,14 +114,14 @@ public StorageDatabasecenterPartnerapiV1mainRetentionSettings setRetentionUnit(j /** * @return value or {@code null} for none */ - public String getTimeBasedRetention() { + public java.lang.String getTimeBasedRetention() { return timeBasedRetention; } /** * @param timeBasedRetention timeBasedRetention or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainRetentionSettings setTimeBasedRetention(String timeBasedRetention) { + public StorageDatabasecenterPartnerapiV1mainRetentionSettings setTimeBasedRetention(java.lang.String timeBasedRetention) { this.timeBasedRetention = timeBasedRetention; return this; } @@ -130,7 +130,7 @@ public StorageDatabasecenterPartnerapiV1mainRetentionSettings setTimeBasedRetent * Timestamp based retention period i.e. 2024-05-01T00:00:00Z * @return value or {@code null} for none */ - public String getTimestampBasedRetentionTime() { + public java.lang.String getTimestampBasedRetentionTime() { return timestampBasedRetentionTime; } @@ -138,7 +138,7 @@ public String getTimestampBasedRetentionTime() { * Timestamp based retention period i.e. 2024-05-01T00:00:00Z * @param timestampBasedRetentionTime timestampBasedRetentionTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainRetentionSettings setTimestampBasedRetentionTime(String timestampBasedRetentionTime) { + public StorageDatabasecenterPartnerapiV1mainRetentionSettings setTimestampBasedRetentionTime(java.lang.String timestampBasedRetentionTime) { this.timestampBasedRetentionTime = timestampBasedRetentionTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java index 4d312bfa9fb..84a74fad540 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java @@ -35,20 +35,20 @@ public final class StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance exte * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Optional. The start time of the upcoming maintenance. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Optional. The end time of the upcoming maintenance. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -56,7 +56,7 @@ public String getEndTime() { * Optional. The end time of the upcoming maintenance. * @param endTime endTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setEndTime(String endTime) { + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -65,7 +65,7 @@ public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setEndTime(Strin * Optional. The start time of the upcoming maintenance. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -73,7 +73,7 @@ public String getStartTime() { * Optional. The start time of the upcoming maintenance. * @param startTime startTime or {@code null} for none */ - public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setStartTime(String startTime) { + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TimeBasedRetention.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TimeBasedRetention.java index 10fc5e3a66e..aa84935bb03 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TimeBasedRetention.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TimeBasedRetention.java @@ -35,13 +35,13 @@ public final class TimeBasedRetention extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String retentionPeriod; + private java.lang.String retentionPeriod; /** * The retention period. * @return value or {@code null} for none */ - public String getRetentionPeriod() { + public java.lang.String getRetentionPeriod() { return retentionPeriod; } @@ -49,7 +49,7 @@ public String getRetentionPeriod() { * The retention period. * @param retentionPeriod retentionPeriod or {@code null} for none */ - public TimeBasedRetention setRetentionPeriod(String retentionPeriod) { + public TimeBasedRetention setRetentionPeriod(java.lang.String retentionPeriod) { this.retentionPeriod = retentionPeriod; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TrialMetadata.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TrialMetadata.java index 2670b5ed1a5..acb1465635f 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TrialMetadata.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/TrialMetadata.java @@ -34,34 +34,34 @@ public final class TrialMetadata extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * grace end time of the cluster. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String graceEndTime; + private java.lang.String graceEndTime; /** * start time of the trial cluster. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Upgrade time of trial cluster to Standard cluster. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String upgradeTime; + private java.lang.String upgradeTime; /** * End time of the trial cluster. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -69,7 +69,7 @@ public String getEndTime() { * End time of the trial cluster. * @param endTime endTime or {@code null} for none */ - public TrialMetadata setEndTime(String endTime) { + public TrialMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -78,7 +78,7 @@ public TrialMetadata setEndTime(String endTime) { * grace end time of the cluster. * @return value or {@code null} for none */ - public String getGraceEndTime() { + public java.lang.String getGraceEndTime() { return graceEndTime; } @@ -86,7 +86,7 @@ public String getGraceEndTime() { * grace end time of the cluster. * @param graceEndTime graceEndTime or {@code null} for none */ - public TrialMetadata setGraceEndTime(String graceEndTime) { + public TrialMetadata setGraceEndTime(java.lang.String graceEndTime) { this.graceEndTime = graceEndTime; return this; } @@ -95,7 +95,7 @@ public TrialMetadata setGraceEndTime(String graceEndTime) { * start time of the trial cluster. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -103,7 +103,7 @@ public String getStartTime() { * start time of the trial cluster. * @param startTime startTime or {@code null} for none */ - public TrialMetadata setStartTime(String startTime) { + public TrialMetadata setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } @@ -112,7 +112,7 @@ public TrialMetadata setStartTime(String startTime) { * Upgrade time of trial cluster to Standard cluster. * @return value or {@code null} for none */ - public String getUpgradeTime() { + public java.lang.String getUpgradeTime() { return upgradeTime; } @@ -120,7 +120,7 @@ public String getUpgradeTime() { * Upgrade time of trial cluster to Standard cluster. * @param upgradeTime upgradeTime or {@code null} for none */ - public TrialMetadata setUpgradeTime(String upgradeTime) { + public TrialMetadata setUpgradeTime(java.lang.String upgradeTime) { this.upgradeTime = upgradeTime; return this; } diff --git a/clients/google-api-services-alloydb/v1/2.0.0/pom.xml b/clients/google-api-services-alloydb/v1/2.0.0/pom.xml index 95384c9a829..13b56b4679c 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/pom.xml +++ b/clients/google-api-services-alloydb/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-alloydb - v1-rev20260326-2.0.0 - AlloyDB API v1-rev20260326-2.0.0 + v1-rev20260226-2.0.0 + AlloyDB API v1-rev20260226-2.0.0 jar 2011 diff --git a/clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/model/EnrollmentToken.java b/clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/model/EnrollmentToken.java index 7bbdee42a3c..f1681075039 100644 --- a/clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/model/EnrollmentToken.java +++ b/clients/google-api-services-androidenterprise/v1/2.0.0/com/google/api/services/androidenterprise/model/EnrollmentToken.java @@ -37,7 +37,7 @@ public final class EnrollmentToken extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String duration; + private java.lang.String duration; /** * [Required] The type of the enrollment token. @@ -68,7 +68,7 @@ public final class EnrollmentToken extends com.google.api.client.json.GenericJso * 10,000 years. If not specified, the default duration is 1 hour. * @return value or {@code null} for none */ - public String getDuration() { + public java.lang.String getDuration() { return duration; } @@ -79,7 +79,7 @@ public String getDuration() { * 10,000 years. If not specified, the default duration is 1 hour. * @param duration duration or {@code null} for none */ - public EnrollmentToken setDuration(String duration) { + public EnrollmentToken setDuration(java.lang.String duration) { this.duration = duration; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/README.md b/clients/google-api-services-apigee/v1/2.0.0/README.md index 6c66bef99d3..149ebf15ac9 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/README.md +++ b/clients/google-api-services-apigee/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-apigee - v1-rev20260327-2.0.0 + v1-rev20260218-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-apigee:v1-rev20260327-2.0.0' + implementation 'com.google.apis:google-api-services-apigee:v1-rev20260218-2.0.0' } ``` diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/Apigee.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/Apigee.java index 156d30b93d8..172fd7671e8 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/Apigee.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/Apigee.java @@ -2421,12 +2421,12 @@ public UpdateControlPlaneAccess setName(java.lang.String name) { * publisher_identities. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** List of fields to be updated. Fields that can be updated: synchronizer_identities, publisher_identities. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -2434,7 +2434,7 @@ public String getUpdateMask() { * List of fields to be updated. Fields that can be updated: synchronizer_identities, * publisher_identities. */ - public UpdateControlPlaneAccess setUpdateMask(String updateMask) { + public UpdateControlPlaneAccess setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -2576,11 +2576,11 @@ public UpdateSecuritySettings setName(java.lang.String name) { * ml_retraining_feedback_enabled */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update. Allowed fields are: - ml_retraining_feedback_enabled */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -2588,7 +2588,7 @@ public String getUpdateMask() { * Optional. The list of fields to update. Allowed fields are: - * ml_retraining_feedback_enabled */ - public UpdateSecuritySettings setUpdateMask(String updateMask) { + public UpdateSecuritySettings setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -4313,16 +4313,16 @@ public Patch setAllowMissing(java.lang.Boolean allowMissing) { /** Optional. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Optional. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -8381,16 +8381,16 @@ public Patch setName(java.lang.String name) { /** Required. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -16537,16 +16537,16 @@ public Patch setName(java.lang.String name) { /** List of fields to be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** List of fields to be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** List of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -19444,15 +19444,13 @@ public List setCount(java.lang.Long count) { /** * Optional. Specifies whether to expand the results. Set to `true` to expand the results. * This query parameter is not valid if you use the `count` or `startKey` query - * parameters. **Note**: If set to `true`, the `apigee.developerapps.get` permission is - * required. + * parameters. */ @com.google.api.client.util.Key private java.lang.Boolean expand; /** Optional. Specifies whether to expand the results. Set to `true` to expand the results. This query - parameter is not valid if you use the `count` or `startKey` query parameters. **Note**: If set to - `true`, the `apigee.developerapps.get` permission is required. + parameter is not valid if you use the `count` or `startKey` query parameters. */ public java.lang.Boolean getExpand() { return expand; @@ -19461,8 +19459,7 @@ public java.lang.Boolean getExpand() { /** * Optional. Specifies whether to expand the results. Set to `true` to expand the results. * This query parameter is not valid if you use the `count` or `startKey` query - * parameters. **Note**: If set to `true`, the `apigee.developerapps.get` permission is - * required. + * parameters. */ public List setExpand(java.lang.Boolean expand) { this.expand = expand; @@ -19471,15 +19468,13 @@ public List setExpand(java.lang.Boolean expand) { /** * Optional. Specifies whether to expand the results in shallow mode. Set to `true` to - * expand the results in shallow mode. **Note**: If set to `true`, the - * `apigee.developerapps.get` permission is required. + * expand the results in shallow mode. */ @com.google.api.client.util.Key private java.lang.Boolean shallowExpand; /** Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the - results in shallow mode. **Note**: If set to `true`, the `apigee.developerapps.get` permission is - required. + results in shallow mode. */ public java.lang.Boolean getShallowExpand() { return shallowExpand; @@ -19487,8 +19482,7 @@ public java.lang.Boolean getShallowExpand() { /** * Optional. Specifies whether to expand the results in shallow mode. Set to `true` to - * expand the results in shallow mode. **Note**: If set to `true`, the - * `apigee.developerapps.get` permission is required. + * expand the results in shallow mode. */ public List setShallowExpand(java.lang.Boolean shallowExpand) { this.shallowExpand = shallowExpand; @@ -25445,16 +25439,16 @@ public Patch setName(java.lang.String name) { /** Optional. List of fields to be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. List of fields to be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Optional. List of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -27804,16 +27798,16 @@ public ModifyEnvironment setName(java.lang.String name) { /** List of fields to be updated. Fields that can be updated: node_config. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** List of fields to be updated. Fields that can be updated: node_config. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** List of fields to be updated. Fields that can be updated: node_config. */ - public ModifyEnvironment setUpdateMask(String updateMask) { + public ModifyEnvironment setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -28704,16 +28698,16 @@ public UpdateDebugmask setReplaceRepeatedFields(java.lang.Boolean replaceRepeate /** Field debug mask to support partial updates. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Field debug mask to support partial updates. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Field debug mask to support partial updates. */ - public UpdateDebugmask setUpdateMask(String updateMask) { + public UpdateDebugmask setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -29016,16 +29010,16 @@ public UpdateSecurityActionsConfig setName(java.lang.String name) { /** The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** The list of fields to update. */ - public UpdateSecurityActionsConfig setUpdateMask(String updateMask) { + public UpdateSecurityActionsConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -29176,16 +29170,16 @@ public UpdateTraceConfig setName(java.lang.String name) { /** List of fields to be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** List of fields to be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** List of fields to be updated. */ - public UpdateTraceConfig setUpdateMask(String updateMask) { + public UpdateTraceConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -33308,16 +33302,16 @@ public Patch setName(java.lang.String name) { /** Required. The list of fields to be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. The list of fields to be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Required. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -42118,12 +42112,12 @@ public Patch setName(java.lang.String name) { * `condition_config`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update. Valid fields to update are `description`, `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and `condition_config`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -42132,7 +42126,7 @@ public String getUpdateMask() { * `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `api_proxies`, and * `condition_config`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -42825,12 +42819,12 @@ public Patch setName(java.lang.String name) { * LINT.IfChange(allowed_update_fields_comment) - observability LINT.ThenChange() */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. The list of fields to update. Allowed fields are: LINT.IfChange(allowed_update_fields_comment) - observability LINT.ThenChange() */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -42838,7 +42832,7 @@ public String getUpdateMask() { * Required. The list of fields to update. Allowed fields are: * LINT.IfChange(allowed_update_fields_comment) - observability LINT.ThenChange() */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -46705,16 +46699,16 @@ public Patch setName(java.lang.String name) { /** List of fields to be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** List of fields to be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** List of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -49711,16 +49705,16 @@ public Patch setName(java.lang.String name) { /** List of fields to be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** List of fields to be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** List of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -55768,16 +55762,16 @@ public Patch setName(java.lang.String name) { /** Optional. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Optional. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -56674,12 +56668,12 @@ public Patch setName(java.lang.String name) { * `include_all_resources` and `include`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update. Valid fields to update are `include_all_resources` and `include`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -56687,7 +56681,7 @@ public String getUpdateMask() { * Optional. The list of fields to update. Valid fields to update are * `include_all_resources` and `include`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -57687,16 +57681,16 @@ public Patch setName(java.lang.String name) { /** Required. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -58994,12 +58988,12 @@ public Patch setName(java.lang.String name) { * `profileAssessmentConfigs`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update. Valid fields to update are `description` and `profileAssessmentConfigs`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -59007,7 +59001,7 @@ public String getUpdateMask() { * Optional. The list of fields to update. Valid fields to update are `description` and * `profileAssessmentConfigs`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -63690,16 +63684,16 @@ public Patch setName(java.lang.String name) { /** Required. List of fields to be updated. Fields that can be updated: display_name. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. List of fields to be updated. Fields that can be updated: display_name. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Required. List of fields to be updated. Fields that can be updated: display_name. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolDataHandlingProfile.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolDataHandlingProfile.java new file mode 100644 index 00000000000..194bc997870 --- /dev/null +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolDataHandlingProfile.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apigee.v1.model; + +/** + * Profile describing the data handling characteristics of an MCP tool. When used within the + * McpTool.meta field, this message should be packed into a google.protobuf.Any and associated with + * the key: "google.com/tool.profiles/data_handling" + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiservingMcpMcpToolDataHandlingProfile extends com.google.api.client.json.GenericJson { + + /** + * // The data access level of the tool's inputs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String inputDataAccessLevel; + + /** + * The data access level of the tool's outputs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outputDataAccessLevel; + + /** + * // The data access level of the tool's inputs. + * @return value or {@code null} for none + */ + public java.lang.String getInputDataAccessLevel() { + return inputDataAccessLevel; + } + + /** + * // The data access level of the tool's inputs. + * @param inputDataAccessLevel inputDataAccessLevel or {@code null} for none + */ + public ApiservingMcpMcpToolDataHandlingProfile setInputDataAccessLevel(java.lang.String inputDataAccessLevel) { + this.inputDataAccessLevel = inputDataAccessLevel; + return this; + } + + /** + * The data access level of the tool's outputs. + * @return value or {@code null} for none + */ + public java.lang.String getOutputDataAccessLevel() { + return outputDataAccessLevel; + } + + /** + * The data access level of the tool's outputs. + * @param outputDataAccessLevel outputDataAccessLevel or {@code null} for none + */ + public ApiservingMcpMcpToolDataHandlingProfile setOutputDataAccessLevel(java.lang.String outputDataAccessLevel) { + this.outputDataAccessLevel = outputDataAccessLevel; + return this; + } + + @Override + public ApiservingMcpMcpToolDataHandlingProfile set(String fieldName, Object value) { + return (ApiservingMcpMcpToolDataHandlingProfile) super.set(fieldName, value); + } + + @Override + public ApiservingMcpMcpToolDataHandlingProfile clone() { + return (ApiservingMcpMcpToolDataHandlingProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolLifecycleProfile.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolLifecycleProfile.java new file mode 100644 index 00000000000..959c36253d4 --- /dev/null +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/ApiservingMcpMcpToolLifecycleProfile.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apigee.v1.model; + +/** + * Profile describing the lifecycle stage of an MCP tool. When used within the McpTool.meta field, + * this message should be packed into a google.protobuf.Any and associated with the key: + * "google.com/tool.profiles/lifecycle" + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiservingMcpMcpToolLifecycleProfile extends com.google.api.client.json.GenericJson { + + /** + * Output only. The current launch state of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String launchState; + + /** + * Output only. The current launch state of the MCP tool. + * @return value or {@code null} for none + */ + public java.lang.String getLaunchState() { + return launchState; + } + + /** + * Output only. The current launch state of the MCP tool. + * @param launchState launchState or {@code null} for none + */ + public ApiservingMcpMcpToolLifecycleProfile setLaunchState(java.lang.String launchState) { + this.launchState = launchState; + return this; + } + + @Override + public ApiservingMcpMcpToolLifecycleProfile set(String fieldName, Object value) { + return (ApiservingMcpMcpToolLifecycleProfile) super.set(fieldName, value); + } + + @Override + public ApiservingMcpMcpToolLifecycleProfile clone() { + return (ApiservingMcpMcpToolLifecycleProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1AnalyticsConfig.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1AnalyticsConfig.java index 25fd37020c8..1c1143b1b49 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1AnalyticsConfig.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1AnalyticsConfig.java @@ -56,7 +56,7 @@ public final class GoogleCloudApigeeV1AnalyticsConfig extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Whether the Analytics add-on is enabled. @@ -115,7 +115,7 @@ public GoogleCloudApigeeV1AnalyticsConfig setState(java.lang.String state) { * Output only. The latest update time. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -123,7 +123,7 @@ public String getUpdateTime() { * Output only. The latest update time. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1AnalyticsConfig setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1AnalyticsConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiDebugSession.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiDebugSession.java index dac9c183322..e1a822eaed6 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiDebugSession.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiDebugSession.java @@ -41,7 +41,7 @@ public final class GoogleCloudApigeeV1ApiDebugSession extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The environment ID of the deployed API proxy. @@ -78,7 +78,7 @@ public GoogleCloudApigeeV1ApiDebugSession setApiProxyRevisionId(java.lang.String * The first transaction creation timestamp in millisecond, recorded by UAP. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -86,7 +86,7 @@ public String getCreateTime() { * The first transaction creation timestamp in millisecond, recorded by UAP. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1ApiDebugSession setCreateTime(String createTime) { + public GoogleCloudApigeeV1ApiDebugSession setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiSecurityRuntimeConfig.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiSecurityRuntimeConfig.java index 4c40641af6b..ad93c1b8b78 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiSecurityRuntimeConfig.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApiSecurityRuntimeConfig.java @@ -65,7 +65,7 @@ public final class GoogleCloudApigeeV1ApiSecurityRuntimeConfig extends com.googl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * A list of up to 5 Cloud Storage Blobs that contain SecurityActions. @@ -145,7 +145,7 @@ public GoogleCloudApigeeV1ApiSecurityRuntimeConfig setUid(java.lang.String uid) * Time that the API Security Runtime configuration was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -153,7 +153,7 @@ public String getUpdateTime() { * Time that the API Security Runtime configuration was updated. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1ApiSecurityRuntimeConfig setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1ApiSecurityRuntimeConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApimServiceExtension.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApimServiceExtension.java index 8ea757642f7..6af66c3dcbd 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApimServiceExtension.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ApimServiceExtension.java @@ -35,7 +35,7 @@ public final class GoogleCloudApigeeV1ApimServiceExtension extends com.google.ap * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Name of the proxy deployed in the Apigee X instance. @@ -99,13 +99,13 @@ public final class GoogleCloudApigeeV1ApimServiceExtension extends com.google.ap * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time that this resource was created on the server. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -113,7 +113,7 @@ public String getCreateTime() { * Output only. The time that this resource was created on the server. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1ApimServiceExtension setCreateTime(String createTime) { + public GoogleCloudApigeeV1ApimServiceExtension setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -257,7 +257,7 @@ public GoogleCloudApigeeV1ApimServiceExtension setState(java.lang.String state) * Output only. The time that this resource was updated on the server. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -265,7 +265,7 @@ public String getUpdateTime() { * Output only. The time that this resource was updated on the server. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1ApimServiceExtension setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1ApimServiceExtension setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse.java index b2f8a2e0e96..e50067a1cc5 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse.java @@ -34,7 +34,7 @@ public final class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRespo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String assessmentTime; + private java.lang.String assessmentTime; /** * A token that can be sent as `page_token` to retrieve the next page. If this field is blank, @@ -55,7 +55,7 @@ public final class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRespo * The time of the assessment api call. * @return value or {@code null} for none */ - public String getAssessmentTime() { + public java.lang.String getAssessmentTime() { return assessmentTime; } @@ -63,7 +63,7 @@ public String getAssessmentTime() { * The time of the assessment api call. * @param assessmentTime assessmentTime or {@code null} for none */ - public GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse setAssessmentTime(String assessmentTime) { + public GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse setAssessmentTime(java.lang.String assessmentTime) { this.assessmentTime = assessmentTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1CanaryEvaluation.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1CanaryEvaluation.java index fdcd706caf4..ff2b6d0928a 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1CanaryEvaluation.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1CanaryEvaluation.java @@ -42,14 +42,14 @@ public final class GoogleCloudApigeeV1CanaryEvaluation extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. End time for the evaluation's analysis. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Required. Labels used to filter the metrics used for a canary evaluation. @@ -70,7 +70,7 @@ public final class GoogleCloudApigeeV1CanaryEvaluation extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The current state of the canary evaluation. @@ -114,7 +114,7 @@ public GoogleCloudApigeeV1CanaryEvaluation setControl(java.lang.String control) * Output only. Create time of the canary evaluation. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -122,7 +122,7 @@ public String getCreateTime() { * Output only. Create time of the canary evaluation. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1CanaryEvaluation setCreateTime(String createTime) { + public GoogleCloudApigeeV1CanaryEvaluation setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -131,7 +131,7 @@ public GoogleCloudApigeeV1CanaryEvaluation setCreateTime(String createTime) { * Required. End time for the evaluation's analysis. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -139,7 +139,7 @@ public String getEndTime() { * Required. End time for the evaluation's analysis. * @param endTime endTime or {@code null} for none */ - public GoogleCloudApigeeV1CanaryEvaluation setEndTime(String endTime) { + public GoogleCloudApigeeV1CanaryEvaluation setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -182,7 +182,7 @@ public GoogleCloudApigeeV1CanaryEvaluation setName(java.lang.String name) { * Required. Start time for the canary evaluation's analysis. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -190,7 +190,7 @@ public String getStartTime() { * Required. Start time for the canary evaluation's analysis. * @param startTime startTime or {@code null} for none */ - public GoogleCloudApigeeV1CanaryEvaluation setStartTime(String startTime) { + public GoogleCloudApigeeV1CanaryEvaluation setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DebugSession.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DebugSession.java index 390417cc8d3..85b60caedf9 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DebugSession.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DebugSession.java @@ -41,7 +41,7 @@ public final class GoogleCloudApigeeV1DebugSession extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A conditional statement which is evaluated against the request message to determine @@ -103,7 +103,7 @@ public GoogleCloudApigeeV1DebugSession setCount(java.lang.Integer count) { * Output only. The first transaction creation timestamp, recorded by UAP. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -111,7 +111,7 @@ public String getCreateTime() { * Output only. The first transaction creation timestamp, recorded by UAP. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1DebugSession setCreateTime(String createTime) { + public GoogleCloudApigeeV1DebugSession setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DnsZone.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DnsZone.java index 61546f9f92a..b3aa89a5e78 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DnsZone.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DnsZone.java @@ -36,7 +36,7 @@ public final class GoogleCloudApigeeV1DnsZone extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Description of the resource. String of at most 1024 characters associated with this @@ -81,13 +81,13 @@ public final class GoogleCloudApigeeV1DnsZone extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time that this resource was created on the server. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -95,7 +95,7 @@ public String getCreateTime() { * Output only. The time that this resource was created on the server. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1DnsZone setCreateTime(String createTime) { + public GoogleCloudApigeeV1DnsZone setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -195,7 +195,7 @@ public GoogleCloudApigeeV1DnsZone setState(java.lang.String state) { * Output only. The time that this resource was updated on the server. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -203,7 +203,7 @@ public String getUpdateTime() { * Output only. The time that this resource was updated on the server. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1DnsZone setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1DnsZone setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.java index 6c9dbb55d0b..8550bff6aad 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.java @@ -38,7 +38,8 @@ public final class GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderI private java.lang.Integer ipHeaderIndex; /** - * Required. The name of the header to extract the client ip from. + * Required. The name of the header to extract the client ip from. We are currently only + * supporting the X-Forwarded-For header. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,7 +65,8 @@ public GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorith } /** - * Required. The name of the header to extract the client ip from. + * Required. The name of the header to extract the client ip from. We are currently only + * supporting the X-Forwarded-For header. * @return value or {@code null} for none */ public java.lang.String getIpHeaderName() { @@ -72,7 +74,8 @@ public java.lang.String getIpHeaderName() { } /** - * Required. The name of the header to extract the client ip from. + * Required. The name of the header to extract the client ip from. We are currently only + * supporting the X-Forwarded-For header. * @param ipHeaderName ipHeaderName or {@code null} for none */ public GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm setIpHeaderName(java.lang.String ipHeaderName) { diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentConfig.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentConfig.java index 0f83359715f..0a70d0af151 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentConfig.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1EnvironmentConfig.java @@ -56,7 +56,7 @@ public final class GoogleCloudApigeeV1EnvironmentConfig extends com.google.api.c * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * List of data collectors used by the deployments in the environment. @@ -281,7 +281,7 @@ public GoogleCloudApigeeV1EnvironmentConfig setClientIpResolutionConfig(GoogleCl * Time that the environment configuration was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -289,7 +289,7 @@ public String getCreateTime() { * Time that the environment configuration was created. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1EnvironmentConfig setCreateTime(String createTime) { + public GoogleCloudApigeeV1EnvironmentConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1IngressConfig.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1IngressConfig.java index 2e89206497a..f991231c894 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1IngressConfig.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1IngressConfig.java @@ -54,7 +54,7 @@ public final class GoogleCloudApigeeV1IngressConfig extends com.google.api.clien * The value may be {@code null}. */ @com.google.api.client.util.Key - private String revisionCreateTime; + private java.lang.String revisionCreateTime; /** * Revision id that defines the ordering on IngressConfig resources. The higher the revision, the @@ -110,7 +110,7 @@ public GoogleCloudApigeeV1IngressConfig setName(java.lang.String name) { * Time at which the IngressConfig revision was created. * @return value or {@code null} for none */ - public String getRevisionCreateTime() { + public java.lang.String getRevisionCreateTime() { return revisionCreateTime; } @@ -118,7 +118,7 @@ public String getRevisionCreateTime() { * Time at which the IngressConfig revision was created. * @param revisionCreateTime revisionCreateTime or {@code null} for none */ - public GoogleCloudApigeeV1IngressConfig setRevisionCreateTime(String revisionCreateTime) { + public GoogleCloudApigeeV1IngressConfig setRevisionCreateTime(java.lang.String revisionCreateTime) { this.revisionCreateTime = revisionCreateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ReportInstanceStatusRequest.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ReportInstanceStatusRequest.java index f315a79c741..71a82ad7246 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ReportInstanceStatusRequest.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ReportInstanceStatusRequest.java @@ -44,7 +44,7 @@ public final class GoogleCloudApigeeV1ReportInstanceStatusRequest extends com.go * The value may be {@code null}. */ @com.google.api.client.util.Key - private String reportTime; + private java.lang.String reportTime; /** * Status for config resources @@ -78,7 +78,7 @@ public GoogleCloudApigeeV1ReportInstanceStatusRequest setInstanceUid(java.lang.S * does not play a factor. * @return value or {@code null} for none */ - public String getReportTime() { + public java.lang.String getReportTime() { return reportTime; } @@ -88,7 +88,7 @@ public String getReportTime() { * does not play a factor. * @param reportTime reportTime or {@code null} for none */ - public GoogleCloudApigeeV1ReportInstanceStatusRequest setReportTime(String reportTime) { + public GoogleCloudApigeeV1ReportInstanceStatusRequest setReportTime(java.lang.String reportTime) { this.reportTime = reportTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RoutingRule.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RoutingRule.java index 0d7e7a84736..e8cbbffffb8 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RoutingRule.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RoutingRule.java @@ -89,7 +89,7 @@ public final class GoogleCloudApigeeV1RoutingRule extends com.google.api.client. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * URI path prefix used to route to the specified environment. May contain one or more wildcards. @@ -221,7 +221,7 @@ public GoogleCloudApigeeV1RoutingRule setReceiver(java.lang.String receiver) { * is called with view=FULL. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -231,7 +231,7 @@ public String getUpdateTime() { * is called with view=FULL. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1RoutingRule setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1RoutingRule setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RuntimeTraceConfig.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RuntimeTraceConfig.java index 687215e7c86..bcaae25528f 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RuntimeTraceConfig.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1RuntimeTraceConfig.java @@ -17,8 +17,7 @@ package com.google.api.services.apigee.v1.model; /** - * NEXT ID: 10 RuntimeTraceConfig defines the configurations for distributed trace in an - * environment. + * NEXT ID: 9 RuntimeTraceConfig defines the configurations for distributed trace in an environment. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Apigee API. For a detailed explanation see: @@ -55,12 +54,11 @@ public final class GoogleCloudApigeeV1RuntimeTraceConfig extends com.google.api. private java.lang.String name; /** - * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. - * Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed - * `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is - * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` - * is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol - * instead. + * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration + * Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: + * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - + * `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` + * refers to a valid project ID * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,7 +76,7 @@ public final class GoogleCloudApigeeV1RuntimeTraceConfig extends com.google.api. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String revisionCreateTime; + private java.lang.String revisionCreateTime; /** * Revision number which can be used by the runtime to detect if the trace config has changed @@ -95,13 +93,6 @@ public final class GoogleCloudApigeeV1RuntimeTraceConfig extends com.google.api. @com.google.api.client.util.Key private GoogleCloudApigeeV1RuntimeTraceSamplingConfig samplingConfig; - /** - * Optional. The trace protocol to use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String traceProtocol; - /** * Endpoint of the exporter. * @return value or {@code null} for none @@ -160,12 +151,11 @@ public GoogleCloudApigeeV1RuntimeTraceConfig setName(java.lang.String name) { } /** - * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. - * Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed - * `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is - * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` - * is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol - * instead. + * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration + * Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: + * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - + * `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` + * refers to a valid project ID * @return value or {@code null} for none */ public java.lang.Boolean getOpenTelemetryProtocolEnabled() { @@ -173,12 +163,11 @@ public java.lang.Boolean getOpenTelemetryProtocolEnabled() { } /** - * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. - * Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed - * `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is - * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` - * is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol - * instead. + * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration + * Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: + * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - + * `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` + * refers to a valid project ID * @param openTelemetryProtocolEnabled openTelemetryProtocolEnabled or {@code null} for none */ public GoogleCloudApigeeV1RuntimeTraceConfig setOpenTelemetryProtocolEnabled(java.lang.Boolean openTelemetryProtocolEnabled) { @@ -207,7 +196,7 @@ public GoogleCloudApigeeV1RuntimeTraceConfig setOverrides(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 Apigee API. For a detailed explanation see: @@ -46,12 +46,11 @@ public final class GoogleCloudApigeeV1RuntimeTraceConfigOverride extends com.goo private java.lang.String name; /** - * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. - * Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed - * `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is - * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` - * is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol - * instead. + * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration + * Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: + * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - + * `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` + * refers to a valid project ID * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +61,7 @@ public final class GoogleCloudApigeeV1RuntimeTraceConfigOverride extends com.goo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String revisionCreateTime; + private java.lang.String revisionCreateTime; /** * Revision number which can be used by the runtime to detect if the trace config override has @@ -79,13 +78,6 @@ public final class GoogleCloudApigeeV1RuntimeTraceConfigOverride extends com.goo @com.google.api.client.util.Key private GoogleCloudApigeeV1RuntimeTraceSamplingConfig samplingConfig; - /** - * Optional. The trace protocol to use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String traceProtocol; - /** * Unique ID for the configuration override. The ID will only change if the override is deleted * and recreated. Corresponds to name's "override" field. @@ -133,12 +125,11 @@ public GoogleCloudApigeeV1RuntimeTraceConfigOverride setName(java.lang.String na } /** - * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. - * Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed - * `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is - * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` - * is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol - * instead. + * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration + * Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: + * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - + * `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` + * refers to a valid project ID * @return value or {@code null} for none */ public java.lang.Boolean getOpenTelemetryProtocolEnabled() { @@ -146,12 +137,11 @@ public java.lang.Boolean getOpenTelemetryProtocolEnabled() { } /** - * Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. - * Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed - * `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is - * `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` - * is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol - * instead. + * If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration + * Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: + * `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - + * `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` + * refers to a valid project ID * @param openTelemetryProtocolEnabled openTelemetryProtocolEnabled or {@code null} for none */ public GoogleCloudApigeeV1RuntimeTraceConfigOverride setOpenTelemetryProtocolEnabled(java.lang.Boolean openTelemetryProtocolEnabled) { @@ -163,7 +153,7 @@ public GoogleCloudApigeeV1RuntimeTraceConfigOverride setOpenTelemetryProtocolEna * The timestamp that the revision was created or updated. * @return value or {@code null} for none */ - public String getRevisionCreateTime() { + public java.lang.String getRevisionCreateTime() { return revisionCreateTime; } @@ -171,7 +161,7 @@ public String getRevisionCreateTime() { * The timestamp that the revision was created or updated. * @param revisionCreateTime revisionCreateTime or {@code null} for none */ - public GoogleCloudApigeeV1RuntimeTraceConfigOverride setRevisionCreateTime(String revisionCreateTime) { + public GoogleCloudApigeeV1RuntimeTraceConfigOverride setRevisionCreateTime(java.lang.String revisionCreateTime) { this.revisionCreateTime = revisionCreateTime; return this; } @@ -212,23 +202,6 @@ public GoogleCloudApigeeV1RuntimeTraceConfigOverride setSamplingConfig(GoogleClo return this; } - /** - * Optional. The trace protocol to use. - * @return value or {@code null} for none - */ - public java.lang.String getTraceProtocol() { - return traceProtocol; - } - - /** - * Optional. The trace protocol to use. - * @param traceProtocol traceProtocol or {@code null} for none - */ - public GoogleCloudApigeeV1RuntimeTraceConfigOverride setTraceProtocol(java.lang.String traceProtocol) { - this.traceProtocol = traceProtocol; - return this; - } - /** * Unique ID for the configuration override. The ID will only change if the override is deleted * and recreated. Corresponds to name's "override" field. diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScheduledMaintenance.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScheduledMaintenance.java index d09bbab4511..0b6303796b1 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScheduledMaintenance.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScheduledMaintenance.java @@ -34,13 +34,13 @@ public final class GoogleCloudApigeeV1ScheduledMaintenance extends com.google.ap * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The start time (UTC) of the scheduled maintenance. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -48,7 +48,7 @@ public String getStartTime() { * Output only. The start time (UTC) of the scheduled maintenance. * @param startTime startTime or {@code null} for none */ - public GoogleCloudApigeeV1ScheduledMaintenance setStartTime(String startTime) { + public GoogleCloudApigeeV1ScheduledMaintenance setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScoreComponent.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScoreComponent.java index d71fb934d74..2a2835ed96b 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScoreComponent.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1ScoreComponent.java @@ -34,14 +34,14 @@ public final class GoogleCloudApigeeV1ScoreComponent extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String calculateTime; + private java.lang.String calculateTime; /** * Time in the requested time period when data was last captured to compute the score. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String dataCaptureTime; + private java.lang.String dataCaptureTime; /** * List of paths for next components. @@ -75,7 +75,7 @@ public final class GoogleCloudApigeeV1ScoreComponent extends com.google.api.clie * Time when score was calculated. * @return value or {@code null} for none */ - public String getCalculateTime() { + public java.lang.String getCalculateTime() { return calculateTime; } @@ -83,7 +83,7 @@ public String getCalculateTime() { * Time when score was calculated. * @param calculateTime calculateTime or {@code null} for none */ - public GoogleCloudApigeeV1ScoreComponent setCalculateTime(String calculateTime) { + public GoogleCloudApigeeV1ScoreComponent setCalculateTime(java.lang.String calculateTime) { this.calculateTime = calculateTime; return this; } @@ -92,7 +92,7 @@ public GoogleCloudApigeeV1ScoreComponent setCalculateTime(String calculateTime) * Time in the requested time period when data was last captured to compute the score. * @return value or {@code null} for none */ - public String getDataCaptureTime() { + public java.lang.String getDataCaptureTime() { return dataCaptureTime; } @@ -100,7 +100,7 @@ public String getDataCaptureTime() { * Time in the requested time period when data was last captured to compute the score. * @param dataCaptureTime dataCaptureTime or {@code null} for none */ - public GoogleCloudApigeeV1ScoreComponent setDataCaptureTime(String dataCaptureTime) { + public GoogleCloudApigeeV1ScoreComponent setDataCaptureTime(java.lang.String dataCaptureTime) { this.dataCaptureTime = dataCaptureTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAction.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAction.java index 2b43e70dec3..7f44f3028ea 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAction.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAction.java @@ -61,7 +61,7 @@ public final class GoogleCloudApigeeV1SecurityAction extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Deny a request through if it matches this SecurityAction. @@ -82,7 +82,7 @@ public final class GoogleCloudApigeeV1SecurityAction extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Flag a request through if it matches this SecurityAction. @@ -114,7 +114,7 @@ public final class GoogleCloudApigeeV1SecurityAction extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * Output only. The update time for this SecurityAction. This reflects when this SecurityAction @@ -122,7 +122,7 @@ public final class GoogleCloudApigeeV1SecurityAction extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Allow a request through if it matches this SecurityAction. @@ -187,7 +187,7 @@ public GoogleCloudApigeeV1SecurityAction setConditionConfig(GoogleCloudApigeeV1S * Output only. The create time for this SecurityAction. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -195,7 +195,7 @@ public String getCreateTime() { * Output only. The create time for this SecurityAction. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityAction setCreateTime(String createTime) { + public GoogleCloudApigeeV1SecurityAction setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -238,7 +238,7 @@ public GoogleCloudApigeeV1SecurityAction setDescription(java.lang.String descrip * The expiration for this SecurityAction. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -246,7 +246,7 @@ public String getExpireTime() { * The expiration for this SecurityAction. * @param expireTime expireTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityAction setExpireTime(String expireTime) { + public GoogleCloudApigeeV1SecurityAction setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } @@ -314,7 +314,7 @@ public GoogleCloudApigeeV1SecurityAction setState(java.lang.String state) { * Input only. The TTL for this SecurityAction. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -322,7 +322,7 @@ public String getTtl() { * Input only. The TTL for this SecurityAction. * @param ttl ttl or {@code null} for none */ - public GoogleCloudApigeeV1SecurityAction setTtl(String ttl) { + public GoogleCloudApigeeV1SecurityAction setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } @@ -332,7 +332,7 @@ public GoogleCloudApigeeV1SecurityAction setTtl(String ttl) { * changed states. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -341,7 +341,7 @@ public String getUpdateTime() { * changed states. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityAction setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1SecurityAction setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityActionsConfig.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityActionsConfig.java index 7415361e9da..dbcb447d1dd 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityActionsConfig.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityActionsConfig.java @@ -52,7 +52,7 @@ public final class GoogleCloudApigeeV1SecurityActionsConfig extends com.google.a * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The flag that controls whether this feature is enabled. This is `unset` by default. When this @@ -98,7 +98,7 @@ public GoogleCloudApigeeV1SecurityActionsConfig setName(java.lang.String name) { * Output only. The update time for configuration. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -106,7 +106,7 @@ public String getUpdateTime() { * Output only. The update time for configuration. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityActionsConfig setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1SecurityActionsConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResult.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResult.java index 9dd438ac250..6e1e800774c 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResult.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResult.java @@ -35,7 +35,7 @@ public final class GoogleCloudApigeeV1SecurityAssessmentResult extends com.googl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The error status if scoring fails. @@ -63,7 +63,7 @@ public final class GoogleCloudApigeeV1SecurityAssessmentResult extends com.googl * caching within the backend. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -72,7 +72,7 @@ public String getCreateTime() { * caching within the backend. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityAssessmentResult setCreateTime(String createTime) { + public GoogleCloudApigeeV1SecurityAssessmentResult setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.java index 7fd08f35459..3d968af30d6 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.java @@ -43,7 +43,7 @@ public final class GoogleCloudApigeeV1SecurityAssessmentResultScoringResult exte * The value may be {@code null}. */ @com.google.api.client.util.Key - private String dataUpdateTime; + private java.lang.String dataUpdateTime; /** * The number of failed assessments grouped by its weight. Keys are one of the following: "MAJOR", @@ -90,7 +90,7 @@ public GoogleCloudApigeeV1SecurityAssessmentResultScoringResult setAssessmentRec * when the resource was actually updated due to lag in data collection. * @return value or {@code null} for none */ - public String getDataUpdateTime() { + public java.lang.String getDataUpdateTime() { return dataUpdateTime; } @@ -99,7 +99,7 @@ public String getDataUpdateTime() { * when the resource was actually updated due to lag in data collection. * @param dataUpdateTime dataUpdateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityAssessmentResultScoringResult setDataUpdateTime(String dataUpdateTime) { + public GoogleCloudApigeeV1SecurityAssessmentResultScoringResult setDataUpdateTime(java.lang.String dataUpdateTime) { this.dataUpdateTime = dataUpdateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityFeedback.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityFeedback.java index 67494db879e..7704e8f9a80 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityFeedback.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityFeedback.java @@ -41,7 +41,7 @@ public final class GoogleCloudApigeeV1SecurityFeedback extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. The display name of the feedback. @@ -83,7 +83,7 @@ public final class GoogleCloudApigeeV1SecurityFeedback extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Optional text the user can provide for additional, unstructured context. @@ -106,7 +106,7 @@ public GoogleCloudApigeeV1SecurityFeedback setComment(java.lang.String comment) * Output only. The time when this specific feedback id was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -114,7 +114,7 @@ public String getCreateTime() { * Output only. The time when this specific feedback id was created. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityFeedback setCreateTime(String createTime) { + public GoogleCloudApigeeV1SecurityFeedback setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -208,7 +208,7 @@ public GoogleCloudApigeeV1SecurityFeedback setReason(java.lang.String reason) { * Output only. The time when this specific feedback id was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -216,7 +216,7 @@ public String getUpdateTime() { * Output only. The time when this specific feedback id was updated. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityFeedback setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1SecurityFeedback setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityIncident.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityIncident.java index 7f2bbf9a5f4..09c8e027de4 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityIncident.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityIncident.java @@ -49,21 +49,21 @@ public final class GoogleCloudApigeeV1SecurityIncident extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String firstDetectedTime; + private java.lang.String firstDetectedTime; /** * Output only. The time when events associated with the incident were last detected. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastDetectedTime; + private java.lang.String lastDetectedTime; /** * Output only. The time when the incident observability was last changed. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastObservabilityChangeTime; + private java.lang.String lastObservabilityChangeTime; /** * Immutable. Name of the security incident resource. Format: @@ -135,7 +135,7 @@ public GoogleCloudApigeeV1SecurityIncident setDisplayName(java.lang.String displ * Output only. The time when events associated with the incident were first detected. * @return value or {@code null} for none */ - public String getFirstDetectedTime() { + public java.lang.String getFirstDetectedTime() { return firstDetectedTime; } @@ -143,7 +143,7 @@ public String getFirstDetectedTime() { * Output only. The time when events associated with the incident were first detected. * @param firstDetectedTime firstDetectedTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityIncident setFirstDetectedTime(String firstDetectedTime) { + public GoogleCloudApigeeV1SecurityIncident setFirstDetectedTime(java.lang.String firstDetectedTime) { this.firstDetectedTime = firstDetectedTime; return this; } @@ -152,7 +152,7 @@ public GoogleCloudApigeeV1SecurityIncident setFirstDetectedTime(String firstDete * Output only. The time when events associated with the incident were last detected. * @return value or {@code null} for none */ - public String getLastDetectedTime() { + public java.lang.String getLastDetectedTime() { return lastDetectedTime; } @@ -160,7 +160,7 @@ public String getLastDetectedTime() { * Output only. The time when events associated with the incident were last detected. * @param lastDetectedTime lastDetectedTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityIncident setLastDetectedTime(String lastDetectedTime) { + public GoogleCloudApigeeV1SecurityIncident setLastDetectedTime(java.lang.String lastDetectedTime) { this.lastDetectedTime = lastDetectedTime; return this; } @@ -169,7 +169,7 @@ public GoogleCloudApigeeV1SecurityIncident setLastDetectedTime(String lastDetect * Output only. The time when the incident observability was last changed. * @return value or {@code null} for none */ - public String getLastObservabilityChangeTime() { + public java.lang.String getLastObservabilityChangeTime() { return lastObservabilityChangeTime; } @@ -177,7 +177,7 @@ public String getLastObservabilityChangeTime() { * Output only. The time when the incident observability was last changed. * @param lastObservabilityChangeTime lastObservabilityChangeTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityIncident setLastObservabilityChangeTime(String lastObservabilityChangeTime) { + public GoogleCloudApigeeV1SecurityIncident setLastObservabilityChangeTime(java.lang.String lastObservabilityChangeTime) { this.lastObservabilityChangeTime = lastObservabilityChangeTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityMonitoringCondition.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityMonitoringCondition.java index cfc5682e153..fc58d2ca604 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityMonitoringCondition.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityMonitoringCondition.java @@ -43,7 +43,7 @@ public final class GoogleCloudApigeeV1SecurityMonitoringCondition extends com.go * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Include only these resources. @@ -110,7 +110,7 @@ public final class GoogleCloudApigeeV1SecurityMonitoringCondition extends com.go * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The API Hub gateway monitored by the security monitoring condition. This should only @@ -137,7 +137,7 @@ public GoogleCloudApigeeV1SecurityMonitoringCondition setApiHubGateway(java.lang * Output only. The time of the security monitoring condition creation. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -145,7 +145,7 @@ public String getCreateTime() { * Output only. The time of the security monitoring condition creation. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityMonitoringCondition setCreateTime(String createTime) { + public GoogleCloudApigeeV1SecurityMonitoringCondition setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -298,7 +298,7 @@ public GoogleCloudApigeeV1SecurityMonitoringCondition setTotalMonitoredResources * Output only. The time of the security monitoring condition update. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -306,7 +306,7 @@ public String getUpdateTime() { * Output only. The time of the security monitoring condition update. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityMonitoringCondition setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1SecurityMonitoringCondition setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfile.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfile.java index e651346ab87..05de4d74269 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfile.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfile.java @@ -84,7 +84,7 @@ public final class GoogleCloudApigeeV1SecurityProfile extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String revisionCreateTime; + private java.lang.String revisionCreateTime; /** * Output only. Revision ID of the security profile. @@ -99,14 +99,14 @@ public final class GoogleCloudApigeeV1SecurityProfile extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String revisionPublishTime; + private java.lang.String revisionPublishTime; /** * Output only. The time when revision was updated. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String revisionUpdateTime; + private java.lang.String revisionUpdateTime; /** * List of profile scoring configs in this revision. @@ -240,7 +240,7 @@ public GoogleCloudApigeeV1SecurityProfile setProfileConfig(GoogleCloudApigeeV1Pr * Output only. The time when revision was created. * @return value or {@code null} for none */ - public String getRevisionCreateTime() { + public java.lang.String getRevisionCreateTime() { return revisionCreateTime; } @@ -248,7 +248,7 @@ public String getRevisionCreateTime() { * Output only. The time when revision was created. * @param revisionCreateTime revisionCreateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfile setRevisionCreateTime(String revisionCreateTime) { + public GoogleCloudApigeeV1SecurityProfile setRevisionCreateTime(java.lang.String revisionCreateTime) { this.revisionCreateTime = revisionCreateTime; return this; } @@ -275,7 +275,7 @@ public GoogleCloudApigeeV1SecurityProfile setRevisionId(java.lang.Long revisionI * security profile revision cannot be updated further and can be attached to environments. * @return value or {@code null} for none */ - public String getRevisionPublishTime() { + public java.lang.String getRevisionPublishTime() { return revisionPublishTime; } @@ -284,7 +284,7 @@ public String getRevisionPublishTime() { * security profile revision cannot be updated further and can be attached to environments. * @param revisionPublishTime revisionPublishTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfile setRevisionPublishTime(String revisionPublishTime) { + public GoogleCloudApigeeV1SecurityProfile setRevisionPublishTime(java.lang.String revisionPublishTime) { this.revisionPublishTime = revisionPublishTime; return this; } @@ -293,7 +293,7 @@ public GoogleCloudApigeeV1SecurityProfile setRevisionPublishTime(String revision * Output only. The time when revision was updated. * @return value or {@code null} for none */ - public String getRevisionUpdateTime() { + public java.lang.String getRevisionUpdateTime() { return revisionUpdateTime; } @@ -301,7 +301,7 @@ public String getRevisionUpdateTime() { * Output only. The time when revision was updated. * @param revisionUpdateTime revisionUpdateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfile setRevisionUpdateTime(String revisionUpdateTime) { + public GoogleCloudApigeeV1SecurityProfile setRevisionUpdateTime(java.lang.String revisionUpdateTime) { this.revisionUpdateTime = revisionUpdateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironment.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironment.java index 79dbbeaff33..78a3169a229 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironment.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironment.java @@ -35,7 +35,7 @@ public final class GoogleCloudApigeeV1SecurityProfileEnvironment extends com.goo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String attachTime; + private java.lang.String attachTime; /** * Output only. Name of the environment. @@ -48,7 +48,7 @@ public final class GoogleCloudApigeeV1SecurityProfileEnvironment extends com.goo * Output only. Time at which environment was attached to the security profile. * @return value or {@code null} for none */ - public String getAttachTime() { + public java.lang.String getAttachTime() { return attachTime; } @@ -56,7 +56,7 @@ public String getAttachTime() { * Output only. Time at which environment was attached to the security profile. * @param attachTime attachTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfileEnvironment setAttachTime(String attachTime) { + public GoogleCloudApigeeV1SecurityProfileEnvironment setAttachTime(java.lang.String attachTime) { this.attachTime = attachTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation.java index 55fd71b95a7..9c52e9bb3ec 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation.java @@ -34,7 +34,7 @@ public final class GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation exte * The value may be {@code null}. */ @com.google.api.client.util.Key - private String attachTime; + private java.lang.String attachTime; /** * Immutable. Name of the environment that the profile is attached to. @@ -54,7 +54,7 @@ public final class GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation exte * Output only. The time when environment was attached to the security profile. * @return value or {@code null} for none */ - public String getAttachTime() { + public java.lang.String getAttachTime() { return attachTime; } @@ -62,7 +62,7 @@ public String getAttachTime() { * Output only. The time when environment was attached to the security profile. * @param attachTime attachTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation setAttachTime(String attachTime) { + public GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation setAttachTime(java.lang.String attachTime) { this.attachTime = attachTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileV2.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileV2.java index 16a63ae76ab..99ba0d9bc9a 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileV2.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityProfileV2.java @@ -34,7 +34,7 @@ public final class GoogleCloudApigeeV1SecurityProfileV2 extends com.google.api.c * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. The description of the security profile. @@ -78,13 +78,13 @@ public final class GoogleCloudApigeeV1SecurityProfileV2 extends com.google.api.c * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time of the security profile creation. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -92,7 +92,7 @@ public String getCreateTime() { * Output only. The time of the security profile creation. * @param createTime createTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfileV2 setCreateTime(String createTime) { + public GoogleCloudApigeeV1SecurityProfileV2 setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -190,7 +190,7 @@ public GoogleCloudApigeeV1SecurityProfileV2 setRiskAssessmentType(java.lang.Stri * Output only. The time of the security profile update. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -198,7 +198,7 @@ public String getUpdateTime() { * Output only. The time of the security profile update. * @param updateTime updateTime or {@code null} for none */ - public GoogleCloudApigeeV1SecurityProfileV2 setUpdateTime(String updateTime) { + public GoogleCloudApigeeV1SecurityProfileV2 setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityReportMetadata.java b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityReportMetadata.java index d7421d00ae2..083efe85f88 100644 --- a/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityReportMetadata.java +++ b/clients/google-api-services-apigee/v1/2.0.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1SecurityReportMetadata.java @@ -41,7 +41,7 @@ public final class GoogleCloudApigeeV1SecurityReportMetadata extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimestamp; + private java.lang.String endTimestamp; /** * Metrics of the SecurityReport. Example: ["name:bot_count,func:sum,alias:sum_bot_count"] @@ -62,7 +62,7 @@ public final class GoogleCloudApigeeV1SecurityReportMetadata extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimestamp; + private java.lang.String startTimestamp; /** * Query GroupBy time unit. Example: "seconds", "minute", "hour" @@ -92,7 +92,7 @@ public GoogleCloudApigeeV1SecurityReportMetadata setDimensions(java.util.Listcom.google.apis google-api-services-apigee - v1-rev20260327-2.0.0 - Apigee API v1-rev20260327-2.0.0 + v1-rev20260218-2.0.0 + Apigee API v1-rev20260218-2.0.0 jar 2011 diff --git a/clients/google-api-services-ces/v1/2.0.0/README.md b/clients/google-api-services-ces/v1/2.0.0/README.md index 34dc4117cd5..4239db35de4 100644 --- a/clients/google-api-services-ces/v1/2.0.0/README.md +++ b/clients/google-api-services-ces/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-ces - v1-rev20260325-2.0.0 + v1-rev20260312-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-ces:v1-rev20260325-2.0.0' + implementation 'com.google.apis:google-api-services-ces:v1-rev20260312-2.0.0' } ``` diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java index 5b486f745da..3308395d0b8 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends CustomerEngagementSuiteRequest { - - private static final String REST_PATH = "v1/{+session}:streamRunSession"; - - private final java.util.regex.Pattern SESSION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); - - /** - * Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver - * incremental results and partial responses as they are generated. By default, complete responses - * (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they - * are available. To enable streaming individual text chunks directly from the model, set - * enable_text_streaming to true. - * - * Create a request for the method "sessions.streamRunSession". - * - * This request holds the parameters needed by the the ces server. After setting any optional - * parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation. - *

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

- * - * @param session Required. The unique identifier of the session. Format: - * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` - * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} - * @since 1.13 - */ - protected StreamRunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) { - super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RunSessionResponse.class); - this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), - "Parameter session must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); - } - } - - @Override - public StreamRunSession set$Xgafv(java.lang.String $Xgafv) { - return (StreamRunSession) super.set$Xgafv($Xgafv); - } - - @Override - public StreamRunSession setAccessToken(java.lang.String accessToken) { - return (StreamRunSession) super.setAccessToken(accessToken); - } - - @Override - public StreamRunSession setAlt(java.lang.String alt) { - return (StreamRunSession) super.setAlt(alt); - } - - @Override - public StreamRunSession setCallback(java.lang.String callback) { - return (StreamRunSession) super.setCallback(callback); - } - - @Override - public StreamRunSession setFields(java.lang.String fields) { - return (StreamRunSession) super.setFields(fields); - } - - @Override - public StreamRunSession setKey(java.lang.String key) { - return (StreamRunSession) super.setKey(key); - } - - @Override - public StreamRunSession setOauthToken(java.lang.String oauthToken) { - return (StreamRunSession) super.setOauthToken(oauthToken); - } - - @Override - public StreamRunSession setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamRunSession) super.setPrettyPrint(prettyPrint); - } - - @Override - public StreamRunSession setQuotaUser(java.lang.String quotaUser) { - return (StreamRunSession) super.setQuotaUser(quotaUser); - } - - @Override - public StreamRunSession setUploadType(java.lang.String uploadType) { - return (StreamRunSession) super.setUploadType(uploadType); - } - - @Override - public StreamRunSession setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamRunSession) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The unique identifier of the session. Format: - * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` - */ - @com.google.api.client.util.Key - private java.lang.String session; - - /** Required. The unique identifier of the session. Format: - `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` - */ - public java.lang.String getSession() { - return session; - } - - /** - * Required. The unique identifier of the session. Format: - * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` - */ - public StreamRunSession setSession(java.lang.String session) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), - "Parameter session must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); - } - this.session = session; - return this; - } - - @Override - public StreamRunSession set(String parameterName, Object value) { - return (StreamRunSession) super.set(parameterName, value); - } - } } /** @@ -7932,12 +7775,12 @@ public Patch setName(java.lang.String name) { * present, all fields will be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -7945,7 +7788,7 @@ public String getUpdateMask() { * Optional. Field mask is used to control which fields get updated. If the mask is not * present, all fields will be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -8823,12 +8666,12 @@ public Patch setName(java.lang.String name) { * present, all fields will be updated. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -8836,7 +8679,7 @@ public String getUpdateMask() { * Optional. Field mask is used to control which fields get updated. If the mask is not * present, all fields will be updated. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java index bc3b1a19ad4..c68f9c92995 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java @@ -102,7 +102,7 @@ public final class Agent extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Human-readable description of the agent. @@ -210,7 +210,7 @@ public final class Agent extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The callbacks to execute after the agent is called. The provided callbacks are @@ -369,7 +369,7 @@ public Agent setChildAgents(java.util.List childAgents) { * Output only. Timestamp when the agent was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -377,7 +377,7 @@ public String getCreateTime() { * Output only. Timestamp when the agent was created. * @param createTime createTime or {@code null} for none */ - public Agent setCreateTime(String createTime) { + public Agent setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -627,7 +627,7 @@ public Agent setTransferRules(java.util.List transferRules) { * Output only. Timestamp when the agent was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -635,7 +635,7 @@ public String getUpdateTime() { * Output only. Timestamp when the agent was last updated. * @param updateTime updateTime or {@code null} for none */ - public Agent setUpdateTime(String updateTime) { + public Agent setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java index ade3acc6108..549cef0adbe 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java @@ -51,7 +51,7 @@ public final class App extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. The data store settings for the app. @@ -213,7 +213,7 @@ public final class App extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The declarations of the variables. @@ -260,7 +260,7 @@ public App setClientCertificateSettings(ClientCertificateSettings clientCertific * Output only. Timestamp when the app was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -268,7 +268,7 @@ public String getCreateTime() { * Output only. Timestamp when the app was created. * @param createTime createTime or {@code null} for none */ - public App setCreateTime(String createTime) { + public App setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -650,7 +650,7 @@ public App setToolExecutionMode(java.lang.String toolExecutionMode) { * Output only. Timestamp when the app was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -658,7 +658,7 @@ public String getUpdateTime() { * Output only. Timestamp when the app was last updated. * @param updateTime updateTime or {@code null} for none */ - public App setUpdateTime(String updateTime) { + public App setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java index 8f5932e46af..720fadab3c4 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java @@ -36,7 +36,7 @@ public final class AppVersion extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Email of the user who created the app version. @@ -86,7 +86,7 @@ public final class AppVersion extends com.google.api.client.json.GenericJson { * Output only. Timestamp when the app version was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -94,7 +94,7 @@ public String getCreateTime() { * Output only. Timestamp when the app version was created. * @param createTime createTime or {@code null} for none */ - public AppVersion setCreateTime(String createTime) { + public AppVersion setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java index 1a3efbd23b2..91330080e8c 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java @@ -51,7 +51,7 @@ public final class AudioProcessingConfig extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String inactivityTimeout; + private java.lang.String inactivityTimeout; /** * Optional. Configuration of how the agent response should be synthesized, mapping from the @@ -105,7 +105,7 @@ public AudioProcessingConfig setBargeInConfig(BargeInConfig bargeInConfig) { * the user for reengagement. If not set, the agent will not prompt the user for reengagement. * @return value or {@code null} for none */ - public String getInactivityTimeout() { + public java.lang.String getInactivityTimeout() { return inactivityTimeout; } @@ -114,7 +114,7 @@ public String getInactivityTimeout() { * the user for reengagement. If not set, the agent will not prompt the user for reengagement. * @param inactivityTimeout inactivityTimeout or {@code null} for none */ - public AudioProcessingConfig setInactivityTimeout(String inactivityTimeout) { + public AudioProcessingConfig setInactivityTimeout(java.lang.String inactivityTimeout) { this.inactivityTimeout = inactivityTimeout; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java index 1df54de600a..b654219b939 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java @@ -31,7 +31,7 @@ public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson { /** - * Optional. The BigQuery **dataset ID** to export the data to. + * Optional. The BigQuery dataset to export the data to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,17 +45,16 @@ public final class BigQueryExportSettings extends com.google.api.client.json.Gen private java.lang.Boolean enabled; /** - * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the - * BigQuery dataset is in a different project from the app, you should grant - * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- - * ces.iam.gserviceaccount.com`. + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String project; /** - * Optional. The BigQuery **dataset ID** to export the data to. + * Optional. The BigQuery dataset to export the data to. * @return value or {@code null} for none */ public java.lang.String getDataset() { @@ -63,7 +62,7 @@ public java.lang.String getDataset() { } /** - * Optional. The BigQuery **dataset ID** to export the data to. + * Optional. The BigQuery dataset to export the data to. * @param dataset dataset or {@code null} for none */ public BigQueryExportSettings setDataset(java.lang.String dataset) { @@ -89,10 +88,9 @@ public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) { } /** - * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the - * BigQuery dataset is in a different project from the app, you should grant - * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- - * ces.iam.gserviceaccount.com`. + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. * @return value or {@code null} for none */ public java.lang.String getProject() { @@ -100,10 +98,9 @@ public java.lang.String getProject() { } /** - * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the - * BigQuery dataset is in a different project from the app, you should grant - * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- - * ces.iam.gserviceaccount.com`. + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. * @param project project or {@code null} for none */ public BigQueryExportSettings setProject(java.lang.String project) { diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java index 366d2aab7d2..2a4e11c98eb 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java @@ -49,7 +49,7 @@ public final class Changelog extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The dependent resources that were changed. @@ -155,7 +155,7 @@ public Changelog setAuthor(java.lang.String author) { * Output only. The time when the change was made. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -163,7 +163,7 @@ public String getCreateTime() { * Output only. The time when the change was made. * @param createTime createTime or {@code null} for none */ - public Changelog setCreateTime(String createTime) { + public Changelog setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java index e056505f866..b6e604c58e1 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java @@ -58,7 +58,7 @@ public final class Conversation extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. The agent that initially handles the conversation. If not specified, the @@ -110,7 +110,7 @@ public final class Conversation extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The number of turns in the conversation. @@ -185,7 +185,7 @@ public Conversation setDeployment(java.lang.String deployment) { * Output only. Timestamp when the conversation was completed. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -193,7 +193,7 @@ public String getEndTime() { * Output only. Timestamp when the conversation was completed. * @param endTime endTime or {@code null} for none */ - public Conversation setEndTime(String endTime) { + public Conversation setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -310,7 +310,7 @@ public Conversation setSource(java.lang.String source) { * Output only. Timestamp when the conversation was created. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -318,7 +318,7 @@ public String getStartTime() { * Output only. Timestamp when the conversation was created. * @param startTime startTime or {@code null} for none */ - public Conversation setStartTime(String startTime) { + public Conversation setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java index ab85f5c3f26..abf4f6e127f 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java @@ -42,7 +42,7 @@ public final class DataStore extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The display name of the data store. @@ -95,7 +95,7 @@ public DataStore setConnectorConfig(DataStoreConnectorConfig connectorConfig) { * Output only. Timestamp when the data store was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -103,7 +103,7 @@ public String getCreateTime() { * Output only. Timestamp when the data store was created. * @param createTime createTime or {@code null} for none */ - public DataStore setCreateTime(String createTime) { + public DataStore setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java index 7b917fd243c..e39ff2f39e9 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java @@ -52,7 +52,7 @@ public final class Deployment extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Display name of the deployment. @@ -82,7 +82,7 @@ public final class Deployment extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The resource name of the app version to deploy. Format: @@ -126,7 +126,7 @@ public Deployment setChannelProfile(ChannelProfile channelProfile) { * Output only. Timestamp when this deployment was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -134,7 +134,7 @@ public String getCreateTime() { * Output only. Timestamp when this deployment was created. * @param createTime createTime or {@code null} for none */ - public Deployment setCreateTime(String createTime) { + public Deployment setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -198,7 +198,7 @@ public Deployment setName(java.lang.String name) { * Output only. Timestamp when this deployment was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -206,7 +206,7 @@ public String getUpdateTime() { * Output only. Timestamp when this deployment was last updated. * @param updateTime updateTime or {@code null} for none */ - public Deployment setUpdateTime(String updateTime) { + public Deployment setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java index ab4696325fe..eb9aac1d294 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java @@ -35,7 +35,7 @@ public final class Example extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Human-readable description of the example. @@ -96,13 +96,13 @@ public final class Example extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Timestamp when the example was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -110,7 +110,7 @@ public String getCreateTime() { * Output only. Timestamp when the example was created. * @param createTime createTime or {@code null} for none */ - public Example setCreateTime(String createTime) { + public Example setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -248,7 +248,7 @@ public Example setName(java.lang.String name) { * Output only. Timestamp when the example was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -256,7 +256,7 @@ public String getUpdateTime() { * Output only. Timestamp when the example was last updated. * @param updateTime updateTime or {@code null} for none */ - public Example setUpdateTime(String updateTime) { + public Example setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java index 042986e75ae..0c63f9c9893 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java @@ -42,7 +42,7 @@ public final class GenerateChatTokenResponse extends com.google.api.client.json. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * The session scoped token for chat widget to authenticate with Session APIs. @@ -65,7 +65,7 @@ public GenerateChatTokenResponse setChatToken(java.lang.String chatToken) { * The time at which the chat token expires. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -73,7 +73,7 @@ public String getExpireTime() { * The time at which the chat token expires. * @param expireTime expireTime or {@code null} for none */ - public GenerateChatTokenResponse setExpireTime(String expireTime) { + public GenerateChatTokenResponse setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java index 4a15989a2fb..96148df37ba 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java @@ -57,7 +57,7 @@ public final class Guardrail extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Description of the guardrail. @@ -125,7 +125,7 @@ public final class Guardrail extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Action to take when the guardrail is triggered. @@ -184,7 +184,7 @@ public Guardrail setContentFilter(GuardrailContentFilter contentFilter) { * Output only. Timestamp when the guardrail was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -192,7 +192,7 @@ public String getCreateTime() { * Output only. Timestamp when the guardrail was created. * @param createTime createTime or {@code null} for none */ - public Guardrail setCreateTime(String createTime) { + public Guardrail setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -347,7 +347,7 @@ public Guardrail setName(java.lang.String name) { * Output only. Timestamp when the guardrail was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -355,7 +355,7 @@ public String getUpdateTime() { * Output only. Timestamp when the guardrail was last updated. * @param updateTime updateTime or {@code null} for none */ - public Guardrail setUpdateTime(String updateTime) { + public Guardrail setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java index 306750402bf..18adc879589 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java @@ -46,12 +46,11 @@ public final class LanguageSettings extends com.google.api.client.json.GenericJs private java.lang.Boolean enableMultilingualSupport; /** - * Optional. Deprecated: This feature is no longer supported. Use `enable_multilingual_support` - * instead to improve handling of multilingual input. The action to perform when an agent receives - * input in an unsupported language. This can be a predefined action or a custom tool call. Valid - * values are: - A tool's full resource name, which triggers a specific tool execution. - A - * predefined system action, such as "escalate" or "exit", which triggers an EndSession signal - * with corresponding metadata to terminate the conversation. + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,12 +101,11 @@ public LanguageSettings setEnableMultilingualSupport(java.lang.Boolean enableMul } /** - * Optional. Deprecated: This feature is no longer supported. Use `enable_multilingual_support` - * instead to improve handling of multilingual input. The action to perform when an agent receives - * input in an unsupported language. This can be a predefined action or a custom tool call. Valid - * values are: - A tool's full resource name, which triggers a specific tool execution. - A - * predefined system action, such as "escalate" or "exit", which triggers an EndSession signal - * with corresponding metadata to terminate the conversation. + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. * @return value or {@code null} for none */ public java.lang.String getFallbackAction() { @@ -115,12 +113,11 @@ public java.lang.String getFallbackAction() { } /** - * Optional. Deprecated: This feature is no longer supported. Use `enable_multilingual_support` - * instead to improve handling of multilingual input. The action to perform when an agent receives - * input in an unsupported language. This can be a predefined action or a custom tool call. Valid - * values are: - A tool's full resource name, which triggers a specific tool execution. - A - * predefined system action, such as "escalate" or "exit", which triggers an EndSession signal - * with corresponding metadata to terminate the conversation. + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. * @param fallbackAction fallbackAction or {@code null} for none */ public LanguageSettings setFallbackAction(java.lang.String fallbackAction) { diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java index e2f48dba183..c118c599936 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java @@ -49,7 +49,7 @@ public final class Message extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String eventTime; + private java.lang.String eventTime; /** * Optional. The role within the conversation, e.g., user, agent. @@ -80,7 +80,7 @@ public Message setChunks(java.util.List chunks) { * part of an example. * @return value or {@code null} for none */ - public String getEventTime() { + public java.lang.String getEventTime() { return eventTime; } @@ -89,7 +89,7 @@ public String getEventTime() { * part of an example. * @param eventTime eventTime or {@code null} for none */ - public Message setEventTime(String eventTime) { + public Message setEventTime(java.lang.String eventTime) { this.eventTime = eventTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java index b3bd2c93343..d16696db4f9 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java @@ -35,7 +35,7 @@ public final class Omnichannel extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Human-readable description of the omnichannel resource. @@ -79,13 +79,13 @@ public final class Omnichannel extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Timestamp when the omnichannel resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -93,7 +93,7 @@ public String getCreateTime() { * Output only. Timestamp when the omnichannel resource was created. * @param createTime createTime or {@code null} for none */ - public Omnichannel setCreateTime(String createTime) { + public Omnichannel setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -191,7 +191,7 @@ public Omnichannel setName(java.lang.String name) { * Output only. Timestamp when the omnichannel resource was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -199,7 +199,7 @@ public String getUpdateTime() { * Output only. Timestamp when the omnichannel resource was last updated. * @param updateTime updateTime or {@code null} for none */ - public Omnichannel setUpdateTime(String updateTime) { + public Omnichannel setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java index 676541bdc31..d3d1856bde3 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java @@ -35,14 +35,14 @@ public final class OmnichannelOperationMetadata extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -62,7 +62,7 @@ public final class OmnichannelOperationMetadata extends com.google.api.client.js * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -70,7 +70,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OmnichannelOperationMetadata setCreateTime(String createTime) { + public OmnichannelOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -79,7 +79,7 @@ public OmnichannelOperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -87,7 +87,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OmnichannelOperationMetadata setEndTime(String endTime) { + public OmnichannelOperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java index 25bd3a1b52a..140198ed83e 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java @@ -35,14 +35,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -64,7 +64,7 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -72,7 +72,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -81,7 +81,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -89,7 +89,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SecuritySettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SecuritySettings.java index 9bbec8230d6..20698088631 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SecuritySettings.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SecuritySettings.java @@ -35,7 +35,7 @@ public final class SecuritySettings extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Endpoint control related settings. @@ -64,13 +64,13 @@ public final class SecuritySettings extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Create time of the security settings. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -78,7 +78,7 @@ public String getCreateTime() { * Output only. Create time of the security settings. * @param createTime createTime or {@code null} for none */ - public SecuritySettings setCreateTime(String createTime) { + public SecuritySettings setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -140,7 +140,7 @@ public SecuritySettings setName(java.lang.String name) { * Output only. Last update time of the security settings. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -148,7 +148,7 @@ public String getUpdateTime() { * Output only. Last update time of the security settings. * @param updateTime updateTime or {@code null} for none */ - public SecuritySettings setUpdateTime(String updateTime) { + public SecuritySettings setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java index 2e06e04a485..7d2a880405f 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java @@ -38,15 +38,6 @@ public final class SessionConfig extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String deployment; - /** - * Optional. Whether to enable streaming text outputs from the model. By default, text outputs - * from the model are collected before sending to the client. NOTE: This is only supported for - * text (non-voice) sessions via StreamRunSession or BidiRunSession. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableTextStreaming; - /** * Optional. The entry agent to handle the session. If not specified, the session will be handled * by the root agent of the app. Format: @@ -133,27 +124,6 @@ public SessionConfig setDeployment(java.lang.String deployment) { return this; } - /** - * Optional. Whether to enable streaming text outputs from the model. By default, text outputs - * from the model are collected before sending to the client. NOTE: This is only supported for - * text (non-voice) sessions via StreamRunSession or BidiRunSession. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableTextStreaming() { - return enableTextStreaming; - } - - /** - * Optional. Whether to enable streaming text outputs from the model. By default, text outputs - * from the model are collected before sending to the client. NOTE: This is only supported for - * text (non-voice) sessions via StreamRunSession or BidiRunSession. - * @param enableTextStreaming enableTextStreaming or {@code null} for none - */ - public SessionConfig setEnableTextStreaming(java.lang.Boolean enableTextStreaming) { - this.enableTextStreaming = enableTextStreaming; - return this; - } - /** * Optional. The entry agent to handle the session. If not specified, the session will be handled * by the root agent of the app. Format: diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.java index 11741c747ac..9b95fdee8ed 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.java @@ -49,14 +49,14 @@ public final class Span extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String duration; + private java.lang.String duration; /** * Output only. The end time of the span. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. The name of the span. @@ -70,7 +70,7 @@ public final class Span extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. Key-value attributes associated with the span. @@ -110,7 +110,7 @@ public Span setChildSpans(java.util.List childSpans) { * Output only. The duration of the span. * @return value or {@code null} for none */ - public String getDuration() { + public java.lang.String getDuration() { return duration; } @@ -118,7 +118,7 @@ public String getDuration() { * Output only. The duration of the span. * @param duration duration or {@code null} for none */ - public Span setDuration(String duration) { + public Span setDuration(java.lang.String duration) { this.duration = duration; return this; } @@ -127,7 +127,7 @@ public Span setDuration(String duration) { * Output only. The end time of the span. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -135,7 +135,7 @@ public String getEndTime() { * Output only. The end time of the span. * @param endTime endTime or {@code null} for none */ - public Span setEndTime(String endTime) { + public Span setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -161,7 +161,7 @@ public Span setName(java.lang.String name) { * Output only. The start time of the span. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -169,7 +169,7 @@ public String getStartTime() { * Output only. The start time of the span. * @param startTime startTime or {@code null} for none */ - public Span setStartTime(String startTime) { + public Span setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java index b1f3a1e7775..e688c25735d 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java @@ -56,7 +56,7 @@ public final class Tool extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. The data store tool. @@ -162,7 +162,7 @@ public final class Tool extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The widget tool. @@ -226,7 +226,7 @@ public Tool setConnectorTool(ConnectorTool connectorTool) { * Output only. Timestamp when the tool was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -234,7 +234,7 @@ public String getCreateTime() { * Output only. Timestamp when the tool was created. * @param createTime createTime or {@code null} for none */ - public Tool setCreateTime(String createTime) { + public Tool setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -480,7 +480,7 @@ public Tool setToolFakeConfig(ToolFakeConfig toolFakeConfig) { * Output only. Timestamp when the tool was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -488,7 +488,7 @@ public String getUpdateTime() { * Output only. Timestamp when the tool was last updated. * @param updateTime updateTime or {@code null} for none */ - public Tool setUpdateTime(String updateTime) { + public Tool setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java index 5c6531b44a9..59a85ccf672 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java @@ -42,7 +42,7 @@ public final class Toolset extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. The description of the toolset. @@ -107,7 +107,7 @@ public final class Toolset extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. A toolset that generates tools from an Integration Connectors Connection. @@ -130,7 +130,7 @@ public Toolset setConnectorToolset(ConnectorToolset connectorToolset) { * Output only. Timestamp when the toolset was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -138,7 +138,7 @@ public String getCreateTime() { * Output only. Timestamp when the toolset was created. * @param createTime createTime or {@code null} for none */ - public Toolset setCreateTime(String createTime) { + public Toolset setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -287,7 +287,7 @@ public Toolset setToolFakeConfig(ToolFakeConfig toolFakeConfig) { * Output only. Timestamp when the toolset was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -295,7 +295,7 @@ public String getUpdateTime() { * Output only. Timestamp when the toolset was last updated. * @param updateTime updateTime or {@code null} for none */ - public Toolset setUpdateTime(String updateTime) { + public Toolset setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java index eea3556b293..6eeefe79cd5 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java @@ -46,15 +46,8 @@ public final class WidgetToolDataMapping extends com.google.api.client.json.Gene private java.lang.String mode; /** - * Optional. Configuration for a Python function used to transform the source tool's output into - * the widget's input format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PythonFunction pythonFunction; - - /** - * Deprecated: Use `python_function` instead. + * Optional. A Python script used to transform the source tool's output into the widget's input + * format. This is used when the mapping is too complex for simple field mappings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -106,26 +99,8 @@ public WidgetToolDataMapping setMode(java.lang.String mode) { } /** - * Optional. Configuration for a Python function used to transform the source tool's output into - * the widget's input format. - * @return value or {@code null} for none - */ - public PythonFunction getPythonFunction() { - return pythonFunction; - } - - /** - * Optional. Configuration for a Python function used to transform the source tool's output into - * the widget's input format. - * @param pythonFunction pythonFunction or {@code null} for none - */ - public WidgetToolDataMapping setPythonFunction(PythonFunction pythonFunction) { - this.pythonFunction = pythonFunction; - return this; - } - - /** - * Deprecated: Use `python_function` instead. + * Optional. A Python script used to transform the source tool's output into the widget's input + * format. This is used when the mapping is too complex for simple field mappings. * @return value or {@code null} for none */ public java.lang.String getPythonScript() { @@ -133,7 +108,8 @@ public java.lang.String getPythonScript() { } /** - * Deprecated: Use `python_function` instead. + * Optional. A Python script used to transform the source tool's output into the widget's input + * format. This is used when the mapping is too complex for simple field mappings. * @param pythonScript pythonScript or {@code null} for none */ public WidgetToolDataMapping setPythonScript(java.lang.String pythonScript) { diff --git a/clients/google-api-services-ces/v1/2.0.0/pom.xml b/clients/google-api-services-ces/v1/2.0.0/pom.xml index 93aacf9cec6..e5b75f2bf27 100644 --- a/clients/google-api-services-ces/v1/2.0.0/pom.xml +++ b/clients/google-api-services-ces/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-ces - v1-rev20260325-2.0.0 - Gemini Enterprise for Customer Experience API v1-rev20260325-2.0.0 + v1-rev20260312-2.0.0 + Gemini Enterprise for Customer Experience API v1-rev20260312-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/README.md b/clients/google-api-services-cloudbuild/v1/2.0.0/README.md index 53b6ba5ee7c..553d977ee48 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/README.md +++ b/clients/google-api-services-cloudbuild/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-cloudbuild - v1-rev20260323-2.0.0 + v1-rev20260309-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudbuild:v1-rev20260323-2.0.0' + implementation 'com.google.apis:google-api-services-cloudbuild:v1-rev20260309-2.0.0' } ``` diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java index b7f249f8071..0115d10d4b3 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java @@ -2620,12 +2620,12 @@ public Patch setName(java.lang.String name) { * be performed. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -2634,7 +2634,7 @@ public String getUpdateMask() { * specified in the field mask. Otherwise, a full update of the mutable resource fields will * be performed. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -3589,12 +3589,12 @@ public Patch setName(java.lang.String name) { * will be performed. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -3603,7 +3603,7 @@ public String getUpdateMask() { * specified in the field mask. Otherwise, a full update of the mutable resource fields * will be performed. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -5927,12 +5927,12 @@ public Patch setName(java.lang.String name) { * will be performed. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -5941,7 +5941,7 @@ public String getUpdateMask() { * specified in the field mask. Otherwise, a full update of the mutable resource fields * will be performed. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -7320,12 +7320,12 @@ public Patch setName(java.lang.String name) { * will be performed. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -7334,7 +7334,7 @@ public String getUpdateMask() { * specified in the field mask. Otherwise, a full update of the mutable resource fields * will be performed. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -8543,12 +8543,12 @@ public Patch setTriggerId(java.lang.String triggerId) { * will be performed. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -8557,7 +8557,7 @@ public String getUpdateMask() { * specified in the field mask. Otherwise, a full update of the mutable resource fields * will be performed. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -9801,16 +9801,16 @@ public Patch setName(java.lang.String name) { /** Optional. A mask specifying which fields in `worker_pool` to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. A mask specifying which fields in `worker_pool` to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Optional. A mask specifying which fields in `worker_pool` to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -10646,12 +10646,12 @@ public Patch setTriggerId(java.lang.String triggerId) { * be performed. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -10660,7 +10660,7 @@ public String getUpdateMask() { * specified in the field mask. Otherwise, a full update of the mutable resource fields will * be performed. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ApprovalResult.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ApprovalResult.java index 8bf725afb33..848a13af416 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ApprovalResult.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ApprovalResult.java @@ -34,7 +34,7 @@ public final class ApprovalResult extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String approvalTime; + private java.lang.String approvalTime; /** * Output only. Email of the user that called the ApproveBuild API to approve or reject a build at @@ -71,7 +71,7 @@ public final class ApprovalResult extends com.google.api.client.json.GenericJson * Output only. The time when the approval decision was made. * @return value or {@code null} for none */ - public String getApprovalTime() { + public java.lang.String getApprovalTime() { return approvalTime; } @@ -79,7 +79,7 @@ public String getApprovalTime() { * Output only. The time when the approval decision was made. * @param approvalTime approvalTime or {@code null} for none */ - public ApprovalResult setApprovalTime(String approvalTime) { + public ApprovalResult setApprovalTime(java.lang.String approvalTime) { this.approvalTime = approvalTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Artifacts.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Artifacts.java index e308e7df19e..3bb00be10b0 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Artifacts.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Artifacts.java @@ -30,14 +30,6 @@ @SuppressWarnings("javadoc") public final class Artifacts extends com.google.api.client.json.GenericJson { - /** - * Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful - * completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List genericArtifacts; - /** * Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion * of all build steps. If any objects fail to be pushed, the build is marked FAILURE. @@ -106,25 +98,6 @@ public final class Artifacts extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List pythonPackages; - /** - * Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful - * completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. - * @return value or {@code null} for none - */ - public java.util.List getGenericArtifacts() { - return genericArtifacts; - } - - /** - * Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful - * completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. - * @param genericArtifacts genericArtifacts or {@code null} for none - */ - public Artifacts setGenericArtifacts(java.util.List genericArtifacts) { - this.genericArtifacts = genericArtifacts; - return this; - } - /** * Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion * of all build steps. If any objects fail to be pushed, the build is marked FAILURE. diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata.java index c2127f15273..c34eaa7d11a 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata.java @@ -34,7 +34,7 @@ public final class BatchCreateBitbucketServerConnectedRepositoriesResponseMetada * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * The name of the `BitbucketServerConfig` that added connected repositories. Format: @@ -49,13 +49,13 @@ public final class BatchCreateBitbucketServerConnectedRepositoriesResponseMetada * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata setCompleteTime(String completeTime) { + public BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -91,7 +91,7 @@ public BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata setConfig * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata setCreateTime(String createTime) { + public BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java index e743e25c1c3..94db810b6a0 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java @@ -34,7 +34,7 @@ public final class BatchCreateGitLabConnectedRepositoriesResponseMetadata extend * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * The name of the `GitLabConfig` that added connected repositories. Format: @@ -49,13 +49,13 @@ public final class BatchCreateGitLabConnectedRepositoriesResponseMetadata extend * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public BatchCreateGitLabConnectedRepositoriesResponseMetadata setCompleteTime(String completeTime) { + public BatchCreateGitLabConnectedRepositoriesResponseMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -91,7 +91,7 @@ public BatchCreateGitLabConnectedRepositoriesResponseMetadata setConfig(java.lan * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public BatchCreateGitLabConnectedRepositoriesResponseMetadata setCreateTime(String createTime) { + public BatchCreateGitLabConnectedRepositoriesResponseMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BitbucketServerConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BitbucketServerConfig.java index faf2bc0b14f..fd86ce50e8c 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BitbucketServerConfig.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BitbucketServerConfig.java @@ -49,7 +49,7 @@ public final class BitbucketServerConfig extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it @@ -161,7 +161,7 @@ public BitbucketServerConfig setConnectedRepositories(java.util.List tags) { * starts ticking from `startTime`. Default time is 60 minutes. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -803,7 +803,7 @@ public String getTimeout() { * starts ticking from `startTime`. Default time is 60 minutes. * @param timeout timeout or {@code null} for none */ - public Build setTimeout(String timeout) { + public Build setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildStep.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildStep.java index 3ff29f6d6af..1212d036b8e 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildStep.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildStep.java @@ -161,7 +161,7 @@ public final class BuildStep extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * Output only. Stores timing information for executing this build step. @@ -489,7 +489,7 @@ public BuildStep setStatus(java.lang.String status) { * be allowed to continue to run until either it completes or the build itself times out. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -498,7 +498,7 @@ public String getTimeout() { * be allowed to continue to run until either it completes or the build itself times out. * @param timeout timeout or {@code null} for none */ - public BuildStep setTimeout(String timeout) { + public BuildStep setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java index d6370e94ba5..ea9095e71e0 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java @@ -65,7 +65,7 @@ public final class BuildTrigger extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Human-readable description of this trigger. @@ -337,7 +337,7 @@ public BuildTrigger setBuild(Build build) { * Output only. Time when the trigger was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -345,7 +345,7 @@ public String getCreateTime() { * Output only. Time when the trigger was created. * @param createTime createTime or {@code null} for none */ - public BuildTrigger setCreateTime(String createTime) { + public BuildTrigger setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateBitbucketServerConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateBitbucketServerConfigOperationMetadata.java index ddef5b8d3c2..ca24cd6e591 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateBitbucketServerConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateBitbucketServerConfigOperationMetadata.java @@ -42,14 +42,14 @@ public final class CreateBitbucketServerConfigOperationMetadata extends com.goog * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the BitbucketServerConfig to be created. Format: @@ -74,7 +74,7 @@ public CreateBitbucketServerConfigOperationMetadata setBitbucketServerConfig(jav * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -82,7 +82,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public CreateBitbucketServerConfigOperationMetadata setCompleteTime(String completeTime) { + public CreateBitbucketServerConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -91,7 +91,7 @@ public CreateBitbucketServerConfigOperationMetadata setCompleteTime(String compl * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public CreateBitbucketServerConfigOperationMetadata setCreateTime(String createTime) { + public CreateBitbucketServerConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitHubEnterpriseConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitHubEnterpriseConfigOperationMetadata.java index 984d142d3b4..7989e24bf39 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitHubEnterpriseConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitHubEnterpriseConfigOperationMetadata.java @@ -34,14 +34,14 @@ public final class CreateGitHubEnterpriseConfigOperationMetadata extends com.goo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitHubEnterprise to be created. Format: @@ -55,7 +55,7 @@ public final class CreateGitHubEnterpriseConfigOperationMetadata extends com.goo * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public CreateGitHubEnterpriseConfigOperationMetadata setCompleteTime(String completeTime) { + public CreateGitHubEnterpriseConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public CreateGitHubEnterpriseConfigOperationMetadata setCompleteTime(String comp * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public CreateGitHubEnterpriseConfigOperationMetadata setCreateTime(String createTime) { + public CreateGitHubEnterpriseConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java index d8ea9bc46e8..531371c2d47 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java @@ -34,14 +34,14 @@ public final class CreateGitLabConfigOperationMetadata extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitLabConfig to be created. Format: @@ -55,7 +55,7 @@ public final class CreateGitLabConfigOperationMetadata extends com.google.api.cl * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public CreateGitLabConfigOperationMetadata setCompleteTime(String completeTime) { + public CreateGitLabConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public CreateGitLabConfigOperationMetadata setCompleteTime(String completeTime) * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public CreateGitLabConfigOperationMetadata setCreateTime(String createTime) { + public CreateGitLabConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateWorkerPoolOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateWorkerPoolOperationMetadata.java index e70e3e49b5b..a6a7bb4e2aa 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateWorkerPoolOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateWorkerPoolOperationMetadata.java @@ -34,14 +34,14 @@ public final class CreateWorkerPoolOperationMetadata extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the `WorkerPool` to create. Format: @@ -55,7 +55,7 @@ public final class CreateWorkerPoolOperationMetadata extends com.google.api.clie * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public CreateWorkerPoolOperationMetadata setCompleteTime(String completeTime) { + public CreateWorkerPoolOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public CreateWorkerPoolOperationMetadata setCompleteTime(String completeTime) { * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public CreateWorkerPoolOperationMetadata setCreateTime(String createTime) { + public CreateWorkerPoolOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteBitbucketServerConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteBitbucketServerConfigOperationMetadata.java index 7be1f8dea0c..ba4507f809e 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteBitbucketServerConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteBitbucketServerConfigOperationMetadata.java @@ -42,14 +42,14 @@ public final class DeleteBitbucketServerConfigOperationMetadata extends com.goog * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the BitbucketServerConfig to be deleted. Format: @@ -74,7 +74,7 @@ public DeleteBitbucketServerConfigOperationMetadata setBitbucketServerConfig(jav * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -82,7 +82,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public DeleteBitbucketServerConfigOperationMetadata setCompleteTime(String completeTime) { + public DeleteBitbucketServerConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -91,7 +91,7 @@ public DeleteBitbucketServerConfigOperationMetadata setCompleteTime(String compl * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public DeleteBitbucketServerConfigOperationMetadata setCreateTime(String createTime) { + public DeleteBitbucketServerConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitHubEnterpriseConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitHubEnterpriseConfigOperationMetadata.java index 3b667ab7ef6..412614bd32d 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitHubEnterpriseConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitHubEnterpriseConfigOperationMetadata.java @@ -34,14 +34,14 @@ public final class DeleteGitHubEnterpriseConfigOperationMetadata extends com.goo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitHubEnterprise to be deleted. Format: @@ -55,7 +55,7 @@ public final class DeleteGitHubEnterpriseConfigOperationMetadata extends com.goo * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public DeleteGitHubEnterpriseConfigOperationMetadata setCompleteTime(String completeTime) { + public DeleteGitHubEnterpriseConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public DeleteGitHubEnterpriseConfigOperationMetadata setCompleteTime(String comp * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public DeleteGitHubEnterpriseConfigOperationMetadata setCreateTime(String createTime) { + public DeleteGitHubEnterpriseConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java index ad7613d2a52..ee950fa9e45 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java @@ -34,14 +34,14 @@ public final class DeleteGitLabConfigOperationMetadata extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitLabConfig to be created. Format: @@ -55,7 +55,7 @@ public final class DeleteGitLabConfigOperationMetadata extends com.google.api.cl * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public DeleteGitLabConfigOperationMetadata setCompleteTime(String completeTime) { + public DeleteGitLabConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public DeleteGitLabConfigOperationMetadata setCompleteTime(String completeTime) * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public DeleteGitLabConfigOperationMetadata setCreateTime(String createTime) { + public DeleteGitLabConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteWorkerPoolOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteWorkerPoolOperationMetadata.java index 16b72cd7ac2..cbe6d019adc 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteWorkerPoolOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteWorkerPoolOperationMetadata.java @@ -34,14 +34,14 @@ public final class DeleteWorkerPoolOperationMetadata extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the `WorkerPool` being deleted. Format: @@ -55,7 +55,7 @@ public final class DeleteWorkerPoolOperationMetadata extends com.google.api.clie * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public DeleteWorkerPoolOperationMetadata setCompleteTime(String completeTime) { + public DeleteWorkerPoolOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public DeleteWorkerPoolOperationMetadata setCompleteTime(String completeTime) { * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public DeleteWorkerPoolOperationMetadata setCreateTime(String createTime) { + public DeleteWorkerPoolOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Dependency.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Dependency.java index fb4fa3aacad..3cd3ec06925 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Dependency.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Dependency.java @@ -36,13 +36,6 @@ public final class Dependency extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean empty; - /** - * Represents a generic artifact as a build dependency. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GenericArtifactDependency genericArtifact; - /** * Represents a git repository as a build dependency. * The value may be {@code null}. @@ -67,23 +60,6 @@ public Dependency setEmpty(java.lang.Boolean empty) { return this; } - /** - * Represents a generic artifact as a build dependency. - * @return value or {@code null} for none - */ - public GenericArtifactDependency getGenericArtifact() { - return genericArtifact; - } - - /** - * Represents a generic artifact as a build dependency. - * @param genericArtifact genericArtifact or {@code null} for none - */ - public Dependency setGenericArtifact(GenericArtifactDependency genericArtifact) { - this.genericArtifact = genericArtifact; - return this; - } - /** * Represents a git repository as a build dependency. * @return value or {@code null} for none diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitHubEnterpriseConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitHubEnterpriseConfig.java index b65461230e2..4b8f187b942 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitHubEnterpriseConfig.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitHubEnterpriseConfig.java @@ -41,7 +41,7 @@ public final class GitHubEnterpriseConfig extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Name to display for this config. @@ -120,7 +120,7 @@ public GitHubEnterpriseConfig setAppId(java.lang.Long appId) { * Output only. Time when the installation was associated with the project. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -128,7 +128,7 @@ public String getCreateTime() { * Output only. Time when the installation was associated with the project. * @param createTime createTime or {@code null} for none */ - public GitHubEnterpriseConfig setCreateTime(String createTime) { + public GitHubEnterpriseConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java index 480080703fc..4849d9109ea 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java @@ -41,7 +41,7 @@ public final class GitLabConfig extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. GitLabEnterprise config. @@ -100,7 +100,7 @@ public GitLabConfig setConnectedRepositories(java.util.List * Output only. Time when the config was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -108,7 +108,7 @@ public String getCreateTime() { * Output only. Time when the config was created. * @param createTime createTime or {@code null} for none */ - public GitLabConfig setCreateTime(String createTime) { + public GitLabConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/OperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/OperationMetadata.java index 0f693deb7ad..3a17f2f77a2 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/OperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/OperationMetadata.java @@ -50,14 +50,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Human-readable status of the operation, if any. @@ -122,7 +122,7 @@ public OperationMetadata setCancelRequested(java.lang.Boolean cancelRequested) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -130,7 +130,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -139,7 +139,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -147,7 +147,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ProcessAppManifestCallbackOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ProcessAppManifestCallbackOperationMetadata.java index aa81d6e5766..c116af8696c 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ProcessAppManifestCallbackOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ProcessAppManifestCallbackOperationMetadata.java @@ -34,14 +34,14 @@ public final class ProcessAppManifestCallbackOperationMetadata extends com.googl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitHubEnterprise to be created. Format: @@ -55,7 +55,7 @@ public final class ProcessAppManifestCallbackOperationMetadata extends com.googl * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public ProcessAppManifestCallbackOperationMetadata setCompleteTime(String completeTime) { + public ProcessAppManifestCallbackOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public ProcessAppManifestCallbackOperationMetadata setCompleteTime(String comple * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public ProcessAppManifestCallbackOperationMetadata setCreateTime(String createTime) { + public ProcessAppManifestCallbackOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Results.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Results.java index eb8f70d3c8c..e815b56c88e 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Results.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/Results.java @@ -61,13 +61,6 @@ public final class Results extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List buildStepOutputs; - /** - * Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List genericArtifacts; - /** * Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. * The value may be {@code null}. @@ -193,23 +186,6 @@ public Results setBuildStepOutputs(java.util.List buildStepOut return this; } - /** - * Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. - * @return value or {@code null} for none - */ - public java.util.List getGenericArtifacts() { - return genericArtifacts; - } - - /** - * Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. - * @param genericArtifacts genericArtifacts or {@code null} for none - */ - public Results setGenericArtifacts(java.util.List genericArtifacts) { - this.genericArtifacts = genericArtifacts; - return this; - } - /** * Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. * @return value or {@code null} for none diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/TimeSpan.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/TimeSpan.java index 43f777937c1..5b2d6edb09c 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/TimeSpan.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/TimeSpan.java @@ -34,20 +34,20 @@ public final class TimeSpan extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Start of time span. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * End of time span. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -55,7 +55,7 @@ public String getEndTime() { * End of time span. * @param endTime endTime or {@code null} for none */ - public TimeSpan setEndTime(String endTime) { + public TimeSpan setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -64,7 +64,7 @@ public TimeSpan setEndTime(String endTime) { * Start of time span. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -72,7 +72,7 @@ public String getStartTime() { * Start of time span. * @param startTime startTime or {@code null} for none */ - public TimeSpan setStartTime(String startTime) { + public TimeSpan setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateBitbucketServerConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateBitbucketServerConfigOperationMetadata.java index e1256027d2a..cc522599f2f 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateBitbucketServerConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateBitbucketServerConfigOperationMetadata.java @@ -42,14 +42,14 @@ public final class UpdateBitbucketServerConfigOperationMetadata extends com.goog * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the BitbucketServerConfig to be updated. Format: @@ -74,7 +74,7 @@ public UpdateBitbucketServerConfigOperationMetadata setBitbucketServerConfig(jav * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -82,7 +82,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public UpdateBitbucketServerConfigOperationMetadata setCompleteTime(String completeTime) { + public UpdateBitbucketServerConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -91,7 +91,7 @@ public UpdateBitbucketServerConfigOperationMetadata setCompleteTime(String compl * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public UpdateBitbucketServerConfigOperationMetadata setCreateTime(String createTime) { + public UpdateBitbucketServerConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitHubEnterpriseConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitHubEnterpriseConfigOperationMetadata.java index 1e7d32b42ee..524e0015f24 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitHubEnterpriseConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitHubEnterpriseConfigOperationMetadata.java @@ -34,14 +34,14 @@ public final class UpdateGitHubEnterpriseConfigOperationMetadata extends com.goo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitHubEnterprise to be updated. Format: @@ -55,7 +55,7 @@ public final class UpdateGitHubEnterpriseConfigOperationMetadata extends com.goo * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public UpdateGitHubEnterpriseConfigOperationMetadata setCompleteTime(String completeTime) { + public UpdateGitHubEnterpriseConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public UpdateGitHubEnterpriseConfigOperationMetadata setCompleteTime(String comp * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public UpdateGitHubEnterpriseConfigOperationMetadata setCreateTime(String createTime) { + public UpdateGitHubEnterpriseConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java index dd72827acaa..653ffb9ea29 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java @@ -34,14 +34,14 @@ public final class UpdateGitLabConfigOperationMetadata extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the GitLabConfig to be created. Format: @@ -55,7 +55,7 @@ public final class UpdateGitLabConfigOperationMetadata extends com.google.api.cl * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public UpdateGitLabConfigOperationMetadata setCompleteTime(String completeTime) { + public UpdateGitLabConfigOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public UpdateGitLabConfigOperationMetadata setCompleteTime(String completeTime) * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public UpdateGitLabConfigOperationMetadata setCreateTime(String createTime) { + public UpdateGitLabConfigOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateWorkerPoolOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateWorkerPoolOperationMetadata.java index ecfb0c658ae..96eb7ba0fe2 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateWorkerPoolOperationMetadata.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateWorkerPoolOperationMetadata.java @@ -34,14 +34,14 @@ public final class UpdateWorkerPoolOperationMetadata extends com.google.api.clie * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completeTime; + private java.lang.String completeTime; /** * Time the operation was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource name of the `WorkerPool` being updated. Format: @@ -55,7 +55,7 @@ public final class UpdateWorkerPoolOperationMetadata extends com.google.api.clie * Time the operation was completed. * @return value or {@code null} for none */ - public String getCompleteTime() { + public java.lang.String getCompleteTime() { return completeTime; } @@ -63,7 +63,7 @@ public String getCompleteTime() { * Time the operation was completed. * @param completeTime completeTime or {@code null} for none */ - public UpdateWorkerPoolOperationMetadata setCompleteTime(String completeTime) { + public UpdateWorkerPoolOperationMetadata setCompleteTime(java.lang.String completeTime) { this.completeTime = completeTime; return this; } @@ -72,7 +72,7 @@ public UpdateWorkerPoolOperationMetadata setCompleteTime(String completeTime) { * Time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -80,7 +80,7 @@ public String getCreateTime() { * Time the operation was created. * @param createTime createTime or {@code null} for none */ - public UpdateWorkerPoolOperationMetadata setCreateTime(String createTime) { + public UpdateWorkerPoolOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/WorkerPool.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/WorkerPool.java index 3952b168e75..fc437a30ea5 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/WorkerPool.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/WorkerPool.java @@ -48,14 +48,14 @@ public final class WorkerPool extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Time at which the request to delete the `WorkerPool` was received. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be @@ -109,7 +109,7 @@ public final class WorkerPool extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * User specified annotations. See https://google.aip.dev/128#annotations for more details such as @@ -134,7 +134,7 @@ public WorkerPool setAnnotations(java.util.Map annotat * Output only. Time at which the request to create the `WorkerPool` was received. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -142,7 +142,7 @@ public String getCreateTime() { * Output only. Time at which the request to create the `WorkerPool` was received. * @param createTime createTime or {@code null} for none */ - public WorkerPool setCreateTime(String createTime) { + public WorkerPool setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -151,7 +151,7 @@ public WorkerPool setCreateTime(String createTime) { * Output only. Time at which the request to delete the `WorkerPool` was received. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -159,7 +159,7 @@ public String getDeleteTime() { * Output only. Time at which the request to delete the `WorkerPool` was received. * @param deleteTime deleteTime or {@code null} for none */ - public WorkerPool setDeleteTime(String deleteTime) { + public WorkerPool setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -280,7 +280,7 @@ public WorkerPool setUid(java.lang.String uid) { * Output only. Time at which the request to update the `WorkerPool` was received. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -288,7 +288,7 @@ public String getUpdateTime() { * Output only. Time at which the request to update the `WorkerPool` was received. * @param updateTime updateTime or {@code null} for none */ - public WorkerPool setUpdateTime(String updateTime) { + public WorkerPool setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml b/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml index 87c05d920a7..edd9c9ccb6f 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudbuild - v1-rev20260323-2.0.0 - Cloud Build API v1-rev20260323-2.0.0 + v1-rev20260309-2.0.0 + Cloud Build API v1-rev20260309-2.0.0 jar 2011 diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/README.md b/clients/google-api-services-clouddeploy/v1/2.0.0/README.md index 98b624fbe08..5b484c13c19 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/README.md +++ b/clients/google-api-services-clouddeploy/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-clouddeploy - v1-rev20260325-2.0.0 + v1-rev20260128-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20260325-2.0.0' + implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20260128-2.0.0' } ``` diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/CloudDeploy.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/CloudDeploy.java index 91237049b94..1d39a5b1315 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/CloudDeploy.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/CloudDeploy.java @@ -451,14 +451,10 @@ public GetConfig set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -482,15 +478,10 @@ public class List extends CloudDeployRequest sourc * Optional. How long to wait after a rollout is finished. * @return value or {@code null} for none */ - public String getWait() { + public java.lang.String getWait() { return wait; } @@ -133,7 +133,7 @@ public String getWait() { * Optional. How long to wait after a rollout is finished. * @param wait wait or {@code null} for none */ - public AdvanceRolloutRule setWait(String wait) { + public AdvanceRolloutRule setWait(java.lang.String wait) { this.wait = wait; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Automation.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Automation.java index 1f7749060c8..3eef48af4d7 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Automation.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Automation.java @@ -53,7 +53,7 @@ public final class Automation extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Description of the `Automation`. Max length is 255 characters. @@ -134,7 +134,7 @@ public final class Automation extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. User annotations. These attributes can only be set and used by the user, and not by @@ -175,7 +175,7 @@ public Automation setAnnotations(java.util.Map annotat * Output only. Time at which the automation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -183,7 +183,7 @@ public String getCreateTime() { * Output only. Time at which the automation was created. * @param createTime createTime or {@code null} for none */ - public Automation setCreateTime(String createTime) { + public Automation setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -367,7 +367,7 @@ public Automation setUid(java.lang.String uid) { * Output only. Time at which the automation was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -375,7 +375,7 @@ public String getUpdateTime() { * Output only. Time at which the automation was updated. * @param updateTime updateTime or {@code null} for none */ - public Automation setUpdateTime(String updateTime) { + public Automation setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java index 6c8cec8b617..541189087a7 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java @@ -56,7 +56,7 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The weak etag of the `AutomationRun` resource. This checksum is computed by the @@ -73,7 +73,7 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Output only. Name of the `AutomationRun`. Format is `projects/{project}/locations/{location}/de @@ -163,7 +163,7 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Earliest time the `AutomationRun` will attempt to resume. Wait-time is configured @@ -171,7 +171,7 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String waitUntilTime; + private java.lang.String waitUntilTime; /** * Output only. Advances a rollout to the next phase. @@ -228,7 +228,7 @@ public AutomationRun setAutomationSnapshot(Automation automationSnapshot) { * Output only. Time at which the `AutomationRun` was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -236,7 +236,7 @@ public String getCreateTime() { * Output only. Time at which the `AutomationRun` was created. * @param createTime createTime or {@code null} for none */ - public AutomationRun setCreateTime(String createTime) { + public AutomationRun setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -267,7 +267,7 @@ public AutomationRun setEtag(java.lang.String etag) { * its creation date. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -276,7 +276,7 @@ public String getExpireTime() { * its creation date. * @param expireTime expireTime or {@code null} for none */ - public AutomationRun setExpireTime(String expireTime) { + public AutomationRun setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } @@ -484,7 +484,7 @@ public AutomationRun setUid(java.lang.String uid) { * Output only. Time at which the automationRun was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -492,7 +492,7 @@ public String getUpdateTime() { * Output only. Time at which the automationRun was updated. * @param updateTime updateTime or {@code null} for none */ - public AutomationRun setUpdateTime(String updateTime) { + public AutomationRun setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } @@ -502,7 +502,7 @@ public AutomationRun setUpdateTime(String updateTime) { * by `wait` in automation rule. * @return value or {@code null} for none */ - public String getWaitUntilTime() { + public java.lang.String getWaitUntilTime() { return waitUntilTime; } @@ -511,7 +511,7 @@ public String getWaitUntilTime() { * by `wait` in automation rule. * @param waitUntilTime waitUntilTime or {@code null} for none */ - public AutomationRun setWaitUntilTime(String waitUntilTime) { + public AutomationRun setWaitUntilTime(java.lang.String waitUntilTime) { this.waitUntilTime = waitUntilTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CanaryDeployment.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CanaryDeployment.java index 9b006e13d0e..aa599b2dda5 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CanaryDeployment.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CanaryDeployment.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class CanaryDeployment extends com.google.api.client.json.GenericJson { - /** - * Optional. Configuration for the analysis job. If configured, the analysis will run after each - * percentage deployment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Analysis analysis; - /** * Required. The percentage based deployments that will occur as a part of a `Rollout`. List is * expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is @@ -69,32 +61,6 @@ public final class CanaryDeployment extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.Boolean verify; - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Verify verifyConfig; - - /** - * Optional. Configuration for the analysis job. If configured, the analysis will run after each - * percentage deployment. - * @return value or {@code null} for none - */ - public Analysis getAnalysis() { - return analysis; - } - - /** - * Optional. Configuration for the analysis job. If configured, the analysis will run after each - * percentage deployment. - * @param analysis analysis or {@code null} for none - */ - public CanaryDeployment setAnalysis(Analysis analysis) { - this.analysis = analysis; - return this; - } - /** * Required. The percentage based deployments that will occur as a part of a `Rollout`. List is * expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is @@ -171,23 +137,6 @@ public CanaryDeployment setVerify(java.lang.Boolean verify) { return this; } - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * @return value or {@code null} for none - */ - public Verify getVerifyConfig() { - return verifyConfig; - } - - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * @param verifyConfig verifyConfig or {@code null} for none - */ - public CanaryDeployment setVerifyConfig(Verify verifyConfig) { - this.verifyConfig = verifyConfig; - return this; - } - @Override public CanaryDeployment set(String fieldName, Object value) { return (CanaryDeployment) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunMetadata.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunMetadata.java index b83cba2f415..07e208ea753 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunMetadata.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunMetadata.java @@ -37,17 +37,6 @@ public final class CloudRunMetadata extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String job; - /** - * Output only. The previous Cloud Run Revision name associated with a `Rollout`. Only set when a - * canary deployment strategy is configured. Format for service is - * projects/{project}/locations/{location}/services/{service}/revisions/{revision}. Format for - * worker pool is - * projects/{project}/locations/{location}/workerPools/{workerpool}/revisions/{revision}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String previousRevision; - /** * Output only. The Cloud Run Revision id associated with a `Rollout`. * The value may be {@code null}. @@ -97,31 +86,6 @@ public CloudRunMetadata setJob(java.lang.String job) { return this; } - /** - * Output only. The previous Cloud Run Revision name associated with a `Rollout`. Only set when a - * canary deployment strategy is configured. Format for service is - * projects/{project}/locations/{location}/services/{service}/revisions/{revision}. Format for - * worker pool is - * projects/{project}/locations/{location}/workerPools/{workerpool}/revisions/{revision}. - * @return value or {@code null} for none - */ - public java.lang.String getPreviousRevision() { - return previousRevision; - } - - /** - * Output only. The previous Cloud Run Revision name associated with a `Rollout`. Only set when a - * canary deployment strategy is configured. Format for service is - * projects/{project}/locations/{location}/services/{service}/revisions/{revision}. Format for - * worker pool is - * projects/{project}/locations/{location}/workerPools/{workerpool}/revisions/{revision}. - * @param previousRevision previousRevision or {@code null} for none - */ - public CloudRunMetadata setPreviousRevision(java.lang.String previousRevision) { - this.previousRevision = previousRevision; - return this; - } - /** * Output only. The Cloud Run Revision id associated with a `Rollout`. * @return value or {@code null} for none diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunRenderMetadata.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunRenderMetadata.java index 999d8bffef6..fff6134e484 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunRenderMetadata.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CloudRunRenderMetadata.java @@ -29,22 +29,6 @@ @SuppressWarnings("javadoc") public final class CloudRunRenderMetadata extends com.google.api.client.json.GenericJson { - /** - * Output only. The name of the Cloud Run Job in the rendered manifest. Format is - * `projects/{project}/locations/{location}/jobs/{job}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String job; - - /** - * Output only. The name of the Cloud Run Revision in the rendered manifest. Format is - * `projects/{project}/locations/{location}/services/{service}/revisions/{revision}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String revision; - /** * Output only. The name of the Cloud Run Service in the rendered manifest. Format is * `projects/{project}/locations/{location}/services/{service}`. @@ -61,44 +45,6 @@ public final class CloudRunRenderMetadata extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.String workerPool; - /** - * Output only. The name of the Cloud Run Job in the rendered manifest. Format is - * `projects/{project}/locations/{location}/jobs/{job}`. - * @return value or {@code null} for none - */ - public java.lang.String getJob() { - return job; - } - - /** - * Output only. The name of the Cloud Run Job in the rendered manifest. Format is - * `projects/{project}/locations/{location}/jobs/{job}`. - * @param job job or {@code null} for none - */ - public CloudRunRenderMetadata setJob(java.lang.String job) { - this.job = job; - return this; - } - - /** - * Output only. The name of the Cloud Run Revision in the rendered manifest. Format is - * `projects/{project}/locations/{location}/services/{service}/revisions/{revision}`. - * @return value or {@code null} for none - */ - public java.lang.String getRevision() { - return revision; - } - - /** - * Output only. The name of the Cloud Run Revision in the rendered manifest. Format is - * `projects/{project}/locations/{location}/services/{service}/revisions/{revision}`. - * @param revision revision or {@code null} for none - */ - public CloudRunRenderMetadata setRevision(java.lang.String revision) { - this.revision = revision; - return this; - } - /** * Output only. The name of the Cloud Run Service in the rendered manifest. Format is * `projects/{project}/locations/{location}/services/{service}`. diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CustomTargetType.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CustomTargetType.java index 5979d9b2141..ce991fcab92 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CustomTargetType.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/CustomTargetType.java @@ -45,7 +45,7 @@ public final class CustomTargetType extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Configures render and deploy for the `CustomTargetType` using Skaffold custom @@ -99,13 +99,6 @@ public final class CustomTargetType extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String name; - /** - * Optional. Configures render and deploy for the `CustomTargetType` using tasks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomTargetTasks tasks; - /** * Output only. Unique identifier of the `CustomTargetType`. * The value may be {@code null}. @@ -118,7 +111,7 @@ public final class CustomTargetType extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. User annotations. These attributes can only be set and used by the user, and not by @@ -145,7 +138,7 @@ public CustomTargetType setAnnotations(java.util.Map a * Output only. Time at which the `CustomTargetType` was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -153,7 +146,7 @@ public String getCreateTime() { * Output only. Time at which the `CustomTargetType` was created. * @param createTime createTime or {@code null} for none */ - public CustomTargetType setCreateTime(String createTime) { + public CustomTargetType setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -280,23 +273,6 @@ public CustomTargetType setName(java.lang.String name) { return this; } - /** - * Optional. Configures render and deploy for the `CustomTargetType` using tasks. - * @return value or {@code null} for none - */ - public CustomTargetTasks getTasks() { - return tasks; - } - - /** - * Optional. Configures render and deploy for the `CustomTargetType` using tasks. - * @param tasks tasks or {@code null} for none - */ - public CustomTargetType setTasks(CustomTargetTasks tasks) { - this.tasks = tasks; - return this; - } - /** * Output only. Unique identifier of the `CustomTargetType`. * @return value or {@code null} for none @@ -318,7 +294,7 @@ public CustomTargetType setUid(java.lang.String uid) { * Output only. Most recent time at which the `CustomTargetType` was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -326,7 +302,7 @@ public String getUpdateTime() { * Output only. Most recent time at which the `CustomTargetType` was updated. * @param updateTime updateTime or {@code null} for none */ - public CustomTargetType setUpdateTime(String updateTime) { + public CustomTargetType setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeliveryPipeline.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeliveryPipeline.java index 2b297917f53..5c49d600214 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeliveryPipeline.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeliveryPipeline.java @@ -50,7 +50,7 @@ public final class DeliveryPipeline extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Description of the `DeliveryPipeline`. Max length is 255 characters. @@ -115,7 +115,7 @@ public final class DeliveryPipeline extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. User annotations. These attributes can only be set and used by the user, and not by @@ -157,7 +157,7 @@ public DeliveryPipeline setCondition(PipelineCondition condition) { * Output only. Time at which the pipeline was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -165,7 +165,7 @@ public String getCreateTime() { * Output only. Time at which the pipeline was created. * @param createTime createTime or {@code null} for none */ - public DeliveryPipeline setCreateTime(String createTime) { + public DeliveryPipeline setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -311,7 +311,7 @@ public DeliveryPipeline setUid(java.lang.String uid) { * Output only. Most recent time at which the pipeline was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -319,7 +319,7 @@ public String getUpdateTime() { * Output only. Most recent time at which the pipeline was updated. * @param updateTime updateTime or {@code null} for none */ - public DeliveryPipeline setUpdateTime(String updateTime) { + public DeliveryPipeline setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeployPolicy.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeployPolicy.java index 79e3c931326..d4b3f65058d 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeployPolicy.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeployPolicy.java @@ -51,7 +51,7 @@ public final class DeployPolicy extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Description of the `DeployPolicy`. Max length is 255 characters. @@ -127,7 +127,7 @@ public final class DeployPolicy extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. User annotations. These attributes can only be set and used by the user, and not by @@ -168,7 +168,7 @@ public DeployPolicy setAnnotations(java.util.Map annot * Output only. Time at which the deploy policy was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -176,7 +176,7 @@ public String getCreateTime() { * Output only. Time at which the deploy policy was created. * @param createTime createTime or {@code null} for none */ - public DeployPolicy setCreateTime(String createTime) { + public DeployPolicy setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -347,7 +347,7 @@ public DeployPolicy setUid(java.lang.String uid) { * Output only. Most recent time at which the deploy policy was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -355,7 +355,7 @@ public String getUpdateTime() { * Output only. Most recent time at which the deploy policy was updated. * @param updateTime updateTime or {@code null} for none */ - public DeployPolicy setUpdateTime(String updateTime) { + public DeployPolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeploymentJobs.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeploymentJobs.java index 5bd06a77320..0498ae72aaa 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeploymentJobs.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/DeploymentJobs.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class DeploymentJobs extends com.google.api.client.json.GenericJson { - /** - * Output only. The analysis Job. Runs after a verify if there is a verify job and the verify job - * succeeds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Job analysisJob; - /** * Output only. The deploy Job. This is the deploy job in the phase. * The value may be {@code null}. @@ -65,25 +57,6 @@ public final class DeploymentJobs extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private Job verifyJob; - /** - * Output only. The analysis Job. Runs after a verify if there is a verify job and the verify job - * succeeds. - * @return value or {@code null} for none - */ - public Job getAnalysisJob() { - return analysisJob; - } - - /** - * Output only. The analysis Job. Runs after a verify if there is a verify job and the verify job - * succeeds. - * @param analysisJob analysisJob or {@code null} for none - */ - public DeploymentJobs setAnalysisJob(Job analysisJob) { - this.analysisJob = analysisJob; - return this; - } - /** * Output only. The deploy Job. This is the deploy job in the phase. * @return value or {@code null} for none diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ExecutionConfig.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ExecutionConfig.java index 67af4eb2525..12fdd2cacc3 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ExecutionConfig.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ExecutionConfig.java @@ -51,7 +51,7 @@ public final class ExecutionConfig extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String executionTimeout; + private java.lang.String executionTimeout; /** * Optional. Use private Cloud Build pool. @@ -135,7 +135,7 @@ public ExecutionConfig setDefaultPool(DefaultPool defaultPool) { * seconds format. If unspecified, a default timeout of 1h is used. * @return value or {@code null} for none */ - public String getExecutionTimeout() { + public java.lang.String getExecutionTimeout() { return executionTimeout; } @@ -144,7 +144,7 @@ public String getExecutionTimeout() { * seconds format. If unspecified, a default timeout of 1h is used. * @param executionTimeout executionTimeout or {@code null} for none */ - public ExecutionConfig setExecutionTimeout(String executionTimeout) { + public ExecutionConfig setExecutionTimeout(java.lang.String executionTimeout) { this.executionTimeout = executionTimeout; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/GatewayServiceMesh.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/GatewayServiceMesh.java index 566872c2bf1..29861d37b3e 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/GatewayServiceMesh.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/GatewayServiceMesh.java @@ -68,7 +68,7 @@ public final class GatewayServiceMesh extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String routeUpdateWaitTime; + private java.lang.String routeUpdateWaitTime; /** * Required. Name of the Kubernetes Service. @@ -84,7 +84,7 @@ public final class GatewayServiceMesh extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String stableCutbackDuration; + private java.lang.String stableCutbackDuration; /** * Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute @@ -169,7 +169,7 @@ public GatewayServiceMesh setRouteDestinations(RouteDestinations routeDestinatio * hours, in seconds format. If unspecified, there is no wait time. * @return value or {@code null} for none */ - public String getRouteUpdateWaitTime() { + public java.lang.String getRouteUpdateWaitTime() { return routeUpdateWaitTime; } @@ -178,7 +178,7 @@ public String getRouteUpdateWaitTime() { * hours, in seconds format. If unspecified, there is no wait time. * @param routeUpdateWaitTime routeUpdateWaitTime or {@code null} for none */ - public GatewayServiceMesh setRouteUpdateWaitTime(String routeUpdateWaitTime) { + public GatewayServiceMesh setRouteUpdateWaitTime(java.lang.String routeUpdateWaitTime) { this.routeUpdateWaitTime = routeUpdateWaitTime; return this; } @@ -206,7 +206,7 @@ public GatewayServiceMesh setService(java.lang.String service) { * unspecified, there is no cutback time. * @return value or {@code null} for none */ - public String getStableCutbackDuration() { + public java.lang.String getStableCutbackDuration() { return stableCutbackDuration; } @@ -216,7 +216,7 @@ public String getStableCutbackDuration() { * unspecified, there is no cutback time. * @param stableCutbackDuration stableCutbackDuration or {@code null} for none */ - public GatewayServiceMesh setStableCutbackDuration(String stableCutbackDuration) { + public GatewayServiceMesh setStableCutbackDuration(java.lang.String stableCutbackDuration) { this.stableCutbackDuration = stableCutbackDuration; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Job.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Job.java index b28f2e92066..72d637b8380 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Job.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Job.java @@ -36,13 +36,6 @@ public final class Job extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private AdvanceChildRolloutJob advanceChildRolloutJob; - /** - * Output only. An analysis Job. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AnalysisJob analysisJob; - /** * Output only. A createChildRollout Job. * The value may be {@code null}. @@ -123,23 +116,6 @@ public Job setAdvanceChildRolloutJob(AdvanceChildRolloutJob advanceChildRolloutJ return this; } - /** - * Output only. An analysis Job. - * @return value or {@code null} for none - */ - public AnalysisJob getAnalysisJob() { - return analysisJob; - } - - /** - * Output only. An analysis Job. - * @param analysisJob analysisJob or {@code null} for none - */ - public Job setAnalysisJob(AnalysisJob analysisJob) { - this.analysisJob = analysisJob; - return this; - } - /** * Output only. A createChildRollout Job. * @return value or {@code null} for none diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/JobRun.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/JobRun.java index 93b05f1649f..bcb3af5288a 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/JobRun.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/JobRun.java @@ -37,13 +37,6 @@ public final class JobRun extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private AdvanceChildRolloutJobRun advanceChildRolloutJobRun; - /** - * Output only. Information specific to an analysis `JobRun`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AnalysisJobRun analysisJobRun; - /** * Output only. Information specific to a createChildRollout `JobRun`. * The value may be {@code null}. @@ -56,7 +49,7 @@ public final class JobRun extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Information specific to a deploy `JobRun`. @@ -70,7 +63,7 @@ public final class JobRun extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. This checksum is computed by the server based on the value of other fields, and @@ -122,7 +115,7 @@ public final class JobRun extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The current state of the `JobRun`. @@ -162,23 +155,6 @@ public JobRun setAdvanceChildRolloutJobRun(AdvanceChildRolloutJobRun advanceChil return this; } - /** - * Output only. Information specific to an analysis `JobRun`. - * @return value or {@code null} for none - */ - public AnalysisJobRun getAnalysisJobRun() { - return analysisJobRun; - } - - /** - * Output only. Information specific to an analysis `JobRun`. - * @param analysisJobRun analysisJobRun or {@code null} for none - */ - public JobRun setAnalysisJobRun(AnalysisJobRun analysisJobRun) { - this.analysisJobRun = analysisJobRun; - return this; - } - /** * Output only. Information specific to a createChildRollout `JobRun`. * @return value or {@code null} for none @@ -200,7 +176,7 @@ public JobRun setCreateChildRolloutJobRun(CreateChildRolloutJobRun createChildRo * Output only. Time at which the `JobRun` was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -208,7 +184,7 @@ public String getCreateTime() { * Output only. Time at which the `JobRun` was created. * @param createTime createTime or {@code null} for none */ - public JobRun setCreateTime(String createTime) { + public JobRun setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -234,7 +210,7 @@ public JobRun setDeployJobRun(DeployJobRun deployJobRun) { * Output only. Time at which the `JobRun` ended. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -242,7 +218,7 @@ public String getEndTime() { * Output only. Time at which the `JobRun` ended. * @param endTime endTime or {@code null} for none */ - public JobRun setEndTime(String endTime) { + public JobRun setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -359,7 +335,7 @@ public JobRun setPredeployJobRun(PredeployJobRun predeployJobRun) { * Output only. Time at which the `JobRun` was started. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -367,7 +343,7 @@ public String getStartTime() { * Output only. Time at which the `JobRun` was started. * @param startTime startTime or {@code null} for none */ - public JobRun setStartTime(String startTime) { + public JobRun setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/OperationMetadata.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/OperationMetadata.java index 5afb65275da..d306c5a4261 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/OperationMetadata.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/OperationMetadata.java @@ -41,14 +41,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -101,7 +101,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -109,7 +109,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -118,7 +118,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -126,7 +126,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PhaseConfig.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PhaseConfig.java index f3e55ffbd88..e6cce9accec 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PhaseConfig.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PhaseConfig.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class PhaseConfig extends com.google.api.client.json.GenericJson { - /** - * Optional. Configuration for the analysis job of this phase. If this is not configured, there - * will be no analysis job for this phase. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Analysis analysis; - /** * Required. Percentage deployment for the phase. * The value may be {@code null}. @@ -85,32 +77,6 @@ public final class PhaseConfig extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean verify; - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Verify verifyConfig; - - /** - * Optional. Configuration for the analysis job of this phase. If this is not configured, there - * will be no analysis job for this phase. - * @return value or {@code null} for none - */ - public Analysis getAnalysis() { - return analysis; - } - - /** - * Optional. Configuration for the analysis job of this phase. If this is not configured, there - * will be no analysis job for this phase. - * @param analysis analysis or {@code null} for none - */ - public PhaseConfig setAnalysis(Analysis analysis) { - this.analysis = analysis; - return this; - } - /** * Required. Percentage deployment for the phase. * @return value or {@code null} for none @@ -225,23 +191,6 @@ public PhaseConfig setVerify(java.lang.Boolean verify) { return this; } - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * @return value or {@code null} for none - */ - public Verify getVerifyConfig() { - return verifyConfig; - } - - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * @param verifyConfig verifyConfig or {@code null} for none - */ - public PhaseConfig setVerifyConfig(Verify verifyConfig) { - this.verifyConfig = verifyConfig; - return this; - } - @Override public PhaseConfig set(String fieldName, Object value) { return (PhaseConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PipelineReadyCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PipelineReadyCondition.java index 2da5a1902ae..ac14d2ff2b1 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PipelineReadyCondition.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PipelineReadyCondition.java @@ -43,7 +43,7 @@ public final class PipelineReadyCondition extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * True if the Pipeline is in a valid state. Otherwise at least one condition in @@ -70,7 +70,7 @@ public PipelineReadyCondition setStatus(java.lang.Boolean status) { * Last time the condition was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -78,7 +78,7 @@ public String getUpdateTime() { * Last time the condition was updated. * @param updateTime updateTime or {@code null} for none */ - public PipelineReadyCondition setUpdateTime(String updateTime) { + public PipelineReadyCondition setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Postdeploy.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Postdeploy.java index e106b90081d..59427c6bc2e 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Postdeploy.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Postdeploy.java @@ -37,14 +37,6 @@ public final class Postdeploy extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List actions; - /** - * Optional. The tasks that will run as a part of the postdeploy job. The tasks are executed - * sequentially in the order specified. Only one of `actions` or `tasks` can be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tasks; - /** * Optional. A sequence of Skaffold custom actions to invoke during execution of the postdeploy * job. @@ -64,25 +56,6 @@ public Postdeploy setActions(java.util.List actions) { return this; } - /** - * Optional. The tasks that will run as a part of the postdeploy job. The tasks are executed - * sequentially in the order specified. Only one of `actions` or `tasks` can be specified. - * @return value or {@code null} for none - */ - public java.util.List getTasks() { - return tasks; - } - - /** - * Optional. The tasks that will run as a part of the postdeploy job. The tasks are executed - * sequentially in the order specified. Only one of `actions` or `tasks` can be specified. - * @param tasks tasks or {@code null} for none - */ - public Postdeploy setTasks(java.util.List tasks) { - this.tasks = tasks; - return this; - } - @Override public Postdeploy set(String fieldName, Object value) { return (Postdeploy) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJob.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJob.java index 235baba0422..a01f2dac7cc 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJob.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJob.java @@ -36,13 +36,6 @@ public final class PostdeployJob extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.util.List actions; - /** - * Output only. The tasks that are executed as part of the postdeploy Job. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tasks; - /** * Output only. The custom actions that the postdeploy Job executes. * @return value or {@code null} for none @@ -60,23 +53,6 @@ public PostdeployJob setActions(java.util.List actions) { return this; } - /** - * Output only. The tasks that are executed as part of the postdeploy Job. - * @return value or {@code null} for none - */ - public java.util.List getTasks() { - return tasks; - } - - /** - * Output only. The tasks that are executed as part of the postdeploy Job. - * @param tasks tasks or {@code null} for none - */ - public PostdeployJob setTasks(java.util.List tasks) { - this.tasks = tasks; - return this; - } - @Override public PostdeployJob set(String fieldName, Object value) { return (PostdeployJob) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJobRun.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJobRun.java index ff1845e3a86..a0c5ed06d69 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJobRun.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PostdeployJobRun.java @@ -53,13 +53,6 @@ public final class PostdeployJobRun extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String failureMessage; - /** - * Output only. Metadata containing information about the postdeploy `JobRun`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PostdeployJobRunMetadata metadata; - /** * Output only. The resource name of the Cloud Build `Build` object that is used to execute the * custom actions associated with the postdeploy Job. Format is @@ -117,23 +110,6 @@ public PostdeployJobRun setFailureMessage(java.lang.String failureMessage) { return this; } - /** - * Output only. Metadata containing information about the postdeploy `JobRun`. - * @return value or {@code null} for none - */ - public PostdeployJobRunMetadata getMetadata() { - return metadata; - } - - /** - * Output only. Metadata containing information about the postdeploy `JobRun`. - * @param metadata metadata or {@code null} for none - */ - public PostdeployJobRun setMetadata(PostdeployJobRunMetadata metadata) { - this.metadata = metadata; - return this; - } - @Override public PostdeployJobRun set(String fieldName, Object value) { return (PostdeployJobRun) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Predeploy.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Predeploy.java index ef26f211d7a..c40fc6c582a 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Predeploy.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Predeploy.java @@ -37,14 +37,6 @@ public final class Predeploy extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List actions; - /** - * Optional. The tasks that will run as a part of the predeploy job. The tasks are executed - * sequentially in the order specified. Only one of `actions` or `tasks` can be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tasks; - /** * Optional. A sequence of Skaffold custom actions to invoke during execution of the predeploy * job. @@ -64,25 +56,6 @@ public Predeploy setActions(java.util.List actions) { return this; } - /** - * Optional. The tasks that will run as a part of the predeploy job. The tasks are executed - * sequentially in the order specified. Only one of `actions` or `tasks` can be specified. - * @return value or {@code null} for none - */ - public java.util.List getTasks() { - return tasks; - } - - /** - * Optional. The tasks that will run as a part of the predeploy job. The tasks are executed - * sequentially in the order specified. Only one of `actions` or `tasks` can be specified. - * @param tasks tasks or {@code null} for none - */ - public Predeploy setTasks(java.util.List tasks) { - this.tasks = tasks; - return this; - } - @Override public Predeploy set(String fieldName, Object value) { return (Predeploy) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJob.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJob.java index 80e9ccd53a9..7b995653f21 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJob.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJob.java @@ -36,13 +36,6 @@ public final class PredeployJob extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List actions; - /** - * Output only. The tasks that are executed as part of the predeploy Job. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tasks; - /** * Output only. The custom actions that the predeploy Job executes. * @return value or {@code null} for none @@ -60,23 +53,6 @@ public PredeployJob setActions(java.util.List actions) { return this; } - /** - * Output only. The tasks that are executed as part of the predeploy Job. - * @return value or {@code null} for none - */ - public java.util.List getTasks() { - return tasks; - } - - /** - * Output only. The tasks that are executed as part of the predeploy Job. - * @param tasks tasks or {@code null} for none - */ - public PredeployJob setTasks(java.util.List tasks) { - this.tasks = tasks; - return this; - } - @Override public PredeployJob set(String fieldName, Object value) { return (PredeployJob) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJobRun.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJobRun.java index 248cd2aba8b..636579160ed 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJobRun.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PredeployJobRun.java @@ -53,13 +53,6 @@ public final class PredeployJobRun extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.lang.String failureMessage; - /** - * Output only. Metadata containing information about the predeploy `JobRun`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PredeployJobRunMetadata metadata; - /** * Output only. The resource name of the Cloud Build `Build` object that is used to execute the * custom actions associated with the predeploy Job. Format is @@ -117,23 +110,6 @@ public PredeployJobRun setFailureMessage(java.lang.String failureMessage) { return this; } - /** - * Output only. Metadata containing information about the predeploy `JobRun`. - * @return value or {@code null} for none - */ - public PredeployJobRunMetadata getMetadata() { - return metadata; - } - - /** - * Output only. Metadata containing information about the predeploy `JobRun`. - * @param metadata metadata or {@code null} for none - */ - public PredeployJobRun setMetadata(PredeployJobRunMetadata metadata) { - this.metadata = metadata; - return this; - } - @Override public PredeployJobRun set(String fieldName, Object value) { return (PredeployJobRun) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseOperation.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseOperation.java index 24c8ea7419e..9741045f334 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseOperation.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseOperation.java @@ -56,7 +56,7 @@ public final class PromoteReleaseOperation extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String wait; + private java.lang.String wait; /** * Output only. The starting phase of the rollout created by this operation. @@ -115,7 +115,7 @@ public PromoteReleaseOperation setTargetId(java.lang.String targetId) { * Output only. How long the operation will be paused. * @return value or {@code null} for none */ - public String getWait() { + public java.lang.String getWait() { return wait; } @@ -123,7 +123,7 @@ public String getWait() { * Output only. How long the operation will be paused. * @param wait wait or {@code null} for none */ - public PromoteReleaseOperation setWait(String wait) { + public PromoteReleaseOperation setWait(java.lang.String wait) { this.wait = wait; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseRule.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseRule.java index 6389da4164d..4039f7cb67b 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseRule.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PromoteReleaseRule.java @@ -68,7 +68,7 @@ public final class PromoteReleaseRule extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String wait; + private java.lang.String wait; /** * Output only. Information around the state of the Automation rule. @@ -152,7 +152,7 @@ public PromoteReleaseRule setId(java.lang.String id) { * Optional. How long the release need to be paused until being promoted to the next target. * @return value or {@code null} for none */ - public String getWait() { + public java.lang.String getWait() { return wait; } @@ -160,7 +160,7 @@ public String getWait() { * Optional. How long the release need to be paused until being promoted to the next target. * @param wait wait or {@code null} for none */ - public PromoteReleaseRule setWait(String wait) { + public PromoteReleaseRule setWait(java.lang.String wait) { this.wait = wait; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Release.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Release.java index f2e1c04d343..1cfd4cd5335 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Release.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Release.java @@ -71,7 +71,7 @@ public final class Release extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Snapshot of the custom target types referenced by the targets taken at release @@ -142,14 +142,14 @@ public final class Release extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String renderEndTime; + private java.lang.String renderEndTime; /** * Output only. Time at which the render began. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String renderStartTime; + private java.lang.String renderStartTime; /** * Output only. Current state of the render operation. @@ -293,7 +293,7 @@ public Release setCondition(ReleaseCondition condition) { * Output only. Time at which the `Release` was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -301,7 +301,7 @@ public String getCreateTime() { * Output only. Time at which the `Release` was created. * @param createTime createTime or {@code null} for none */ - public Release setCreateTime(String createTime) { + public Release setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -447,7 +447,7 @@ public Release setName(java.lang.String name) { * Output only. Time at which the render completed. * @return value or {@code null} for none */ - public String getRenderEndTime() { + public java.lang.String getRenderEndTime() { return renderEndTime; } @@ -455,7 +455,7 @@ public String getRenderEndTime() { * Output only. Time at which the render completed. * @param renderEndTime renderEndTime or {@code null} for none */ - public Release setRenderEndTime(String renderEndTime) { + public Release setRenderEndTime(java.lang.String renderEndTime) { this.renderEndTime = renderEndTime; return this; } @@ -464,7 +464,7 @@ public Release setRenderEndTime(String renderEndTime) { * Output only. Time at which the render began. * @return value or {@code null} for none */ - public String getRenderStartTime() { + public java.lang.String getRenderStartTime() { return renderStartTime; } @@ -472,7 +472,7 @@ public String getRenderStartTime() { * Output only. Time at which the render began. * @param renderStartTime renderStartTime or {@code null} for none */ - public Release setRenderStartTime(String renderStartTime) { + public Release setRenderStartTime(java.lang.String renderStartTime) { this.renderStartTime = renderStartTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RenderMetadata.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RenderMetadata.java index 3905ff16066..9356b97e302 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RenderMetadata.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RenderMetadata.java @@ -43,14 +43,6 @@ public final class RenderMetadata extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private CustomMetadata custom; - /** - * Output only. Metadata associated with rendering for a Kubernetes cluster (GKE or GKE Enterprise - * target). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private KubernetesRenderMetadata kubernetes; - /** * Output only. Metadata associated with rendering for Cloud Run. * @return value or {@code null} for none @@ -85,25 +77,6 @@ public RenderMetadata setCustom(CustomMetadata custom) { return this; } - /** - * Output only. Metadata associated with rendering for a Kubernetes cluster (GKE or GKE Enterprise - * target). - * @return value or {@code null} for none - */ - public KubernetesRenderMetadata getKubernetes() { - return kubernetes; - } - - /** - * Output only. Metadata associated with rendering for a Kubernetes cluster (GKE or GKE Enterprise - * target). - * @param kubernetes kubernetes or {@code null} for none - */ - public RenderMetadata setKubernetes(KubernetesRenderMetadata kubernetes) { - this.kubernetes = kubernetes; - return this; - } - @Override public RenderMetadata set(String fieldName, Object value) { return (RenderMetadata) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Retry.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Retry.java index 9b645bcb44a..fb464950bbc 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Retry.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Retry.java @@ -50,7 +50,7 @@ public final class Retry extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String wait; + private java.lang.String wait; /** * Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and @@ -94,7 +94,7 @@ public Retry setBackoffMode(java.lang.String backoffMode) { * Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d. * @return value or {@code null} for none */ - public String getWait() { + public java.lang.String getWait() { return wait; } @@ -102,7 +102,7 @@ public String getWait() { * Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d. * @param wait wait or {@code null} for none */ - public Retry setWait(String wait) { + public Retry setWait(java.lang.String wait) { this.wait = wait; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryAttempt.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryAttempt.java index 66c9e914980..6fbd12373de 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryAttempt.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryAttempt.java @@ -55,7 +55,7 @@ public final class RetryAttempt extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String wait; + private java.lang.String wait; /** * Output only. The index of this retry attempt. @@ -112,7 +112,7 @@ public RetryAttempt setStateDesc(java.lang.String stateDesc) { * Output only. How long the operation will be paused. * @return value or {@code null} for none */ - public String getWait() { + public java.lang.String getWait() { return wait; } @@ -120,7 +120,7 @@ public String getWait() { * Output only. How long the operation will be paused. * @param wait wait or {@code null} for none */ - public RetryAttempt setWait(String wait) { + public RetryAttempt setWait(java.lang.String wait) { this.wait = wait; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Rollout.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Rollout.java index 0f2e206976d..3285900b7fa 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Rollout.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Rollout.java @@ -58,7 +58,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String approveTime; + private java.lang.String approveTime; /** * Output only. Name of the `ControllerRollout`. Format is `projects/{project}/locations/{location @@ -73,14 +73,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Time at which the `Rollout` finished deploying. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deployEndTime; + private java.lang.String deployEndTime; /** * Output only. The reason this rollout failed. This will always be unspecified while the rollout @@ -95,7 +95,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deployStartTime; + private java.lang.String deployStartTime; /** * Output only. The resource name of the Cloud Build `Build` object that is used to deploy the @@ -117,7 +117,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String enqueueTime; + private java.lang.String enqueueTime; /** * This checksum is computed by the server based on the value of other fields, and may be sent on @@ -270,7 +270,7 @@ public Rollout setApprovalState(java.lang.String approvalState) { * Output only. Time at which the `Rollout` was approved. * @return value or {@code null} for none */ - public String getApproveTime() { + public java.lang.String getApproveTime() { return approveTime; } @@ -278,7 +278,7 @@ public String getApproveTime() { * Output only. Time at which the `Rollout` was approved. * @param approveTime approveTime or {@code null} for none */ - public Rollout setApproveTime(String approveTime) { + public Rollout setApproveTime(java.lang.String approveTime) { this.approveTime = approveTime; return this; } @@ -306,7 +306,7 @@ public Rollout setControllerRollout(java.lang.String controllerRollout) { * Output only. Time at which the `Rollout` was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -314,7 +314,7 @@ public String getCreateTime() { * Output only. Time at which the `Rollout` was created. * @param createTime createTime or {@code null} for none */ - public Rollout setCreateTime(String createTime) { + public Rollout setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -323,7 +323,7 @@ public Rollout setCreateTime(String createTime) { * Output only. Time at which the `Rollout` finished deploying. * @return value or {@code null} for none */ - public String getDeployEndTime() { + public java.lang.String getDeployEndTime() { return deployEndTime; } @@ -331,7 +331,7 @@ public String getDeployEndTime() { * Output only. Time at which the `Rollout` finished deploying. * @param deployEndTime deployEndTime or {@code null} for none */ - public Rollout setDeployEndTime(String deployEndTime) { + public Rollout setDeployEndTime(java.lang.String deployEndTime) { this.deployEndTime = deployEndTime; return this; } @@ -359,7 +359,7 @@ public Rollout setDeployFailureCause(java.lang.String deployFailureCause) { * Output only. Time at which the `Rollout` started deploying. * @return value or {@code null} for none */ - public String getDeployStartTime() { + public java.lang.String getDeployStartTime() { return deployStartTime; } @@ -367,7 +367,7 @@ public String getDeployStartTime() { * Output only. Time at which the `Rollout` started deploying. * @param deployStartTime deployStartTime or {@code null} for none */ - public Rollout setDeployStartTime(String deployStartTime) { + public Rollout setDeployStartTime(java.lang.String deployStartTime) { this.deployStartTime = deployStartTime; return this; } @@ -412,7 +412,7 @@ public Rollout setDescription(java.lang.String description) { * Output only. Time at which the `Rollout` was enqueued. * @return value or {@code null} for none */ - public String getEnqueueTime() { + public java.lang.String getEnqueueTime() { return enqueueTime; } @@ -420,7 +420,7 @@ public String getEnqueueTime() { * Output only. Time at which the `Rollout` was enqueued. * @param enqueueTime enqueueTime or {@code null} for none */ - public Rollout setEnqueueTime(String enqueueTime) { + public Rollout setEnqueueTime(java.lang.String enqueueTime) { this.enqueueTime = enqueueTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SetIamPolicyRequest.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SetIamPolicyRequest.java index 7a964b8c6bd..5024fb8c234 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SetIamPolicyRequest.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SetIamPolicyRequest.java @@ -45,7 +45,7 @@ public final class SetIamPolicyRequest extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is @@ -74,7 +74,7 @@ public SetIamPolicyRequest setPolicy(Policy policy) { * "bindings, etag"` * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -84,7 +84,7 @@ public String getUpdateMask() { * "bindings, etag"` * @param updateMask updateMask or {@code null} for none */ - public SetIamPolicyRequest setUpdateMask(String updateMask) { + public SetIamPolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldSupportedCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldSupportedCondition.java index 9ae6d3d8c48..a54e003db8c 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldSupportedCondition.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldSupportedCondition.java @@ -35,7 +35,7 @@ public final class SkaffoldSupportedCondition extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maintenanceModeTime; + private java.lang.String maintenanceModeTime; /** * The Skaffold support state for this release's version of Skaffold. @@ -56,13 +56,13 @@ public final class SkaffoldSupportedCondition extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String supportExpirationTime; + private java.lang.String supportExpirationTime; /** * The time at which this release's version of Skaffold will enter maintenance mode. * @return value or {@code null} for none */ - public String getMaintenanceModeTime() { + public java.lang.String getMaintenanceModeTime() { return maintenanceModeTime; } @@ -70,7 +70,7 @@ public String getMaintenanceModeTime() { * The time at which this release's version of Skaffold will enter maintenance mode. * @param maintenanceModeTime maintenanceModeTime or {@code null} for none */ - public SkaffoldSupportedCondition setMaintenanceModeTime(String maintenanceModeTime) { + public SkaffoldSupportedCondition setMaintenanceModeTime(java.lang.String maintenanceModeTime) { this.maintenanceModeTime = maintenanceModeTime; return this; } @@ -113,7 +113,7 @@ public SkaffoldSupportedCondition setStatus(java.lang.Boolean status) { * The time at which this release's version of Skaffold will no longer be supported. * @return value or {@code null} for none */ - public String getSupportExpirationTime() { + public java.lang.String getSupportExpirationTime() { return supportExpirationTime; } @@ -121,7 +121,7 @@ public String getSupportExpirationTime() { * The time at which this release's version of Skaffold will no longer be supported. * @param supportExpirationTime supportExpirationTime or {@code null} for none */ - public SkaffoldSupportedCondition setSupportExpirationTime(String supportExpirationTime) { + public SkaffoldSupportedCondition setSupportExpirationTime(java.lang.String supportExpirationTime) { this.supportExpirationTime = supportExpirationTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldVersion.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldVersion.java index 1d7cbe317c3..17670a7c21d 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldVersion.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/SkaffoldVersion.java @@ -34,7 +34,7 @@ public final class SkaffoldVersion extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maintenanceModeTime; + private java.lang.String maintenanceModeTime; /** * Date when this version is expected to no longer be supported. @@ -48,7 +48,7 @@ public final class SkaffoldVersion extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String supportExpirationTime; + private java.lang.String supportExpirationTime; /** * Release version number. For example, "1.20.3". @@ -61,7 +61,7 @@ public final class SkaffoldVersion extends com.google.api.client.json.GenericJso * The time at which this version of Skaffold will enter maintenance mode. * @return value or {@code null} for none */ - public String getMaintenanceModeTime() { + public java.lang.String getMaintenanceModeTime() { return maintenanceModeTime; } @@ -69,7 +69,7 @@ public String getMaintenanceModeTime() { * The time at which this version of Skaffold will enter maintenance mode. * @param maintenanceModeTime maintenanceModeTime or {@code null} for none */ - public SkaffoldVersion setMaintenanceModeTime(String maintenanceModeTime) { + public SkaffoldVersion setMaintenanceModeTime(java.lang.String maintenanceModeTime) { this.maintenanceModeTime = maintenanceModeTime; return this; } @@ -95,7 +95,7 @@ public SkaffoldVersion setSupportEndDate(Date supportEndDate) { * The time at which this version of Skaffold will no longer be supported. * @return value or {@code null} for none */ - public String getSupportExpirationTime() { + public java.lang.String getSupportExpirationTime() { return supportExpirationTime; } @@ -103,7 +103,7 @@ public String getSupportExpirationTime() { * The time at which this version of Skaffold will no longer be supported. * @param supportExpirationTime supportExpirationTime or {@code null} for none */ - public SkaffoldVersion setSupportExpirationTime(String supportExpirationTime) { + public SkaffoldVersion setSupportExpirationTime(java.lang.String supportExpirationTime) { this.supportExpirationTime = supportExpirationTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Standard.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Standard.java index c0147c977d9..8e5dcb33495 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Standard.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Standard.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class Standard extends com.google.api.client.json.GenericJson { - /** - * Optional. Configuration for the analysis job. If this is not configured, the analysis job will - * not be present. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Analysis analysis; - /** * Optional. Configuration for the postdeploy job. If this is not configured, the postdeploy job * will not be present. @@ -60,32 +52,6 @@ public final class Standard extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean verify; - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Verify verifyConfig; - - /** - * Optional. Configuration for the analysis job. If this is not configured, the analysis job will - * not be present. - * @return value or {@code null} for none - */ - public Analysis getAnalysis() { - return analysis; - } - - /** - * Optional. Configuration for the analysis job. If this is not configured, the analysis job will - * not be present. - * @param analysis analysis or {@code null} for none - */ - public Standard setAnalysis(Analysis analysis) { - this.analysis = analysis; - return this; - } - /** * Optional. Configuration for the postdeploy job. If this is not configured, the postdeploy job * will not be present. @@ -141,23 +107,6 @@ public Standard setVerify(java.lang.Boolean verify) { return this; } - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * @return value or {@code null} for none - */ - public Verify getVerifyConfig() { - return verifyConfig; - } - - /** - * Optional. Configuration for the verify job. Cannot be set if `verify` is set to true. - * @param verifyConfig verifyConfig or {@code null} for none - */ - public Standard setVerifyConfig(Verify verifyConfig) { - this.verifyConfig = verifyConfig; - return this; - } - @Override public Standard set(String fieldName, Object value) { return (Standard) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Target.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Target.java index 737c70d3642..147114e51c0 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Target.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Target.java @@ -70,7 +70,7 @@ public final class Target extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Information specifying a Custom Target. @@ -187,7 +187,7 @@ public final class Target extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. User annotations. These attributes can only be set and used by the user, and not by @@ -260,7 +260,7 @@ public Target setAssociatedEntities(java.util.Map as * Output only. Time at which the `Target` was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -268,7 +268,7 @@ public String getCreateTime() { * Output only. Time at which the `Target` was created. * @param createTime createTime or {@code null} for none */ - public Target setCreateTime(String createTime) { + public Target setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -524,7 +524,7 @@ public Target setUid(java.lang.String uid) { * Output only. Most recent time at which the `Target` was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -532,7 +532,7 @@ public String getUpdateTime() { * Output only. Most recent time at which the `Target` was updated. * @param updateTime updateTime or {@code null} for none */ - public Target setUpdateTime(String updateTime) { + public Target setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TargetsPresentCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TargetsPresentCondition.java index 559715ffb4f..bf571533258 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TargetsPresentCondition.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TargetsPresentCondition.java @@ -50,7 +50,7 @@ public final class TargetsPresentCondition extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The list of Target names that do not exist. For example, @@ -92,7 +92,7 @@ public TargetsPresentCondition setStatus(java.lang.Boolean status) { * Last time the condition was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -100,7 +100,7 @@ public String getUpdateTime() { * Last time the condition was updated. * @param updateTime updateTime or {@code null} for none */ - public TargetsPresentCondition setUpdateTime(String updateTime) { + public TargetsPresentCondition setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java index 3a43d8ff5fc..5bb5901b778 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java @@ -35,7 +35,7 @@ public final class TimedPromoteReleaseCondition extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String nextPromotionTime; + private java.lang.String nextPromotionTime; /** * Output only. A list of targets involved in the upcoming timed promotion(s). @@ -54,7 +54,7 @@ public final class TimedPromoteReleaseCondition extends com.google.api.client.js * Output only. When the next scheduled promotion(s) will occur. * @return value or {@code null} for none */ - public String getNextPromotionTime() { + public java.lang.String getNextPromotionTime() { return nextPromotionTime; } @@ -62,7 +62,7 @@ public String getNextPromotionTime() { * Output only. When the next scheduled promotion(s) will occur. * @param nextPromotionTime nextPromotionTime or {@code null} for none */ - public TimedPromoteReleaseCondition setNextPromotionTime(String nextPromotionTime) { + public TimedPromoteReleaseCondition setNextPromotionTime(java.lang.String nextPromotionTime) { this.nextPromotionTime = nextPromotionTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ToolVersionSupportedCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ToolVersionSupportedCondition.java index 3572f2bb1a7..adcc6cc0a10 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ToolVersionSupportedCondition.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/ToolVersionSupportedCondition.java @@ -35,7 +35,7 @@ public final class ToolVersionSupportedCondition extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maintenanceModeTime; + private java.lang.String maintenanceModeTime; /** * Output only. True if the version of Tool used by this release is supported. @@ -49,7 +49,7 @@ public final class ToolVersionSupportedCondition extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String supportExpirationTime; + private java.lang.String supportExpirationTime; /** * Output only. The tool support state for this release's version of the tool. @@ -62,7 +62,7 @@ public final class ToolVersionSupportedCondition extends com.google.api.client.j * Output only. The time at which this release's version of the tool will enter maintenance mode. * @return value or {@code null} for none */ - public String getMaintenanceModeTime() { + public java.lang.String getMaintenanceModeTime() { return maintenanceModeTime; } @@ -70,7 +70,7 @@ public String getMaintenanceModeTime() { * Output only. The time at which this release's version of the tool will enter maintenance mode. * @param maintenanceModeTime maintenanceModeTime or {@code null} for none */ - public ToolVersionSupportedCondition setMaintenanceModeTime(String maintenanceModeTime) { + public ToolVersionSupportedCondition setMaintenanceModeTime(java.lang.String maintenanceModeTime) { this.maintenanceModeTime = maintenanceModeTime; return this; } @@ -96,7 +96,7 @@ public ToolVersionSupportedCondition setStatus(java.lang.Boolean status) { * Output only. The time at which this release's version of the tool will no longer be supported. * @return value or {@code null} for none */ - public String getSupportExpirationTime() { + public java.lang.String getSupportExpirationTime() { return supportExpirationTime; } @@ -104,7 +104,7 @@ public String getSupportExpirationTime() { * Output only. The time at which this release's version of the tool will no longer be supported. * @param supportExpirationTime supportExpirationTime or {@code null} for none */ - public ToolVersionSupportedCondition setSupportExpirationTime(String supportExpirationTime) { + public ToolVersionSupportedCondition setSupportExpirationTime(java.lang.String supportExpirationTime) { this.supportExpirationTime = supportExpirationTime; return this; } diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJob.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJob.java index 6b2cc2a058e..3cdf2387c66 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJob.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJob.java @@ -29,36 +29,6 @@ @SuppressWarnings("javadoc") public final class VerifyJob extends com.google.api.client.json.GenericJson { - /** - * Output only. The tasks that are executed as part of the verify Job. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tasks; - - static { - // hack to force ProGuard to consider Task used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(Task.class); - } - - /** - * Output only. The tasks that are executed as part of the verify Job. - * @return value or {@code null} for none - */ - public java.util.List getTasks() { - return tasks; - } - - /** - * Output only. The tasks that are executed as part of the verify Job. - * @param tasks tasks or {@code null} for none - */ - public VerifyJob setTasks(java.util.List tasks) { - this.tasks = tasks; - return this; - } - @Override public VerifyJob set(String fieldName, Object value) { return (VerifyJob) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJobRun.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJobRun.java index 5327328f43b..1f2d37b7e2b 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJobRun.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/VerifyJobRun.java @@ -67,13 +67,6 @@ public final class VerifyJobRun extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String failureMessage; - /** - * Output only. Metadata containing information about the verify `JobRun`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VerifyJobRunMetadata metadata; - /** * Output only. URI of a directory containing the verify artifacts. This contains the Skaffold * event log. @@ -165,23 +158,6 @@ public VerifyJobRun setFailureMessage(java.lang.String failureMessage) { return this; } - /** - * Output only. Metadata containing information about the verify `JobRun`. - * @return value or {@code null} for none - */ - public VerifyJobRunMetadata getMetadata() { - return metadata; - } - - /** - * Output only. Metadata containing information about the verify `JobRun`. - * @param metadata metadata or {@code null} for none - */ - public VerifyJobRun setMetadata(VerifyJobRunMetadata metadata) { - this.metadata = metadata; - return this; - } - @Override public VerifyJobRun set(String fieldName, Object value) { return (VerifyJobRun) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml b/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml index b114fa40abb..578ffd226d6 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-clouddeploy - v1-rev20260325-2.0.0 - Cloud Deploy API v1-rev20260325-2.0.0 + v1-rev20260128-2.0.0 + Cloud Deploy API v1-rev20260128-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudfunctions/v1/2.0.0/README.md b/clients/google-api-services-cloudfunctions/v1/2.0.0/README.md index df54a066415..eeb27a42cd7 100644 --- a/clients/google-api-services-cloudfunctions/v1/2.0.0/README.md +++ b/clients/google-api-services-cloudfunctions/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-cloudfunctions - v1-rev20260324-2.0.0 + v1-rev20260129-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudfunctions:v1-rev20260324-2.0.0' + implementation 'com.google.apis:google-api-services-cloudfunctions:v1-rev20260129-2.0.0' } ``` diff --git a/clients/google-api-services-cloudfunctions/v1/2.0.0/com/google/api/services/cloudfunctions/v1/CloudFunctions.java b/clients/google-api-services-cloudfunctions/v1/2.0.0/com/google/api/services/cloudfunctions/v1/CloudFunctions.java index 64c57aaef49..99eaba501f7 100644 --- a/clients/google-api-services-cloudfunctions/v1/2.0.0/com/google/api/services/cloudfunctions/v1/CloudFunctions.java +++ b/clients/google-api-services-cloudfunctions/v1/2.0.0/com/google/api/services/cloudfunctions/v1/CloudFunctions.java @@ -544,14 +544,10 @@ public Locations locations() { public class Locations { /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -575,15 +571,10 @@ public class List extends CloudFunctionsRequestcom.google.apis google-api-services-cloudfunctions - v1-rev20260324-2.0.0 - Cloud Functions API v1-rev20260324-2.0.0 + v1-rev20260129-2.0.0 + Cloud Functions API v1-rev20260129-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/README.md b/clients/google-api-services-cloudkms/v1/2.0.0/README.md index 585a06d57e9..9d7c946f59b 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/README.md +++ b/clients/google-api-services-cloudkms/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-cloudkms - v1-rev20260319-2.0.0 + v1-rev20260219-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20260319-2.0.0' + implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20260219-2.0.0' } ``` diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java index 8983b505a7e..0700e3e369e 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java @@ -309,7 +309,7 @@ public GetAutokeyConfig set(String parameterName, Object value) { * This request holds the parameters needed by the cloudkms server. After setting any optional * parameters, call the {@link GetKajPolicyConfig#execute()} method to invoke the remote operation. * - * @param name Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + * @param name Required. The name of the KeyAccessJustificationsPolicyConfig to get. * @return the request */ public GetKajPolicyConfig getKajPolicyConfig(java.lang.String name) throws java.io.IOException { @@ -336,7 +336,7 @@ public class GetKajPolicyConfig extends CloudKMSRequest * - * @param name Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + * @param name Required. The name of the KeyAccessJustificationsPolicyConfig to get. * @since 1.13 */ protected GetKajPolicyConfig(java.lang.String name) { @@ -414,17 +414,17 @@ public GetKajPolicyConfig setUploadProtocol(java.lang.String uploadProtocol) { return (GetKajPolicyConfig) super.setUploadProtocol(uploadProtocol); } - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */ + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ public java.lang.String getName() { return name; } - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */ + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ public GetKajPolicyConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -585,16 +585,16 @@ public UpdateAutokeyConfig setName(java.lang.String name) { /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ - public UpdateAutokeyConfig setUpdateMask(String updateMask) { + public UpdateAutokeyConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -613,8 +613,8 @@ public UpdateAutokeyConfig set(String parameterName, Object value) { * parameters, call the {@link UpdateKajPolicyConfig#execute()} method to invoke the remote * operation. * - * @param name Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - * of "{organizations|folders|projects}/kajPolicyConfig". + * @param name Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyAccessJustificationsPolicyConfig} * @return the request */ @@ -642,8 +642,8 @@ public class UpdateKajPolicyConfig extends CloudKMSRequest * - * @param name Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - * of "{organizations|folders|projects}/kajPolicyConfig". + * @param name Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyAccessJustificationsPolicyConfig} * @since 1.13 */ @@ -713,22 +713,22 @@ public UpdateKajPolicyConfig setUploadProtocol(java.lang.String uploadProtocol) } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in - * the format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - of "{organizations|folders|projects}/kajPolicyConfig". + /** Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + "{organizations|folders|projects}/kajPolicyConfig". */ public java.lang.String getName() { return name; } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in - * the format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". */ public UpdateKajPolicyConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -740,18 +740,18 @@ public UpdateKajPolicyConfig setName(java.lang.String name) { return this; } - /** Optional. Specifies the list of fields to update. */ + /** Optional. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; - /** Optional. Specifies the list of fields to update. + /** Optional. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } - /** Optional. Specifies the list of fields to update. */ - public UpdateKajPolicyConfig setUpdateMask(String updateMask) { + /** Optional. The list of fields to update. */ + public UpdateKajPolicyConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -792,7 +792,7 @@ public class Organizations { * This request holds the parameters needed by the cloudkms server. After setting any optional * parameters, call the {@link GetKajPolicyConfig#execute()} method to invoke the remote operation. * - * @param name Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + * @param name Required. The name of the KeyAccessJustificationsPolicyConfig to get. * @return the request */ public GetKajPolicyConfig getKajPolicyConfig(java.lang.String name) throws java.io.IOException { @@ -819,7 +819,7 @@ public class GetKajPolicyConfig extends CloudKMSRequest * - * @param name Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + * @param name Required. The name of the KeyAccessJustificationsPolicyConfig to get. * @since 1.13 */ protected GetKajPolicyConfig(java.lang.String name) { @@ -897,17 +897,17 @@ public GetKajPolicyConfig setUploadProtocol(java.lang.String uploadProtocol) { return (GetKajPolicyConfig) super.setUploadProtocol(uploadProtocol); } - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */ + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ public java.lang.String getName() { return name; } - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */ + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ public GetKajPolicyConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -932,8 +932,8 @@ public GetKajPolicyConfig set(String parameterName, Object value) { * parameters, call the {@link UpdateKajPolicyConfig#execute()} method to invoke the remote * operation. * - * @param name Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - * of "{organizations|folders|projects}/kajPolicyConfig". + * @param name Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyAccessJustificationsPolicyConfig} * @return the request */ @@ -961,8 +961,8 @@ public class UpdateKajPolicyConfig extends CloudKMSRequest * - * @param name Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - * of "{organizations|folders|projects}/kajPolicyConfig". + * @param name Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyAccessJustificationsPolicyConfig} * @since 1.13 */ @@ -1032,22 +1032,22 @@ public UpdateKajPolicyConfig setUploadProtocol(java.lang.String uploadProtocol) } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in - * the format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - of "{organizations|folders|projects}/kajPolicyConfig". + /** Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + "{organizations|folders|projects}/kajPolicyConfig". */ public java.lang.String getName() { return name; } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in - * the format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". */ public UpdateKajPolicyConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -1059,18 +1059,18 @@ public UpdateKajPolicyConfig setName(java.lang.String name) { return this; } - /** Optional. Specifies the list of fields to update. */ + /** Optional. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; - /** Optional. Specifies the list of fields to update. + /** Optional. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } - /** Optional. Specifies the list of fields to update. */ - public UpdateKajPolicyConfig setUpdateMask(String updateMask) { + /** Optional. The list of fields to update. */ + public UpdateKajPolicyConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -1259,7 +1259,7 @@ public GetAutokeyConfig set(String parameterName, Object value) { * This request holds the parameters needed by the cloudkms server. After setting any optional * parameters, call the {@link GetKajPolicyConfig#execute()} method to invoke the remote operation. * - * @param name Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + * @param name Required. The name of the KeyAccessJustificationsPolicyConfig to get. * @return the request */ public GetKajPolicyConfig getKajPolicyConfig(java.lang.String name) throws java.io.IOException { @@ -1286,7 +1286,7 @@ public class GetKajPolicyConfig extends CloudKMSRequest * - * @param name Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + * @param name Required. The name of the KeyAccessJustificationsPolicyConfig to get. * @since 1.13 */ protected GetKajPolicyConfig(java.lang.String name) { @@ -1364,17 +1364,17 @@ public GetKajPolicyConfig setUploadProtocol(java.lang.String uploadProtocol) { return (GetKajPolicyConfig) super.setUploadProtocol(uploadProtocol); } - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */ + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ public java.lang.String getName() { return name; } - /** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */ + /** Required. The name of the KeyAccessJustificationsPolicyConfig to get. */ public GetKajPolicyConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -1554,7 +1554,7 @@ public ShowEffectiveAutokeyConfig set(String parameterName, Object value) { * parameters, call the {@link ShowEffectiveKeyAccessJustificationsEnrollmentConfig#execute()} * method to invoke the remote operation. * - * @param project Required. Specifies the number or id of the project to get the effective + * @param project Required. The number or id of the project to get the effective * KeyAccessJustificationsEnrollmentConfig for. * @return the request */ @@ -1585,7 +1585,7 @@ public class ShowEffectiveKeyAccessJustificationsEnrollmentConfig extends CloudK * e.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize * this instance immediately after invoking the constructor.

* - * @param project Required. Specifies the number or id of the project to get the effective + * @param project Required. The number or id of the project to get the effective * KeyAccessJustificationsEnrollmentConfig for. * @since 1.13 */ @@ -1665,13 +1665,13 @@ public ShowEffectiveKeyAccessJustificationsEnrollmentConfig setUploadProtocol(ja } /** - * Required. Specifies the number or id of the project to get the effective + * Required. The number or id of the project to get the effective * KeyAccessJustificationsEnrollmentConfig for. */ @com.google.api.client.util.Key private java.lang.String project; - /** Required. Specifies the number or id of the project to get the effective + /** Required. The number or id of the project to get the effective KeyAccessJustificationsEnrollmentConfig for. */ public java.lang.String getProject() { @@ -1679,7 +1679,7 @@ public java.lang.String getProject() { } /** - * Required. Specifies the number or id of the project to get the effective + * Required. The number or id of the project to get the effective * KeyAccessJustificationsEnrollmentConfig for. */ public ShowEffectiveKeyAccessJustificationsEnrollmentConfig setProject(java.lang.String project) { @@ -1707,8 +1707,8 @@ public ShowEffectiveKeyAccessJustificationsEnrollmentConfig set(String parameter * parameters, call the {@link ShowEffectiveKeyAccessJustificationsPolicyConfig#execute()} method to * invoke the remote operation. * - * @param project Required. Specifies the number or id of the project to get the effective - * KeyAccessJustificationsPolicyConfig. In the format of "projects/{|}" + * @param project Required. The number or id of the project to get the effective KeyAccessJustificationsPolicyConfig. + * In the format of "projects/{|}" * @return the request */ public ShowEffectiveKeyAccessJustificationsPolicyConfig showEffectiveKeyAccessJustificationsPolicyConfig(java.lang.String project) throws java.io.IOException { @@ -1737,8 +1737,8 @@ public class ShowEffectiveKeyAccessJustificationsPolicyConfig extends CloudKMSRe * i.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this * instance immediately after invoking the constructor.

* - * @param project Required. Specifies the number or id of the project to get the effective - * KeyAccessJustificationsPolicyConfig. In the format of "projects/{|}" + * @param project Required. The number or id of the project to get the effective KeyAccessJustificationsPolicyConfig. + * In the format of "projects/{|}" * @since 1.13 */ protected ShowEffectiveKeyAccessJustificationsPolicyConfig(java.lang.String project) { @@ -1817,21 +1817,21 @@ public ShowEffectiveKeyAccessJustificationsPolicyConfig setUploadProtocol(java.l } /** - * Required. Specifies the number or id of the project to get the effective + * Required. The number or id of the project to get the effective * KeyAccessJustificationsPolicyConfig. In the format of "projects/{|}" */ @com.google.api.client.util.Key private java.lang.String project; - /** Required. Specifies the number or id of the project to get the effective - KeyAccessJustificationsPolicyConfig. In the format of "projects/{|}" + /** Required. The number or id of the project to get the effective KeyAccessJustificationsPolicyConfig. + In the format of "projects/{|}" */ public java.lang.String getProject() { return project; } /** - * Required. Specifies the number or id of the project to get the effective + * Required. The number or id of the project to get the effective * KeyAccessJustificationsPolicyConfig. In the format of "projects/{|}" */ public ShowEffectiveKeyAccessJustificationsPolicyConfig setProject(java.lang.String project) { @@ -1994,16 +1994,16 @@ public UpdateAutokeyConfig setName(java.lang.String name) { /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ - public UpdateAutokeyConfig setUpdateMask(String updateMask) { + public UpdateAutokeyConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -2022,8 +2022,8 @@ public UpdateAutokeyConfig set(String parameterName, Object value) { * parameters, call the {@link UpdateKajPolicyConfig#execute()} method to invoke the remote * operation. * - * @param name Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - * of "{organizations|folders|projects}/kajPolicyConfig". + * @param name Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyAccessJustificationsPolicyConfig} * @return the request */ @@ -2051,8 +2051,8 @@ public class UpdateKajPolicyConfig extends CloudKMSRequest * - * @param name Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - * of "{organizations|folders|projects}/kajPolicyConfig". + * @param name Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyAccessJustificationsPolicyConfig} * @since 1.13 */ @@ -2122,22 +2122,22 @@ public UpdateKajPolicyConfig setUploadProtocol(java.lang.String uploadProtocol) } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in - * the format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format - of "{organizations|folders|projects}/kajPolicyConfig". + /** Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + "{organizations|folders|projects}/kajPolicyConfig". */ public java.lang.String getName() { return name; } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in - * the format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". */ public UpdateKajPolicyConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -2149,18 +2149,18 @@ public UpdateKajPolicyConfig setName(java.lang.String name) { return this; } - /** Optional. Specifies the list of fields to update. */ + /** Optional. The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; - /** Optional. Specifies the list of fields to update. + /** Optional. The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } - /** Optional. Specifies the list of fields to update. */ - public UpdateKajPolicyConfig setUpdateMask(String updateMask) { + /** Optional. The list of fields to update. */ + public UpdateKajPolicyConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -2609,14 +2609,10 @@ public GetEkmConfig set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -2640,15 +2636,10 @@ public class List extends CloudKMSRequest This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a @@ -32,21 +31,21 @@ public final class KeyAccessJustificationsEnrollmentConfig extends com.google.api.client.json.GenericJson { /** - * Indicates whether the project has KAJ logging enabled. + * Whether the project has KAJ logging enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean auditLogging; /** - * Indicates whether the project is enrolled in KAJ policy enforcement. + * Whether the project is enrolled in KAJ policy enforcement. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean policyEnforcement; /** - * Indicates whether the project has KAJ logging enabled. + * Whether the project has KAJ logging enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAuditLogging() { @@ -54,7 +53,7 @@ public java.lang.Boolean getAuditLogging() { } /** - * Indicates whether the project has KAJ logging enabled. + * Whether the project has KAJ logging enabled. * @param auditLogging auditLogging or {@code null} for none */ public KeyAccessJustificationsEnrollmentConfig setAuditLogging(java.lang.Boolean auditLogging) { @@ -63,7 +62,7 @@ public KeyAccessJustificationsEnrollmentConfig setAuditLogging(java.lang.Boolean } /** - * Indicates whether the project is enrolled in KAJ policy enforcement. + * Whether the project is enrolled in KAJ policy enforcement. * @return value or {@code null} for none */ public java.lang.Boolean getPolicyEnforcement() { @@ -71,7 +70,7 @@ public java.lang.Boolean getPolicyEnforcement() { } /** - * Indicates whether the project is enrolled in KAJ policy enforcement. + * Whether the project is enrolled in KAJ policy enforcement. * @param policyEnforcement policyEnforcement or {@code null} for none */ public KeyAccessJustificationsEnrollmentConfig setPolicyEnforcement(java.lang.Boolean policyEnforcement) { diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicy.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicy.java index cd54b141b86..246fcb300e5 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicy.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicy.java @@ -18,8 +18,7 @@ /** * A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, - * decrypt, and sign operations on a CryptoKey or KeyAccessJustificationsPolicyConfig (the default - * Key Access Justifications policy). + * decrypt, and sign operations on a CryptoKey. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a @@ -33,20 +32,16 @@ public final class KeyAccessJustificationsPolicy extends com.google.api.client.json.GenericJson { /** - * The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons - * has a different meaning depending on where this message appears. If this is under - * KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means - * deny-all. + * The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all + * encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List allowedAccessReasons; /** - * The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons - * has a different meaning depending on where this message appears. If this is under - * KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means - * deny-all. + * The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all + * encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail. * @return value or {@code null} for none */ public java.util.List getAllowedAccessReasons() { @@ -54,10 +49,8 @@ public java.util.List getAllowedAccessReasons() { } /** - * The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons - * has a different meaning depending on where this message appears. If this is under - * KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means - * deny-all. + * The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all + * encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail. * @param allowedAccessReasons allowedAccessReasons or {@code null} for none */ public KeyAccessJustificationsPolicy setAllowedAccessReasons(java.util.List allowedAccessReasons) { diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicyConfig.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicyConfig.java index 30fff911151..c4ac231d33d 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicyConfig.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyAccessJustificationsPolicyConfig.java @@ -17,7 +17,7 @@ package com.google.api.services.cloudkms.v1.model; /** - * Represents a singleton configuration for Key Access Justifications policies. + * A singleton configuration for Key Access Justifications policies. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a @@ -31,41 +31,26 @@ public final class KeyAccessJustificationsPolicyConfig extends com.google.api.client.json.GenericJson { /** - * Optional. Specifies the default key access justifications (KAJ) policy used when a CryptoKey is - * created in this folder. This is only used when a Key Access Justifications policy is not - * provided in the CreateCryptoKeyRequest. This overrides any default policies in its ancestry. If - * this field is unset, or is set but contains an empty allowed_access_reasons list, no default - * Key Access Justifications (KAJ) policy configuration is active. In this scenario, all newly - * created keys will default to an "allow-all" policy. + * Optional. The default key access justification policy used when a CryptoKey is created in this + * folder. This is only used when a Key Access Justifications policy is not provided in the + * CreateCryptoKeyRequest. This overrides any default policies in its ancestry. * The value may be {@code null}. */ @com.google.api.client.util.Key private KeyAccessJustificationsPolicy defaultKeyAccessJustificationPolicy; /** - * Output only. Indicates whether this parent resource is available to default policy feature. - * Please consult [the prerequisite of default policy feature](https://cloud.google.com/assured- - * workloads/key-access-justifications/docs/set-default-policy#before) for more details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean defaultPolicyAvailable; - - /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the - * format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * Optional. Specifies the default key access justifications (KAJ) policy used when a CryptoKey is - * created in this folder. This is only used when a Key Access Justifications policy is not - * provided in the CreateCryptoKeyRequest. This overrides any default policies in its ancestry. If - * this field is unset, or is set but contains an empty allowed_access_reasons list, no default - * Key Access Justifications (KAJ) policy configuration is active. In this scenario, all newly - * created keys will default to an "allow-all" policy. + * Optional. The default key access justification policy used when a CryptoKey is created in this + * folder. This is only used when a Key Access Justifications policy is not provided in the + * CreateCryptoKeyRequest. This overrides any default policies in its ancestry. * @return value or {@code null} for none */ public KeyAccessJustificationsPolicy getDefaultKeyAccessJustificationPolicy() { @@ -73,12 +58,9 @@ public KeyAccessJustificationsPolicy getDefaultKeyAccessJustificationPolicy() { } /** - * Optional. Specifies the default key access justifications (KAJ) policy used when a CryptoKey is - * created in this folder. This is only used when a Key Access Justifications policy is not - * provided in the CreateCryptoKeyRequest. This overrides any default policies in its ancestry. If - * this field is unset, or is set but contains an empty allowed_access_reasons list, no default - * Key Access Justifications (KAJ) policy configuration is active. In this scenario, all newly - * created keys will default to an "allow-all" policy. + * Optional. The default key access justification policy used when a CryptoKey is created in this + * folder. This is only used when a Key Access Justifications policy is not provided in the + * CreateCryptoKeyRequest. This overrides any default policies in its ancestry. * @param defaultKeyAccessJustificationPolicy defaultKeyAccessJustificationPolicy or {@code null} for none */ public KeyAccessJustificationsPolicyConfig setDefaultKeyAccessJustificationPolicy(KeyAccessJustificationsPolicy defaultKeyAccessJustificationPolicy) { @@ -87,29 +69,8 @@ public KeyAccessJustificationsPolicyConfig setDefaultKeyAccessJustificationPolic } /** - * Output only. Indicates whether this parent resource is available to default policy feature. - * Please consult [the prerequisite of default policy feature](https://cloud.google.com/assured- - * workloads/key-access-justifications/docs/set-default-policy#before) for more details. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDefaultPolicyAvailable() { - return defaultPolicyAvailable; - } - - /** - * Output only. Indicates whether this parent resource is available to default policy feature. - * Please consult [the prerequisite of default policy feature](https://cloud.google.com/assured- - * workloads/key-access-justifications/docs/set-default-policy#before) for more details. - * @param defaultPolicyAvailable defaultPolicyAvailable or {@code null} for none - */ - public KeyAccessJustificationsPolicyConfig setDefaultPolicyAvailable(java.lang.Boolean defaultPolicyAvailable) { - this.defaultPolicyAvailable = defaultPolicyAvailable; - return this; - } - - /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the - * format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @return value or {@code null} for none */ public java.lang.String getName() { @@ -117,8 +78,8 @@ public java.lang.String getName() { } /** - * Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the - * format of "{organizations|folders|projects}/kajPolicyConfig". + * Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of + * "{organizations|folders|projects}/kajPolicyConfig". * @param name name or {@code null} for none */ public KeyAccessJustificationsPolicyConfig setName(java.lang.String name) { diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyRing.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyRing.java index 7236eceb6b3..0362530aec4 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyRing.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyRing.java @@ -35,7 +35,7 @@ public final class KeyRing extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The resource name for the KeyRing in the format `projects/locations/keyRings`. @@ -48,7 +48,7 @@ public final class KeyRing extends com.google.api.client.json.GenericJson { * Output only. The time at which this KeyRing was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -56,7 +56,7 @@ public String getCreateTime() { * Output only. The time at which this KeyRing was created. * @param createTime createTime or {@code null} for none */ - public KeyRing setCreateTime(String createTime) { + public KeyRing setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/RetiredResource.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/RetiredResource.java index 072acc64732..9c3b45ec7b5 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/RetiredResource.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/RetiredResource.java @@ -38,7 +38,7 @@ public final class RetiredResource extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * Output only. Identifier. The resource name for this RetiredResource in the format @@ -68,7 +68,7 @@ public final class RetiredResource extends com.google.api.client.json.GenericJso * record was created. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -77,7 +77,7 @@ public String getDeleteTime() { * record was created. * @param deleteTime deleteTime or {@code null} for none */ - public RetiredResource setDeleteTime(String deleteTime) { + public RetiredResource setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SetIamPolicyRequest.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SetIamPolicyRequest.java index ece5f6d2f04..eb651857529 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SetIamPolicyRequest.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SetIamPolicyRequest.java @@ -46,7 +46,7 @@ public final class SetIamPolicyRequest extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is @@ -75,7 +75,7 @@ public SetIamPolicyRequest setPolicy(Policy policy) { * "bindings, etag"` * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -85,7 +85,7 @@ public String getUpdateMask() { * "bindings, etag"` * @param updateMask updateMask or {@code null} for none */ - public SetIamPolicyRequest setUpdateMask(String updateMask) { + public SetIamPolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse.java index b7a84d3726d..53ac9308756 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.cloudkms.v1.model; /** - * Represents a response message for + * Response message for * KeyAccessJustificationsConfig.ShowEffectiveKeyAccessJustificationsEnrollmentConfig * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is @@ -32,28 +32,28 @@ public final class ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse extends com.google.api.client.json.GenericJson { /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for external keys. + * The effective KeyAccessJustificationsEnrollmentConfig for external keys. * The value may be {@code null}. */ @com.google.api.client.util.Key private KeyAccessJustificationsEnrollmentConfig externalConfig; /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for hardware keys. + * The effective KeyAccessJustificationsEnrollmentConfig for hardware keys. * The value may be {@code null}. */ @com.google.api.client.util.Key private KeyAccessJustificationsEnrollmentConfig hardwareConfig; /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for software keys. + * The effective KeyAccessJustificationsEnrollmentConfig for software keys. * The value may be {@code null}. */ @com.google.api.client.util.Key private KeyAccessJustificationsEnrollmentConfig softwareConfig; /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for external keys. + * The effective KeyAccessJustificationsEnrollmentConfig for external keys. * @return value or {@code null} for none */ public KeyAccessJustificationsEnrollmentConfig getExternalConfig() { @@ -61,7 +61,7 @@ public KeyAccessJustificationsEnrollmentConfig getExternalConfig() { } /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for external keys. + * The effective KeyAccessJustificationsEnrollmentConfig for external keys. * @param externalConfig externalConfig or {@code null} for none */ public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setExternalConfig(KeyAccessJustificationsEnrollmentConfig externalConfig) { @@ -70,7 +70,7 @@ public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setExternalC } /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for hardware keys. + * The effective KeyAccessJustificationsEnrollmentConfig for hardware keys. * @return value or {@code null} for none */ public KeyAccessJustificationsEnrollmentConfig getHardwareConfig() { @@ -78,7 +78,7 @@ public KeyAccessJustificationsEnrollmentConfig getHardwareConfig() { } /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for hardware keys. + * The effective KeyAccessJustificationsEnrollmentConfig for hardware keys. * @param hardwareConfig hardwareConfig or {@code null} for none */ public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setHardwareConfig(KeyAccessJustificationsEnrollmentConfig hardwareConfig) { @@ -87,7 +87,7 @@ public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setHardwareC } /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for software keys. + * The effective KeyAccessJustificationsEnrollmentConfig for software keys. * @return value or {@code null} for none */ public KeyAccessJustificationsEnrollmentConfig getSoftwareConfig() { @@ -95,7 +95,7 @@ public KeyAccessJustificationsEnrollmentConfig getSoftwareConfig() { } /** - * Contains the effective KeyAccessJustificationsEnrollmentConfig for software keys. + * The effective KeyAccessJustificationsEnrollmentConfig for software keys. * @param softwareConfig softwareConfig or {@code null} for none */ public ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse setSoftwareConfig(KeyAccessJustificationsEnrollmentConfig softwareConfig) { diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsPolicyConfigResponse.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsPolicyConfigResponse.java index 9da5749eb6d..9ca23298ae7 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsPolicyConfigResponse.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ShowEffectiveKeyAccessJustificationsPolicyConfigResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.cloudkms.v1.model; /** - * Represents a response message for + * Response message for * KeyAccessJustificationsConfig.ShowEffectiveKeyAccessJustificationsPolicyConfig. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is @@ -32,14 +32,14 @@ public final class ShowEffectiveKeyAccessJustificationsPolicyConfigResponse extends com.google.api.client.json.GenericJson { /** - * Contains the effective KeyAccessJustificationsPolicyConfig. + * The effective KeyAccessJustificationsPolicyConfig. * The value may be {@code null}. */ @com.google.api.client.util.Key private KeyAccessJustificationsPolicyConfig effectiveKajPolicy; /** - * Contains the effective KeyAccessJustificationsPolicyConfig. + * The effective KeyAccessJustificationsPolicyConfig. * @return value or {@code null} for none */ public KeyAccessJustificationsPolicyConfig getEffectiveKajPolicy() { @@ -47,7 +47,7 @@ public KeyAccessJustificationsPolicyConfig getEffectiveKajPolicy() { } /** - * Contains the effective KeyAccessJustificationsPolicyConfig. + * The effective KeyAccessJustificationsPolicyConfig. * @param effectiveKajPolicy effectiveKajPolicy or {@code null} for none */ public ShowEffectiveKeyAccessJustificationsPolicyConfigResponse setEffectiveKajPolicy(KeyAccessJustificationsPolicyConfig effectiveKajPolicy) { diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstance.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstance.java index ed24501dd14..2bbdba914b1 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstance.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstance.java @@ -37,14 +37,14 @@ public final class SingleTenantHsmInstance extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time at which the SingleTenantHsmInstance was deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * Output only. The time at which the instance will be automatically disabled if not refreshed. @@ -54,7 +54,7 @@ public final class SingleTenantHsmInstance extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String disableTime; + private java.lang.String disableTime; /** * Identifier. The resource name for this SingleTenantHsmInstance in the format @@ -84,13 +84,13 @@ public final class SingleTenantHsmInstance extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String unrefreshedDurationUntilDisable; + private java.lang.String unrefreshedDurationUntilDisable; /** * Output only. The time at which the SingleTenantHsmInstance was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -98,7 +98,7 @@ public String getCreateTime() { * Output only. The time at which the SingleTenantHsmInstance was created. * @param createTime createTime or {@code null} for none */ - public SingleTenantHsmInstance setCreateTime(String createTime) { + public SingleTenantHsmInstance setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -107,7 +107,7 @@ public SingleTenantHsmInstance setCreateTime(String createTime) { * Output only. The time at which the SingleTenantHsmInstance was deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -115,7 +115,7 @@ public String getDeleteTime() { * Output only. The time at which the SingleTenantHsmInstance was deleted. * @param deleteTime deleteTime or {@code null} for none */ - public SingleTenantHsmInstance setDeleteTime(String deleteTime) { + public SingleTenantHsmInstance setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -127,7 +127,7 @@ public SingleTenantHsmInstance setDeleteTime(String deleteTime) { * before this time otherwise the SingleTenantHsmInstance will become disabled. * @return value or {@code null} for none */ - public String getDisableTime() { + public java.lang.String getDisableTime() { return disableTime; } @@ -138,7 +138,7 @@ public String getDisableTime() { * before this time otherwise the SingleTenantHsmInstance will become disabled. * @param disableTime disableTime or {@code null} for none */ - public SingleTenantHsmInstance setDisableTime(String disableTime) { + public SingleTenantHsmInstance setDisableTime(java.lang.String disableTime) { this.disableTime = disableTime; return this; } @@ -201,7 +201,7 @@ public SingleTenantHsmInstance setState(java.lang.String state) { * automatically disabled. This will have a value of 120 days. * @return value or {@code null} for none */ - public String getUnrefreshedDurationUntilDisable() { + public java.lang.String getUnrefreshedDurationUntilDisable() { return unrefreshedDurationUntilDisable; } @@ -210,7 +210,7 @@ public String getUnrefreshedDurationUntilDisable() { * automatically disabled. This will have a value of 120 days. * @param unrefreshedDurationUntilDisable unrefreshedDurationUntilDisable or {@code null} for none */ - public SingleTenantHsmInstance setUnrefreshedDurationUntilDisable(String unrefreshedDurationUntilDisable) { + public SingleTenantHsmInstance setUnrefreshedDurationUntilDisable(java.lang.String unrefreshedDurationUntilDisable) { this.unrefreshedDurationUntilDisable = unrefreshedDurationUntilDisable; return this; } diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstanceProposal.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstanceProposal.java index 985b407a0c7..c9411774043 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstanceProposal.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/SingleTenantHsmInstanceProposal.java @@ -44,7 +44,7 @@ public final class SingleTenantHsmInstanceProposal extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Delete the SingleTenantHsmInstance. Deleting a SingleTenantHsmInstance will make all CryptoKeys @@ -60,7 +60,7 @@ public final class SingleTenantHsmInstanceProposal extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * Disable the SingleTenantHsmInstance. The SingleTenantHsmInstance must be in the ACTIVE state to @@ -83,7 +83,7 @@ public final class SingleTenantHsmInstanceProposal extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Output only. The root cause of the most recent failure. Only present if state is FAILED. @@ -107,7 +107,7 @@ public final class SingleTenantHsmInstanceProposal extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String purgeTime; + private java.lang.String purgeTime; /** * Output only. The quorum approval parameters for the SingleTenantHsmInstanceProposal. @@ -164,7 +164,7 @@ public final class SingleTenantHsmInstanceProposal extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * Add a quorum member to the SingleTenantHsmInstance. This will increase the total_approver_count @@ -189,7 +189,7 @@ public SingleTenantHsmInstanceProposal setAddQuorumMember(AddQuorumMember addQuo * Output only. The time at which the SingleTenantHsmInstanceProposal was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -197,7 +197,7 @@ public String getCreateTime() { * Output only. The time at which the SingleTenantHsmInstanceProposal was created. * @param createTime createTime or {@code null} for none */ - public SingleTenantHsmInstanceProposal setCreateTime(String createTime) { + public SingleTenantHsmInstanceProposal setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -227,7 +227,7 @@ public SingleTenantHsmInstanceProposal setDeleteSingleTenantHsmInstance(DeleteSi * Output only. The time at which the SingleTenantHsmInstanceProposal was deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -235,7 +235,7 @@ public String getDeleteTime() { * Output only. The time at which the SingleTenantHsmInstanceProposal was deleted. * @param deleteTime deleteTime or {@code null} for none */ - public SingleTenantHsmInstanceProposal setDeleteTime(String deleteTime) { + public SingleTenantHsmInstanceProposal setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -282,7 +282,7 @@ public SingleTenantHsmInstanceProposal setEnableSingleTenantHsmInstance(EnableSi * The time at which the SingleTenantHsmInstanceProposal will expire if not approved and executed. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -290,7 +290,7 @@ public String getExpireTime() { * The time at which the SingleTenantHsmInstanceProposal will expire if not approved and executed. * @param expireTime expireTime or {@code null} for none */ - public SingleTenantHsmInstanceProposal setExpireTime(String expireTime) { + public SingleTenantHsmInstanceProposal setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } @@ -337,7 +337,7 @@ public SingleTenantHsmInstanceProposal setName(java.lang.String name) { * time after expiration of the proposal, i.e. >= expire_time or (create_time + ttl). * @return value or {@code null} for none */ - public String getPurgeTime() { + public java.lang.String getPurgeTime() { return purgeTime; } @@ -347,7 +347,7 @@ public String getPurgeTime() { * time after expiration of the proposal, i.e. >= expire_time or (create_time + ttl). * @param purgeTime purgeTime or {@code null} for none */ - public SingleTenantHsmInstanceProposal setPurgeTime(String purgeTime) { + public SingleTenantHsmInstanceProposal setPurgeTime(java.lang.String purgeTime) { this.purgeTime = purgeTime; return this; } @@ -473,7 +473,7 @@ public SingleTenantHsmInstanceProposal setState(java.lang.String state) { * duration. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -482,7 +482,7 @@ public String getTtl() { * duration. * @param ttl ttl or {@code null} for none */ - public SingleTenantHsmInstanceProposal setTtl(String ttl) { + public SingleTenantHsmInstanceProposal setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml b/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml index f274f32b621..36e71a12fbc 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml +++ b/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudkms - v1-rev20260319-2.0.0 - Cloud Key Management Service (KMS) API v1-rev20260319-2.0.0 + v1-rev20260219-2.0.0 + Cloud Key Management Service (KMS) API v1-rev20260219-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/CreateProjectMetadata.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/CreateProjectMetadata.java index c37f5b17341..8a61b2f019e 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/CreateProjectMetadata.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/CreateProjectMetadata.java @@ -37,7 +37,7 @@ public final class CreateProjectMetadata extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * True if the project can be retrieved using `GetProject`. No other operations on the project are @@ -58,7 +58,7 @@ public final class CreateProjectMetadata extends com.google.api.client.json.Gene * Creation time of the project creation workflow. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -66,7 +66,7 @@ public String getCreateTime() { * Creation time of the project creation workflow. * @param createTime createTime or {@code null} for none */ - public CreateProjectMetadata setCreateTime(String createTime) { + public CreateProjectMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Lien.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Lien.java index 3c6d42c94ec..d4b6091a85f 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Lien.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Lien.java @@ -35,7 +35,7 @@ public final class Lien extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * A system-generated unique identifier for this Lien. Example: `liens/1234abcd` @@ -82,7 +82,7 @@ public final class Lien extends com.google.api.client.json.GenericJson { * The creation time of this Lien. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -90,7 +90,7 @@ public String getCreateTime() { * The creation time of this Lien. * @param createTime createTime or {@code null} for none */ - public Lien setCreateTime(String createTime) { + public Lien setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/OrgPolicy.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/OrgPolicy.java index 7d8d2be5e0e..dfcb1f59adc 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/OrgPolicy.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/OrgPolicy.java @@ -83,7 +83,7 @@ public final class OrgPolicy extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Version of the `Policy`. Default version is 0; @@ -245,7 +245,7 @@ public OrgPolicy setRestoreDefault(RestoreDefault restoreDefault) { * Any value set by the client will be ignored. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -255,7 +255,7 @@ public String getUpdateTime() { * Any value set by the client will be ignored. * @param updateTime updateTime or {@code null} for none */ - public OrgPolicy setUpdateTime(String updateTime) { + public OrgPolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Organization.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Organization.java index 751d8b55e78..a16ef530aee 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Organization.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Organization.java @@ -36,7 +36,7 @@ public final class Organization extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String creationTime; + private java.lang.String creationTime; /** * A human-readable string that refers to the Organization in the Google Cloud console. This @@ -74,7 +74,7 @@ public final class Organization extends com.google.api.client.json.GenericJson { * Timestamp when the Organization was created. Assigned by the server. * @return value or {@code null} for none */ - public String getCreationTime() { + public java.lang.String getCreationTime() { return creationTime; } @@ -82,7 +82,7 @@ public String getCreationTime() { * Timestamp when the Organization was created. Assigned by the server. * @param creationTime creationTime or {@code null} for none */ - public Organization setCreationTime(String creationTime) { + public Organization setCreationTime(java.lang.String creationTime) { this.creationTime = creationTime; return this; } diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Project.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Project.java index 37150060a09..80be3f6cc9b 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Project.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/Project.java @@ -45,7 +45,7 @@ public final class Project extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The labels associated with this Project. Label keys must be between 1 and 63 characters long @@ -135,7 +135,7 @@ public Project setConfiguredCapabilities(java.util.List config * Creation time. Read-only. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -143,7 +143,7 @@ public String getCreateTime() { * Creation time. Read-only. * @param createTime createTime or {@code null} for none */ - public Project setCreateTime(String createTime) { + public Project setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/ProjectCreationStatus.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/ProjectCreationStatus.java index 5a24c12d8aa..0a9ffc3d738 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/ProjectCreationStatus.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/ProjectCreationStatus.java @@ -37,7 +37,7 @@ public final class ProjectCreationStatus extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * True if the project can be retrieved using GetProject. No other operations on the project are @@ -58,7 +58,7 @@ public final class ProjectCreationStatus extends com.google.api.client.json.Gene * Creation time of the project creation workflow. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -66,7 +66,7 @@ public String getCreateTime() { * Creation time of the project creation workflow. * @param createTime createTime or {@code null} for none */ - public ProjectCreationStatus setCreateTime(String createTime) { + public ProjectCreationStatus setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/SetIamPolicyRequest.java b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/SetIamPolicyRequest.java index 786ec2d9ce7..dd94b09e932 100644 --- a/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/SetIamPolicyRequest.java +++ b/clients/google-api-services-cloudresourcemanager/v1/2.0.0/com/google/api/services/cloudresourcemanager/model/SetIamPolicyRequest.java @@ -46,7 +46,7 @@ public final class SetIamPolicyRequest extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is @@ -75,7 +75,7 @@ public SetIamPolicyRequest setPolicy(Policy policy) { * "bindings, etag"` * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -85,7 +85,7 @@ public String getUpdateMask() { * "bindings, etag"` * @param updateMask updateMask or {@code null} for none */ - public SetIamPolicyRequest setUpdateMask(String updateMask) { + public SetIamPolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/CloudTrace.java b/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/CloudTrace.java index 55bff88cb77..432f1008a88 100644 --- a/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/CloudTrace.java +++ b/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/CloudTrace.java @@ -563,12 +563,12 @@ public List setProjectId(java.lang.String projectId) { * application. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** End of the time interval (inclusive) during which the trace data was collected from the application. */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -576,7 +576,7 @@ public String getEndTime() { * End of the time interval (inclusive) during which the trace data was collected from the * application. */ - public List setEndTime(String endTime) { + public List setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -689,12 +689,12 @@ public List setPageToken(java.lang.String pageToken) { * application. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** Start of the time interval (inclusive) during which the trace data was collected from the application. */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -702,7 +702,7 @@ public String getStartTime() { * Start of the time interval (inclusive) during which the trace data was collected from the * application. */ - public List setStartTime(String startTime) { + public List setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/model/TraceSpan.java b/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/model/TraceSpan.java index 47153cb1a76..03e205fed96 100644 --- a/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/model/TraceSpan.java +++ b/clients/google-api-services-cloudtrace/v1/2.0.0/com/google/api/services/cloudtrace/v1/model/TraceSpan.java @@ -37,7 +37,7 @@ public final class TraceSpan extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Distinguishes between spans generated in a particular context. For example, two spans with the @@ -88,13 +88,13 @@ public final class TraceSpan extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * End time of the span in seconds and nanoseconds from the UNIX epoch. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -102,7 +102,7 @@ public String getEndTime() { * End time of the span in seconds and nanoseconds from the UNIX epoch. * @param endTime endTime or {@code null} for none */ - public TraceSpan setEndTime(String endTime) { + public TraceSpan setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -214,7 +214,7 @@ public TraceSpan setSpanId(java.math.BigInteger spanId) { * Start time of the span in seconds and nanoseconds from the UNIX epoch. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -222,7 +222,7 @@ public String getStartTime() { * Start time of the span in seconds and nanoseconds from the UNIX epoch. * @param startTime startTime or {@code null} for none */ - public TraceSpan setStartTime(String startTime) { + public TraceSpan setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/README.md b/clients/google-api-services-dataform/v1/2.0.0/README.md index 32e2709a492..0bfd4d4845b 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/README.md +++ b/clients/google-api-services-dataform/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-dataform - v1-rev20260326-2.0.0 + v1-rev20260217-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dataform:v1-rev20260326-2.0.0' + implementation 'com.google.apis:google-api-services-dataform:v1-rev20260217-2.0.0' } ``` diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/Dataform.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/Dataform.java index b151580eb96..d399dfa7d08 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/Dataform.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/Dataform.java @@ -451,14 +451,10 @@ public GetConfig set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -482,15 +478,10 @@ public class List extends DataformRequest { - - private static final String REST_PATH = "v1/{+location}:queryUserRootContents"; - - private final java.util.regex.Pattern LOCATION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Returns the contents of a caller's root folder in a given location. The root folder contains - * all resources that are created by the user and not contained in any other folder. - * - * Create a request for the method "locations.queryUserRootContents". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link QueryUserRootContents#execute()} method to invoke the - * remote operation.

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

- * - * @param location Required. Location of the user root folder whose contents to list. Format: projects/locations - * @since 1.13 - */ - protected QueryUserRootContents(java.lang.String location) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryUserRootContentsResponse.class); - this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public QueryUserRootContents set$Xgafv(java.lang.String $Xgafv) { - return (QueryUserRootContents) super.set$Xgafv($Xgafv); - } - - @Override - public QueryUserRootContents setAccessToken(java.lang.String accessToken) { - return (QueryUserRootContents) super.setAccessToken(accessToken); - } - - @Override - public QueryUserRootContents setAlt(java.lang.String alt) { - return (QueryUserRootContents) super.setAlt(alt); - } - - @Override - public QueryUserRootContents setCallback(java.lang.String callback) { - return (QueryUserRootContents) super.setCallback(callback); - } - - @Override - public QueryUserRootContents setFields(java.lang.String fields) { - return (QueryUserRootContents) super.setFields(fields); - } - - @Override - public QueryUserRootContents setKey(java.lang.String key) { - return (QueryUserRootContents) super.setKey(key); - } - - @Override - public QueryUserRootContents setOauthToken(java.lang.String oauthToken) { - return (QueryUserRootContents) super.setOauthToken(oauthToken); - } - - @Override - public QueryUserRootContents setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryUserRootContents) super.setPrettyPrint(prettyPrint); - } - - @Override - public QueryUserRootContents setQuotaUser(java.lang.String quotaUser) { - return (QueryUserRootContents) super.setQuotaUser(quotaUser); - } - - @Override - public QueryUserRootContents setUploadType(java.lang.String uploadType) { - return (QueryUserRootContents) super.setUploadType(uploadType); - } - - @Override - public QueryUserRootContents setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryUserRootContents) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Location of the user root folder whose contents to list. Format: - * projects/locations - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** Required. Location of the user root folder whose contents to list. Format: projects/locations - */ - public java.lang.String getLocation() { - return location; - } - - /** - * Required. Location of the user root folder whose contents to list. Format: - * projects/locations - */ - public QueryUserRootContents setLocation(java.lang.String location) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.location = location; - return this; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently only supported - * on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Optional filtering for the returned list. Filtering is currently only supported on the - `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently only supported - * on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public QueryUserRootContents setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Field to additionally sort results by. Will order Folders before Repositories, - * and then by `order_by` in ascending order. Supported keywords: display_name (default), - * created_at, last_modified_at. Examples: - `orderBy="display_name"` - - * `orderBy="display_name desc"` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Field to additionally sort results by. Will order Folders before Repositories, and then - by `order_by` in ascending order. Supported keywords: display_name (default), created_at, - last_modified_at. Examples: - `orderBy="display_name"` - `orderBy="display_name desc"` - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. Field to additionally sort results by. Will order Folders before Repositories, - * and then by `order_by` in ascending order. Supported keywords: display_name (default), - * created_at, last_modified_at. Examples: - `orderBy="display_name"` - - * `orderBy="display_name desc"` - */ - public QueryUserRootContents setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If - unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - public QueryUserRootContents setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `QueryUserRootContents` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryUserRootFolderContents`, with the exception of `page_size`, must match the call - * that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token received from a previous `QueryUserRootContents` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `QueryUserRootFolderContents`, with the exception of `page_size`, must match the call that provided - the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token received from a previous `QueryUserRootContents` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryUserRootFolderContents`, with the exception of `page_size`, must match the call - * that provided the page token. - */ - public QueryUserRootContents setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public QueryUserRootContents set(String parameterName, Object value) { - return (QueryUserRootContents) super.set(parameterName, value); - } - } /** * Update default config for a given project and location. **Note:** *This method does not fully * implement [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad @@ -1075,16 +815,16 @@ public UpdateConfig setName(java.lang.String name) { /** Optional. Specifies the fields to be updated in the config. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. Specifies the fields to be updated in the config. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Optional. Specifies the fields to be updated in the config. */ - public UpdateConfig setUpdateMask(String updateMask) { + public UpdateConfig setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -1116,1752 +856,1629 @@ public Folders folders() { public class Folders { /** - * Creates a new Folder in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "folders.create". + * Create a request for the method "folders.getIamPolicy". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param parent Required. The location in which to create the Folder. Must be in the format `projects/locations`. - * @param content the {@link com.google.api.services.dataform.v1.model.Folder} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.Folder content) throws java.io.IOException { - Create result = new Create(parent, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Create extends DataformRequest { + public class GetIamPolicy extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/folders"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); /** - * Creates a new Folder in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "folders.create". + * Create a request for the method "folders.getIamPolicy". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

+ * 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 parent Required. The location in which to create the Folder. Must be in the format `projects/locations`. - * @param content the {@link com.google.api.services.dataform.v1.model.Folder} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.Folder content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Folder.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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); } /** - * Required. The location in which to create the Folder. Must be in the format - * `projects/locations`. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String resource; - /** Required. The location in which to create the Folder. Must be in the format `projects/locations`. + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getResource() { + return resource; } /** - * Required. The location in which to create the Folder. Must be in the format - * `projects/locations`. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Create setParent(java.lang.String parent) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); } - this.parent = parent; + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a single Folder. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "folders.delete". + * Create a request for the method "folders.setIamPolicy". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. The Folder's name. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Delete extends DataformRequest { + public class SetIamPolicy extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); /** - * Deletes a single Folder. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "folders.delete". + * Create a request for the method "folders.setIamPolicy". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

+ * 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 name Required. The Folder's name. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } - /** Required. The Folder's name. */ + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. The Folder's name. + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } - /** Required. The Folder's name. */ - public Delete setName(java.lang.String name) { + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and - * WorkflowConfigs). + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "folders.deleteTree". + * Create a request for the method "folders.testIamPermissions". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link DeleteTree#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * - * @param name Required. The Folder's name. Format: projects/{project}/locations/{location}/folders/{folder} - * @param content the {@link com.google.api.services.dataform.v1.model.DeleteFolderTreeRequest} + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} * @return the request */ - public DeleteTree deleteTree(java.lang.String name, com.google.api.services.dataform.v1.model.DeleteFolderTreeRequest content) throws java.io.IOException { - DeleteTree result = new DeleteTree(name, content); + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } - public class DeleteTree extends DataformRequest { + public class TestIamPermissions extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:deleteTree"; + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); /** - * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and - * WorkflowConfigs). + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "folders.deleteTree". + * Create a request for the method "folders.testIamPermissions". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link DeleteTree#execute()} method to invoke the remote - * operation.

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

+ * 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 name Required. The Folder's name. Format: projects/{project}/locations/{location}/folders/{folder} - * @param content the {@link com.google.api.services.dataform.v1.model.DeleteFolderTreeRequest} + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} * @since 1.13 */ - protected DeleteTree(java.lang.String name, com.google.api.services.dataform.v1.model.DeleteFolderTreeRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); } } @Override - public DeleteTree set$Xgafv(java.lang.String $Xgafv) { - return (DeleteTree) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public DeleteTree setAccessToken(java.lang.String accessToken) { - return (DeleteTree) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public DeleteTree setAlt(java.lang.String alt) { - return (DeleteTree) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public DeleteTree setCallback(java.lang.String callback) { - return (DeleteTree) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public DeleteTree setFields(java.lang.String fields) { - return (DeleteTree) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public DeleteTree setKey(java.lang.String key) { - return (DeleteTree) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public DeleteTree setOauthToken(java.lang.String oauthToken) { - return (DeleteTree) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public DeleteTree setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteTree) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public DeleteTree setQuotaUser(java.lang.String quotaUser) { - return (DeleteTree) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public DeleteTree setUploadType(java.lang.String uploadType) { - return (DeleteTree) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public DeleteTree setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteTree) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Required. The Folder's name. Format: - * projects/{project}/locations/{location}/folders/{folder} + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. The Folder's name. Format: projects/{project}/locations/{location}/folders/{folder} + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Required. The Folder's name. Format: - * projects/{project}/locations/{location}/folders/{folder} + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public DeleteTree setName(java.lang.String name) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } @Override - public DeleteTree set(String parameterName, Object value) { - return (DeleteTree) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code Dataform dataform = new Dataform(...);}
+       *   {@code Dataform.Operations.List request = dataform.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + /** - * Fetches a single Folder. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "folders.get". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Required. The Folder's name. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.dataform.v1.model.CancelOperationRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Cancel cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Get extends DataformRequest { + public class Cancel extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Fetches a single Folder. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "folders.get". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * 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 name Required. The Folder's name. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.dataform.v1.model.CancelOperationRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Folder.class); + protected Cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelOperationRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** Required. The Folder's name. */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The Folder's name. + /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } - /** Required. The Folder's name. */ - public Get setName(java.lang.String name) { + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "folders.getIamPolicy". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the dataform 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 resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name The name of the operation resource to be deleted. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class GetIamPolicy extends DataformRequest { + public class Delete extends DataformRequest { - private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "folders.getIamPolicy". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the dataform 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.

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

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Delete(java.lang.String name) { + super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; } - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.resource = resource; - return this; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + this.name = name; 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); } } /** - * Moves a Folder to a new Folder, TeamFolder, or the root location. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "folders.move". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The full resource name of the Folder to move. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveFolderRequest} + * @param name The name of the operation resource. * @return the request */ - public Move move(java.lang.String name, com.google.api.services.dataform.v1.model.MoveFolderRequest content) throws java.io.IOException { - Move result = new Move(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Move extends DataformRequest { + public class Get extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:move"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Moves a Folder to a new Folder, TeamFolder, or the root location. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "folders.move". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the dataform 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)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The full resource name of the Folder to move. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveFolderRequest} + * @param name The name of the operation resource. * @since 1.13 */ - protected Move(java.lang.String name, com.google.api.services.dataform.v1.model.MoveFolderRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Operation.class); + protected Get(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) 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 Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The full resource name of the Folder to move. */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The full resource name of the Folder to move. + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** Required. The full resource name of the Folder to move. */ - public Move setName(java.lang.String name) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates a single Folder. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "folders.patch". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the dataform 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 name Identifier. The Folder's name. - * @param content the {@link com.google.api.services.dataform.v1.model.Folder} + * @param name The name of the operation's parent resource. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.Folder content) throws java.io.IOException { - Patch result = new Patch(name, content); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class Patch extends DataformRequest { + public class List extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates a single Folder. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "folders.patch". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the dataform 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.

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

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

* - * @param name Identifier. The Folder's name. - * @param content the {@link com.google.api.services.dataform.v1.model.Folder} + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.Folder content) { - super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.Folder.class); + protected List(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + "^projects/[^/]+/locations/[^/]+$"); } } @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 List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Identifier. The Folder's name. */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The Folder's name. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** Identifier. The Folder's name. */ - public Patch setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, all fields - * that can be updated, will be updated. A few fields cannot be updated and will be - * ignored if specified in the update_mask (e.g. parent_name, team_folder_name). - */ + /** The standard list filter. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String filter; - /** Optional. Specifies the fields to be updated in the Folder. If left unset, all fields that can be - updated, will be updated. A few fields cannot be updated and will be ignored if specified in the - update_mask (e.g. parent_name, team_folder_name). + /** The standard list filter. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getFilter() { + return filter; } - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, all fields - * that can be updated, will be updated. A few fields cannot be updated and will be - * ignored if specified in the update_mask (e.g. parent_name, team_folder_name). - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - } - /** - * Returns the contents of a given Folder. - * - * Create a request for the method "folders.queryFolderContents". - * + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + 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 Repositories collection. + * + *

The typical use is:

+ *
+       *   {@code Dataform dataform = new Dataform(...);}
+       *   {@code Dataform.Repositories.List request = dataform.repositories().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Repositories repositories() { + return new Repositories(); + } + + /** + * The "repositories" collection of methods. + */ + public class Repositories { + + /** + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. + * + * Create a request for the method "repositories.commit". + * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link QueryFolderContents#execute()} method to invoke the remote operation. + * parameters, call the {@link Commit#execute()} method to invoke the remote operation. * - * @param folder Required. Name of the folder whose contents to list. Format: projects/locations/folders + * @param name Required. The repository's name. + * @param content the {@link com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest} * @return the request */ - public QueryFolderContents queryFolderContents(java.lang.String folder) throws java.io.IOException { - QueryFolderContents result = new QueryFolderContents(folder); + public Commit commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest content) throws java.io.IOException { + Commit result = new Commit(name, content); initialize(result); return result; } - public class QueryFolderContents extends DataformRequest { + public class Commit extends DataformRequest { - private static final String REST_PATH = "v1/{+folder}:queryFolderContents"; + private static final String REST_PATH = "v1/{+name}:commit"; - private final java.util.regex.Pattern FOLDER_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Returns the contents of a given Folder. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * - * Create a request for the method "folders.queryFolderContents". + * Create a request for the method "repositories.commit". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link QueryFolderContents#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param folder Required. Name of the folder whose contents to list. Format: projects/locations/folders + * @param name Required. The repository's name. + * @param content the {@link com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest} * @since 1.13 */ - protected QueryFolderContents(java.lang.String folder) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryFolderContentsResponse.class); - this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder must be specified."); + protected Commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CommitRepositoryChangesResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), - "Parameter folder must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public QueryFolderContents set$Xgafv(java.lang.String $Xgafv) { - return (QueryFolderContents) super.set$Xgafv($Xgafv); + public Commit set$Xgafv(java.lang.String $Xgafv) { + return (Commit) super.set$Xgafv($Xgafv); } @Override - public QueryFolderContents setAccessToken(java.lang.String accessToken) { - return (QueryFolderContents) super.setAccessToken(accessToken); + public Commit setAccessToken(java.lang.String accessToken) { + return (Commit) super.setAccessToken(accessToken); } @Override - public QueryFolderContents setAlt(java.lang.String alt) { - return (QueryFolderContents) super.setAlt(alt); + public Commit setAlt(java.lang.String alt) { + return (Commit) super.setAlt(alt); } @Override - public QueryFolderContents setCallback(java.lang.String callback) { - return (QueryFolderContents) super.setCallback(callback); + public Commit setCallback(java.lang.String callback) { + return (Commit) super.setCallback(callback); } @Override - public QueryFolderContents setFields(java.lang.String fields) { - return (QueryFolderContents) super.setFields(fields); + public Commit setFields(java.lang.String fields) { + return (Commit) super.setFields(fields); } @Override - public QueryFolderContents setKey(java.lang.String key) { - return (QueryFolderContents) super.setKey(key); + public Commit setKey(java.lang.String key) { + return (Commit) super.setKey(key); } @Override - public QueryFolderContents setOauthToken(java.lang.String oauthToken) { - return (QueryFolderContents) super.setOauthToken(oauthToken); + public Commit setOauthToken(java.lang.String oauthToken) { + return (Commit) super.setOauthToken(oauthToken); } @Override - public QueryFolderContents setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryFolderContents) super.setPrettyPrint(prettyPrint); + public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Commit) super.setPrettyPrint(prettyPrint); } @Override - public QueryFolderContents setQuotaUser(java.lang.String quotaUser) { - return (QueryFolderContents) super.setQuotaUser(quotaUser); + public Commit setQuotaUser(java.lang.String quotaUser) { + return (Commit) super.setQuotaUser(quotaUser); } @Override - public QueryFolderContents setUploadType(java.lang.String uploadType) { - return (QueryFolderContents) super.setUploadType(uploadType); + public Commit setUploadType(java.lang.String uploadType) { + return (Commit) super.setUploadType(uploadType); } @Override - public QueryFolderContents setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryFolderContents) super.setUploadProtocol(uploadProtocol); + public Commit setUploadProtocol(java.lang.String uploadProtocol) { + return (Commit) super.setUploadProtocol(uploadProtocol); } - /** - * Required. Name of the folder whose contents to list. Format: projects/locations/folders - */ + /** Required. The repository's name. */ @com.google.api.client.util.Key - private java.lang.String folder; + private java.lang.String name; - /** Required. Name of the folder whose contents to list. Format: projects/locations/folders + /** Required. The repository's name. */ - public java.lang.String getFolder() { - return folder; + public java.lang.String getName() { + return name; } - /** - * Required. Name of the folder whose contents to list. Format: projects/locations/folders - */ - public QueryFolderContents setFolder(java.lang.String folder) { + /** Required. The repository's name. */ + public Commit setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), - "Parameter folder must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } - this.folder = folder; + this.name = name; return this; } - /** - * Optional. Optional filtering for the returned list. Filtering is currently only - * supported on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Optional filtering for the returned list. Filtering is currently only supported on the - `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public java.lang.String getFilter() { - return filter; + @Override + public Commit set(String parameterName, Object value) { + return (Commit) super.set(parameterName, value); } + } + /** + * Computes a Repository's Git access token status. + * + * Create a request for the method "repositories.computeAccessTokenStatus". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link ComputeAccessTokenStatus#execute()} method to invoke the remote + * operation. + * + * @param name Required. The repository's name. + * @return the request + */ + public ComputeAccessTokenStatus computeAccessTokenStatus(java.lang.String name) throws java.io.IOException { + ComputeAccessTokenStatus result = new ComputeAccessTokenStatus(name); + initialize(result); + return result; + } - /** - * Optional. Optional filtering for the returned list. Filtering is currently only - * supported on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public QueryFolderContents setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + public class ComputeAccessTokenStatus extends DataformRequest { - /** - * Optional. Field to additionally sort results by. Will order Folders before - * Repositories, and then by `order_by` in ascending order. Supported keywords: - * display_name (default), create_time, last_modified_time. Examples: - - * `orderBy="display_name"` - `orderBy="display_name desc"` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + private static final String REST_PATH = "v1/{+name}:computeAccessTokenStatus"; - /** Optional. Field to additionally sort results by. Will order Folders before Repositories, and then - by `order_by` in ascending order. Supported keywords: display_name (default), create_time, - last_modified_time. Examples: - `orderBy="display_name"` - `orderBy="display_name desc"` - */ - public java.lang.String getOrderBy() { - return orderBy; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Optional. Field to additionally sort results by. Will order Folders before - * Repositories, and then by `order_by` in ascending order. Supported keywords: - * display_name (default), create_time, last_modified_time. Examples: - - * `orderBy="display_name"` - `orderBy="display_name desc"` + * Computes a Repository's Git access token status. + * + * Create a request for the method "repositories.computeAccessTokenStatus". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link ComputeAccessTokenStatus#execute()} method to invoke the + * remote operation.

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

+ * + * @param name Required. The repository's name. + * @since 1.13 */ - public QueryFolderContents setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + protected ComputeAccessTokenStatus(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ComputeRepositoryAccessTokenStatusResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } } - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If - unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - public QueryFolderContents setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `QueryFolderContents` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryFolderContents`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token received from a previous `QueryFolderContents` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to `QueryFolderContents`, with - the exception of `page_size`, must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token received from a previous `QueryFolderContents` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryFolderContents`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - public QueryFolderContents setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public QueryFolderContents set(String parameterName, Object value) { - return (QueryFolderContents) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "folders.setIamPolicy". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataformRequest { - - private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "folders.setIamPolicy". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public ComputeAccessTokenStatus set$Xgafv(java.lang.String $Xgafv) { + return (ComputeAccessTokenStatus) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public ComputeAccessTokenStatus setAccessToken(java.lang.String accessToken) { + return (ComputeAccessTokenStatus) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public ComputeAccessTokenStatus setAlt(java.lang.String alt) { + return (ComputeAccessTokenStatus) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public ComputeAccessTokenStatus setCallback(java.lang.String callback) { + return (ComputeAccessTokenStatus) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public ComputeAccessTokenStatus setFields(java.lang.String fields) { + return (ComputeAccessTokenStatus) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public ComputeAccessTokenStatus setKey(java.lang.String key) { + return (ComputeAccessTokenStatus) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public ComputeAccessTokenStatus setOauthToken(java.lang.String oauthToken) { + return (ComputeAccessTokenStatus) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public ComputeAccessTokenStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ComputeAccessTokenStatus) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public ComputeAccessTokenStatus setQuotaUser(java.lang.String quotaUser) { + return (ComputeAccessTokenStatus) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public ComputeAccessTokenStatus setUploadType(java.lang.String uploadType) { + return (ComputeAccessTokenStatus) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public ComputeAccessTokenStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (ComputeAccessTokenStatus) super.setUploadProtocol(uploadProtocol); } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ + /** Required. The repository's name. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The repository's name. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Required. The repository's name. */ + public ComputeAccessTokenStatus setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public ComputeAccessTokenStatus set(String parameterName, Object value) { + return (ComputeAccessTokenStatus) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Creates a new Repository in a given project and location. * - * Create a request for the method "folders.testIamPermissions". + * Create a request for the method "repositories.create". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} + * @param parent Required. The location in which to create the repository. Must be in the format + * `projects/locations`. + * @param content the {@link com.google.api.services.dataform.v1.model.Repository} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); + public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.Repository content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class TestIamPermissions extends DataformRequest { + public class Create extends DataformRequest { - private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1/{+parent}/repositories"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. + * Creates a new Repository in a given project and location. * - * Create a request for the method "folders.testIamPermissions". + * Create a request for the method "repositories.create". * * This request holds the parameters needed by the the dataform 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.

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

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} + * @param parent Required. The location in which to create the repository. Must be in the format + * `projects/locations`. + * @param content the {@link com.google.api.services.dataform.v1.model.Repository} * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.Repository content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Repository.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The location in which to create the repository. Must be in the format + * `projects/locations`. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parent; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The location in which to create the repository. Must be in the format + `projects/locations`. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The location in which to create the repository. Must be in the format + * `projects/locations`. */ - public TestIamPermissions setResource(java.lang.String resource) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/folders/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.resource = resource; + this.parent = parent; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-       *   {@code Dataform dataform = new Dataform(...);}
-       *   {@code Dataform.Operations.List request = dataform.operations().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } - - /** - * The "operations" collection of methods. - */ - public class Operations { - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be cancelled. - * @param content the {@link com.google.api.services.dataform.v1.model.CancelOperationRequest} - * @return the request - */ - public Cancel cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelOperationRequest content) throws java.io.IOException { - Cancel result = new Cancel(name, content); - initialize(result); - return result; - } - - public class Cancel extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}:cancel"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the dataform 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 name The name of the operation resource to be cancelled. - * @param content the {@link com.google.api.services.dataform.v1.model.CancelOperationRequest} - * @since 1.13 + * Required. The ID to use for the repository, which will become the final component of + * the repository's resource name. */ - protected Cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelOperationRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - } - - @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); - } - - /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String repositoryId; - /** The name of the operation resource to be cancelled. + /** Required. The ID to use for the repository, which will become the final component of the + repository's resource name. */ - public java.lang.String getName() { - return name; + public java.lang.String getRepositoryId() { + return repositoryId; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - this.name = name; + /** + * Required. The ID to use for the repository, which will become the final component of + * the repository's resource name. + */ + public Create setRepositoryId(java.lang.String repositoryId) { + this.repositoryId = repositoryId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Deletes a single Repository. * - * Create a request for the method "operations.delete". + * Create a request for the method "repositories.delete". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param name Required. The repository's name. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -2875,14 +2492,12 @@ public class Delete extends DataformRequest * - * @param name The name of the operation resource to be deleted. + * @param name Required. The repository's name. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -2899,7 +2514,7 @@ protected Delete(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @@ -2958,78 +2573,110 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** Required. The repository's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be deleted. + /** Required. The repository's name. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ + /** Required. The repository's name. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } this.name = name; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + /** + * Optional. If set to true, child resources of this repository (compilation results and + * workflow invocations) will also be deleted. Otherwise, the request will only succeed if + * the repository has no child resources. **Note:** *This flag doesn't support deletion of + * workspaces, release configs or workflow configs. If any of such resources exists in the + * repository, the request will fail.*. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, child resources of this repository (compilation results and workflow + invocations) will also be deleted. Otherwise, the request will only succeed if the repository has + no child resources. **Note:** *This flag doesn't support deletion of workspaces, release configs or + workflow configs. If any of such resources exists in the repository, the request will fail.*. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, child resources of this repository (compilation results and + * workflow invocations) will also be deleted. Otherwise, the request will only succeed if + * the repository has no child resources. **Note:** *This flag doesn't support deletion of + * workspaces, release configs or workflow configs. If any of such resources exists in the + * repository, the request will fail.*. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * - * @param name The name of the operation resource. + * Create a request for the method "repositories.fetchHistory". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link FetchHistory#execute()} method to invoke the remote operation. + * + * @param name Required. The repository's name. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public FetchHistory fetchHistory(java.lang.String name) throws java.io.IOException { + FetchHistory result = new FetchHistory(name); initialize(result); return result; } - public class Get extends DataformRequest { + public class FetchHistory extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:fetchHistory"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * - * Create a request for the method "operations.get". + * Create a request for the method "repositories.fetchHistory". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link FetchHistory#execute()} method to invoke the remote + * operation.

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

* - * @param name The name of the operation resource. + * @param name Required. The repository's name. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Operation.class); + protected FetchHistory(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchRepositoryHistoryResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @@ -3044,132 +2691,183 @@ 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 FetchHistory set$Xgafv(java.lang.String $Xgafv) { + return (FetchHistory) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public FetchHistory setAccessToken(java.lang.String accessToken) { + return (FetchHistory) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public FetchHistory setAlt(java.lang.String alt) { + return (FetchHistory) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public FetchHistory setCallback(java.lang.String callback) { + return (FetchHistory) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public FetchHistory setFields(java.lang.String fields) { + return (FetchHistory) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public FetchHistory setKey(java.lang.String key) { + return (FetchHistory) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public FetchHistory setOauthToken(java.lang.String oauthToken) { + return (FetchHistory) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public FetchHistory setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchHistory) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public FetchHistory setQuotaUser(java.lang.String quotaUser) { + return (FetchHistory) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public FetchHistory setUploadType(java.lang.String uploadType) { + return (FetchHistory) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public FetchHistory setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchHistory) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** Required. The repository's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The repository's name. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** Required. The repository's name. */ + public FetchHistory setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } this.name = name; return this; } + /** + * Optional. Maximum number of commits to return. The server may return fewer items than + * requested. If unspecified, the server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of commits to return. The server may return fewer items than requested. If + unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of commits to return. The server may return fewer items than + * requested. If unspecified, the server will pick an appropriate default. + */ + public FetchHistory setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that provided the + page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + public FetchHistory setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public FetchHistory set(String parameterName, Object value) { + return (FetchHistory) super.set(parameterName, value); } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Fetches a Repository's remote branches. * - * Create a request for the method "operations.list". + * Create a request for the method "repositories.fetchRemoteBranches". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link FetchRemoteBranches#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param name Required. The repository's name. * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public FetchRemoteBranches fetchRemoteBranches(java.lang.String name) throws java.io.IOException { + FetchRemoteBranches result = new FetchRemoteBranches(name); initialize(result); return result; } - public class List extends DataformRequest { + public class FetchRemoteBranches extends DataformRequest { - private static final String REST_PATH = "v1/{+name}/operations"; + private static final String REST_PATH = "v1/{+name}:fetchRemoteBranches"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Fetches a Repository's remote branches. * - * Create a request for the method "operations.list". + * Create a request for the method "repositories.fetchRemoteBranches". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* - * @param name The name of the operation's parent resource. + * @param name Required. The repository's name. * @since 1.13 */ - protected List(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListOperationsResponse.class); + protected FetchRemoteBranches(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchRemoteBranchesResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @@ -3184,235 +2882,125 @@ 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 FetchRemoteBranches set$Xgafv(java.lang.String $Xgafv) { + return (FetchRemoteBranches) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public FetchRemoteBranches setAccessToken(java.lang.String accessToken) { + return (FetchRemoteBranches) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public FetchRemoteBranches setAlt(java.lang.String alt) { + return (FetchRemoteBranches) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public FetchRemoteBranches setCallback(java.lang.String callback) { + return (FetchRemoteBranches) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public FetchRemoteBranches setFields(java.lang.String fields) { + return (FetchRemoteBranches) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public FetchRemoteBranches setKey(java.lang.String key) { + return (FetchRemoteBranches) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public FetchRemoteBranches setOauthToken(java.lang.String oauthToken) { + return (FetchRemoteBranches) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public FetchRemoteBranches setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchRemoteBranches) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public FetchRemoteBranches setQuotaUser(java.lang.String quotaUser) { + return (FetchRemoteBranches) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public FetchRemoteBranches setUploadType(java.lang.String uploadType) { + return (FetchRemoteBranches) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public FetchRemoteBranches setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchRemoteBranches) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** Required. The repository's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation's parent resource. + /** Required. The repository's name. */ public java.lang.String getName() { return name; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** Required. The repository's name. */ + public FetchRemoteBranches setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } this.name = name; return this; } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - 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 FetchRemoteBranches set(String parameterName, Object value) { + return (FetchRemoteBranches) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Repositories collection. - * - *

The typical use is:

- *
-       *   {@code Dataform dataform = new Dataform(...);}
-       *   {@code Dataform.Repositories.List request = dataform.repositories().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Repositories repositories() { - return new Repositories(); - } - - /** - * The "repositories" collection of methods. - */ - public class Repositories { - /** - * Applies a Git commit to a Repository. The Repository must not have a value for - * `git_remote_settings.url`. + * Fetches a single Repository. * - * Create a request for the method "repositories.commit". + * Create a request for the method "repositories.get". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Commit#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The repository's name. - * @param content the {@link com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest} * @return the request */ - public Commit commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest content) throws java.io.IOException { - Commit result = new Commit(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Commit extends DataformRequest { + public class Get extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:commit"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Applies a Git commit to a Repository. The Repository must not have a value for - * `git_remote_settings.url`. + * Fetches a single Repository. * - * Create a request for the method "repositories.commit". + * Create a request for the method "repositories.get". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Commit#execute()} method to invoke the remote operation. - *

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

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

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

* * @param name Required. The repository's name. - * @param content the {@link com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest} * @since 1.13 */ - protected Commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitRepositoryChangesRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CommitRepositoryChangesResponse.class); + protected Get(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Repository.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -3422,58 +3010,68 @@ protected Commit(java.lang.String name, com.google.api.services.dataform.v1.mode } @Override - public Commit set$Xgafv(java.lang.String $Xgafv) { - return (Commit) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Commit setAccessToken(java.lang.String accessToken) { - return (Commit) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Commit setAlt(java.lang.String alt) { - return (Commit) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Commit setCallback(java.lang.String callback) { - return (Commit) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Commit setFields(java.lang.String fields) { - return (Commit) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Commit setKey(java.lang.String key) { - return (Commit) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Commit setOauthToken(java.lang.String oauthToken) { - return (Commit) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Commit) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Commit setQuotaUser(java.lang.String quotaUser) { - return (Commit) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Commit setUploadType(java.lang.String uploadType) { - return (Commit) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Commit setUploadProtocol(java.lang.String uploadProtocol) { - return (Commit) 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); } /** Required. The repository's name. */ @@ -3487,7 +3085,7 @@ public java.lang.String getName() { } /** Required. The repository's name. */ - public Commit setName(java.lang.String name) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -3498,55 +3096,60 @@ public Commit setName(java.lang.String name) { } @Override - public Commit set(String parameterName, Object value) { - return (Commit) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Computes a Repository's Git access token status. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "repositories.computeAccessTokenStatus". + * Create a request for the method "repositories.getIamPolicy". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link ComputeAccessTokenStatus#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. The repository's name. + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public ComputeAccessTokenStatus computeAccessTokenStatus(java.lang.String name) throws java.io.IOException { - ComputeAccessTokenStatus result = new ComputeAccessTokenStatus(name); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class ComputeAccessTokenStatus extends DataformRequest { + public class GetIamPolicy extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:computeAccessTokenStatus"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Computes a Repository's Git access token status. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "repositories.computeAccessTokenStatus". + * Create a request for the method "repositories.getIamPolicy". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link ComputeAccessTokenStatus#execute()} method to invoke the - * remote operation.

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

- * - * @param name Required. The repository's name. + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected ComputeAccessTokenStatus(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ComputeRepositoryAccessTokenStatusResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @@ -3562,106 +3165,158 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ComputeAccessTokenStatus set$Xgafv(java.lang.String $Xgafv) { - return (ComputeAccessTokenStatus) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public ComputeAccessTokenStatus setAccessToken(java.lang.String accessToken) { - return (ComputeAccessTokenStatus) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public ComputeAccessTokenStatus setAlt(java.lang.String alt) { - return (ComputeAccessTokenStatus) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public ComputeAccessTokenStatus setCallback(java.lang.String callback) { - return (ComputeAccessTokenStatus) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public ComputeAccessTokenStatus setFields(java.lang.String fields) { - return (ComputeAccessTokenStatus) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public ComputeAccessTokenStatus setKey(java.lang.String key) { - return (ComputeAccessTokenStatus) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public ComputeAccessTokenStatus setOauthToken(java.lang.String oauthToken) { - return (ComputeAccessTokenStatus) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public ComputeAccessTokenStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ComputeAccessTokenStatus) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public ComputeAccessTokenStatus setQuotaUser(java.lang.String quotaUser) { - return (ComputeAccessTokenStatus) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public ComputeAccessTokenStatus setUploadType(java.lang.String uploadType) { - return (ComputeAccessTokenStatus) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public ComputeAccessTokenStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (ComputeAccessTokenStatus) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } - /** Required. The repository's name. */ + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. The repository's name. + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } - /** Required. The repository's name. */ - public ComputeAccessTokenStatus setName(java.lang.String name) { + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } - this.name = name; + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public ComputeAccessTokenStatus set(String parameterName, Object value) { - return (ComputeAccessTokenStatus) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Creates a new Repository in a given project and location. + * Lists Repositories in a given project and location. **Note:** *This method can return + * repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * - * Create a request for the method "repositories.create". + * Create a request for the method "repositories.list". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/locations`. - * @param content the {@link com.google.api.services.dataform.v1.model.Repository} + * @param parent Required. The location in which to list repositories. Must be in the format `projects/locations`. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.Repository content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends DataformRequest { + public class List extends DataformRequest { private static final String REST_PATH = "v1/{+parent}/repositories"; @@ -3669,23 +3324,22 @@ public class Create extends DataformRequest {@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

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

* - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/locations`. - * @param content the {@link com.google.api.services.dataform.v1.model.Repository} + * @param parent Required. The location in which to list repositories. Must be in the format `projects/locations`. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.Repository content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Repository.class); + protected List(java.lang.String parent) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListRepositoriesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -3695,79 +3349,88 @@ protected Create(java.lang.String parent, com.google.api.services.dataform.v1.mo } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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); } /** - * Required. The location in which to create the repository. Must be in the format + * Required. The location in which to list repositories. Must be in the format * `projects/locations`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The location in which to create the repository. Must be in the format - `projects/locations`. + /** Required. The location in which to list repositories. Must be in the format `projects/locations`. */ public java.lang.String getParent() { return parent; } /** - * Required. The location in which to create the repository. Must be in the format + * Required. The location in which to list repositories. Must be in the format * `projects/locations`. */ - public Create setParent(java.lang.String parent) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + @@ -3777,52 +3440,123 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Required. The ID to use for the repository, which will become the final component of - * the repository's resource name. - */ + /** Optional. Filter for the returned list. */ @com.google.api.client.util.Key - private java.lang.String repositoryId; + private java.lang.String filter; - /** Required. The ID to use for the repository, which will become the final component of the - repository's resource name. + /** Optional. Filter for the returned list. */ - public java.lang.String getRepositoryId() { - return repositoryId; + public java.lang.String getFilter() { + return filter; } - /** - * Required. The ID to use for the repository, which will become the final component of - * the repository's resource name. + /** Optional. Filter for the returned list. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field only supports ordering by `name`. If unspecified, the server will + * choose the ordering. If specified, the default order is ascending for the `name` field. */ - public Create setRepositoryId(java.lang.String repositoryId) { - this.repositoryId = repositoryId; + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field only supports ordering by `name`. If unspecified, the server will choose the + ordering. If specified, the default order is ascending for the `name` field. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field only supports ordering by `name`. If unspecified, the server will + * choose the ordering. If specified, the default order is ascending for the `name` field. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Maximum number of repositories to return. The server may return fewer items + * than requested. If unspecified, the server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of repositories to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of repositories to return. The server may return fewer items + * than requested. If unspecified, the server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Page token received from a previous `ListRepositories` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListRepositories`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `ListRepositories` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListRepositories`, with the + exception of `page_size`, must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Page token received from a previous `ListRepositories` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListRepositories`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes a single Repository. + * Updates a single Repository. **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and + * when the `field_mask` is omitted, the request is treated as a full update on all modifiable + * fields.* * - * Create a request for the method "repositories.delete". + * Create a request for the method "repositories.patch". * * This request holds the parameters needed by the dataform 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 name Required. The repository's name. + * @param name Identifier. The repository's name. + * @param content the {@link com.google.api.services.dataform.v1.model.Repository} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.Repository content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Delete extends DataformRequest { + public class Patch extends DataformRequest { private static final String REST_PATH = "v1/{+name}"; @@ -3830,21 +3564,25 @@ public class Delete extends DataformRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The repository's name. + * @param name Identifier. The repository's name. + * @param content the {@link com.google.api.services.dataform.v1.model.Repository} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); + protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.Repository content) { + super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.Repository.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -3854,72 +3592,72 @@ protected Delete(java.lang.String name) { } @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); } - /** Required. The repository's name. */ + /** Identifier. The repository's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The repository's name. + /** Identifier. The repository's name. */ public java.lang.String getName() { return name; } - /** Required. The repository's name. */ - public Delete setName(java.lang.String name) { + /** Identifier. The repository's name. */ + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -3930,83 +3668,76 @@ public Delete setName(java.lang.String name) { } /** - * Optional. If set to true, child resources of this repository (compilation results and - * workflow invocations) will also be deleted. Otherwise, the request will only succeed if - * the repository has no child resources. **Note:** *This flag doesn't support deletion of - * workspaces, release configs or workflow configs. If any of such resources exists in the - * repository, the request will fail.*. + * Optional. Specifies the fields to be updated in the repository. If left unset, all + * fields will be updated. */ @com.google.api.client.util.Key - private java.lang.Boolean force; + private java.lang.String updateMask; - /** Optional. If set to true, child resources of this repository (compilation results and workflow - invocations) will also be deleted. Otherwise, the request will only succeed if the repository has - no child resources. **Note:** *This flag doesn't support deletion of workspaces, release configs or - workflow configs. If any of such resources exists in the repository, the request will fail.*. + /** Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be + updated. */ - public java.lang.Boolean getForce() { - return force; + public java.lang.String getUpdateMask() { + return updateMask; } /** - * Optional. If set to true, child resources of this repository (compilation results and - * workflow invocations) will also be deleted. Otherwise, the request will only succeed if - * the repository has no child resources. **Note:** *This flag doesn't support deletion of - * workspaces, release configs or workflow configs. If any of such resources exists in the - * repository, the request will fail.*. + * Optional. Specifies the fields to be updated in the repository. If left unset, all + * fields will be updated. */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; + public Patch setUpdateMask(java.lang.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); } } /** - * Fetches a Repository's history of commits. The Repository must not have a value for + * Returns the contents of a given Repository directory. The Repository must not have a value for * `git_remote_settings.url`. * - * Create a request for the method "repositories.fetchHistory". + * Create a request for the method "repositories.queryDirectoryContents". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link FetchHistory#execute()} method to invoke the remote operation. + * parameters, call the {@link QueryDirectoryContents#execute()} method to invoke the remote + * operation. * * @param name Required. The repository's name. * @return the request */ - public FetchHistory fetchHistory(java.lang.String name) throws java.io.IOException { - FetchHistory result = new FetchHistory(name); + public QueryDirectoryContents queryDirectoryContents(java.lang.String name) throws java.io.IOException { + QueryDirectoryContents result = new QueryDirectoryContents(name); initialize(result); return result; } - public class FetchHistory extends DataformRequest { + public class QueryDirectoryContents extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:fetchHistory"; + private static final String REST_PATH = "v1/{+name}:queryDirectoryContents"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Fetches a Repository's history of commits. The Repository must not have a value for + * Returns the contents of a given Repository directory. The Repository must not have a value for * `git_remote_settings.url`. * - * Create a request for the method "repositories.fetchHistory". + * Create a request for the method "repositories.queryDirectoryContents". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link FetchHistory#execute()} method to invoke the remote - * operation.

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

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

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

* * @param name Required. The repository's name. * @since 1.13 */ - protected FetchHistory(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchRepositoryHistoryResponse.class); + protected QueryDirectoryContents(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryRepositoryDirectoryContentsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -4026,58 +3757,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public FetchHistory set$Xgafv(java.lang.String $Xgafv) { - return (FetchHistory) super.set$Xgafv($Xgafv); + public QueryDirectoryContents set$Xgafv(java.lang.String $Xgafv) { + return (QueryDirectoryContents) super.set$Xgafv($Xgafv); } @Override - public FetchHistory setAccessToken(java.lang.String accessToken) { - return (FetchHistory) super.setAccessToken(accessToken); + public QueryDirectoryContents setAccessToken(java.lang.String accessToken) { + return (QueryDirectoryContents) super.setAccessToken(accessToken); } @Override - public FetchHistory setAlt(java.lang.String alt) { - return (FetchHistory) super.setAlt(alt); + public QueryDirectoryContents setAlt(java.lang.String alt) { + return (QueryDirectoryContents) super.setAlt(alt); } @Override - public FetchHistory setCallback(java.lang.String callback) { - return (FetchHistory) super.setCallback(callback); + public QueryDirectoryContents setCallback(java.lang.String callback) { + return (QueryDirectoryContents) super.setCallback(callback); } @Override - public FetchHistory setFields(java.lang.String fields) { - return (FetchHistory) super.setFields(fields); + public QueryDirectoryContents setFields(java.lang.String fields) { + return (QueryDirectoryContents) super.setFields(fields); } @Override - public FetchHistory setKey(java.lang.String key) { - return (FetchHistory) super.setKey(key); + public QueryDirectoryContents setKey(java.lang.String key) { + return (QueryDirectoryContents) super.setKey(key); } @Override - public FetchHistory setOauthToken(java.lang.String oauthToken) { - return (FetchHistory) super.setOauthToken(oauthToken); + public QueryDirectoryContents setOauthToken(java.lang.String oauthToken) { + return (QueryDirectoryContents) super.setOauthToken(oauthToken); } @Override - public FetchHistory setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchHistory) super.setPrettyPrint(prettyPrint); + public QueryDirectoryContents setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDirectoryContents) super.setPrettyPrint(prettyPrint); } @Override - public FetchHistory setQuotaUser(java.lang.String quotaUser) { - return (FetchHistory) super.setQuotaUser(quotaUser); + public QueryDirectoryContents setQuotaUser(java.lang.String quotaUser) { + return (QueryDirectoryContents) super.setQuotaUser(quotaUser); } @Override - public FetchHistory setUploadType(java.lang.String uploadType) { - return (FetchHistory) super.setUploadType(uploadType); + public QueryDirectoryContents setUploadType(java.lang.String uploadType) { + return (QueryDirectoryContents) super.setUploadType(uploadType); } @Override - public FetchHistory setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchHistory) super.setUploadProtocol(uploadProtocol); + public QueryDirectoryContents setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDirectoryContents) super.setUploadProtocol(uploadProtocol); } /** Required. The repository's name. */ @@ -4091,7 +3822,7 @@ public java.lang.String getName() { } /** Required. The repository's name. */ - public FetchHistory setName(java.lang.String name) { + public QueryDirectoryContents setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -4102,13 +3833,36 @@ public FetchHistory setName(java.lang.String name) { } /** - * Optional. Maximum number of commits to return. The server may return fewer items than + * Optional. The Commit SHA for the commit to query from. If unset, the directory will be + * queried from HEAD. + */ + @com.google.api.client.util.Key + private java.lang.String commitSha; + + /** Optional. The Commit SHA for the commit to query from. If unset, the directory will be queried from + HEAD. + */ + public java.lang.String getCommitSha() { + return commitSha; + } + + /** + * Optional. The Commit SHA for the commit to query from. If unset, the directory will be + * queried from HEAD. + */ + public QueryDirectoryContents setCommitSha(java.lang.String commitSha) { + this.commitSha = commitSha; + return this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer items than * requested. If unspecified, the server will pick an appropriate default. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of commits to return. The server may return fewer items than requested. If + /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. */ public java.lang.Integer getPageSize() { @@ -4116,88 +3870,113 @@ public java.lang.Integer getPageSize() { } /** - * Optional. Maximum number of commits to return. The server may return fewer items than + * Optional. Maximum number of paths to return. The server may return fewer items than * requested. If unspecified, the server will pick an appropriate default. */ - public FetchHistory setPageSize(java.lang.Integer pageSize) { + public QueryDirectoryContents setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + * match the call that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that provided the - page token. + /** Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. Provide this + to retrieve the subsequent page. When paginating, all other parameters provided to + `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must match the call that + provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + * match the call that provided the page token. */ - public FetchHistory setPageToken(java.lang.String pageToken) { + public QueryDirectoryContents setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } + /** + * Optional. The directory's full path including directory name, relative to root. If left + * unset, the root is used. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Optional. The directory's full path including directory name, relative to root. If left unset, the + root is used. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Optional. The directory's full path including directory name, relative to root. If left + * unset, the root is used. + */ + public QueryDirectoryContents setPath(java.lang.String path) { + this.path = path; + return this; + } + @Override - public FetchHistory set(String parameterName, Object value) { - return (FetchHistory) super.set(parameterName, value); + public QueryDirectoryContents set(String parameterName, Object value) { + return (QueryDirectoryContents) super.set(parameterName, value); } } /** - * Fetches a Repository's remote branches. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * - * Create a request for the method "repositories.fetchRemoteBranches". + * Create a request for the method "repositories.readFile". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link FetchRemoteBranches#execute()} method to invoke the remote operation. + * parameters, call the {@link ReadFile#execute()} method to invoke the remote operation. * * @param name Required. The repository's name. * @return the request */ - public FetchRemoteBranches fetchRemoteBranches(java.lang.String name) throws java.io.IOException { - FetchRemoteBranches result = new FetchRemoteBranches(name); + public ReadFile readFile(java.lang.String name) throws java.io.IOException { + ReadFile result = new ReadFile(name); initialize(result); return result; } - public class FetchRemoteBranches extends DataformRequest { + public class ReadFile extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:fetchRemoteBranches"; + private static final String REST_PATH = "v1/{+name}:readFile"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Fetches a Repository's remote branches. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * - * Create a request for the method "repositories.fetchRemoteBranches". + * Create a request for the method "repositories.readFile". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link FetchRemoteBranches#execute()} method to invoke the remote - * operation.

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

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

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

* * @param name Required. The repository's name. * @since 1.13 */ - protected FetchRemoteBranches(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchRemoteBranchesResponse.class); + protected ReadFile(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ReadRepositoryFileResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -4217,58 +3996,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public FetchRemoteBranches set$Xgafv(java.lang.String $Xgafv) { - return (FetchRemoteBranches) super.set$Xgafv($Xgafv); + public ReadFile set$Xgafv(java.lang.String $Xgafv) { + return (ReadFile) super.set$Xgafv($Xgafv); } @Override - public FetchRemoteBranches setAccessToken(java.lang.String accessToken) { - return (FetchRemoteBranches) super.setAccessToken(accessToken); + public ReadFile setAccessToken(java.lang.String accessToken) { + return (ReadFile) super.setAccessToken(accessToken); } @Override - public FetchRemoteBranches setAlt(java.lang.String alt) { - return (FetchRemoteBranches) super.setAlt(alt); + public ReadFile setAlt(java.lang.String alt) { + return (ReadFile) super.setAlt(alt); } @Override - public FetchRemoteBranches setCallback(java.lang.String callback) { - return (FetchRemoteBranches) super.setCallback(callback); + public ReadFile setCallback(java.lang.String callback) { + return (ReadFile) super.setCallback(callback); } @Override - public FetchRemoteBranches setFields(java.lang.String fields) { - return (FetchRemoteBranches) super.setFields(fields); + public ReadFile setFields(java.lang.String fields) { + return (ReadFile) super.setFields(fields); } @Override - public FetchRemoteBranches setKey(java.lang.String key) { - return (FetchRemoteBranches) super.setKey(key); + public ReadFile setKey(java.lang.String key) { + return (ReadFile) super.setKey(key); } @Override - public FetchRemoteBranches setOauthToken(java.lang.String oauthToken) { - return (FetchRemoteBranches) super.setOauthToken(oauthToken); + public ReadFile setOauthToken(java.lang.String oauthToken) { + return (ReadFile) super.setOauthToken(oauthToken); } @Override - public FetchRemoteBranches setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchRemoteBranches) super.setPrettyPrint(prettyPrint); + public ReadFile setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReadFile) super.setPrettyPrint(prettyPrint); } @Override - public FetchRemoteBranches setQuotaUser(java.lang.String quotaUser) { - return (FetchRemoteBranches) super.setQuotaUser(quotaUser); + public ReadFile setQuotaUser(java.lang.String quotaUser) { + return (ReadFile) super.setQuotaUser(quotaUser); } @Override - public FetchRemoteBranches setUploadType(java.lang.String uploadType) { - return (FetchRemoteBranches) super.setUploadType(uploadType); + public ReadFile setUploadType(java.lang.String uploadType) { + return (ReadFile) super.setUploadType(uploadType); } @Override - public FetchRemoteBranches setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchRemoteBranches) super.setUploadProtocol(uploadProtocol); + public ReadFile setUploadProtocol(java.lang.String uploadProtocol) { + return (ReadFile) super.setUploadProtocol(uploadProtocol); } /** Required. The repository's name. */ @@ -4282,7 +4061,7 @@ public java.lang.String getName() { } /** Required. The repository's name. */ - public FetchRemoteBranches setName(java.lang.String name) { + public ReadFile setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -4292,195 +4071,248 @@ public FetchRemoteBranches setName(java.lang.String name) { return this; } + /** + * Optional. The commit SHA for the commit to read from. If unset, the file will be read + * from HEAD. + */ + @com.google.api.client.util.Key + private java.lang.String commitSha; + + /** Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD. + */ + public java.lang.String getCommitSha() { + return commitSha; + } + + /** + * Optional. The commit SHA for the commit to read from. If unset, the file will be read + * from HEAD. + */ + public ReadFile setCommitSha(java.lang.String commitSha) { + this.commitSha = commitSha; + return this; + } + + /** Required. Full file path to read including filename, from repository root. */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Full file path to read including filename, from repository root. + */ + public java.lang.String getPath() { + return path; + } + + /** Required. Full file path to read including filename, from repository root. */ + public ReadFile setPath(java.lang.String path) { + this.path = path; + return this; + } + @Override - public FetchRemoteBranches set(String parameterName, Object value) { - return (FetchRemoteBranches) super.set(parameterName, value); + public ReadFile set(String parameterName, Object value) { + return (ReadFile) super.set(parameterName, value); } } /** - * Fetches a single Repository. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "repositories.get". + * Create a request for the method "repositories.setIamPolicy". * * This request holds the parameters needed by the dataform 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 name Required. The repository's name. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Get extends DataformRequest { + public class SetIamPolicy extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Fetches a single Repository. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "repositories.get". + * Create a request for the method "repositories.setIamPolicy". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 name Required. The repository's name. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Repository.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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); } - /** Required. The repository's name. */ + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. The repository's name. + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } - /** Required. The repository's name. */ - public Get setName(java.lang.String name) { + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } - this.name = name; + 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. Returns an empty policy if the resource exists and - * does not have a policy set. + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "repositories.getIamPolicy". + * Create a request for the method "repositories.testIamPermissions". * * This request holds the parameters needed by the dataform 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 resource REQUIRED: The resource for which the policy is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } - public class GetIamPolicy extends DataformRequest { + public class TestIamPermissions extends DataformRequest { - private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "repositories.getIamPolicy". + * Create a request for the method "repositories.testIamPermissions". * * This request holds the parameters needed by the the dataform 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.

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

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TestIamPermissionsResponse.class); this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), @@ -4490,79 +4322,69 @@ protected GetIamPolicy(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 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); } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource + * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; - /** REQUIRED: The resource for which the policy is being requested. See [Resource + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ @@ -4571,11 +4393,11 @@ public java.lang.String getResource() { } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource + * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ - 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 " + @@ -4585,1363 +4407,1261 @@ public GetIamPolicy setResource(java.lang.String resource) { return this; } - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - 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); - } - } /** - * Lists Repositories in a given project and location. **Note:** *This method can return - * repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. - * - * Create a request for the method "repositories.list". + * An accessor for creating requests from the CompilationResults collection. * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code Dataform dataform = new Dataform(...);}
+         *   {@code Dataform.CompilationResults.List request = dataform.compilationResults().list(parameters ...)}
+         * 
* - * @param parent Required. The location in which to list repositories. Must be in the format `projects/locations`. - * @return the request + * @return the resource collection */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + public CompilationResults compilationResults() { + return new CompilationResults(); } - public class List extends DataformRequest { - - private static final String REST_PATH = "v1/{+parent}/repositories"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "compilationResults" collection of methods. + */ + public class CompilationResults { /** - * Lists Repositories in a given project and location. **Note:** *This method can return - * repositories not shown in the [Dataform - * UI](https://console.cloud.google.com/bigquery/dataform)*. + * Creates a new CompilationResult in a given project and location. * - * Create a request for the method "repositories.list". + * Create a request for the method "compilationResults.create". * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The location in which to list repositories. Must be in the format `projects/locations`. - * @since 1.13 + * @param parent Required. The repository in which to create the compilation result. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.CompilationResult} + * @return the request */ - protected List(java.lang.String parent) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListRepositoriesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.CompilationResult content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Create extends DataformRequest { - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1/{+parent}/compilationResults"; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * Creates a new CompilationResult in a given project and location. + * + * Create a request for the method "compilationResults.create". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The repository in which to create the compilation result. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.CompilationResult} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.CompilationResult content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CompilationResult.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/locations`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** Required. The location in which to list repositories. Must be in the format `projects/locations`. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/locations`. - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - this.parent = parent; - return this; - } - /** Optional. Filter for the returned list. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The repository in which to create the compilation result. Must be in the + * format `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Optional. Filter for the returned list. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The repository in which to create the compilation result. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } - /** Optional. Filter for the returned list. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Required. The repository in which to create the compilation result. Must be in the + * format `projects/locations/repositories`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * Optional. This field only supports ordering by `name`. If unspecified, the server will - * choose the ordering. If specified, the default order is ascending for the `name` field. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. This field only supports ordering by `name`. If unspecified, the server will choose the - ordering. If specified, the default order is ascending for the `name` field. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } } - /** - * Optional. This field only supports ordering by `name`. If unspecified, the server will - * choose the ordering. If specified, the default order is ascending for the `name` field. + * Fetches a single CompilationResult. + * + * Create a request for the method "compilationResults.get". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The compilation result's name. + * @return the request */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * Optional. Maximum number of repositories to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + public class Get extends DataformRequest { - /** Optional. Maximum number of repositories to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + private static final String REST_PATH = "v1/{+name}"; - /** - * Optional. Maximum number of repositories to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); - /** - * Optional. Page token received from a previous `ListRepositories` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `ListRepositories`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Fetches a single CompilationResult. + * + * Create a request for the method "compilationResults.get". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The compilation result's name. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.CompilationResult.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + } + } - /** Optional. Page token received from a previous `ListRepositories` call. Provide this to retrieve the - subsequent page. When paginating, all other parameters provided to `ListRepositories`, with the - exception of `page_size`, must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** - * Optional. Page token received from a previous `ListRepositories` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `ListRepositories`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Moves a Repository to a new location. - * - * Create a request for the method "repositories.move". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. - * - * @param name Required. The full resource name of the repository to move. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveRepositoryRequest} - * @return the request - */ - public Move move(java.lang.String name, com.google.api.services.dataform.v1.model.MoveRepositoryRequest content) throws java.io.IOException { - Move result = new Move(name, content); - initialize(result); - return result; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - public class Move extends DataformRequest { + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - private static final String REST_PATH = "v1/{+name}:move"; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** - * Moves a Repository to a new location. - * - * Create a request for the method "repositories.move". - * - * This request holds the parameters needed by the the dataform 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 name Required. The full resource name of the repository to move. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveRepositoryRequest} - * @since 1.13 - */ - protected Move(java.lang.String name, com.google.api.services.dataform.v1.model.MoveRepositoryRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - } - @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); - } + /** Required. The compilation result's name. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); - } + /** Required. The compilation result's name. + */ + public java.lang.String getName() { + return name; + } - @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); - } + /** Required. The compilation result's name. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - - @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + /** + * Lists CompilationResults in a given Repository. + * + * Create a request for the method "compilationResults.list". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The repository in which to list compilation results. Must be in the format + * `projects/locations/repositories`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** Required. The full resource name of the repository to move. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends DataformRequest { - /** Required. The full resource name of the repository to move. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+parent}/compilationResults"; - /** Required. The full resource name of the repository to move. */ - public Move setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + + /** + * Lists CompilationResults in a given Repository. + * + * Create a request for the method "compilationResults.list". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The repository in which to list compilation results. Must be in the format + * `projects/locations/repositories`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListCompilationResultsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } } - this.name = name; - return this; - } - @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); - } - } - /** - * Updates a single Repository. **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and - * when the `field_mask` is omitted, the request is treated as a full update on all modifiable - * fields.* - * - * Create a request for the method "repositories.patch". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The repository's name. - * @param content the {@link com.google.api.services.dataform.v1.model.Repository} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.Repository content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - public class Patch extends DataformRequest { + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * Updates a single Repository. **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and - * when the `field_mask` is omitted, the request is treated as a full update on all modifiable - * fields.* - * - * Create a request for the method "repositories.patch". - * - * This request holds the parameters needed by the the dataform 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 name Identifier. The repository's name. - * @param content the {@link com.google.api.services.dataform.v1.model.Repository} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.Repository content) { - super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.Repository.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + /** + * Required. The repository in which to list compilation results. Must be in the format + * `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + /** Required. The repository in which to list compilation results. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The repository in which to list compilation results. Must be in the format + * `projects/locations/repositories`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } - /** Identifier. The repository's name. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Optional. Filter for the returned list. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** Identifier. The repository's name. - */ - public java.lang.String getName() { - return name; - } + /** Optional. Filter for the returned list. + */ + public java.lang.String getFilter() { + return filter; + } - /** Identifier. The repository's name. */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + /** Optional. Filter for the returned list. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - this.name = name; - return this; - } - /** - * Optional. Specifies the fields to be updated in the repository. If left unset, all - * fields will be updated. - */ - @com.google.api.client.util.Key - private String updateMask; + /** + * Optional. This field only supports ordering by `name` and `create_time`. If + * unspecified, the server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be - updated. - */ - public String getUpdateMask() { - return updateMask; - } + /** Optional. This field only supports ordering by `name` and `create_time`. If unspecified, the server + will choose the ordering. If specified, the default order is ascending for the `name` field. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - /** - * Optional. Specifies the fields to be updated in the repository. If left unset, all - * fields will be updated. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** + * Optional. This field only supports ordering by `name` and `create_time`. If + * unspecified, the server will choose the ordering. If specified, the default order is + * ascending for the `name` field. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. - * - * Create a request for the method "repositories.queryDirectoryContents". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link QueryDirectoryContents#execute()} method to invoke the remote - * operation. - * - * @param name Required. The repository's name. - * @return the request - */ - public QueryDirectoryContents queryDirectoryContents(java.lang.String name) throws java.io.IOException { - QueryDirectoryContents result = new QueryDirectoryContents(name); - initialize(result); - return result; - } + /** + * Optional. Maximum number of compilation results to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - public class QueryDirectoryContents extends DataformRequest { + /** Optional. Maximum number of compilation results to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - private static final String REST_PATH = "v1/{+name}:queryDirectoryContents"; + /** + * Optional. Maximum number of compilation results to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + /** + * Optional. Page token received from a previous `ListCompilationResults` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListCompilationResults`, with the exception of `page_size`, must match the call + * that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `ListCompilationResults` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListCompilationResults`, with the exception of `page_size`, must match the call that provided the + page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + /** + * Optional. Page token received from a previous `ListCompilationResults` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListCompilationResults`, with the exception of `page_size`, must match the call + * that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns CompilationResultActions in a given CompilationResult. * - * Create a request for the method "repositories.queryDirectoryContents". + * Create a request for the method "compilationResults.query". * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link QueryDirectoryContents#execute()} method to invoke the - * remote operation.

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

+ * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. * - * @param name Required. The repository's name. - * @since 1.13 + * @param name Required. The compilation result's name. + * @return the request */ - protected QueryDirectoryContents(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryRepositoryDirectoryContentsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); - } + public Query query(java.lang.String name) throws java.io.IOException { + Query result = new Query(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Query extends DataformRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1/{+name}:query"; - @Override - public QueryDirectoryContents set$Xgafv(java.lang.String $Xgafv) { - return (QueryDirectoryContents) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); - @Override - public QueryDirectoryContents setAccessToken(java.lang.String accessToken) { - return (QueryDirectoryContents) super.setAccessToken(accessToken); - } + /** + * Returns CompilationResultActions in a given CompilationResult. + * + * Create a request for the method "compilationResults.query". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The compilation result's name. + * @since 1.13 + */ + protected Query(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryCompilationResultActionsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + } + } - @Override - public QueryDirectoryContents setAlt(java.lang.String alt) { - return (QueryDirectoryContents) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public QueryDirectoryContents setCallback(java.lang.String callback) { - return (QueryDirectoryContents) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public QueryDirectoryContents setFields(java.lang.String fields) { - return (QueryDirectoryContents) super.setFields(fields); - } + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } - @Override - public QueryDirectoryContents setKey(java.lang.String key) { - return (QueryDirectoryContents) super.setKey(key); - } + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } - @Override - public QueryDirectoryContents setOauthToken(java.lang.String oauthToken) { - return (QueryDirectoryContents) super.setOauthToken(oauthToken); - } + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } - @Override - public QueryDirectoryContents setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryDirectoryContents) super.setPrettyPrint(prettyPrint); - } + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } - @Override - public QueryDirectoryContents setQuotaUser(java.lang.String quotaUser) { - return (QueryDirectoryContents) super.setQuotaUser(quotaUser); - } + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } - @Override - public QueryDirectoryContents setUploadType(java.lang.String uploadType) { - return (QueryDirectoryContents) super.setUploadType(uploadType); - } + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } - @Override - public QueryDirectoryContents setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryDirectoryContents) super.setUploadProtocol(uploadProtocol); - } + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } - /** Required. The repository's name. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } - /** Required. The repository's name. - */ - public java.lang.String getName() { - return name; - } + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } - /** Required. The repository's name. */ - public QueryDirectoryContents setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); } - this.name = name; - return this; - } - /** - * Optional. The Commit SHA for the commit to query from. If unset, the directory will be - * queried from HEAD. - */ - @com.google.api.client.util.Key - private java.lang.String commitSha; + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } - /** Optional. The Commit SHA for the commit to query from. If unset, the directory will be queried from - HEAD. - */ - public java.lang.String getCommitSha() { - return commitSha; - } + /** Required. The compilation result's name. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. The Commit SHA for the commit to query from. If unset, the directory will be - * queried from HEAD. - */ - public QueryDirectoryContents setCommitSha(java.lang.String commitSha) { - this.commitSha = commitSha; - return this; - } + /** Required. The compilation result's name. + */ + public java.lang.String getName() { + return name; + } - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Required. The compilation result's name. */ + public Query setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + } + this.name = name; + return this; + } - /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If - unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Optional. Optional filter for the returned list. Filtering is only currently + * supported on the `file_path` field. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - public QueryDirectoryContents setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Optional. Optional filter for the returned list. Filtering is only currently supported on the + `file_path` field. + */ + public java.lang.String getFilter() { + return filter; + } - /** - * Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - * match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Optional. Optional filter for the returned list. Filtering is only currently + * supported on the `file_path` field. + */ + public Query setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. Provide this - to retrieve the subsequent page. When paginating, all other parameters provided to - `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must match the call that - provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Optional. Maximum number of compilation results to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - * match the call that provided the page token. - */ - public QueryDirectoryContents setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Optional. Maximum number of compilation results to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * Optional. The directory's full path including directory name, relative to root. If left - * unset, the root is used. - */ - @com.google.api.client.util.Key - private java.lang.String path; + /** + * Optional. Maximum number of compilation results to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. + */ + public Query setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** Optional. The directory's full path including directory name, relative to root. If left unset, the - root is used. - */ - public java.lang.String getPath() { - return path; - } + /** + * Optional. Page token received from a previous `QueryCompilationResultActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `QueryCompilationResultActions`, with the exception of `page_size`, must + * match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * Optional. The directory's full path including directory name, relative to root. If left - * unset, the root is used. - */ - public QueryDirectoryContents setPath(java.lang.String path) { - this.path = path; - return this; - } + /** Optional. Page token received from a previous `QueryCompilationResultActions` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `QueryCompilationResultActions`, with the exception of `page_size`, must match the call that + provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public QueryDirectoryContents set(String parameterName, Object value) { - return (QueryDirectoryContents) super.set(parameterName, value); + /** + * Optional. Page token received from a previous `QueryCompilationResultActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `QueryCompilationResultActions`, with the exception of `page_size`, must + * match the call that provided the page token. + */ + public Query setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); + } } + } /** - * Returns the contents of a file (inside a Repository). The Repository must not have a value for - * `git_remote_settings.url`. - * - * Create a request for the method "repositories.readFile". + * An accessor for creating requests from the ReleaseConfigs collection. * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link ReadFile#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code Dataform dataform = new Dataform(...);}
+         *   {@code Dataform.ReleaseConfigs.List request = dataform.releaseConfigs().list(parameters ...)}
+         * 
* - * @param name Required. The repository's name. - * @return the request + * @return the resource collection */ - public ReadFile readFile(java.lang.String name) throws java.io.IOException { - ReadFile result = new ReadFile(name); - initialize(result); - return result; + public ReleaseConfigs releaseConfigs() { + return new ReleaseConfigs(); } - public class ReadFile extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}:readFile"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + /** + * The "releaseConfigs" collection of methods. + */ + public class ReleaseConfigs { /** - * Returns the contents of a file (inside a Repository). The Repository must not have a value for - * `git_remote_settings.url`. + * Creates a new ReleaseConfig in a given Repository. * - * Create a request for the method "repositories.readFile". + * Create a request for the method "releaseConfigs.create". * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link ReadFile#execute()} method to invoke the remote operation. - *

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

+ * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. The repository's name. - * @since 1.13 + * @param parent Required. The repository in which to create the release config. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} + * @return the request */ - protected ReadFile(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ReadRepositoryFileResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.ReleaseConfig content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Create extends DataformRequest { - @Override - public ReadFile set$Xgafv(java.lang.String $Xgafv) { - return (ReadFile) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1/{+parent}/releaseConfigs"; - @Override - public ReadFile setAccessToken(java.lang.String accessToken) { - return (ReadFile) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); - @Override - public ReadFile setAlt(java.lang.String alt) { - return (ReadFile) super.setAlt(alt); - } + /** + * Creates a new ReleaseConfig in a given Repository. + * + * Create a request for the method "releaseConfigs.create". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The repository in which to create the release config. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.ReleaseConfig content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.ReleaseConfig.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } - @Override - public ReadFile setCallback(java.lang.String callback) { - return (ReadFile) super.setCallback(callback); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public ReadFile setFields(java.lang.String fields) { - return (ReadFile) super.setFields(fields); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public ReadFile setKey(java.lang.String key) { - return (ReadFile) super.setKey(key); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public ReadFile setOauthToken(java.lang.String oauthToken) { - return (ReadFile) super.setOauthToken(oauthToken); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public ReadFile setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReadFile) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public ReadFile setQuotaUser(java.lang.String quotaUser) { - return (ReadFile) super.setQuotaUser(quotaUser); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public ReadFile setUploadType(java.lang.String uploadType) { - return (ReadFile) super.setUploadType(uploadType); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public ReadFile setUploadProtocol(java.lang.String uploadProtocol) { - return (ReadFile) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Required. The repository's name. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** Required. The repository's name. - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Required. The repository's name. */ - public ReadFile setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - /** - * Optional. The commit SHA for the commit to read from. If unset, the file will be read - * from HEAD. - */ - @com.google.api.client.util.Key - private java.lang.String commitSha; + /** + * Required. The repository in which to create the release config. Must be in the format + * `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD. - */ - public java.lang.String getCommitSha() { - return commitSha; - } + /** Required. The repository in which to create the release config. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The repository in which to create the release config. Must be in the format + * `projects/locations/repositories`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the release config, which will become the final component + * of the release config's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String releaseConfigId; + + /** Required. The ID to use for the release config, which will become the final component of the + release config's resource name. + */ + public java.lang.String getReleaseConfigId() { + return releaseConfigId; + } + + /** + * Required. The ID to use for the release config, which will become the final component + * of the release config's resource name. + */ + public Create setReleaseConfigId(java.lang.String releaseConfigId) { + this.releaseConfigId = releaseConfigId; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } /** - * Optional. The commit SHA for the commit to read from. If unset, the file will be read - * from HEAD. + * Deletes a single ReleaseConfig. + * + * Create a request for the method "releaseConfigs.delete". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The release config's name. + * @return the request */ - public ReadFile setCommitSha(java.lang.String commitSha) { - this.commitSha = commitSha; - return this; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** Required. Full file path to read including filename, from repository root. */ - @com.google.api.client.util.Key - private java.lang.String path; + public class Delete extends DataformRequest { - /** Required. Full file path to read including filename, from repository root. - */ - public java.lang.String getPath() { - return path; - } + private static final String REST_PATH = "v1/{+name}"; - /** Required. Full file path to read including filename, from repository root. */ - public ReadFile setPath(java.lang.String path) { - this.path = path; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); - @Override - public ReadFile set(String parameterName, Object value) { - return (ReadFile) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "repositories.setIamPolicy". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataformRequest { - - private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + /** + * Deletes a single ReleaseConfig. + * + * Create a request for the method "releaseConfigs.delete". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The release config's name. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + } + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "repositories.setIamPolicy". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } - } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + /** Required. The release config's name. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + /** Required. The release config's name. + */ + public java.lang.String getName() { + return name; + } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; + /** Required. The release config's name. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + } + this.name = name; + return this; + } - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Fetches a single ReleaseConfig. + * + * Create a request for the method "releaseConfigs.get". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The release config's name. + * @return the 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 " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - } - /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. - * - * Create a request for the method "repositories.testIamPermissions". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - public class TestIamPermissions extends DataformRequest { + public class Get extends DataformRequest { - private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. - * - * Create a request for the method "repositories.testIamPermissions". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + /** + * Fetches a single ReleaseConfig. + * + * Create a request for the method "releaseConfigs.get". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The release config's name. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ReleaseConfig.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + } } - } - - @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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - this.resource = resource; - return this; - } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** Required. The release config's name. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An accessor for creating requests from the CompilationResults collection. - * - *

The typical use is:

- *
-         *   {@code Dataform dataform = new Dataform(...);}
-         *   {@code Dataform.CompilationResults.List request = dataform.compilationResults().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public CompilationResults compilationResults() { - return new CompilationResults(); - } + /** Required. The release config's name. + */ + public java.lang.String getName() { + return name; + } - /** - * The "compilationResults" collection of methods. - */ - public class CompilationResults { + /** Required. The release config's name. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Creates a new CompilationResult in a given project and location. + * Lists ReleaseConfigs in a given Repository. * - * Create a request for the method "compilationResults.create". + * Create a request for the method "releaseConfigs.list". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The repository in which to create the compilation result. Must be in the format + * @param parent Required. The repository in which to list release configs. Must be in the format * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.CompilationResult} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.CompilationResult content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends DataformRequest { + public class List extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/compilationResults"; + private static final String REST_PATH = "v1/{+parent}/releaseConfigs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Creates a new CompilationResult in a given project and location. + * Lists ReleaseConfigs in a given Repository. * - * Create a request for the method "compilationResults.create". + * Create a request for the method "releaseConfigs.list". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param parent Required. The repository in which to create the compilation result. Must be in the format + * @param parent Required. The repository in which to list release configs. Must be in the format * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.CompilationResult} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.CompilationResult content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CompilationResult.class); + protected List(java.lang.String parent) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListReleaseConfigsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -5951,68 +5671,78 @@ protected Create(java.lang.String parent, com.google.api.services.dataform.v1.mo } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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); } /** - * Required. The repository in which to create the compilation result. Must be in the - * format `projects/locations/repositories`. + * Required. The repository in which to list release configs. Must be in the format + * `projects/locations/repositories`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The repository in which to create the compilation result. Must be in the format + /** Required. The repository in which to list release configs. Must be in the format `projects/locations/repositories`. */ public java.lang.String getParent() { @@ -6020,10 +5750,10 @@ public java.lang.String getParent() { } /** - * Required. The repository in which to create the compilation result. Must be in the - * format `projects/locations/repositories`. + * Required. The repository in which to list release configs. Must be in the format + * `projects/locations/repositories`. */ - public Create setParent(java.lang.String parent) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + @@ -6033,190 +5763,288 @@ public Create setParent(java.lang.String parent) { return this; } + /** + * Optional. Maximum number of release configs to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of release configs to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of release configs to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListReleaseConfigs`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with + the exception of `page_size`, must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListReleaseConfigs`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Fetches a single CompilationResult. + * Updates a single ReleaseConfig. **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and + * when the `field_mask` is omitted, the request is treated as a full update on all modifiable + * fields.* * - * Create a request for the method "compilationResults.get". + * Create a request for the method "releaseConfigs.patch". * * This request holds the parameters needed by the dataform 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 name Required. The compilation result's name. + * @param name Identifier. The release config's name. + * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.ReleaseConfig content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends DataformRequest { + public class Patch extends DataformRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); /** - * Fetches a single CompilationResult. + * Updates a single ReleaseConfig. **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and + * when the `field_mask` is omitted, the request is treated as a full update on all modifiable + * fields.* * - * Create a request for the method "compilationResults.get". + * Create a request for the method "releaseConfigs.patch". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * 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 name Required. The compilation result's name. + * @param name Identifier. The release config's name. + * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.CompilationResult.class); + protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.ReleaseConfig content) { + super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.ReleaseConfig.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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); } - /** Required. The compilation result's name. */ + /** Identifier. The release config's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The compilation result's name. + /** Identifier. The release config's name. */ public java.lang.String getName() { return name; } - /** Required. The compilation result's name. */ - public Get setName(java.lang.String name) { + /** Identifier. The release config's name. */ + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); } this.name = name; return this; } + /** + * Optional. Specifies the fields to be updated in the release config. If left unset, + * all fields will be updated. + */ + @com.google.api.client.util.Key + private java.lang.String updateMask; + + /** Optional. Specifies the fields to be updated in the release config. If left unset, all fields will + be updated. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Specifies the fields to be updated in the release config. If left unset, + * all fields will be updated. + */ + public Patch setUpdateMask(java.lang.String updateMask) { + this.updateMask = updateMask; + 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); } } - /** - * Lists CompilationResults in a given Repository. - * - * Create a request for the method "compilationResults.list". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The repository in which to list compilation results. Must be in the format - * `projects/locations/repositories`. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + + } + /** + * An accessor for creating requests from the WorkflowConfigs collection. + * + *

The typical use is:

+ *
+         *   {@code Dataform dataform = new Dataform(...);}
+         *   {@code Dataform.WorkflowConfigs.List request = dataform.workflowConfigs().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public WorkflowConfigs workflowConfigs() { + return new WorkflowConfigs(); + } + + /** + * The "workflowConfigs" collection of methods. + */ + public class WorkflowConfigs { + + /** + * Creates a new WorkflowConfig in a given Repository. + * + * Create a request for the method "workflowConfigs.create". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The repository in which to create the workflow config. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowConfig content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class List extends DataformRequest { + public class Create extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/compilationResults"; + private static final String REST_PATH = "v1/{+parent}/workflowConfigs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Lists CompilationResults in a given Repository. + * Creates a new WorkflowConfig in a given Repository. * - * Create a request for the method "compilationResults.list". + * Create a request for the method "workflowConfigs.create". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* - * @param parent Required. The repository in which to list compilation results. Must be in the format + * @param parent Required. The repository in which to create the workflow config. Must be in the format * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListCompilationResultsResponse.class); + protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowConfig content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.WorkflowConfig.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -6226,78 +6054,68 @@ protected List(java.lang.String parent) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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 Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The repository in which to list compilation results. Must be in the format - * `projects/locations/repositories`. + * Required. The repository in which to create the workflow config. Must be in the + * format `projects/locations/repositories`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The repository in which to list compilation results. Must be in the format + /** Required. The repository in which to create the workflow config. Must be in the format `projects/locations/repositories`. */ public java.lang.String getParent() { @@ -6305,10 +6123,10 @@ public java.lang.String getParent() { } /** - * Required. The repository in which to list compilation results. Must be in the format - * `projects/locations/repositories`. + * Required. The repository in which to create the workflow config. Must be in the + * format `projects/locations/repositories`. */ - public List setParent(java.lang.String parent) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + @@ -6318,1184 +6136,842 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. Filter for the returned list. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filter for the returned list. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. Filter for the returned list. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. This field only supports ordering by `name` and `create_time`. If - * unspecified, the server will choose the ordering. If specified, the default order is - * ascending for the `name` field. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. This field only supports ordering by `name` and `create_time`. If unspecified, the server - will choose the ordering. If specified, the default order is ascending for the `name` field. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. This field only supports ordering by `name` and `create_time`. If - * unspecified, the server will choose the ordering. If specified, the default order is - * ascending for the `name` field. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of compilation results to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - /** - * Optional. Page token received from a previous `ListCompilationResults` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListCompilationResults`, with the exception of `page_size`, must match the call - * that provided the page token. + * Required. The ID to use for the workflow config, which will become the final + * component of the workflow config's resource name. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String workflowConfigId; - /** Optional. Page token received from a previous `ListCompilationResults` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `ListCompilationResults`, with the exception of `page_size`, must match the call that provided the - page token. + /** Required. The ID to use for the workflow config, which will become the final component of the + workflow config's resource name. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getWorkflowConfigId() { + return workflowConfigId; } /** - * Optional. Page token received from a previous `ListCompilationResults` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListCompilationResults`, with the exception of `page_size`, must match the call - * that provided the page token. + * Required. The ID to use for the workflow config, which will become the final + * component of the workflow config's resource name. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Create setWorkflowConfigId(java.lang.String workflowConfigId) { + this.workflowConfigId = workflowConfigId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single WorkflowConfig. * - * Create a request for the method "compilationResults.query". + * Create a request for the method "workflowConfigs.delete". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The compilation result's name. + * @param name Required. The workflow config's name. * @return the request */ - public Query query(java.lang.String name) throws java.io.IOException { - Query result = new Query(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Query extends DataformRequest { + public class Delete extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:query"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single WorkflowConfig. * - * Create a request for the method "compilationResults.query". + * Create a request for the method "workflowConfigs.delete". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

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

* - * @param name Required. The compilation result's name. + * @param name Required. The workflow config's name. * @since 1.13 */ - protected Query(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryCompilationResultActionsResponse.class); + protected Delete(java.lang.String name) { + super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Query set$Xgafv(java.lang.String $Xgafv) { - return (Query) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Query setAccessToken(java.lang.String accessToken) { - return (Query) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Query setAlt(java.lang.String alt) { - return (Query) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Query setCallback(java.lang.String callback) { - return (Query) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Query setFields(java.lang.String fields) { - return (Query) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Query setKey(java.lang.String key) { - return (Query) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Query setOauthToken(java.lang.String oauthToken) { - return (Query) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Query setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Query) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Query setQuotaUser(java.lang.String quotaUser) { - return (Query) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Query setUploadType(java.lang.String uploadType) { - return (Query) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Query setUploadProtocol(java.lang.String uploadProtocol) { - return (Query) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The compilation result's name. */ + /** Required. The workflow config's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The compilation result's name. + /** Required. The workflow config's name. */ public java.lang.String getName() { return name; } - /** Required. The compilation result's name. */ - public Query setName(java.lang.String name) { + /** Required. The workflow config's name. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); } this.name = name; return this; } - /** - * Optional. Optional filter for the returned list. Filtering is only currently - * supported on the `file_path` field. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Optional filter for the returned list. Filtering is only currently supported on the - `file_path` field. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. Optional filter for the returned list. Filtering is only currently - * supported on the `file_path` field. - */ - public Query setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of compilation results to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of compilation results to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - public Query setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `QueryCompilationResultActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to `QueryCompilationResultActions`, with the exception of `page_size`, must - * match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token received from a previous `QueryCompilationResultActions` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `QueryCompilationResultActions`, with the exception of `page_size`, must match the call that - provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token received from a previous `QueryCompilationResultActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to `QueryCompilationResultActions`, with the exception of `page_size`, must - * match the call that provided the page token. - */ - public Query setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - @Override - public Query set(String parameterName, Object value) { - return (Query) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the ReleaseConfigs collection. - * - *

The typical use is:

- *
-         *   {@code Dataform dataform = new Dataform(...);}
-         *   {@code Dataform.ReleaseConfigs.List request = dataform.releaseConfigs().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public ReleaseConfigs releaseConfigs() { - return new ReleaseConfigs(); - } - - /** - * The "releaseConfigs" collection of methods. - */ - public class ReleaseConfigs { - /** - * Creates a new ReleaseConfig in a given Repository. + * Fetches a single WorkflowConfig. * - * Create a request for the method "releaseConfigs.create". + * Create a request for the method "workflowConfigs.get". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The repository in which to create the release config. Must be in the format - * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} + * @param name Required. The workflow config's name. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.ReleaseConfig content) throws java.io.IOException { - Create result = new Create(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Create extends DataformRequest { + public class Get extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/releaseConfigs"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); /** - * Creates a new ReleaseConfig in a given Repository. + * Fetches a single WorkflowConfig. * - * Create a request for the method "releaseConfigs.create". + * Create a request for the method "workflowConfigs.get". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param parent Required. The repository in which to create the release config. Must be in the format - * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} + * @param name Required. The workflow config's name. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.ReleaseConfig content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.ReleaseConfig.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.WorkflowConfig.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. The repository in which to create the release config. Must be in the format - * `projects/locations/repositories`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The repository in which to create the release config. Must be in the format - `projects/locations/repositories`. - */ - public java.lang.String getParent() { - return parent; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Required. The repository in which to create the release config. Must be in the format - * `projects/locations/repositories`. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); - } - this.parent = parent; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The ID to use for the release config, which will become the final component - * of the release config's resource name. - */ + /** Required. The workflow config's name. */ @com.google.api.client.util.Key - private java.lang.String releaseConfigId; + private java.lang.String name; - /** Required. The ID to use for the release config, which will become the final component of the - release config's resource name. + /** Required. The workflow config's name. */ - public java.lang.String getReleaseConfigId() { - return releaseConfigId; + public java.lang.String getName() { + return name; } - /** - * Required. The ID to use for the release config, which will become the final component - * of the release config's resource name. - */ - public Create setReleaseConfigId(java.lang.String releaseConfigId) { - this.releaseConfigId = releaseConfigId; + /** Required. The workflow config's name. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + } + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a single ReleaseConfig. + * Lists WorkflowConfigs in a given Repository. * - * Create a request for the method "releaseConfigs.delete". + * Create a request for the method "workflowConfigs.list". * * This request holds the parameters needed by the dataform 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 name Required. The release config's name. + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/locations/repositories`. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends DataformRequest { + public class List extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/workflowConfigs"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Deletes a single ReleaseConfig. + * Lists WorkflowConfigs in a given Repository. * - * Create a request for the method "releaseConfigs.delete". + * Create a request for the method "workflowConfigs.list". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param name Required. The release config's name. + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/locations/repositories`. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListWorkflowConfigsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @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); - } - - /** Required. The release config's name. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The release config's name. - */ - public java.lang.String getName() { - return name; + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** Required. The release config's name. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); - } - this.name = name; - return this; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - } - /** - * Fetches a single ReleaseConfig. - * - * Create a request for the method "releaseConfigs.get". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The release config's name. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + /** + * Required. The repository in which to list workflow configs. Must be in the format + * `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + /** Required. The repository in which to list workflow configs. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } /** - * Fetches a single ReleaseConfig. - * - * Create a request for the method "releaseConfigs.get". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The release config's name. - * @since 1.13 + * Required. The repository in which to list workflow configs. Must be in the format + * `projects/locations/repositories`. */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ReleaseConfig.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } + this.parent = parent; + return this; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Optional. Maximum number of workflow configs to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Optional. Maximum number of workflow configs to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Optional. Maximum number of workflow configs to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - /** Required. The release config's name. */ + /** + * Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListWorkflowConfigs`, with the exception of `page_size`, must match the call that + * provided the page token. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String pageToken; - /** Required. The release config's name. + /** Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `ListWorkflowConfigs`, with + the exception of `page_size`, must match the call that provided the page token. */ - public java.lang.String getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } - /** Required. The release config's name. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); - } - this.name = name; + /** + * Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListWorkflowConfigs`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; 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); } } /** - * Lists ReleaseConfigs in a given Repository. + * Updates a single WorkflowConfig. **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and + * when the `field_mask` is omitted, the request is treated as a full update on all modifiable + * fields.* * - * Create a request for the method "releaseConfigs.list". + * Create a request for the method "workflowConfigs.patch". * * This request holds the parameters needed by the dataform 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 parent Required. The repository in which to list release configs. Must be in the format - * `projects/locations/repositories`. + * @param name Identifier. The workflow config's name. + * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.WorkflowConfig content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class List extends DataformRequest { + public class Patch extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/releaseConfigs"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); /** - * Lists ReleaseConfigs in a given Repository. + * Updates a single WorkflowConfig. **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and + * when the `field_mask` is omitted, the request is treated as a full update on all modifiable + * fields.* * - * Create a request for the method "releaseConfigs.list". + * Create a request for the method "workflowConfigs.patch". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * 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 parent Required. The repository in which to list release configs. Must be in the format - * `projects/locations/repositories`. + * @param name Identifier. The workflow config's name. + * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListReleaseConfigsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.WorkflowConfig content) { + super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.WorkflowConfig.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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); } - /** - * Required. The repository in which to list release configs. Must be in the format - * `projects/locations/repositories`. - */ + /** Identifier. The workflow config's name. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The repository in which to list release configs. Must be in the format - `projects/locations/repositories`. + /** Identifier. The workflow config's name. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The repository in which to list release configs. Must be in the format - * `projects/locations/repositories`. - */ - public List setParent(java.lang.String parent) { + /** Identifier. The workflow config's name. */ + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } /** - * Optional. Maximum number of release configs to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate default. + * Optional. Specifies the fields to be updated in the workflow config. If left unset, + * all fields will be updated. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String updateMask; - /** Optional. Maximum number of release configs to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. + /** Optional. Specifies the fields to be updated in the workflow config. If left unset, all fields will + be updated. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getUpdateMask() { + return updateMask; } /** - * Optional. Maximum number of release configs to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListReleaseConfigs`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to `ListReleaseConfigs`, with - the exception of `page_size`, must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token received from a previous `ListReleaseConfigs` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListReleaseConfigs`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. Specifies the fields to be updated in the workflow config. If left unset, + * all fields will be updated. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Patch setUpdateMask(java.lang.String updateMask) { + this.updateMask = updateMask; 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 WorkflowInvocations collection. + * + *

The typical use is:

+ *
+         *   {@code Dataform dataform = new Dataform(...);}
+         *   {@code Dataform.WorkflowInvocations.List request = dataform.workflowInvocations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public WorkflowInvocations workflowInvocations() { + return new WorkflowInvocations(); + } + + /** + * The "workflowInvocations" collection of methods. + */ + public class WorkflowInvocations { + /** - * Updates a single ReleaseConfig. **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and - * when the `field_mask` is omitted, the request is treated as a full update on all modifiable - * fields.* + * Requests cancellation of a running WorkflowInvocation. * - * Create a request for the method "releaseConfigs.patch". + * Create a request for the method "workflowInvocations.cancel". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Identifier. The release config's name. - * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} + * @param name Required. The workflow invocation resource's name. + * @param content the {@link com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.ReleaseConfig content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Cancel cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Patch extends DataformRequest { + public class Cancel extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); /** - * Updates a single ReleaseConfig. **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and - * when the `field_mask` is omitted, the request is treated as a full update on all modifiable - * fields.* + * Requests cancellation of a running WorkflowInvocation. * - * Create a request for the method "releaseConfigs.patch". + * Create a request for the method "workflowInvocations.cancel". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. *

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

* - * @param name Identifier. The release config's name. - * @param content the {@link com.google.api.services.dataform.v1.model.ReleaseConfig} + * @param name Required. The workflow invocation resource's name. + * @param content the {@link com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.ReleaseConfig content) { - super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.ReleaseConfig.class); + protected Cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CancelWorkflowInvocationResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** Identifier. The release config's name. */ + /** Required. The workflow invocation resource's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The release config's name. + /** Required. The workflow invocation resource's name. */ public java.lang.String getName() { return name; } - /** Identifier. The release config's name. */ - public Patch setName(java.lang.String name) { + /** Required. The workflow invocation resource's name. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. Specifies the fields to be updated in the release config. If left unset, - * all fields will be updated. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Specifies the fields to be updated in the release config. If left unset, all fields will - be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. Specifies the fields to be updated in the release config. If left unset, - * all fields will be updated. - */ - 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 Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the WorkflowConfigs collection. - * - *

The typical use is:

- *
-         *   {@code Dataform dataform = new Dataform(...);}
-         *   {@code Dataform.WorkflowConfigs.List request = dataform.workflowConfigs().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public WorkflowConfigs workflowConfigs() { - return new WorkflowConfigs(); - } - - /** - * The "workflowConfigs" collection of methods. - */ - public class WorkflowConfigs { - /** - * Creates a new WorkflowConfig in a given Repository. + * Creates a new WorkflowInvocation in a given Repository. * - * Create a request for the method "workflowConfigs.create". + * Create a request for the method "workflowInvocations.create". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The repository in which to create the workflow config. Must be in the format + * @param parent Required. The repository in which to create the workflow invocation. Must be in the format * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} + * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowInvocation} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowConfig content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowInvocation content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends DataformRequest { + public class Create extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/workflowConfigs"; + private static final String REST_PATH = "v1/{+parent}/workflowInvocations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Creates a new WorkflowConfig in a given Repository. + * Creates a new WorkflowInvocation in a given Repository. * - * Create a request for the method "workflowConfigs.create". + * Create a request for the method "workflowInvocations.create". * * This request holds the parameters needed by the the dataform server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -7503,13 +6979,13 @@ public class Create extends DataformRequest * - * @param parent Required. The repository in which to create the workflow config. Must be in the format + * @param parent Required. The repository in which to create the workflow invocation. Must be in the format * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} + * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowInvocation} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowConfig content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.WorkflowConfig.class); + protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowInvocation content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.WorkflowInvocation.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -7574,13 +7050,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The repository in which to create the workflow config. Must be in the + * Required. The repository in which to create the workflow invocation. Must be in the * format `projects/locations/repositories`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The repository in which to create the workflow config. Must be in the format + /** Required. The repository in which to create the workflow invocation. Must be in the format `projects/locations/repositories`. */ public java.lang.String getParent() { @@ -7588,7 +7064,7 @@ public java.lang.String getParent() { } /** - * Required. The repository in which to create the workflow config. Must be in the + * Required. The repository in which to create the workflow invocation. Must be in the * format `projects/locations/repositories`. */ public Create setParent(java.lang.String parent) { @@ -7601,43 +7077,20 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Required. The ID to use for the workflow config, which will become the final - * component of the workflow config's resource name. - */ - @com.google.api.client.util.Key - private java.lang.String workflowConfigId; - - /** Required. The ID to use for the workflow config, which will become the final component of the - workflow config's resource name. - */ - public java.lang.String getWorkflowConfigId() { - return workflowConfigId; - } - - /** - * Required. The ID to use for the workflow config, which will become the final - * component of the workflow config's resource name. - */ - public Create setWorkflowConfigId(java.lang.String workflowConfigId) { - this.workflowConfigId = workflowConfigId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Deletes a single WorkflowConfig. + * Deletes a single WorkflowInvocation. * - * Create a request for the method "workflowConfigs.delete". + * Create a request for the method "workflowInvocations.delete". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The workflow config's name. + * @param name Required. The workflow invocation resource's name. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -7651,12 +7104,12 @@ public class Delete extends DataformRequest * - * @param name Required. The workflow config's name. + * @param name Required. The workflow invocation resource's name. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -7673,7 +7126,7 @@ protected Delete(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } } @@ -7732,22 +7185,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The workflow config's name. */ + /** Required. The workflow invocation resource's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The workflow config's name. + /** Required. The workflow invocation resource's name. */ public java.lang.String getName() { return name; } - /** Required. The workflow config's name. */ + /** Required. The workflow invocation resource's name. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } this.name = name; return this; @@ -7759,14 +7212,14 @@ public Delete set(String parameterName, Object value) { } } /** - * Fetches a single WorkflowConfig. + * Fetches a single WorkflowInvocation. * - * Create a request for the method "workflowConfigs.get". + * Create a request for the method "workflowInvocations.get". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The workflow config's name. + * @param name Required. The workflow invocation resource's name. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -7775,33 +7228,33 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends DataformRequest { + public class Get extends DataformRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); /** - * Fetches a single WorkflowConfig. + * Fetches a single WorkflowInvocation. * - * Create a request for the method "workflowConfigs.get". + * Create a request for the method "workflowInvocations.get". * * This request holds the parameters needed by the the dataform server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The workflow config's name. + * @param name Required. The workflow invocation resource's name. * @since 1.13 */ protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.WorkflowConfig.class); + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.WorkflowInvocation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } } @@ -7870,22 +7323,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The workflow config's name. */ + /** Required. The workflow invocation resource's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The workflow config's name. + /** Required. The workflow invocation resource's name. */ public java.lang.String getName() { return name; } - /** Required. The workflow config's name. */ + /** Required. The workflow invocation resource's name. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } this.name = name; return this; @@ -7897,14 +7350,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists WorkflowConfigs in a given Repository. + * Lists WorkflowInvocations in a given Repository. * - * Create a request for the method "workflowConfigs.list". + * Create a request for the method "workflowInvocations.list". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The repository in which to list workflow configs. Must be in the format + * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the format * `projects/locations/repositories`. * @return the request */ @@ -7914,29 +7367,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends DataformRequest { + public class List extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/workflowConfigs"; + private static final String REST_PATH = "v1/{+parent}/workflowInvocations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Lists WorkflowConfigs in a given Repository. + * Lists WorkflowInvocations in a given Repository. * - * Create a request for the method "workflowConfigs.list". + * Create a request for the method "workflowInvocations.list". * * This request holds the parameters needed by the the dataform server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* - * @param parent Required. The repository in which to list workflow configs. Must be in the format + * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the format * `projects/locations/repositories`. * @since 1.13 */ protected List(java.lang.String parent) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListWorkflowConfigsResponse.class); + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListWorkflowInvocationsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -8011,13 +7464,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The repository in which to list workflow configs. Must be in the format + * Required. The parent resource of the WorkflowInvocation type. Must be in the format * `projects/locations/repositories`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The repository in which to list workflow configs. Must be in the format + /** Required. The parent resource of the WorkflowInvocation type. Must be in the format `projects/locations/repositories`. */ public java.lang.String getParent() { @@ -8025,7 +7478,7 @@ public java.lang.String getParent() { } /** - * Required. The repository in which to list workflow configs. Must be in the format + * Required. The parent resource of the WorkflowInvocation type. Must be in the format * `projects/locations/repositories`. */ public List setParent(java.lang.String parent) { @@ -8038,14 +7491,56 @@ public List setParent(java.lang.String parent) { return this; } + /** Optional. Filter for the returned list. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter for the returned list. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter for the returned list. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + /** - * Optional. Maximum number of workflow configs to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate default. + * Optional. This field only supports ordering by `name`. If unspecified, the server + * will choose the ordering. If specified, the default order is ascending for the `name` + * field. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field only supports ordering by `name`. If unspecified, the server will choose the + ordering. If specified, the default order is ascending for the `name` field. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field only supports ordering by `name`. If unspecified, the server + * will choose the ordering. If specified, the default order is ascending for the `name` + * field. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Maximum number of workflow invocations to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of workflow configs to return. The server may return fewer items than + /** Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. */ public java.lang.Integer getPageSize() { @@ -8053,8 +7548,9 @@ public java.lang.Integer getPageSize() { } /** - * Optional. Maximum number of workflow configs to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate default. + * Optional. Maximum number of workflow invocations to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -8062,27 +7558,28 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide + * Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListWorkflowConfigs`, with the exception of `page_size`, must match the call that - * provided the page token. + * to `ListWorkflowInvocations`, with the exception of `page_size`, must match the call + * that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to `ListWorkflowConfigs`, with - the exception of `page_size`, must match the call that provided the page token. + /** Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListWorkflowInvocations`, with the exception of `page_size`, must match the call that provided the + page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide + * Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListWorkflowConfigs`, with the exception of `page_size`, must match the call that - * provided the page token. + * to `ListWorkflowInvocations`, with the exception of `page_size`, must match the call + * that provided the page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -8095,348 +7592,381 @@ public List set(String parameterName, Object value) { } } /** - * Updates a single WorkflowConfig. **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and - * when the `field_mask` is omitted, the request is treated as a full update on all modifiable - * fields.* + * Returns WorkflowInvocationActions in a given WorkflowInvocation. * - * Create a request for the method "workflowConfigs.patch". + * Create a request for the method "workflowInvocations.query". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Query#execute()} method to invoke the remote operation. * - * @param name Identifier. The workflow config's name. - * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} + * @param name Required. The workflow invocation's name. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.WorkflowConfig content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Query query(java.lang.String name) throws java.io.IOException { + Query result = new Query(name); initialize(result); return result; } - public class Patch extends DataformRequest { + public class Query extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:query"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); /** - * Updates a single WorkflowConfig. **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry () is treated as a bad request, and - * when the `field_mask` is omitted, the request is treated as a full update on all modifiable - * fields.* + * Returns WorkflowInvocationActions in a given WorkflowInvocation. * - * Create a request for the method "workflowConfigs.patch". + * Create a request for the method "workflowInvocations.query". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. *

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

* - * @param name Identifier. The workflow config's name. - * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowConfig} + * @param name Required. The workflow invocation's name. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.WorkflowConfig content) { - super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.WorkflowConfig.class); + protected Query(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryWorkflowInvocationActionsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } } @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 Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); } - /** Identifier. The workflow config's name. */ + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } + + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The workflow invocation's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The workflow config's name. + /** Required. The workflow invocation's name. */ public java.lang.String getName() { return name; } - /** Identifier. The workflow config's name. */ - public Patch setName(java.lang.String name) { + /** Required. The workflow invocation's name. */ + public Query setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); } this.name = name; return this; } /** - * Optional. Specifies the fields to be updated in the workflow config. If left unset, - * all fields will be updated. + * Optional. Maximum number of workflow invocations to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.Integer pageSize; - /** Optional. Specifies the fields to be updated in the workflow config. If left unset, all fields will - be updated. + /** Optional. Maximum number of workflow invocations to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. */ - public String getUpdateMask() { - return updateMask; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. Specifies the fields to be updated in the workflow config. If left unset, - * all fields will be updated. + * Optional. Maximum number of workflow invocations to return. The server may return + * fewer items than requested. If unspecified, the server will pick an appropriate + * default. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public Query setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + * match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. Provide this + to retrieve the subsequent page. When paginating, all other parameters provided to + `QueryWorkflowInvocationActions`, with the exception of `page_size`, must match the call that + provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + * match the call that provided the page token. + */ + public Query setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the WorkflowInvocations collection. + * An accessor for creating requests from the Workspaces collection. * *

The typical use is:

*
          *   {@code Dataform dataform = new Dataform(...);}
-         *   {@code Dataform.WorkflowInvocations.List request = dataform.workflowInvocations().list(parameters ...)}
+         *   {@code Dataform.Workspaces.List request = dataform.workspaces().list(parameters ...)}
          * 
* * @return the resource collection */ - public WorkflowInvocations workflowInvocations() { - return new WorkflowInvocations(); + public Workspaces workspaces() { + return new Workspaces(); } /** - * The "workflowInvocations" collection of methods. + * The "workspaces" collection of methods. */ - public class WorkflowInvocations { + public class Workspaces { /** - * Requests cancellation of a running WorkflowInvocation. + * Applies a Git commit for uncommitted files in a Workspace. * - * Create a request for the method "workflowInvocations.cancel". + * Create a request for the method "workspaces.commit". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link Commit#execute()} method to invoke the remote operation. * - * @param name Required. The workflow invocation resource's name. - * @param content the {@link com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest} + * @param name Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest} * @return the request */ - public Cancel cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest content) throws java.io.IOException { - Cancel result = new Cancel(name, content); + public Commit commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest content) throws java.io.IOException { + Commit result = new Commit(name, content); initialize(result); return result; } - public class Cancel extends DataformRequest { + public class Commit extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:cancel"; + private static final String REST_PATH = "v1/{+name}:commit"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Requests cancellation of a running WorkflowInvocation. + * Applies a Git commit for uncommitted files in a Workspace. * - * Create a request for the method "workflowInvocations.cancel". + * Create a request for the method "workspaces.commit". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Commit#execute()} method to invoke the remote operation. *

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

* - * @param name Required. The workflow invocation resource's name. - * @param content the {@link com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest} + * @param name Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest} * @since 1.13 */ - protected Cancel(java.lang.String name, com.google.api.services.dataform.v1.model.CancelWorkflowInvocationRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CancelWorkflowInvocationResponse.class); + protected Commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CommitWorkspaceChangesResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Commit set$Xgafv(java.lang.String $Xgafv) { + return (Commit) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Commit setAccessToken(java.lang.String accessToken) { + return (Commit) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Commit setAlt(java.lang.String alt) { + return (Commit) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Commit setCallback(java.lang.String callback) { + return (Commit) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Commit setFields(java.lang.String fields) { + return (Commit) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Commit setKey(java.lang.String key) { + return (Commit) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Commit setOauthToken(java.lang.String oauthToken) { + return (Commit) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Commit) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Commit setQuotaUser(java.lang.String quotaUser) { + return (Commit) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Commit setUploadType(java.lang.String uploadType) { + return (Commit) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Commit setUploadProtocol(java.lang.String uploadProtocol) { + return (Commit) super.setUploadProtocol(uploadProtocol); } - /** Required. The workflow invocation resource's name. */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The workflow invocation resource's name. + /** Required. The workspace's name. */ public java.lang.String getName() { return name; } - /** Required. The workflow invocation resource's name. */ - public Cancel setName(java.lang.String name) { + /** Required. The workspace's name. */ + public Commit setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Commit set(String parameterName, Object value) { + return (Commit) super.set(parameterName, value); } } /** - * Creates a new WorkflowInvocation in a given Repository. + * Creates a new Workspace in a given Repository. * - * Create a request for the method "workflowInvocations.create". + * Create a request for the method "workspaces.create". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The repository in which to create the workflow invocation. Must be in the format + * @param parent Required. The repository in which to create the workspace. Must be in the format * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowInvocation} + * @param content the {@link com.google.api.services.dataform.v1.model.Workspace} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowInvocation content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.Workspace content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends DataformRequest { + public class Create extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/workflowInvocations"; + private static final String REST_PATH = "v1/{+parent}/workspaces"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Creates a new WorkflowInvocation in a given Repository. + * Creates a new Workspace in a given Repository. * - * Create a request for the method "workflowInvocations.create". + * Create a request for the method "workspaces.create". * * This request holds the parameters needed by the the dataform server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -8444,13 +7974,13 @@ public class Create extends DataformRequest * - * @param parent Required. The repository in which to create the workflow invocation. Must be in the format + * @param parent Required. The repository in which to create the workspace. Must be in the format * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.WorkflowInvocation} + * @param content the {@link com.google.api.services.dataform.v1.model.Workspace} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.WorkflowInvocation content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.WorkflowInvocation.class); + protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.Workspace content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Workspace.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -8515,13 +8045,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The repository in which to create the workflow invocation. Must be in the - * format `projects/locations/repositories`. + * Required. The repository in which to create the workspace. Must be in the format + * `projects/locations/repositories`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The repository in which to create the workflow invocation. Must be in the format + /** Required. The repository in which to create the workspace. Must be in the format `projects/locations/repositories`. */ public java.lang.String getParent() { @@ -8529,8 +8059,8 @@ public java.lang.String getParent() { } /** - * Required. The repository in which to create the workflow invocation. Must be in the - * format `projects/locations/repositories`. + * Required. The repository in which to create the workspace. Must be in the format + * `projects/locations/repositories`. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -8542,20 +8072,43 @@ public Create setParent(java.lang.String parent) { return this; } + /** + * Required. The ID to use for the workspace, which will become the final component of + * the workspace's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String workspaceId; + + /** Required. The ID to use for the workspace, which will become the final component of the workspace's + resource name. + */ + public java.lang.String getWorkspaceId() { + return workspaceId; + } + + /** + * Required. The ID to use for the workspace, which will become the final component of + * the workspace's resource name. + */ + public Create setWorkspaceId(java.lang.String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** - * Deletes a single WorkflowInvocation. + * Deletes a single Workspace. * - * Create a request for the method "workflowInvocations.delete". + * Create a request for the method "workspaces.delete". * * This request holds the parameters needed by the dataform server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The workflow invocation resource's name. + * @param name Required. The workspace resource's name. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -8569,12 +8122,12 @@ public class Delete extends DataformRequest * - * @param name Required. The workflow invocation resource's name. + * @param name Required. The workspace resource's name. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -8591,7 +8144,7 @@ protected Delete(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @@ -8650,22 +8203,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The workflow invocation resource's name. */ + /** Required. The workspace resource's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The workflow invocation resource's name. + /** Required. The workspace resource's name. */ public java.lang.String getName() { return name; } - /** Required. The workflow invocation resource's name. */ + /** Required. The workspace resource's name. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } this.name = name; return this; @@ -8677,49 +8230,50 @@ public Delete set(String parameterName, Object value) { } } /** - * Fetches a single WorkflowInvocation. + * Fetches Git diff for an uncommitted file in a Workspace. * - * Create a request for the method "workflowInvocations.get". + * Create a request for the method "workspaces.fetchFileDiff". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link FetchFileDiff#execute()} method to invoke the remote operation. * - * @param name Required. The workflow invocation resource's name. + * @param workspace Required. The workspace's name. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public FetchFileDiff fetchFileDiff(java.lang.String workspace) throws java.io.IOException { + FetchFileDiff result = new FetchFileDiff(workspace); initialize(result); return result; } - public class Get extends DataformRequest { + public class FetchFileDiff extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+workspace}:fetchFileDiff"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + private final java.util.regex.Pattern WORKSPACE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Fetches a single WorkflowInvocation. + * Fetches Git diff for an uncommitted file in a Workspace. * - * Create a request for the method "workflowInvocations.get". + * Create a request for the method "workspaces.fetchFileDiff". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param name Required. The workflow invocation resource's name. + * @param workspace Required. The workspace's name. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.WorkflowInvocation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected FetchFileDiff(java.lang.String workspace) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchFileDiffResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @@ -8734,132 +8288,152 @@ 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 FetchFileDiff set$Xgafv(java.lang.String $Xgafv) { + return (FetchFileDiff) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public FetchFileDiff setAccessToken(java.lang.String accessToken) { + return (FetchFileDiff) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public FetchFileDiff setAlt(java.lang.String alt) { + return (FetchFileDiff) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public FetchFileDiff setCallback(java.lang.String callback) { + return (FetchFileDiff) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public FetchFileDiff setFields(java.lang.String fields) { + return (FetchFileDiff) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public FetchFileDiff setKey(java.lang.String key) { + return (FetchFileDiff) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public FetchFileDiff setOauthToken(java.lang.String oauthToken) { + return (FetchFileDiff) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public FetchFileDiff setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchFileDiff) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public FetchFileDiff setQuotaUser(java.lang.String quotaUser) { + return (FetchFileDiff) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public FetchFileDiff setUploadType(java.lang.String uploadType) { + return (FetchFileDiff) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public FetchFileDiff setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchFileDiff) super.setUploadProtocol(uploadProtocol); } - /** Required. The workflow invocation resource's name. */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String workspace; - /** Required. The workflow invocation resource's name. + /** Required. The workspace's name. */ - public java.lang.String getName() { - return name; + public java.lang.String getWorkspace() { + return workspace; } - /** Required. The workflow invocation resource's name. */ - public Get setName(java.lang.String name) { + /** Required. The workspace's name. */ + public FetchFileDiff setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.name = name; + this.workspace = workspace; + return this; + } + + /** + * Required. The file's full path including filename, relative to the workspace root. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. The file's full path including filename, relative to the workspace root. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. The file's full path including filename, relative to the workspace root. + */ + public FetchFileDiff setPath(java.lang.String path) { + this.path = path; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public FetchFileDiff set(String parameterName, Object value) { + return (FetchFileDiff) super.set(parameterName, value); } } /** - * Lists WorkflowInvocations in a given Repository. + * Fetches Git statuses for the files in a Workspace. * - * Create a request for the method "workflowInvocations.list". + * Create a request for the method "workspaces.fetchFileGitStatuses". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link FetchFileGitStatuses#execute()} method to invoke the remote + * operation. * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the format - * `projects/locations/repositories`. + * @param name Required. The workspace's name. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public FetchFileGitStatuses fetchFileGitStatuses(java.lang.String name) throws java.io.IOException { + FetchFileGitStatuses result = new FetchFileGitStatuses(name); initialize(result); return result; } - public class List extends DataformRequest { + public class FetchFileGitStatuses extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/workflowInvocations"; + private static final String REST_PATH = "v1/{+name}:fetchFileGitStatuses"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Lists WorkflowInvocations in a given Repository. + * Fetches Git statuses for the files in a Workspace. * - * Create a request for the method "workflowInvocations.list". + * Create a request for the method "workspaces.fetchFileGitStatuses". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the format - * `projects/locations/repositories`. + * @param name Required. The workspace's name. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListWorkflowInvocationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected FetchFileGitStatuses(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchFileGitStatusesResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @@ -8874,233 +8448,131 @@ 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 FetchFileGitStatuses set$Xgafv(java.lang.String $Xgafv) { + return (FetchFileGitStatuses) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public FetchFileGitStatuses setAccessToken(java.lang.String accessToken) { + return (FetchFileGitStatuses) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public FetchFileGitStatuses setAlt(java.lang.String alt) { + return (FetchFileGitStatuses) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public FetchFileGitStatuses setCallback(java.lang.String callback) { + return (FetchFileGitStatuses) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public FetchFileGitStatuses setFields(java.lang.String fields) { + return (FetchFileGitStatuses) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public FetchFileGitStatuses setKey(java.lang.String key) { + return (FetchFileGitStatuses) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public FetchFileGitStatuses setOauthToken(java.lang.String oauthToken) { + return (FetchFileGitStatuses) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public FetchFileGitStatuses setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchFileGitStatuses) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public FetchFileGitStatuses setQuotaUser(java.lang.String quotaUser) { + return (FetchFileGitStatuses) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public FetchFileGitStatuses setUploadType(java.lang.String uploadType) { + return (FetchFileGitStatuses) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public FetchFileGitStatuses setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchFileGitStatuses) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in the format - * `projects/locations/repositories`. - */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource of the WorkflowInvocation type. Must be in the format - `projects/locations/repositories`. + /** Required. The workspace's name. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in the format - * `projects/locations/repositories`. - */ - public List setParent(java.lang.String parent) { + /** Required. The workspace's name. */ + public FetchFileGitStatuses setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. Filter for the returned list. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filter for the returned list. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. Filter for the returned list. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for the `name` - * field. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. This field only supports ordering by `name`. If unspecified, the server will choose the - ordering. If specified, the default order is ascending for the `name` field. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for the `name` - * field. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of workflow invocations to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListWorkflowInvocations`, with the exception of `page_size`, must match the call - * that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `ListWorkflowInvocations`, with the exception of `page_size`, must match the call that provided the - page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token received from a previous `ListWorkflowInvocations` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListWorkflowInvocations`, with the exception of `page_size`, must match the call - * that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public FetchFileGitStatuses set(String parameterName, Object value) { + return (FetchFileGitStatuses) super.set(parameterName, value); } } /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Fetches Git ahead/behind against a remote branch. * - * Create a request for the method "workflowInvocations.query". + * Create a request for the method "workspaces.fetchGitAheadBehind". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * parameters, call the {@link FetchGitAheadBehind#execute()} method to invoke the remote operation. * - * @param name Required. The workflow invocation's name. + * @param name Required. The workspace's name. * @return the request */ - public Query query(java.lang.String name) throws java.io.IOException { - Query result = new Query(name); + public FetchGitAheadBehind fetchGitAheadBehind(java.lang.String name) throws java.io.IOException { + FetchGitAheadBehind result = new FetchGitAheadBehind(name); initialize(result); return result; } - public class Query extends DataformRequest { + public class FetchGitAheadBehind extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:query"; + private static final String REST_PATH = "v1/{+name}:fetchGitAheadBehind"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Fetches Git ahead/behind against a remote branch. * - * Create a request for the method "workflowInvocations.query". + * Create a request for the method "workspaces.fetchGitAheadBehind". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param name Required. The workflow invocation's name. + * @param name Required. The workspace's name. * @since 1.13 */ - protected Query(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryWorkflowInvocationActionsResponse.class); + protected FetchGitAheadBehind(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchGitAheadBehindResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @@ -9115,204 +8587,148 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Query set$Xgafv(java.lang.String $Xgafv) { - return (Query) super.set$Xgafv($Xgafv); + public FetchGitAheadBehind set$Xgafv(java.lang.String $Xgafv) { + return (FetchGitAheadBehind) super.set$Xgafv($Xgafv); } @Override - public Query setAccessToken(java.lang.String accessToken) { - return (Query) super.setAccessToken(accessToken); + public FetchGitAheadBehind setAccessToken(java.lang.String accessToken) { + return (FetchGitAheadBehind) super.setAccessToken(accessToken); } @Override - public Query setAlt(java.lang.String alt) { - return (Query) super.setAlt(alt); + public FetchGitAheadBehind setAlt(java.lang.String alt) { + return (FetchGitAheadBehind) super.setAlt(alt); } @Override - public Query setCallback(java.lang.String callback) { - return (Query) super.setCallback(callback); + public FetchGitAheadBehind setCallback(java.lang.String callback) { + return (FetchGitAheadBehind) super.setCallback(callback); } @Override - public Query setFields(java.lang.String fields) { - return (Query) super.setFields(fields); + public FetchGitAheadBehind setFields(java.lang.String fields) { + return (FetchGitAheadBehind) super.setFields(fields); } @Override - public Query setKey(java.lang.String key) { - return (Query) super.setKey(key); + public FetchGitAheadBehind setKey(java.lang.String key) { + return (FetchGitAheadBehind) super.setKey(key); } @Override - public Query setOauthToken(java.lang.String oauthToken) { - return (Query) super.setOauthToken(oauthToken); + public FetchGitAheadBehind setOauthToken(java.lang.String oauthToken) { + return (FetchGitAheadBehind) super.setOauthToken(oauthToken); } @Override - public Query setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Query) super.setPrettyPrint(prettyPrint); + public FetchGitAheadBehind setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchGitAheadBehind) super.setPrettyPrint(prettyPrint); } @Override - public Query setQuotaUser(java.lang.String quotaUser) { - return (Query) super.setQuotaUser(quotaUser); + public FetchGitAheadBehind setQuotaUser(java.lang.String quotaUser) { + return (FetchGitAheadBehind) super.setQuotaUser(quotaUser); } @Override - public Query setUploadType(java.lang.String uploadType) { - return (Query) super.setUploadType(uploadType); + public FetchGitAheadBehind setUploadType(java.lang.String uploadType) { + return (FetchGitAheadBehind) super.setUploadType(uploadType); } @Override - public Query setUploadProtocol(java.lang.String uploadProtocol) { - return (Query) super.setUploadProtocol(uploadProtocol); + public FetchGitAheadBehind setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchGitAheadBehind) super.setUploadProtocol(uploadProtocol); } - /** Required. The workflow invocation's name. */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The workflow invocation's name. + /** Required. The workspace's name. */ public java.lang.String getName() { return name; } - /** Required. The workflow invocation's name. */ - public Query setName(java.lang.String name) { + /** Required. The workspace's name. */ + public FetchGitAheadBehind setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } this.name = name; return this; } /** - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of workflow invocations to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of workflow invocations to return. The server may return - * fewer items than requested. If unspecified, the server will pick an appropriate - * default. - */ - public Query setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - * match the call that provided the page token. + * Optional. The name of the branch in the Git remote against which this workspace + * should be compared. If left unset, the repository's default branch name will be used. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String remoteBranch; - /** Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. Provide this - to retrieve the subsequent page. When paginating, all other parameters provided to - `QueryWorkflowInvocationActions`, with the exception of `page_size`, must match the call that - provided the page token. + /** Optional. The name of the branch in the Git remote against which this workspace should be compared. + If left unset, the repository's default branch name will be used. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRemoteBranch() { + return remoteBranch; } /** - * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - * match the call that provided the page token. + * Optional. The name of the branch in the Git remote against which this workspace + * should be compared. If left unset, the repository's default branch name will be used. */ - public Query setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public FetchGitAheadBehind setRemoteBranch(java.lang.String remoteBranch) { + this.remoteBranch = remoteBranch; return this; } @Override - public Query set(String parameterName, Object value) { - return (Query) super.set(parameterName, value); + public FetchGitAheadBehind set(String parameterName, Object value) { + return (FetchGitAheadBehind) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Workspaces collection. - * - *

The typical use is:

- *
-         *   {@code Dataform dataform = new Dataform(...);}
-         *   {@code Dataform.Workspaces.List request = dataform.workspaces().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Workspaces workspaces() { - return new Workspaces(); - } - - /** - * The "workspaces" collection of methods. - */ - public class Workspaces { - /** - * Applies a Git commit for uncommitted files in a Workspace. + * Fetches a single Workspace. * - * Create a request for the method "workspaces.commit". + * Create a request for the method "workspaces.get". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Commit#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest} * @return the request */ - public Commit commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest content) throws java.io.IOException { - Commit result = new Commit(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Commit extends DataformRequest { + public class Get extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:commit"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Applies a Git commit for uncommitted files in a Workspace. + * Fetches a single Workspace. * - * Create a request for the method "workspaces.commit". + * Create a request for the method "workspaces.get". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Commit#execute()} method to invoke the remote operation. - *

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

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

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

* * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest} * @since 1.13 */ - protected Commit(java.lang.String name, com.google.api.services.dataform.v1.model.CommitWorkspaceChangesRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.CommitWorkspaceChangesResponse.class); + protected Get(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Workspace.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -9322,58 +8738,68 @@ protected Commit(java.lang.String name, com.google.api.services.dataform.v1.mode } @Override - public Commit set$Xgafv(java.lang.String $Xgafv) { - return (Commit) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Commit setAccessToken(java.lang.String accessToken) { - return (Commit) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Commit setAlt(java.lang.String alt) { - return (Commit) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Commit setCallback(java.lang.String callback) { - return (Commit) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Commit setFields(java.lang.String fields) { - return (Commit) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Commit setKey(java.lang.String key) { - return (Commit) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Commit setOauthToken(java.lang.String oauthToken) { - return (Commit) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Commit) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Commit setQuotaUser(java.lang.String quotaUser) { - return (Commit) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Commit setUploadType(java.lang.String uploadType) { - return (Commit) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Commit setUploadProtocol(java.lang.String uploadProtocol) { - return (Commit) 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); } /** Required. The workspace's name. */ @@ -9387,7 +8813,7 @@ public java.lang.String getName() { } /** Required. The workspace's name. */ - public Commit setName(java.lang.String name) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -9398,347 +8824,385 @@ public Commit setName(java.lang.String name) { } @Override - public Commit set(String parameterName, Object value) { - return (Commit) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new Workspace in a given Repository. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "workspaces.create". + * Create a request for the method "workspaces.getIamPolicy". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.Workspace} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.Workspace content) throws java.io.IOException { - Create result = new Create(parent, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Create extends DataformRequest { + public class GetIamPolicy extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/workspaces"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Creates a new Workspace in a given Repository. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "workspaces.create". + * Create a request for the method "workspaces.getIamPolicy". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

+ * 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 parent Required. The repository in which to create the workspace. Must be in the format - * `projects/locations/repositories`. - * @param content the {@link com.google.api.services.dataform.v1.model.Workspace} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.Workspace content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Workspace.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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); } /** - * Required. The repository in which to create the workspace. Must be in the format - * `projects/locations/repositories`. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String resource; - /** Required. The repository in which to create the workspace. Must be in the format - `projects/locations/repositories`. + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getResource() { + return resource; } /** - * Required. The repository in which to create the workspace. Must be in the format - * `projects/locations/repositories`. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Create setParent(java.lang.String parent) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.parent = parent; + this.resource = resource; return this; } /** - * Required. The ID to use for the workspace, which will become the final component of - * the workspace's resource name. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.String workspaceId; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Required. The ID to use for the workspace, which will become the final component of the workspace's - resource name. + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.String getWorkspaceId() { - return workspaceId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Required. The ID to use for the workspace, which will become the final component of - * the workspace's resource name. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public Create setWorkspaceId(java.lang.String workspaceId) { - this.workspaceId = workspaceId; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a single Workspace. + * Installs dependency NPM packages (inside a Workspace). * - * Create a request for the method "workspaces.delete". + * Create a request for the method "workspaces.installNpmPackages". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link InstallNpmPackages#execute()} method to invoke the remote operation. * - * @param name Required. The workspace resource's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public InstallNpmPackages installNpmPackages(java.lang.String workspace, com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest content) throws java.io.IOException { + InstallNpmPackages result = new InstallNpmPackages(workspace, content); initialize(result); return result; } - public class Delete extends DataformRequest { + public class InstallNpmPackages extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+workspace}:installNpmPackages"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Deletes a single Workspace. + * Installs dependency NPM packages (inside a Workspace). * - * Create a request for the method "workspaces.delete". + * Create a request for the method "workspaces.installNpmPackages". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param name Required. The workspace resource's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected InstallNpmPackages(java.lang.String workspace, com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.InstallNpmPackagesResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public InstallNpmPackages set$Xgafv(java.lang.String $Xgafv) { + return (InstallNpmPackages) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public InstallNpmPackages setAccessToken(java.lang.String accessToken) { + return (InstallNpmPackages) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public InstallNpmPackages setAlt(java.lang.String alt) { + return (InstallNpmPackages) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public InstallNpmPackages setCallback(java.lang.String callback) { + return (InstallNpmPackages) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public InstallNpmPackages setFields(java.lang.String fields) { + return (InstallNpmPackages) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public InstallNpmPackages setKey(java.lang.String key) { + return (InstallNpmPackages) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public InstallNpmPackages setOauthToken(java.lang.String oauthToken) { + return (InstallNpmPackages) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public InstallNpmPackages setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InstallNpmPackages) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public InstallNpmPackages setQuotaUser(java.lang.String quotaUser) { + return (InstallNpmPackages) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public InstallNpmPackages setUploadType(java.lang.String uploadType) { + return (InstallNpmPackages) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public InstallNpmPackages setUploadProtocol(java.lang.String uploadProtocol) { + return (InstallNpmPackages) super.setUploadProtocol(uploadProtocol); } - /** Required. The workspace resource's name. */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String workspace; - /** Required. The workspace resource's name. + /** Required. The workspace's name. */ - public java.lang.String getName() { - return name; + public java.lang.String getWorkspace() { + return workspace; } - /** Required. The workspace resource's name. */ - public Delete setName(java.lang.String name) { + /** Required. The workspace's name. */ + public InstallNpmPackages setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.name = name; + this.workspace = workspace; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public InstallNpmPackages set(String parameterName, Object value) { + return (InstallNpmPackages) super.set(parameterName, value); } } /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Lists Workspaces in a given Repository. * - * Create a request for the method "workspaces.fetchFileDiff". + * Create a request for the method "workspaces.list". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link FetchFileDiff#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param workspace Required. The workspace's name. + * @param parent Required. The repository in which to list workspaces. Must be in the format + * `projects/locations/repositories`. * @return the request */ - public FetchFileDiff fetchFileDiff(java.lang.String workspace) throws java.io.IOException { - FetchFileDiff result = new FetchFileDiff(workspace); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class FetchFileDiff extends DataformRequest { + public class List extends DataformRequest { - private static final String REST_PATH = "v1/{+workspace}:fetchFileDiff"; + private static final String REST_PATH = "v1/{+parent}/workspaces"; - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Lists Workspaces in a given Repository. * - * Create a request for the method "workspaces.fetchFileDiff". + * Create a request for the method "workspaces.list". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link FetchFileDiff#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param workspace Required. The workspace's name. + * @param parent Required. The repository in which to list workspaces. Must be in the format + * `projects/locations/repositories`. * @since 1.13 */ - protected FetchFileDiff(java.lang.String workspace) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchFileDiffResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); + protected List(java.lang.String parent) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListWorkspacesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } } @@ -9753,921 +9217,884 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public FetchFileDiff set$Xgafv(java.lang.String $Xgafv) { - return (FetchFileDiff) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public FetchFileDiff setAccessToken(java.lang.String accessToken) { - return (FetchFileDiff) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public FetchFileDiff setAlt(java.lang.String alt) { - return (FetchFileDiff) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public FetchFileDiff setCallback(java.lang.String callback) { - return (FetchFileDiff) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public FetchFileDiff setFields(java.lang.String fields) { - return (FetchFileDiff) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public FetchFileDiff setKey(java.lang.String key) { - return (FetchFileDiff) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public FetchFileDiff setOauthToken(java.lang.String oauthToken) { - return (FetchFileDiff) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public FetchFileDiff setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchFileDiff) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public FetchFileDiff setQuotaUser(java.lang.String quotaUser) { - return (FetchFileDiff) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public FetchFileDiff setUploadType(java.lang.String uploadType) { - return (FetchFileDiff) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public FetchFileDiff setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchFileDiff) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The workspace's name. */ + /** + * Required. The repository in which to list workspaces. Must be in the format + * `projects/locations/repositories`. + */ @com.google.api.client.util.Key - private java.lang.String workspace; + private java.lang.String parent; - /** Required. The workspace's name. + /** Required. The repository in which to list workspaces. Must be in the format + `projects/locations/repositories`. */ - public java.lang.String getWorkspace() { - return workspace; + public java.lang.String getParent() { + return parent; } - /** Required. The workspace's name. */ - public FetchFileDiff setWorkspace(java.lang.String workspace) { + /** + * Required. The repository in which to list workspaces. Must be in the format + * `projects/locations/repositories`. + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); } - this.workspace = workspace; + this.parent = parent; + return this; + } + + /** Optional. Filter for the returned list. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter for the returned list. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter for the returned list. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Required. The file's full path including filename, relative to the workspace root. + * Optional. This field only supports ordering by `name`. If unspecified, the server + * will choose the ordering. If specified, the default order is ascending for the `name` + * field. */ @com.google.api.client.util.Key - private java.lang.String path; + private java.lang.String orderBy; - /** Required. The file's full path including filename, relative to the workspace root. + /** Optional. This field only supports ordering by `name`. If unspecified, the server will choose the + ordering. If specified, the default order is ascending for the `name` field. */ - public java.lang.String getPath() { - return path; + public java.lang.String getOrderBy() { + return orderBy; } /** - * Required. The file's full path including filename, relative to the workspace root. + * Optional. This field only supports ordering by `name`. If unspecified, the server + * will choose the ordering. If specified, the default order is ascending for the `name` + * field. */ - public FetchFileDiff setPath(java.lang.String path) { - this.path = path; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Maximum number of workspaces to return. The server may return fewer items + * than requested. If unspecified, the server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of workspaces to return. The server may return fewer items than requested. + If unspecified, the server will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of workspaces to return. The server may return fewer items + * than requested. If unspecified, the server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Page token received from a previous `ListWorkspaces` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListWorkspaces`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `ListWorkspaces` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListWorkspaces`, with the + exception of `page_size`, must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Page token received from a previous `ListWorkspaces` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListWorkspaces`, with the exception of `page_size`, must match the call that + * provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public FetchFileDiff set(String parameterName, Object value) { - return (FetchFileDiff) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Fetches Git statuses for the files in a Workspace. + * Creates a directory inside a Workspace. * - * Create a request for the method "workspaces.fetchFileGitStatuses". + * Create a request for the method "workspaces.makeDirectory". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link FetchFileGitStatuses#execute()} method to invoke the remote - * operation. + * parameters, call the {@link MakeDirectory#execute()} method to invoke the remote operation. * - * @param name Required. The workspace's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.MakeDirectoryRequest} * @return the request */ - public FetchFileGitStatuses fetchFileGitStatuses(java.lang.String name) throws java.io.IOException { - FetchFileGitStatuses result = new FetchFileGitStatuses(name); + public MakeDirectory makeDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MakeDirectoryRequest content) throws java.io.IOException { + MakeDirectory result = new MakeDirectory(workspace, content); initialize(result); return result; } - public class FetchFileGitStatuses extends DataformRequest { + public class MakeDirectory extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:fetchFileGitStatuses"; + private static final String REST_PATH = "v1/{+workspace}:makeDirectory"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Fetches Git statuses for the files in a Workspace. + * Creates a directory inside a Workspace. * - * Create a request for the method "workspaces.fetchFileGitStatuses". + * Create a request for the method "workspaces.makeDirectory". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link FetchFileGitStatuses#execute()} method to invoke the - * remote operation.

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

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

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

* - * @param name Required. The workspace's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.MakeDirectoryRequest} * @since 1.13 */ - protected FetchFileGitStatuses(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchFileGitStatusesResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected MakeDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MakeDirectoryRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.MakeDirectoryResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public FetchFileGitStatuses set$Xgafv(java.lang.String $Xgafv) { - return (FetchFileGitStatuses) super.set$Xgafv($Xgafv); + public MakeDirectory set$Xgafv(java.lang.String $Xgafv) { + return (MakeDirectory) super.set$Xgafv($Xgafv); } @Override - public FetchFileGitStatuses setAccessToken(java.lang.String accessToken) { - return (FetchFileGitStatuses) super.setAccessToken(accessToken); + public MakeDirectory setAccessToken(java.lang.String accessToken) { + return (MakeDirectory) super.setAccessToken(accessToken); } @Override - public FetchFileGitStatuses setAlt(java.lang.String alt) { - return (FetchFileGitStatuses) super.setAlt(alt); + public MakeDirectory setAlt(java.lang.String alt) { + return (MakeDirectory) super.setAlt(alt); } @Override - public FetchFileGitStatuses setCallback(java.lang.String callback) { - return (FetchFileGitStatuses) super.setCallback(callback); + public MakeDirectory setCallback(java.lang.String callback) { + return (MakeDirectory) super.setCallback(callback); } @Override - public FetchFileGitStatuses setFields(java.lang.String fields) { - return (FetchFileGitStatuses) super.setFields(fields); + public MakeDirectory setFields(java.lang.String fields) { + return (MakeDirectory) super.setFields(fields); } @Override - public FetchFileGitStatuses setKey(java.lang.String key) { - return (FetchFileGitStatuses) super.setKey(key); + public MakeDirectory setKey(java.lang.String key) { + return (MakeDirectory) super.setKey(key); } @Override - public FetchFileGitStatuses setOauthToken(java.lang.String oauthToken) { - return (FetchFileGitStatuses) super.setOauthToken(oauthToken); + public MakeDirectory setOauthToken(java.lang.String oauthToken) { + return (MakeDirectory) super.setOauthToken(oauthToken); } @Override - public FetchFileGitStatuses setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchFileGitStatuses) super.setPrettyPrint(prettyPrint); + public MakeDirectory setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MakeDirectory) super.setPrettyPrint(prettyPrint); } @Override - public FetchFileGitStatuses setQuotaUser(java.lang.String quotaUser) { - return (FetchFileGitStatuses) super.setQuotaUser(quotaUser); + public MakeDirectory setQuotaUser(java.lang.String quotaUser) { + return (MakeDirectory) super.setQuotaUser(quotaUser); } @Override - public FetchFileGitStatuses setUploadType(java.lang.String uploadType) { - return (FetchFileGitStatuses) super.setUploadType(uploadType); + public MakeDirectory setUploadType(java.lang.String uploadType) { + return (MakeDirectory) super.setUploadType(uploadType); } @Override - public FetchFileGitStatuses setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchFileGitStatuses) super.setUploadProtocol(uploadProtocol); + public MakeDirectory setUploadProtocol(java.lang.String uploadProtocol) { + return (MakeDirectory) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String workspace; /** Required. The workspace's name. */ - public java.lang.String getName() { - return name; + public java.lang.String getWorkspace() { + return workspace; } /** Required. The workspace's name. */ - public FetchFileGitStatuses setName(java.lang.String name) { + public MakeDirectory setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.name = name; + this.workspace = workspace; return this; } @Override - public FetchFileGitStatuses set(String parameterName, Object value) { - return (FetchFileGitStatuses) super.set(parameterName, value); + public MakeDirectory set(String parameterName, Object value) { + return (MakeDirectory) super.set(parameterName, value); } } /** - * Fetches Git ahead/behind against a remote branch. + * Moves a directory (inside a Workspace), and all of its contents, to a new location. * - * Create a request for the method "workspaces.fetchGitAheadBehind". + * Create a request for the method "workspaces.moveDirectory". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link FetchGitAheadBehind#execute()} method to invoke the remote operation. + * parameters, call the {@link MoveDirectory#execute()} method to invoke the remote operation. * - * @param name Required. The workspace's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.MoveDirectoryRequest} * @return the request */ - public FetchGitAheadBehind fetchGitAheadBehind(java.lang.String name) throws java.io.IOException { - FetchGitAheadBehind result = new FetchGitAheadBehind(name); + public MoveDirectory moveDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveDirectoryRequest content) throws java.io.IOException { + MoveDirectory result = new MoveDirectory(workspace, content); initialize(result); return result; } - public class FetchGitAheadBehind extends DataformRequest { + public class MoveDirectory extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:fetchGitAheadBehind"; + private static final String REST_PATH = "v1/{+workspace}:moveDirectory"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Fetches Git ahead/behind against a remote branch. + * Moves a directory (inside a Workspace), and all of its contents, to a new location. * - * Create a request for the method "workspaces.fetchGitAheadBehind". + * Create a request for the method "workspaces.moveDirectory". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link FetchGitAheadBehind#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param name Required. The workspace's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.MoveDirectoryRequest} * @since 1.13 */ - protected FetchGitAheadBehind(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.FetchGitAheadBehindResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + protected MoveDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveDirectoryRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.MoveDirectoryResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public FetchGitAheadBehind set$Xgafv(java.lang.String $Xgafv) { - return (FetchGitAheadBehind) super.set$Xgafv($Xgafv); + public MoveDirectory set$Xgafv(java.lang.String $Xgafv) { + return (MoveDirectory) super.set$Xgafv($Xgafv); } @Override - public FetchGitAheadBehind setAccessToken(java.lang.String accessToken) { - return (FetchGitAheadBehind) super.setAccessToken(accessToken); + public MoveDirectory setAccessToken(java.lang.String accessToken) { + return (MoveDirectory) super.setAccessToken(accessToken); } @Override - public FetchGitAheadBehind setAlt(java.lang.String alt) { - return (FetchGitAheadBehind) super.setAlt(alt); + public MoveDirectory setAlt(java.lang.String alt) { + return (MoveDirectory) super.setAlt(alt); } @Override - public FetchGitAheadBehind setCallback(java.lang.String callback) { - return (FetchGitAheadBehind) super.setCallback(callback); + public MoveDirectory setCallback(java.lang.String callback) { + return (MoveDirectory) super.setCallback(callback); } @Override - public FetchGitAheadBehind setFields(java.lang.String fields) { - return (FetchGitAheadBehind) super.setFields(fields); + public MoveDirectory setFields(java.lang.String fields) { + return (MoveDirectory) super.setFields(fields); } @Override - public FetchGitAheadBehind setKey(java.lang.String key) { - return (FetchGitAheadBehind) super.setKey(key); + public MoveDirectory setKey(java.lang.String key) { + return (MoveDirectory) super.setKey(key); } @Override - public FetchGitAheadBehind setOauthToken(java.lang.String oauthToken) { - return (FetchGitAheadBehind) super.setOauthToken(oauthToken); + public MoveDirectory setOauthToken(java.lang.String oauthToken) { + return (MoveDirectory) super.setOauthToken(oauthToken); } @Override - public FetchGitAheadBehind setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchGitAheadBehind) super.setPrettyPrint(prettyPrint); + public MoveDirectory setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MoveDirectory) super.setPrettyPrint(prettyPrint); } @Override - public FetchGitAheadBehind setQuotaUser(java.lang.String quotaUser) { - return (FetchGitAheadBehind) super.setQuotaUser(quotaUser); + public MoveDirectory setQuotaUser(java.lang.String quotaUser) { + return (MoveDirectory) super.setQuotaUser(quotaUser); } @Override - public FetchGitAheadBehind setUploadType(java.lang.String uploadType) { - return (FetchGitAheadBehind) super.setUploadType(uploadType); + public MoveDirectory setUploadType(java.lang.String uploadType) { + return (MoveDirectory) super.setUploadType(uploadType); } @Override - public FetchGitAheadBehind setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchGitAheadBehind) super.setUploadProtocol(uploadProtocol); + public MoveDirectory setUploadProtocol(java.lang.String uploadProtocol) { + return (MoveDirectory) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String workspace; /** Required. The workspace's name. */ - public java.lang.String getName() { - return name; + public java.lang.String getWorkspace() { + return workspace; } /** Required. The workspace's name. */ - public FetchGitAheadBehind setName(java.lang.String name) { + public MoveDirectory setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.name = name; - return this; - } - - /** - * Optional. The name of the branch in the Git remote against which this workspace - * should be compared. If left unset, the repository's default branch name will be used. - */ - @com.google.api.client.util.Key - private java.lang.String remoteBranch; - - /** Optional. The name of the branch in the Git remote against which this workspace should be compared. - If left unset, the repository's default branch name will be used. - */ - public java.lang.String getRemoteBranch() { - return remoteBranch; - } - - /** - * Optional. The name of the branch in the Git remote against which this workspace - * should be compared. If left unset, the repository's default branch name will be used. - */ - public FetchGitAheadBehind setRemoteBranch(java.lang.String remoteBranch) { - this.remoteBranch = remoteBranch; + this.workspace = workspace; return this; } @Override - public FetchGitAheadBehind set(String parameterName, Object value) { - return (FetchGitAheadBehind) super.set(parameterName, value); + public MoveDirectory set(String parameterName, Object value) { + return (MoveDirectory) super.set(parameterName, value); } } /** - * Fetches a single Workspace. + * Moves a file (inside a Workspace) to a new location. * - * Create a request for the method "workspaces.get". + * Create a request for the method "workspaces.moveFile". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link MoveFile#execute()} method to invoke the remote operation. * - * @param name Required. The workspace's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.MoveFileRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public MoveFile moveFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveFileRequest content) throws java.io.IOException { + MoveFile result = new MoveFile(workspace, content); initialize(result); return result; } - public class Get extends DataformRequest { + public class MoveFile extends DataformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+workspace}:moveFile"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Fetches a single Workspace. + * Moves a file (inside a Workspace) to a new location. * - * Create a request for the method "workspaces.get". + * Create a request for the method "workspaces.moveFile". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link MoveFile#execute()} method to invoke the remote operation. + *

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

* - * @param name Required. The workspace's name. + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.MoveFileRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Workspace.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected MoveFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveFileRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.MoveFileResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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 MoveFile set$Xgafv(java.lang.String $Xgafv) { + return (MoveFile) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public MoveFile setAccessToken(java.lang.String accessToken) { + return (MoveFile) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public MoveFile setAlt(java.lang.String alt) { + return (MoveFile) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public MoveFile setCallback(java.lang.String callback) { + return (MoveFile) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public MoveFile setFields(java.lang.String fields) { + return (MoveFile) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public MoveFile setKey(java.lang.String key) { + return (MoveFile) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public MoveFile setOauthToken(java.lang.String oauthToken) { + return (MoveFile) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public MoveFile setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MoveFile) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public MoveFile setQuotaUser(java.lang.String quotaUser) { + return (MoveFile) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public MoveFile setUploadType(java.lang.String uploadType) { + return (MoveFile) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public MoveFile setUploadProtocol(java.lang.String uploadProtocol) { + return (MoveFile) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String workspace; /** Required. The workspace's name. */ - public java.lang.String getName() { - return name; + public java.lang.String getWorkspace() { + return workspace; } /** Required. The workspace's name. */ - public Get setName(java.lang.String name) { + public MoveFile setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.name = name; + this.workspace = workspace; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public MoveFile set(String parameterName, Object value) { + return (MoveFile) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Pulls Git commits from the Repository's remote into a Workspace. * - * Create a request for the method "workspaces.getIamPolicy". + * Create a request for the method "workspaces.pull". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Pull#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.PullGitCommitsRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public Pull pull(java.lang.String name, com.google.api.services.dataform.v1.model.PullGitCommitsRequest content) throws java.io.IOException { + Pull result = new Pull(name, content); initialize(result); return result; } - public class GetIamPolicy extends DataformRequest { + public class Pull extends DataformRequest { - private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1/{+name}:pull"; - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Pulls Git commits from the Repository's remote into a Workspace. * - * Create a request for the method "workspaces.getIamPolicy". + * Create a request for the method "workspaces.pull". * * This request holds the parameters needed by the the dataform 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)} + * optional parameters, call the {@link Pull#execute()} method to invoke the remote operation.

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.PullGitCommitsRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + protected Pull(java.lang.String name, com.google.api.services.dataform.v1.model.PullGitCommitsRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.PullGitCommitsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 Pull set$Xgafv(java.lang.String $Xgafv) { + return (Pull) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Pull setAccessToken(java.lang.String accessToken) { + return (Pull) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Pull setAlt(java.lang.String alt) { + return (Pull) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Pull setCallback(java.lang.String callback) { + return (Pull) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Pull setFields(java.lang.String fields) { + return (Pull) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Pull setKey(java.lang.String key) { + return (Pull) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Pull setOauthToken(java.lang.String oauthToken) { + return (Pull) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Pull setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pull) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Pull setQuotaUser(java.lang.String quotaUser) { + return (Pull) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Pull setUploadType(java.lang.String uploadType) { + return (Pull) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Pull setUploadProtocol(java.lang.String uploadProtocol) { + return (Pull) super.setUploadProtocol(uploadProtocol); } - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The workspace's name. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Required. The workspace's name. */ + public Pull setName(java.lang.String name) { 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(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.resource = resource; - return this; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. - * Requests for policies with any conditional role bindings must specify version 3. - * Policies with no conditional role bindings may specify any valid value or leave the - * field unset. The policy in the response might use the policy version that you - * specified, or it might use a lower policy version. For example, if you specify - * version 3, but the policy has no conditional role bindings, the response uses version - * 1. To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. - * Requests for policies with any conditional role bindings must specify version 3. - * Policies with no conditional role bindings may specify any valid value or leave the - * field unset. The policy in the response might use the policy version that you - * specified, or it might use a lower policy version. For example, if you specify - * version 3, but the policy has no conditional role bindings, the response uses version - * 1. To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + this.name = name; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Pull set(String parameterName, Object value) { + return (Pull) super.set(parameterName, value); } } /** - * Installs dependency NPM packages (inside a Workspace). + * Pushes Git commits from a Workspace to the Repository's remote. * - * Create a request for the method "workspaces.installNpmPackages". + * Create a request for the method "workspaces.push". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link InstallNpmPackages#execute()} method to invoke the remote operation. + * parameters, call the {@link Push#execute()} method to invoke the remote operation. * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest} + * @param name Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.PushGitCommitsRequest} * @return the request */ - public InstallNpmPackages installNpmPackages(java.lang.String workspace, com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest content) throws java.io.IOException { - InstallNpmPackages result = new InstallNpmPackages(workspace, content); + public Push push(java.lang.String name, com.google.api.services.dataform.v1.model.PushGitCommitsRequest content) throws java.io.IOException { + Push result = new Push(name, content); initialize(result); return result; } - public class InstallNpmPackages extends DataformRequest { + public class Push extends DataformRequest { - private static final String REST_PATH = "v1/{+workspace}:installNpmPackages"; + private static final String REST_PATH = "v1/{+name}:push"; - private final java.util.regex.Pattern WORKSPACE_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Installs dependency NPM packages (inside a Workspace). + * Pushes Git commits from a Workspace to the Repository's remote. * - * Create a request for the method "workspaces.installNpmPackages". + * Create a request for the method "workspaces.push". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link InstallNpmPackages#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest} + * @param name Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.PushGitCommitsRequest} * @since 1.13 */ - protected InstallNpmPackages(java.lang.String workspace, com.google.api.services.dataform.v1.model.InstallNpmPackagesRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.InstallNpmPackagesResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); + protected Push(java.lang.String name, com.google.api.services.dataform.v1.model.PushGitCommitsRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.PushGitCommitsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public InstallNpmPackages set$Xgafv(java.lang.String $Xgafv) { - return (InstallNpmPackages) super.set$Xgafv($Xgafv); + public Push set$Xgafv(java.lang.String $Xgafv) { + return (Push) super.set$Xgafv($Xgafv); } @Override - public InstallNpmPackages setAccessToken(java.lang.String accessToken) { - return (InstallNpmPackages) super.setAccessToken(accessToken); + public Push setAccessToken(java.lang.String accessToken) { + return (Push) super.setAccessToken(accessToken); } @Override - public InstallNpmPackages setAlt(java.lang.String alt) { - return (InstallNpmPackages) super.setAlt(alt); + public Push setAlt(java.lang.String alt) { + return (Push) super.setAlt(alt); } @Override - public InstallNpmPackages setCallback(java.lang.String callback) { - return (InstallNpmPackages) super.setCallback(callback); + public Push setCallback(java.lang.String callback) { + return (Push) super.setCallback(callback); } @Override - public InstallNpmPackages setFields(java.lang.String fields) { - return (InstallNpmPackages) super.setFields(fields); + public Push setFields(java.lang.String fields) { + return (Push) super.setFields(fields); } @Override - public InstallNpmPackages setKey(java.lang.String key) { - return (InstallNpmPackages) super.setKey(key); + public Push setKey(java.lang.String key) { + return (Push) super.setKey(key); } @Override - public InstallNpmPackages setOauthToken(java.lang.String oauthToken) { - return (InstallNpmPackages) super.setOauthToken(oauthToken); + public Push setOauthToken(java.lang.String oauthToken) { + return (Push) super.setOauthToken(oauthToken); } @Override - public InstallNpmPackages setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InstallNpmPackages) super.setPrettyPrint(prettyPrint); + public Push setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Push) super.setPrettyPrint(prettyPrint); } @Override - public InstallNpmPackages setQuotaUser(java.lang.String quotaUser) { - return (InstallNpmPackages) super.setQuotaUser(quotaUser); + public Push setQuotaUser(java.lang.String quotaUser) { + return (Push) super.setQuotaUser(quotaUser); } @Override - public InstallNpmPackages setUploadType(java.lang.String uploadType) { - return (InstallNpmPackages) super.setUploadType(uploadType); + public Push setUploadType(java.lang.String uploadType) { + return (Push) super.setUploadType(uploadType); } @Override - public InstallNpmPackages setUploadProtocol(java.lang.String uploadProtocol) { - return (InstallNpmPackages) super.setUploadProtocol(uploadProtocol); + public Push setUploadProtocol(java.lang.String uploadProtocol) { + return (Push) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String workspace; + private java.lang.String name; /** Required. The workspace's name. */ - public java.lang.String getWorkspace() { - return workspace; + public java.lang.String getName() { + return name; } /** Required. The workspace's name. */ - public InstallNpmPackages setWorkspace(java.lang.String workspace) { + public Push setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.workspace = workspace; + this.name = name; return this; } @Override - public InstallNpmPackages set(String parameterName, Object value) { - return (InstallNpmPackages) super.set(parameterName, value); + public Push set(String parameterName, Object value) { + return (Push) super.set(parameterName, value); } } /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Workspace directory. * - * Create a request for the method "workspaces.list". + * Create a request for the method "workspaces.queryDirectoryContents". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link QueryDirectoryContents#execute()} method to invoke the remote + * operation. * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/locations/repositories`. + * @param workspace Required. The workspace's name. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public QueryDirectoryContents queryDirectoryContents(java.lang.String workspace) throws java.io.IOException { + QueryDirectoryContents result = new QueryDirectoryContents(workspace); initialize(result); return result; } - public class List extends DataformRequest { + public class QueryDirectoryContents extends DataformRequest { - private static final String REST_PATH = "v1/{+parent}/workspaces"; + private static final String REST_PATH = "v1/{+workspace}:queryDirectoryContents"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + private final java.util.regex.Pattern WORKSPACE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Workspace directory. * - * Create a request for the method "workspaces.list". + * Create a request for the method "workspaces.queryDirectoryContents". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/locations/repositories`. + * @param workspace Required. The workspace's name. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ListWorkspacesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected QueryDirectoryContents(java.lang.String workspace) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryDirectoryContentsResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @@ -10682,227 +10109,201 @@ 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 QueryDirectoryContents set$Xgafv(java.lang.String $Xgafv) { + return (QueryDirectoryContents) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public QueryDirectoryContents setAccessToken(java.lang.String accessToken) { + return (QueryDirectoryContents) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public QueryDirectoryContents setAlt(java.lang.String alt) { + return (QueryDirectoryContents) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public QueryDirectoryContents setCallback(java.lang.String callback) { + return (QueryDirectoryContents) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public QueryDirectoryContents setFields(java.lang.String fields) { + return (QueryDirectoryContents) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public QueryDirectoryContents setKey(java.lang.String key) { + return (QueryDirectoryContents) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public QueryDirectoryContents setOauthToken(java.lang.String oauthToken) { + return (QueryDirectoryContents) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public QueryDirectoryContents setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDirectoryContents) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public QueryDirectoryContents setQuotaUser(java.lang.String quotaUser) { + return (QueryDirectoryContents) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public QueryDirectoryContents setUploadType(java.lang.String uploadType) { + return (QueryDirectoryContents) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public QueryDirectoryContents setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDirectoryContents) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The repository in which to list workspaces. Must be in the format - * `projects/locations/repositories`. - */ + /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String workspace; - /** Required. The repository in which to list workspaces. Must be in the format - `projects/locations/repositories`. + /** Required. The workspace's name. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getWorkspace() { + return workspace; } - /** - * Required. The repository in which to list workspaces. Must be in the format - * `projects/locations/repositories`. - */ - public List setParent(java.lang.String parent) { + /** Required. The workspace's name. */ + public QueryDirectoryContents setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. Filter for the returned list. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filter for the returned list. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. Filter for the returned list. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + this.workspace = workspace; return this; } /** - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for the `name` - * field. + * Optional. Maximum number of paths to return. The server may return fewer items than + * requested. If unspecified, the server will pick an appropriate default. */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.Integer pageSize; - /** Optional. This field only supports ordering by `name`. If unspecified, the server will choose the - ordering. If specified, the default order is ascending for the `name` field. + /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If + unspecified, the server will pick an appropriate default. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. This field only supports ordering by `name`. If unspecified, the server - * will choose the ordering. If specified, the default order is ascending for the `name` - * field. + * Optional. Maximum number of paths to return. The server may return fewer items than + * requested. If unspecified, the server will pick an appropriate default. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public QueryDirectoryContents setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Optional. Maximum number of workspaces to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. + * Optional. Page token received from a previous `QueryDirectoryContents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `QueryDirectoryContents`, with the exception of `page_size`, must match the call + * that provided the page token. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String pageToken; - /** Optional. Maximum number of workspaces to return. The server may return fewer items than requested. - If unspecified, the server will pick an appropriate default. + /** Optional. Page token received from a previous `QueryDirectoryContents` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `QueryDirectoryContents`, with the exception of `page_size`, must match the call that provided the + page token. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getPageToken() { + return pageToken; } /** - * Optional. Maximum number of workspaces to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. + * Optional. Page token received from a previous `QueryDirectoryContents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `QueryDirectoryContents`, with the exception of `page_size`, must match the call + * that provided the page token. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public QueryDirectoryContents setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Optional. Page token received from a previous `ListWorkspaces` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `ListWorkspaces`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. The directory's full path including directory name, relative to the + * workspace root. If left unset, the workspace root is used. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String path; - /** Optional. Page token received from a previous `ListWorkspaces` call. Provide this to retrieve the - subsequent page. When paginating, all other parameters provided to `ListWorkspaces`, with the - exception of `page_size`, must match the call that provided the page token. + /** Optional. The directory's full path including directory name, relative to the workspace root. If + left unset, the workspace root is used. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getPath() { + return path; } /** - * Optional. Page token received from a previous `ListWorkspaces` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `ListWorkspaces`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. The directory's full path including directory name, relative to the + * workspace root. If left unset, the workspace root is used. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public QueryDirectoryContents setPath(java.lang.String path) { + this.path = path; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public QueryDirectoryContents set(String parameterName, Object value) { + return (QueryDirectoryContents) super.set(parameterName, value); } } /** - * Creates a directory inside a Workspace. + * Returns the contents of a file (inside a Workspace). * - * Create a request for the method "workspaces.makeDirectory". + * Create a request for the method "workspaces.readFile". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link MakeDirectory#execute()} method to invoke the remote operation. + * parameters, call the {@link ReadFile#execute()} method to invoke the remote operation. * * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.MakeDirectoryRequest} * @return the request */ - public MakeDirectory makeDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MakeDirectoryRequest content) throws java.io.IOException { - MakeDirectory result = new MakeDirectory(workspace, content); + public ReadFile readFile(java.lang.String workspace) throws java.io.IOException { + ReadFile result = new ReadFile(workspace); initialize(result); return result; } - public class MakeDirectory extends DataformRequest { + public class ReadFile extends DataformRequest { - private static final String REST_PATH = "v1/{+workspace}:makeDirectory"; + private static final String REST_PATH = "v1/{+workspace}:readFile"; private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Creates a directory inside a Workspace. + * Returns the contents of a file (inside a Workspace). * - * Create a request for the method "workspaces.makeDirectory". + * Create a request for the method "workspaces.readFile". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link MakeDirectory#execute()} method to invoke the remote - * operation.

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

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

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

* * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.MakeDirectoryRequest} * @since 1.13 */ - protected MakeDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MakeDirectoryRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.MakeDirectoryResponse.class); + protected ReadFile(java.lang.String workspace) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ReadFileResponse.class); this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), @@ -10912,58 +10313,68 @@ protected MakeDirectory(java.lang.String workspace, com.google.api.services.data } @Override - public MakeDirectory set$Xgafv(java.lang.String $Xgafv) { - return (MakeDirectory) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public MakeDirectory setAccessToken(java.lang.String accessToken) { - return (MakeDirectory) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public MakeDirectory setAlt(java.lang.String alt) { - return (MakeDirectory) super.setAlt(alt); + public ReadFile set$Xgafv(java.lang.String $Xgafv) { + return (ReadFile) super.set$Xgafv($Xgafv); } @Override - public MakeDirectory setCallback(java.lang.String callback) { - return (MakeDirectory) super.setCallback(callback); + public ReadFile setAccessToken(java.lang.String accessToken) { + return (ReadFile) super.setAccessToken(accessToken); } @Override - public MakeDirectory setFields(java.lang.String fields) { - return (MakeDirectory) super.setFields(fields); + public ReadFile setAlt(java.lang.String alt) { + return (ReadFile) super.setAlt(alt); } @Override - public MakeDirectory setKey(java.lang.String key) { - return (MakeDirectory) super.setKey(key); + public ReadFile setCallback(java.lang.String callback) { + return (ReadFile) super.setCallback(callback); } @Override - public MakeDirectory setOauthToken(java.lang.String oauthToken) { - return (MakeDirectory) super.setOauthToken(oauthToken); + public ReadFile setFields(java.lang.String fields) { + return (ReadFile) super.setFields(fields); } @Override - public MakeDirectory setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MakeDirectory) super.setPrettyPrint(prettyPrint); + public ReadFile setKey(java.lang.String key) { + return (ReadFile) super.setKey(key); } @Override - public MakeDirectory setQuotaUser(java.lang.String quotaUser) { - return (MakeDirectory) super.setQuotaUser(quotaUser); + public ReadFile setOauthToken(java.lang.String oauthToken) { + return (ReadFile) super.setOauthToken(oauthToken); } @Override - public MakeDirectory setUploadType(java.lang.String uploadType) { - return (MakeDirectory) super.setUploadType(uploadType); + public ReadFile setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReadFile) super.setPrettyPrint(prettyPrint); } @Override - public MakeDirectory setUploadProtocol(java.lang.String uploadProtocol) { - return (MakeDirectory) super.setUploadProtocol(uploadProtocol); + public ReadFile setQuotaUser(java.lang.String quotaUser) { + return (ReadFile) super.setQuotaUser(quotaUser); + } + + @Override + public ReadFile setUploadType(java.lang.String uploadType) { + return (ReadFile) super.setUploadType(uploadType); + } + + @Override + public ReadFile setUploadProtocol(java.lang.String uploadProtocol) { + return (ReadFile) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @@ -10977,7 +10388,7 @@ public java.lang.String getWorkspace() { } /** Required. The workspace's name. */ - public MakeDirectory setWorkspace(java.lang.String workspace) { + public ReadFile setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), "Parameter workspace must conform to the pattern " + @@ -10987,53 +10398,96 @@ public MakeDirectory setWorkspace(java.lang.String workspace) { return this; } + /** + * Required. The file's full path including filename, relative to the workspace root. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. The file's full path including filename, relative to the workspace root. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. The file's full path including filename, relative to the workspace root. + */ + public ReadFile setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Optional. The Git revision of the file to return. If left empty, the current contents + * of `path` will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String revision; + + /** Optional. The Git revision of the file to return. If left empty, the current contents of `path` + will be returned. + */ + public java.lang.String getRevision() { + return revision; + } + + /** + * Optional. The Git revision of the file to return. If left empty, the current contents + * of `path` will be returned. + */ + public ReadFile setRevision(java.lang.String revision) { + this.revision = revision; + return this; + } + @Override - public MakeDirectory set(String parameterName, Object value) { - return (MakeDirectory) super.set(parameterName, value); + public ReadFile set(String parameterName, Object value) { + return (ReadFile) super.set(parameterName, value); } } /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Deletes a directory (inside a Workspace) and all of its contents. * - * Create a request for the method "workspaces.moveDirectory". + * Create a request for the method "workspaces.removeDirectory". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link MoveDirectory#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveDirectory#execute()} method to invoke the remote operation. * * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveDirectoryRequest} + * @param content the {@link com.google.api.services.dataform.v1.model.RemoveDirectoryRequest} * @return the request */ - public MoveDirectory moveDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveDirectoryRequest content) throws java.io.IOException { - MoveDirectory result = new MoveDirectory(workspace, content); + public RemoveDirectory removeDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveDirectoryRequest content) throws java.io.IOException { + RemoveDirectory result = new RemoveDirectory(workspace, content); initialize(result); return result; } - public class MoveDirectory extends DataformRequest { + public class RemoveDirectory extends DataformRequest { - private static final String REST_PATH = "v1/{+workspace}:moveDirectory"; + private static final String REST_PATH = "v1/{+workspace}:removeDirectory"; private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Deletes a directory (inside a Workspace) and all of its contents. * - * Create a request for the method "workspaces.moveDirectory". + * Create a request for the method "workspaces.removeDirectory". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link MoveDirectory#execute()} method to invoke the remote - * operation.

{@link MoveDirectory#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * optional parameters, call the {@link RemoveDirectory#execute()} method to invoke the remote + * operation.

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

* * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveDirectoryRequest} + * @param content the {@link com.google.api.services.dataform.v1.model.RemoveDirectoryRequest} * @since 1.13 */ - protected MoveDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveDirectoryRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.MoveDirectoryResponse.class); + protected RemoveDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveDirectoryRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.RemoveDirectoryResponse.class); this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), @@ -11043,58 +10497,58 @@ protected MoveDirectory(java.lang.String workspace, com.google.api.services.data } @Override - public MoveDirectory set$Xgafv(java.lang.String $Xgafv) { - return (MoveDirectory) super.set$Xgafv($Xgafv); + public RemoveDirectory set$Xgafv(java.lang.String $Xgafv) { + return (RemoveDirectory) super.set$Xgafv($Xgafv); } @Override - public MoveDirectory setAccessToken(java.lang.String accessToken) { - return (MoveDirectory) super.setAccessToken(accessToken); + public RemoveDirectory setAccessToken(java.lang.String accessToken) { + return (RemoveDirectory) super.setAccessToken(accessToken); } @Override - public MoveDirectory setAlt(java.lang.String alt) { - return (MoveDirectory) super.setAlt(alt); + public RemoveDirectory setAlt(java.lang.String alt) { + return (RemoveDirectory) super.setAlt(alt); } @Override - public MoveDirectory setCallback(java.lang.String callback) { - return (MoveDirectory) super.setCallback(callback); + public RemoveDirectory setCallback(java.lang.String callback) { + return (RemoveDirectory) super.setCallback(callback); } @Override - public MoveDirectory setFields(java.lang.String fields) { - return (MoveDirectory) super.setFields(fields); + public RemoveDirectory setFields(java.lang.String fields) { + return (RemoveDirectory) super.setFields(fields); } @Override - public MoveDirectory setKey(java.lang.String key) { - return (MoveDirectory) super.setKey(key); + public RemoveDirectory setKey(java.lang.String key) { + return (RemoveDirectory) super.setKey(key); } @Override - public MoveDirectory setOauthToken(java.lang.String oauthToken) { - return (MoveDirectory) super.setOauthToken(oauthToken); + public RemoveDirectory setOauthToken(java.lang.String oauthToken) { + return (RemoveDirectory) super.setOauthToken(oauthToken); } @Override - public MoveDirectory setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MoveDirectory) super.setPrettyPrint(prettyPrint); + public RemoveDirectory setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveDirectory) super.setPrettyPrint(prettyPrint); } @Override - public MoveDirectory setQuotaUser(java.lang.String quotaUser) { - return (MoveDirectory) super.setQuotaUser(quotaUser); + public RemoveDirectory setQuotaUser(java.lang.String quotaUser) { + return (RemoveDirectory) super.setQuotaUser(quotaUser); } @Override - public MoveDirectory setUploadType(java.lang.String uploadType) { - return (MoveDirectory) super.setUploadType(uploadType); + public RemoveDirectory setUploadType(java.lang.String uploadType) { + return (RemoveDirectory) super.setUploadType(uploadType); } @Override - public MoveDirectory setUploadProtocol(java.lang.String uploadProtocol) { - return (MoveDirectory) super.setUploadProtocol(uploadProtocol); + public RemoveDirectory setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveDirectory) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @@ -11108,7 +10562,7 @@ public java.lang.String getWorkspace() { } /** Required. The workspace's name. */ - public MoveDirectory setWorkspace(java.lang.String workspace) { + public RemoveDirectory setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), "Parameter workspace must conform to the pattern " + @@ -11119,52 +10573,52 @@ public MoveDirectory setWorkspace(java.lang.String workspace) { } @Override - public MoveDirectory set(String parameterName, Object value) { - return (MoveDirectory) super.set(parameterName, value); + public RemoveDirectory set(String parameterName, Object value) { + return (RemoveDirectory) super.set(parameterName, value); } } /** - * Moves a file (inside a Workspace) to a new location. + * Deletes a file (inside a Workspace). * - * Create a request for the method "workspaces.moveFile". + * Create a request for the method "workspaces.removeFile". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link MoveFile#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveFile#execute()} method to invoke the remote operation. * * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveFileRequest} + * @param content the {@link com.google.api.services.dataform.v1.model.RemoveFileRequest} * @return the request */ - public MoveFile moveFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveFileRequest content) throws java.io.IOException { - MoveFile result = new MoveFile(workspace, content); + public RemoveFile removeFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveFileRequest content) throws java.io.IOException { + RemoveFile result = new RemoveFile(workspace, content); initialize(result); return result; } - public class MoveFile extends DataformRequest { + public class RemoveFile extends DataformRequest { - private static final String REST_PATH = "v1/{+workspace}:moveFile"; + private static final String REST_PATH = "v1/{+workspace}:removeFile"; private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Moves a file (inside a Workspace) to a new location. + * Deletes a file (inside a Workspace). * - * Create a request for the method "workspaces.moveFile". + * Create a request for the method "workspaces.removeFile". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link MoveFile#execute()} method to invoke the remote operation. - *

{@link - * MoveFile#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link RemoveFile#execute()} method to invoke the remote + * operation.

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

* * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.MoveFileRequest} + * @param content the {@link com.google.api.services.dataform.v1.model.RemoveFileRequest} * @since 1.13 */ - protected MoveFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.MoveFileRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.MoveFileResponse.class); + protected RemoveFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveFileRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.RemoveFileResponse.class); this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), @@ -11174,58 +10628,58 @@ protected MoveFile(java.lang.String workspace, com.google.api.services.dataform. } @Override - public MoveFile set$Xgafv(java.lang.String $Xgafv) { - return (MoveFile) super.set$Xgafv($Xgafv); + public RemoveFile set$Xgafv(java.lang.String $Xgafv) { + return (RemoveFile) super.set$Xgafv($Xgafv); } @Override - public MoveFile setAccessToken(java.lang.String accessToken) { - return (MoveFile) super.setAccessToken(accessToken); + public RemoveFile setAccessToken(java.lang.String accessToken) { + return (RemoveFile) super.setAccessToken(accessToken); } @Override - public MoveFile setAlt(java.lang.String alt) { - return (MoveFile) super.setAlt(alt); + public RemoveFile setAlt(java.lang.String alt) { + return (RemoveFile) super.setAlt(alt); } @Override - public MoveFile setCallback(java.lang.String callback) { - return (MoveFile) super.setCallback(callback); + public RemoveFile setCallback(java.lang.String callback) { + return (RemoveFile) super.setCallback(callback); } @Override - public MoveFile setFields(java.lang.String fields) { - return (MoveFile) super.setFields(fields); + public RemoveFile setFields(java.lang.String fields) { + return (RemoveFile) super.setFields(fields); } @Override - public MoveFile setKey(java.lang.String key) { - return (MoveFile) super.setKey(key); + public RemoveFile setKey(java.lang.String key) { + return (RemoveFile) super.setKey(key); } @Override - public MoveFile setOauthToken(java.lang.String oauthToken) { - return (MoveFile) super.setOauthToken(oauthToken); + public RemoveFile setOauthToken(java.lang.String oauthToken) { + return (RemoveFile) super.setOauthToken(oauthToken); } @Override - public MoveFile setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MoveFile) super.setPrettyPrint(prettyPrint); + public RemoveFile setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveFile) super.setPrettyPrint(prettyPrint); } @Override - public MoveFile setQuotaUser(java.lang.String quotaUser) { - return (MoveFile) super.setQuotaUser(quotaUser); + public RemoveFile setQuotaUser(java.lang.String quotaUser) { + return (RemoveFile) super.setQuotaUser(quotaUser); } @Override - public MoveFile setUploadType(java.lang.String uploadType) { - return (MoveFile) super.setUploadType(uploadType); + public RemoveFile setUploadType(java.lang.String uploadType) { + return (RemoveFile) super.setUploadType(uploadType); } @Override - public MoveFile setUploadProtocol(java.lang.String uploadProtocol) { - return (MoveFile) super.setUploadProtocol(uploadProtocol); + public RemoveFile setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveFile) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @@ -11239,7 +10693,7 @@ public java.lang.String getWorkspace() { } /** Required. The workspace's name. */ - public MoveFile setWorkspace(java.lang.String workspace) { + public RemoveFile setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), "Parameter workspace must conform to the pattern " + @@ -11250,51 +10704,52 @@ public MoveFile setWorkspace(java.lang.String workspace) { } @Override - public MoveFile set(String parameterName, Object value) { - return (MoveFile) super.set(parameterName, value); + public RemoveFile set(String parameterName, Object value) { + return (RemoveFile) super.set(parameterName, value); } } /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Performs a Git reset for uncommitted files in a Workspace. * - * Create a request for the method "workspaces.pull". + * Create a request for the method "workspaces.reset". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Pull#execute()} method to invoke the remote operation. + * parameters, call the {@link Reset#execute()} method to invoke the remote operation. * * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.PullGitCommitsRequest} + * @param content the {@link com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest} * @return the request */ - public Pull pull(java.lang.String name, com.google.api.services.dataform.v1.model.PullGitCommitsRequest content) throws java.io.IOException { - Pull result = new Pull(name, content); + public Reset reset(java.lang.String name, com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest content) throws java.io.IOException { + Reset result = new Reset(name, content); initialize(result); return result; } - public class Pull extends DataformRequest { + public class Reset extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:pull"; + private static final String REST_PATH = "v1/{+name}:reset"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Performs a Git reset for uncommitted files in a Workspace. * - * Create a request for the method "workspaces.pull". + * Create a request for the method "workspaces.reset". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Pull#execute()} method to invoke the remote operation.

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

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

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

* * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.PullGitCommitsRequest} + * @param content the {@link com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest} * @since 1.13 */ - protected Pull(java.lang.String name, com.google.api.services.dataform.v1.model.PullGitCommitsRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.PullGitCommitsResponse.class); + protected Reset(java.lang.String name, com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.ResetWorkspaceChangesResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -11304,58 +10759,58 @@ protected Pull(java.lang.String name, com.google.api.services.dataform.v1.model. } @Override - public Pull set$Xgafv(java.lang.String $Xgafv) { - return (Pull) super.set$Xgafv($Xgafv); + public Reset set$Xgafv(java.lang.String $Xgafv) { + return (Reset) super.set$Xgafv($Xgafv); } @Override - public Pull setAccessToken(java.lang.String accessToken) { - return (Pull) super.setAccessToken(accessToken); + public Reset setAccessToken(java.lang.String accessToken) { + return (Reset) super.setAccessToken(accessToken); } @Override - public Pull setAlt(java.lang.String alt) { - return (Pull) super.setAlt(alt); + public Reset setAlt(java.lang.String alt) { + return (Reset) super.setAlt(alt); } @Override - public Pull setCallback(java.lang.String callback) { - return (Pull) super.setCallback(callback); + public Reset setCallback(java.lang.String callback) { + return (Reset) super.setCallback(callback); } @Override - public Pull setFields(java.lang.String fields) { - return (Pull) super.setFields(fields); + public Reset setFields(java.lang.String fields) { + return (Reset) super.setFields(fields); } @Override - public Pull setKey(java.lang.String key) { - return (Pull) super.setKey(key); + public Reset setKey(java.lang.String key) { + return (Reset) super.setKey(key); } @Override - public Pull setOauthToken(java.lang.String oauthToken) { - return (Pull) super.setOauthToken(oauthToken); + public Reset setOauthToken(java.lang.String oauthToken) { + return (Reset) super.setOauthToken(oauthToken); } @Override - public Pull setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Pull) super.setPrettyPrint(prettyPrint); + public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Reset) super.setPrettyPrint(prettyPrint); } @Override - public Pull setQuotaUser(java.lang.String quotaUser) { - return (Pull) super.setQuotaUser(quotaUser); + public Reset setQuotaUser(java.lang.String quotaUser) { + return (Reset) super.setQuotaUser(quotaUser); } @Override - public Pull setUploadType(java.lang.String uploadType) { - return (Pull) super.setUploadType(uploadType); + public Reset setUploadType(java.lang.String uploadType) { + return (Reset) super.setUploadType(uploadType); } @Override - public Pull setUploadProtocol(java.lang.String uploadProtocol) { - return (Pull) super.setUploadProtocol(uploadProtocol); + public Reset setUploadProtocol(java.lang.String uploadProtocol) { + return (Reset) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @@ -11369,7 +10824,7 @@ public java.lang.String getName() { } /** Required. The workspace's name. */ - public Pull setName(java.lang.String name) { + public Reset setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -11380,2821 +10835,728 @@ public Pull setName(java.lang.String name) { } @Override - public Pull set(String parameterName, Object value) { - return (Pull) super.set(parameterName, value); + public Reset set(String parameterName, Object value) { + return (Reset) super.set(parameterName, value); } } /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Finds the contents of a given Workspace directory by filter. * - * Create a request for the method "workspaces.push". + * Create a request for the method "workspaces.searchFiles". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Push#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchFiles#execute()} method to invoke the remote operation. * - * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.PushGitCommitsRequest} + * @param workspace Required. The workspace's name. * @return the request */ - public Push push(java.lang.String name, com.google.api.services.dataform.v1.model.PushGitCommitsRequest content) throws java.io.IOException { - Push result = new Push(name, content); + public SearchFiles searchFiles(java.lang.String workspace) throws java.io.IOException { + SearchFiles result = new SearchFiles(workspace); initialize(result); return result; } - public class Push extends DataformRequest { + public class SearchFiles extends DataformRequest { - private static final String REST_PATH = "v1/{+name}:push"; + private static final String REST_PATH = "v1/{+workspace}:searchFiles"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern WORKSPACE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Finds the contents of a given Workspace directory by filter. * - * Create a request for the method "workspaces.push". + * Create a request for the method "workspaces.searchFiles". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Push#execute()} method to invoke the remote operation.

- * {@link Push#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link SearchFiles#execute()} method to invoke the remote + * operation.

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

* - * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.PushGitCommitsRequest} + * @param workspace Required. The workspace's name. * @since 1.13 */ - protected Push(java.lang.String name, com.google.api.services.dataform.v1.model.PushGitCommitsRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.PushGitCommitsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected SearchFiles(java.lang.String workspace) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.SearchFilesResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } } @Override - public Push set$Xgafv(java.lang.String $Xgafv) { - return (Push) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Push setAccessToken(java.lang.String accessToken) { - return (Push) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Push setAlt(java.lang.String alt) { - return (Push) super.setAlt(alt); + public SearchFiles set$Xgafv(java.lang.String $Xgafv) { + return (SearchFiles) super.set$Xgafv($Xgafv); } @Override - public Push setCallback(java.lang.String callback) { - return (Push) super.setCallback(callback); + public SearchFiles setAccessToken(java.lang.String accessToken) { + return (SearchFiles) super.setAccessToken(accessToken); } @Override - public Push setFields(java.lang.String fields) { - return (Push) super.setFields(fields); + public SearchFiles setAlt(java.lang.String alt) { + return (SearchFiles) super.setAlt(alt); } @Override - public Push setKey(java.lang.String key) { - return (Push) super.setKey(key); + public SearchFiles setCallback(java.lang.String callback) { + return (SearchFiles) super.setCallback(callback); } @Override - public Push setOauthToken(java.lang.String oauthToken) { - return (Push) super.setOauthToken(oauthToken); + public SearchFiles setFields(java.lang.String fields) { + return (SearchFiles) super.setFields(fields); } @Override - public Push setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Push) super.setPrettyPrint(prettyPrint); + public SearchFiles setKey(java.lang.String key) { + return (SearchFiles) super.setKey(key); } @Override - public Push setQuotaUser(java.lang.String quotaUser) { - return (Push) super.setQuotaUser(quotaUser); + public SearchFiles setOauthToken(java.lang.String oauthToken) { + return (SearchFiles) super.setOauthToken(oauthToken); } @Override - public Push setUploadType(java.lang.String uploadType) { - return (Push) super.setUploadType(uploadType); + public SearchFiles setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchFiles) super.setPrettyPrint(prettyPrint); } @Override - public Push setUploadProtocol(java.lang.String uploadProtocol) { - return (Push) super.setUploadProtocol(uploadProtocol); + public SearchFiles setQuotaUser(java.lang.String quotaUser) { + return (SearchFiles) super.setQuotaUser(quotaUser); + } + + @Override + public SearchFiles setUploadType(java.lang.String uploadType) { + return (SearchFiles) super.setUploadType(uploadType); + } + + @Override + public SearchFiles setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchFiles) super.setUploadProtocol(uploadProtocol); } /** Required. The workspace's name. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String workspace; /** Required. The workspace's name. */ - public java.lang.String getName() { - return name; + public java.lang.String getWorkspace() { + return workspace; } /** Required. The workspace's name. */ - public Push setName(java.lang.String name) { + public SearchFiles setWorkspace(java.lang.String workspace) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.name = name; + this.workspace = workspace; return this; } - @Override - public Push set(String parameterName, Object value) { - return (Push) super.set(parameterName, value); - } - } - /** - * Returns the contents of a given Workspace directory. - * - * Create a request for the method "workspaces.queryDirectoryContents". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link QueryDirectoryContents#execute()} method to invoke the remote - * operation. - * - * @param workspace Required. The workspace's name. - * @return the request - */ - public QueryDirectoryContents queryDirectoryContents(java.lang.String workspace) throws java.io.IOException { - QueryDirectoryContents result = new QueryDirectoryContents(workspace); - initialize(result); - return result; - } - - public class QueryDirectoryContents extends DataformRequest { - - private static final String REST_PATH = "v1/{+workspace}:queryDirectoryContents"; + /** + * Optional. Optional filter for the returned list in filtering format. Filtering is + * only currently supported on the `path` field. See https://google.aip.dev/160 for + * details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + /** Optional. Optional filter for the returned list in filtering format. Filtering is only currently + supported on the `path` field. See https://google.aip.dev/160 for details. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Returns the contents of a given Workspace directory. - * - * Create a request for the method "workspaces.queryDirectoryContents". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link QueryDirectoryContents#execute()} method to invoke the - * remote operation.

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

- * - * @param workspace Required. The workspace's name. - * @since 1.13 + * Optional. Optional filter for the returned list in filtering format. Filtering is + * only currently supported on the `path` field. See https://google.aip.dev/160 for + * details. */ - protected QueryDirectoryContents(java.lang.String workspace) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryDirectoryContentsResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public QueryDirectoryContents set$Xgafv(java.lang.String $Xgafv) { - return (QueryDirectoryContents) super.set$Xgafv($Xgafv); - } - - @Override - public QueryDirectoryContents setAccessToken(java.lang.String accessToken) { - return (QueryDirectoryContents) super.setAccessToken(accessToken); - } - - @Override - public QueryDirectoryContents setAlt(java.lang.String alt) { - return (QueryDirectoryContents) super.setAlt(alt); - } - - @Override - public QueryDirectoryContents setCallback(java.lang.String callback) { - return (QueryDirectoryContents) super.setCallback(callback); - } - - @Override - public QueryDirectoryContents setFields(java.lang.String fields) { - return (QueryDirectoryContents) super.setFields(fields); - } - - @Override - public QueryDirectoryContents setKey(java.lang.String key) { - return (QueryDirectoryContents) super.setKey(key); - } - - @Override - public QueryDirectoryContents setOauthToken(java.lang.String oauthToken) { - return (QueryDirectoryContents) super.setOauthToken(oauthToken); - } - - @Override - public QueryDirectoryContents setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryDirectoryContents) super.setPrettyPrint(prettyPrint); - } - - @Override - public QueryDirectoryContents setQuotaUser(java.lang.String quotaUser) { - return (QueryDirectoryContents) super.setQuotaUser(quotaUser); - } - - @Override - public QueryDirectoryContents setUploadType(java.lang.String uploadType) { - return (QueryDirectoryContents) super.setUploadType(uploadType); - } - - @Override - public QueryDirectoryContents setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryDirectoryContents) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String workspace; - - /** Required. The workspace's name. - */ - public java.lang.String getWorkspace() { - return workspace; - } - - /** Required. The workspace's name. */ - public QueryDirectoryContents setWorkspace(java.lang.String workspace) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.workspace = workspace; - return this; + public SearchFiles setFilter(java.lang.String filter) { + this.filter = filter; + return this; } /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. + * Optional. Maximum number of search results to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate default. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If - unspecified, the server will pick an appropriate default. + /** Optional. Maximum number of search results to return. The server may return fewer items than + requested. If unspecified, the server will pick an appropriate default. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. + * Optional. Maximum number of search results to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate default. */ - public QueryDirectoryContents setPageSize(java.lang.Integer pageSize) { + public SearchFiles setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. Page token received from a previous `QueryDirectoryContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `QueryDirectoryContents`, with the exception of `page_size`, must match the call - * that provided the page token. + * Optional. Page token received from a previous `SearchFilesRequest` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `SearchFilesRequest`, with the exception of `page_size`, must match the call that + * provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. Page token received from a previous `QueryDirectoryContents` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `QueryDirectoryContents`, with the exception of `page_size`, must match the call that provided the - page token. + /** Optional. Page token received from a previous `SearchFilesRequest` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `SearchFilesRequest`, with + the exception of `page_size`, must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. Page token received from a previous `QueryDirectoryContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `QueryDirectoryContents`, with the exception of `page_size`, must match the call - * that provided the page token. + * Optional. Page token received from a previous `SearchFilesRequest` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `SearchFilesRequest`, with the exception of `page_size`, must match the call that + * provided the page token. */ - public QueryDirectoryContents setPageToken(java.lang.String pageToken) { + public SearchFiles setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * Optional. The directory's full path including directory name, relative to the - * workspace root. If left unset, the workspace root is used. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** Optional. The directory's full path including directory name, relative to the workspace root. If - left unset, the workspace root is used. - */ - public java.lang.String getPath() { - return path; - } - - /** - * Optional. The directory's full path including directory name, relative to the - * workspace root. If left unset, the workspace root is used. - */ - public QueryDirectoryContents setPath(java.lang.String path) { - this.path = path; - return this; - } - - /** - * Optional. Specifies the metadata to return for each directory entry. If unspecified, - * the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the - * `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected - * workspaces. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. Specifies the metadata to return for each directory entry. If unspecified, the default is - `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not - supported by CMEK-protected workspaces. - */ - public java.lang.String getView() { - return view; - } - - /** - * Optional. Specifies the metadata to return for each directory entry. If unspecified, - * the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the - * `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected - * workspaces. - */ - public QueryDirectoryContents setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public QueryDirectoryContents set(String parameterName, Object value) { - return (QueryDirectoryContents) super.set(parameterName, value); - } - } - /** - * Returns the contents of a file (inside a Workspace). - * - * Create a request for the method "workspaces.readFile". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link ReadFile#execute()} method to invoke the remote operation. - * - * @param workspace Required. The workspace's name. - * @return the request - */ - public ReadFile readFile(java.lang.String workspace) throws java.io.IOException { - ReadFile result = new ReadFile(workspace); - initialize(result); - return result; - } - - public class ReadFile extends DataformRequest { - - private static final String REST_PATH = "v1/{+workspace}:readFile"; - - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Returns the contents of a file (inside a Workspace). - * - * Create a request for the method "workspaces.readFile". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link ReadFile#execute()} method to invoke the remote operation. - *

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

- * - * @param workspace Required. The workspace's name. - * @since 1.13 - */ - protected ReadFile(java.lang.String workspace) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.ReadFileResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ReadFile set$Xgafv(java.lang.String $Xgafv) { - return (ReadFile) super.set$Xgafv($Xgafv); - } - - @Override - public ReadFile setAccessToken(java.lang.String accessToken) { - return (ReadFile) super.setAccessToken(accessToken); - } - - @Override - public ReadFile setAlt(java.lang.String alt) { - return (ReadFile) super.setAlt(alt); - } - - @Override - public ReadFile setCallback(java.lang.String callback) { - return (ReadFile) super.setCallback(callback); - } - - @Override - public ReadFile setFields(java.lang.String fields) { - return (ReadFile) super.setFields(fields); - } - @Override - public ReadFile setKey(java.lang.String key) { - return (ReadFile) super.setKey(key); - } - - @Override - public ReadFile setOauthToken(java.lang.String oauthToken) { - return (ReadFile) super.setOauthToken(oauthToken); - } - - @Override - public ReadFile setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReadFile) super.setPrettyPrint(prettyPrint); - } - - @Override - public ReadFile setQuotaUser(java.lang.String quotaUser) { - return (ReadFile) super.setQuotaUser(quotaUser); - } - - @Override - public ReadFile setUploadType(java.lang.String uploadType) { - return (ReadFile) super.setUploadType(uploadType); - } - - @Override - public ReadFile setUploadProtocol(java.lang.String uploadProtocol) { - return (ReadFile) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String workspace; - - /** Required. The workspace's name. - */ - public java.lang.String getWorkspace() { - return workspace; - } - - /** Required. The workspace's name. */ - public ReadFile setWorkspace(java.lang.String workspace) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.workspace = workspace; - return this; - } - - /** - * Required. The file's full path including filename, relative to the workspace root. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** Required. The file's full path including filename, relative to the workspace root. - */ - public java.lang.String getPath() { - return path; - } - - /** - * Required. The file's full path including filename, relative to the workspace root. - */ - public ReadFile setPath(java.lang.String path) { - this.path = path; - return this; - } - - /** - * Optional. The Git revision of the file to return. If left empty, the current contents - * of `path` will be returned. - */ - @com.google.api.client.util.Key - private java.lang.String revision; - - /** Optional. The Git revision of the file to return. If left empty, the current contents of `path` - will be returned. - */ - public java.lang.String getRevision() { - return revision; - } - - /** - * Optional. The Git revision of the file to return. If left empty, the current contents - * of `path` will be returned. - */ - public ReadFile setRevision(java.lang.String revision) { - this.revision = revision; - return this; - } - - @Override - public ReadFile set(String parameterName, Object value) { - return (ReadFile) super.set(parameterName, value); - } - } - /** - * Deletes a directory (inside a Workspace) and all of its contents. - * - * Create a request for the method "workspaces.removeDirectory". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link RemoveDirectory#execute()} method to invoke the remote operation. - * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.RemoveDirectoryRequest} - * @return the request - */ - public RemoveDirectory removeDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveDirectoryRequest content) throws java.io.IOException { - RemoveDirectory result = new RemoveDirectory(workspace, content); - initialize(result); - return result; - } - - public class RemoveDirectory extends DataformRequest { - - private static final String REST_PATH = "v1/{+workspace}:removeDirectory"; - - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Deletes a directory (inside a Workspace) and all of its contents. - * - * Create a request for the method "workspaces.removeDirectory". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link RemoveDirectory#execute()} method to invoke the remote - * operation.

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

- * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.RemoveDirectoryRequest} - * @since 1.13 - */ - protected RemoveDirectory(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveDirectoryRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.RemoveDirectoryResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public RemoveDirectory set$Xgafv(java.lang.String $Xgafv) { - return (RemoveDirectory) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveDirectory setAccessToken(java.lang.String accessToken) { - return (RemoveDirectory) super.setAccessToken(accessToken); - } - - @Override - public RemoveDirectory setAlt(java.lang.String alt) { - return (RemoveDirectory) super.setAlt(alt); - } - - @Override - public RemoveDirectory setCallback(java.lang.String callback) { - return (RemoveDirectory) super.setCallback(callback); - } - - @Override - public RemoveDirectory setFields(java.lang.String fields) { - return (RemoveDirectory) super.setFields(fields); - } - - @Override - public RemoveDirectory setKey(java.lang.String key) { - return (RemoveDirectory) super.setKey(key); - } - - @Override - public RemoveDirectory setOauthToken(java.lang.String oauthToken) { - return (RemoveDirectory) super.setOauthToken(oauthToken); - } - - @Override - public RemoveDirectory setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveDirectory) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveDirectory setQuotaUser(java.lang.String quotaUser) { - return (RemoveDirectory) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveDirectory setUploadType(java.lang.String uploadType) { - return (RemoveDirectory) super.setUploadType(uploadType); - } - - @Override - public RemoveDirectory setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveDirectory) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String workspace; - - /** Required. The workspace's name. - */ - public java.lang.String getWorkspace() { - return workspace; - } - - /** Required. The workspace's name. */ - public RemoveDirectory setWorkspace(java.lang.String workspace) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.workspace = workspace; - return this; - } - - @Override - public RemoveDirectory set(String parameterName, Object value) { - return (RemoveDirectory) super.set(parameterName, value); - } - } - /** - * Deletes a file (inside a Workspace). - * - * Create a request for the method "workspaces.removeFile". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link RemoveFile#execute()} method to invoke the remote operation. - * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.RemoveFileRequest} - * @return the request - */ - public RemoveFile removeFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveFileRequest content) throws java.io.IOException { - RemoveFile result = new RemoveFile(workspace, content); - initialize(result); - return result; - } - - public class RemoveFile extends DataformRequest { - - private static final String REST_PATH = "v1/{+workspace}:removeFile"; - - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Deletes a file (inside a Workspace). - * - * Create a request for the method "workspaces.removeFile". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link RemoveFile#execute()} method to invoke the remote - * operation.

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

- * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.RemoveFileRequest} - * @since 1.13 - */ - protected RemoveFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.RemoveFileRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.RemoveFileResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public RemoveFile set$Xgafv(java.lang.String $Xgafv) { - return (RemoveFile) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveFile setAccessToken(java.lang.String accessToken) { - return (RemoveFile) super.setAccessToken(accessToken); - } - - @Override - public RemoveFile setAlt(java.lang.String alt) { - return (RemoveFile) super.setAlt(alt); - } - - @Override - public RemoveFile setCallback(java.lang.String callback) { - return (RemoveFile) super.setCallback(callback); - } - - @Override - public RemoveFile setFields(java.lang.String fields) { - return (RemoveFile) super.setFields(fields); - } - - @Override - public RemoveFile setKey(java.lang.String key) { - return (RemoveFile) super.setKey(key); - } - - @Override - public RemoveFile setOauthToken(java.lang.String oauthToken) { - return (RemoveFile) super.setOauthToken(oauthToken); - } - - @Override - public RemoveFile setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveFile) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveFile setQuotaUser(java.lang.String quotaUser) { - return (RemoveFile) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveFile setUploadType(java.lang.String uploadType) { - return (RemoveFile) super.setUploadType(uploadType); - } - - @Override - public RemoveFile setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveFile) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String workspace; - - /** Required. The workspace's name. - */ - public java.lang.String getWorkspace() { - return workspace; - } - - /** Required. The workspace's name. */ - public RemoveFile setWorkspace(java.lang.String workspace) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.workspace = workspace; - return this; - } - - @Override - public RemoveFile set(String parameterName, Object value) { - return (RemoveFile) super.set(parameterName, value); - } - } - /** - * Performs a Git reset for uncommitted files in a Workspace. - * - * Create a request for the method "workspaces.reset". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Reset#execute()} method to invoke the remote operation. - * - * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest} - * @return the request - */ - public Reset reset(java.lang.String name, com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest content) throws java.io.IOException { - Reset result = new Reset(name, content); - initialize(result); - return result; - } - - public class Reset extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}:reset"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Performs a Git reset for uncommitted files in a Workspace. - * - * Create a request for the method "workspaces.reset". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Reset#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest} - * @since 1.13 - */ - protected Reset(java.lang.String name, com.google.api.services.dataform.v1.model.ResetWorkspaceChangesRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.ResetWorkspaceChangesResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public Reset set$Xgafv(java.lang.String $Xgafv) { - return (Reset) super.set$Xgafv($Xgafv); - } - - @Override - public Reset setAccessToken(java.lang.String accessToken) { - return (Reset) super.setAccessToken(accessToken); - } - - @Override - public Reset setAlt(java.lang.String alt) { - return (Reset) super.setAlt(alt); - } - - @Override - public Reset setCallback(java.lang.String callback) { - return (Reset) super.setCallback(callback); - } - - @Override - public Reset setFields(java.lang.String fields) { - return (Reset) super.setFields(fields); - } - - @Override - public Reset setKey(java.lang.String key) { - return (Reset) super.setKey(key); - } - - @Override - public Reset setOauthToken(java.lang.String oauthToken) { - return (Reset) super.setOauthToken(oauthToken); - } - - @Override - public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Reset) super.setPrettyPrint(prettyPrint); - } - - @Override - public Reset setQuotaUser(java.lang.String quotaUser) { - return (Reset) super.setQuotaUser(quotaUser); - } - - @Override - public Reset setUploadType(java.lang.String uploadType) { - return (Reset) super.setUploadType(uploadType); - } - - @Override - public Reset setUploadProtocol(java.lang.String uploadProtocol) { - return (Reset) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The workspace's name. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The workspace's name. */ - public Reset setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Reset set(String parameterName, Object value) { - return (Reset) super.set(parameterName, value); - } - } - /** - * Finds the contents of a given Workspace directory by filter. - * - * Create a request for the method "workspaces.searchFiles". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link SearchFiles#execute()} method to invoke the remote operation. - * - * @param workspace Required. The workspace's name. - * @return the request - */ - public SearchFiles searchFiles(java.lang.String workspace) throws java.io.IOException { - SearchFiles result = new SearchFiles(workspace); - initialize(result); - return result; - } - - public class SearchFiles extends DataformRequest { - - private static final String REST_PATH = "v1/{+workspace}:searchFiles"; - - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Finds the contents of a given Workspace directory by filter. - * - * Create a request for the method "workspaces.searchFiles". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link SearchFiles#execute()} method to invoke the remote - * operation.

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

- * - * @param workspace Required. The workspace's name. - * @since 1.13 - */ - protected SearchFiles(java.lang.String workspace) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.SearchFilesResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public SearchFiles set$Xgafv(java.lang.String $Xgafv) { - return (SearchFiles) super.set$Xgafv($Xgafv); - } - - @Override - public SearchFiles setAccessToken(java.lang.String accessToken) { - return (SearchFiles) super.setAccessToken(accessToken); - } - - @Override - public SearchFiles setAlt(java.lang.String alt) { - return (SearchFiles) super.setAlt(alt); - } - - @Override - public SearchFiles setCallback(java.lang.String callback) { - return (SearchFiles) super.setCallback(callback); - } - - @Override - public SearchFiles setFields(java.lang.String fields) { - return (SearchFiles) super.setFields(fields); - } - - @Override - public SearchFiles setKey(java.lang.String key) { - return (SearchFiles) super.setKey(key); - } - - @Override - public SearchFiles setOauthToken(java.lang.String oauthToken) { - return (SearchFiles) super.setOauthToken(oauthToken); - } - - @Override - public SearchFiles setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchFiles) super.setPrettyPrint(prettyPrint); - } - - @Override - public SearchFiles setQuotaUser(java.lang.String quotaUser) { - return (SearchFiles) super.setQuotaUser(quotaUser); - } - - @Override - public SearchFiles setUploadType(java.lang.String uploadType) { - return (SearchFiles) super.setUploadType(uploadType); - } - - @Override - public SearchFiles setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchFiles) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String workspace; - - /** Required. The workspace's name. - */ - public java.lang.String getWorkspace() { - return workspace; - } - - /** Required. The workspace's name. */ - public SearchFiles setWorkspace(java.lang.String workspace) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.workspace = workspace; - return this; - } - - /** - * Optional. Optional filter for the returned list in filtering format. Filtering is - * only currently supported on the `path` field. See https://google.aip.dev/160 for - * details. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Optional filter for the returned list in filtering format. Filtering is only currently - supported on the `path` field. See https://google.aip.dev/160 for details. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. Optional filter for the returned list in filtering format. Filtering is - * only currently supported on the `path` field. See https://google.aip.dev/160 for - * details. - */ - public SearchFiles setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Maximum number of search results to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of search results to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of search results to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate default. - */ - public SearchFiles setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token received from a previous `SearchFilesRequest` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `SearchFilesRequest`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token received from a previous `SearchFilesRequest` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to `SearchFilesRequest`, with - the exception of `page_size`, must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token received from a previous `SearchFilesRequest` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `SearchFilesRequest`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - public SearchFiles setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public SearchFiles set(String parameterName, Object value) { - return (SearchFiles) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "workspaces.setIamPolicy". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataformRequest { - - private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "workspaces.setIamPolicy". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @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); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - 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. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. - * - * Create a request for the method "workspaces.testIamPermissions". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataformRequest { - - private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. - * - * Create a request for the method "workspaces.testIamPermissions". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @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); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Writes to a file (inside a Workspace). - * - * Create a request for the method "workspaces.writeFile". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link WriteFile#execute()} method to invoke the remote operation. - * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.WriteFileRequest} - * @return the request - */ - public WriteFile writeFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.WriteFileRequest content) throws java.io.IOException { - WriteFile result = new WriteFile(workspace, content); - initialize(result); - return result; - } - - public class WriteFile extends DataformRequest { - - private static final String REST_PATH = "v1/{+workspace}:writeFile"; - - private final java.util.regex.Pattern WORKSPACE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - - /** - * Writes to a file (inside a Workspace). - * - * Create a request for the method "workspaces.writeFile". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link WriteFile#execute()} method to invoke the remote - * operation.

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

- * - * @param workspace Required. The workspace's name. - * @param content the {@link com.google.api.services.dataform.v1.model.WriteFileRequest} - * @since 1.13 - */ - protected WriteFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.WriteFileRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.WriteFileResponse.class); - this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - } - - @Override - public WriteFile set$Xgafv(java.lang.String $Xgafv) { - return (WriteFile) super.set$Xgafv($Xgafv); - } - - @Override - public WriteFile setAccessToken(java.lang.String accessToken) { - return (WriteFile) super.setAccessToken(accessToken); - } - - @Override - public WriteFile setAlt(java.lang.String alt) { - return (WriteFile) super.setAlt(alt); - } - - @Override - public WriteFile setCallback(java.lang.String callback) { - return (WriteFile) super.setCallback(callback); - } - - @Override - public WriteFile setFields(java.lang.String fields) { - return (WriteFile) super.setFields(fields); - } - - @Override - public WriteFile setKey(java.lang.String key) { - return (WriteFile) super.setKey(key); - } - - @Override - public WriteFile setOauthToken(java.lang.String oauthToken) { - return (WriteFile) super.setOauthToken(oauthToken); - } - - @Override - public WriteFile setPrettyPrint(java.lang.Boolean prettyPrint) { - return (WriteFile) super.setPrettyPrint(prettyPrint); - } - - @Override - public WriteFile setQuotaUser(java.lang.String quotaUser) { - return (WriteFile) super.setQuotaUser(quotaUser); - } - - @Override - public WriteFile setUploadType(java.lang.String uploadType) { - return (WriteFile) super.setUploadType(uploadType); - } - - @Override - public WriteFile setUploadProtocol(java.lang.String uploadProtocol) { - return (WriteFile) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The workspace's name. */ - @com.google.api.client.util.Key - private java.lang.String workspace; - - /** Required. The workspace's name. - */ - public java.lang.String getWorkspace() { - return workspace; - } - - /** Required. The workspace's name. */ - public WriteFile setWorkspace(java.lang.String workspace) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), - "Parameter workspace must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - } - this.workspace = workspace; - return this; - } - - @Override - public WriteFile set(String parameterName, Object value) { - return (WriteFile) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the TeamFolders collection. - * - *

The typical use is:

- *
-       *   {@code Dataform dataform = new Dataform(...);}
-       *   {@code Dataform.TeamFolders.List request = dataform.teamFolders().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public TeamFolders teamFolders() { - return new TeamFolders(); - } - - /** - * The "teamFolders" collection of methods. - */ - public class TeamFolders { - - /** - * Creates a new TeamFolder in a given project and location. - * - * Create a request for the method "teamFolders.create". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The location in which to create the TeamFolder. Must be in the format - * `projects/locations`. - * @param content the {@link com.google.api.services.dataform.v1.model.TeamFolder} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.dataform.v1.model.TeamFolder content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends DataformRequest { - - private static final String REST_PATH = "v1/{+parent}/teamFolders"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a new TeamFolder in a given project and location. - * - * Create a request for the method "teamFolders.create". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The location in which to create the TeamFolder. Must be in the format - * `projects/locations`. - * @param content the {@link com.google.api.services.dataform.v1.model.TeamFolder} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.dataform.v1.model.TeamFolder content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TeamFolder.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The location in which to create the TeamFolder. Must be in the format - * `projects/locations`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The location in which to create the TeamFolder. Must be in the format - `projects/locations`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The location in which to create the TeamFolder. Must be in the format - * `projects/locations`. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single TeamFolder. - * - * Create a request for the method "teamFolders.delete". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The TeamFolder's name. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - - /** - * Deletes a single TeamFolder. - * - * Create a request for the method "teamFolders.delete". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. The TeamFolder's name. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - } - - @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); - } - - /** Required. The TeamFolder's name. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The TeamFolder's name. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The TeamFolder's name. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and - * WorkflowConfigs). - * - * Create a request for the method "teamFolders.deleteTree". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link DeleteTree#execute()} method to invoke the remote operation. - * - * @param name Required. The TeamFolder's name. Format: - * projects/{project}/locations/{location}/teamFolders/{team_folder} - * @param content the {@link com.google.api.services.dataform.v1.model.DeleteTeamFolderTreeRequest} - * @return the request - */ - public DeleteTree deleteTree(java.lang.String name, com.google.api.services.dataform.v1.model.DeleteTeamFolderTreeRequest content) throws java.io.IOException { - DeleteTree result = new DeleteTree(name, content); - initialize(result); - return result; - } - - public class DeleteTree extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}:deleteTree"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - - /** - * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and - * WorkflowConfigs). - * - * Create a request for the method "teamFolders.deleteTree". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link DeleteTree#execute()} method to invoke the remote - * operation.

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

- * - * @param name Required. The TeamFolder's name. Format: - * projects/{project}/locations/{location}/teamFolders/{team_folder} - * @param content the {@link com.google.api.services.dataform.v1.model.DeleteTeamFolderTreeRequest} - * @since 1.13 - */ - protected DeleteTree(java.lang.String name, com.google.api.services.dataform.v1.model.DeleteTeamFolderTreeRequest content) { - super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - } - - @Override - public DeleteTree set$Xgafv(java.lang.String $Xgafv) { - return (DeleteTree) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteTree setAccessToken(java.lang.String accessToken) { - return (DeleteTree) super.setAccessToken(accessToken); - } - - @Override - public DeleteTree setAlt(java.lang.String alt) { - return (DeleteTree) super.setAlt(alt); - } - - @Override - public DeleteTree setCallback(java.lang.String callback) { - return (DeleteTree) super.setCallback(callback); - } - - @Override - public DeleteTree setFields(java.lang.String fields) { - return (DeleteTree) super.setFields(fields); - } - - @Override - public DeleteTree setKey(java.lang.String key) { - return (DeleteTree) super.setKey(key); - } - - @Override - public DeleteTree setOauthToken(java.lang.String oauthToken) { - return (DeleteTree) super.setOauthToken(oauthToken); - } - - @Override - public DeleteTree setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteTree) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteTree setQuotaUser(java.lang.String quotaUser) { - return (DeleteTree) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteTree setUploadType(java.lang.String uploadType) { - return (DeleteTree) super.setUploadType(uploadType); - } - - @Override - public DeleteTree setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteTree) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The TeamFolder's name. Format: - * projects/{project}/locations/{location}/teamFolders/{team_folder} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The TeamFolder's name. Format: - projects/{project}/locations/{location}/teamFolders/{team_folder} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The TeamFolder's name. Format: - * projects/{project}/locations/{location}/teamFolders/{team_folder} - */ - public DeleteTree setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public DeleteTree set(String parameterName, Object value) { - return (DeleteTree) super.set(parameterName, value); - } - } - /** - * Fetches a single TeamFolder. - * - * Create a request for the method "teamFolders.get". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The TeamFolder's name. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - - /** - * Fetches a single TeamFolder. - * - * Create a request for the method "teamFolders.get". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The TeamFolder's name. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.TeamFolder.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The TeamFolder's name. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The TeamFolder's name. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The TeamFolder's name. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "teamFolders.getIamPolicy". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataformRequest { - - private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - * Create a request for the method "teamFolders.getIamPolicy". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } - this.resource = resource; - return this; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - 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); - } - } - /** - * Updates a single TeamFolder. - * - * Create a request for the method "teamFolders.patch". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The TeamFolder's name. - * @param content the {@link com.google.api.services.dataform.v1.model.TeamFolder} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.dataform.v1.model.TeamFolder content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataformRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - + public SearchFiles set(String parameterName, Object value) { + return (SearchFiles) super.set(parameterName, value); + } + } /** - * Updates a single TeamFolder. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "teamFolders.patch". + * Create a request for the method "workspaces.setIamPolicy". * - * This request holds the parameters needed by the the dataform 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.

+ * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Identifier. The TeamFolder's name. - * @param content the {@link com.google.api.services.dataform.v1.model.TeamFolder} - * @since 1.13 + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.dataform.v1.model.TeamFolder content) { - super(Dataform.this, "PATCH", REST_PATH, content, com.google.api.services.dataform.v1.model.TeamFolder.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); - } + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class SetIamPolicy extends DataformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "workspaces.setIamPolicy". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.dataform.v1.model.SetIamPolicyRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } - /** Identifier. The TeamFolder's name. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } - /** Identifier. The TeamFolder's name. - */ - public java.lang.String getName() { - return name; - } + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } - /** Identifier. The TeamFolder's name. */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } - this.name = name; - return this; - } - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, all fields - * will be updated. - */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - /** Optional. Specifies the fields to be updated in the Folder. If left unset, all fields will be - updated. + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + 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. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "workspaces.testIamPermissions". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} + * @return the request */ - public String getUpdateMask() { - return updateMask; + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; } - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, all fields - * will be updated. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + public class TestIamPermissions extends DataformRequest { + + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "workspaces.testIamPermissions". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dataform.v1.model.TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.dataform.v1.model.TestIamPermissionsRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns the contents of a given TeamFolder. - * - * Create a request for the method "teamFolders.queryContents". - * - * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link QueryContents#execute()} method to invoke the remote operation. - * - * @param teamFolder Required. Name of the team_folder whose contents to list. Format: `projects/locations/teamFolders`. - * @return the request - */ - public QueryContents queryContents(java.lang.String teamFolder) throws java.io.IOException { - QueryContents result = new QueryContents(teamFolder); - initialize(result); - return result; - } + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - public class QueryContents extends DataformRequest { + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - private static final String REST_PATH = "v1/{+teamFolder}:queryContents"; + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - private final java.util.regex.Pattern TEAM_FOLDER_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - /** - * Returns the contents of a given TeamFolder. - * - * Create a request for the method "teamFolders.queryContents". - * - * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link QueryContents#execute()} method to invoke the remote - * operation.

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

- * - * @param teamFolder Required. Name of the team_folder whose contents to list. Format: `projects/locations/teamFolders`. - * @since 1.13 - */ - protected QueryContents(java.lang.String teamFolder) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.QueryTeamFolderContentsResponse.class); - this.teamFolder = com.google.api.client.util.Preconditions.checkNotNull(teamFolder, "Required parameter teamFolder must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TEAM_FOLDER_PATTERN.matcher(teamFolder).matches(), - "Parameter teamFolder must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } - @Override - public QueryContents set$Xgafv(java.lang.String $Xgafv) { - return (QueryContents) super.set$Xgafv($Xgafv); - } + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - @Override - public QueryContents setAccessToken(java.lang.String accessToken) { - return (QueryContents) super.setAccessToken(accessToken); - } + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } - @Override - public QueryContents setAlt(java.lang.String alt) { - return (QueryContents) super.setAlt(alt); - } + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } - @Override - public QueryContents setCallback(java.lang.String callback) { - return (QueryContents) super.setCallback(callback); - } + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; - @Override - public QueryContents setFields(java.lang.String fields) { - return (QueryContents) super.setFields(fields); - } + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } - @Override - public QueryContents setKey(java.lang.String key) { - return (QueryContents) super.setKey(key); - } + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + this.resource = resource; + return this; + } - @Override - public QueryContents setOauthToken(java.lang.String oauthToken) { - return (QueryContents) super.setOauthToken(oauthToken); + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } } - - @Override - public QueryContents setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryContents) super.setPrettyPrint(prettyPrint); + /** + * Writes to a file (inside a Workspace). + * + * Create a request for the method "workspaces.writeFile". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link WriteFile#execute()} method to invoke the remote operation. + * + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.WriteFileRequest} + * @return the request + */ + public WriteFile writeFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.WriteFileRequest content) throws java.io.IOException { + WriteFile result = new WriteFile(workspace, content); + initialize(result); + return result; } - @Override - public QueryContents setQuotaUser(java.lang.String quotaUser) { - return (QueryContents) super.setQuotaUser(quotaUser); - } + public class WriteFile extends DataformRequest { - @Override - public QueryContents setUploadType(java.lang.String uploadType) { - return (QueryContents) super.setUploadType(uploadType); - } + private static final String REST_PATH = "v1/{+workspace}:writeFile"; - @Override - public QueryContents setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryContents) super.setUploadProtocol(uploadProtocol); - } + private final java.util.regex.Pattern WORKSPACE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); - /** - * Required. Name of the team_folder whose contents to list. Format: - * `projects/locations/teamFolders`. - */ - @com.google.api.client.util.Key - private java.lang.String teamFolder; + /** + * Writes to a file (inside a Workspace). + * + * Create a request for the method "workspaces.writeFile". + * + * This request holds the parameters needed by the the dataform server. After setting any + * optional parameters, call the {@link WriteFile#execute()} method to invoke the remote + * operation.

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

+ * + * @param workspace Required. The workspace's name. + * @param content the {@link com.google.api.services.dataform.v1.model.WriteFileRequest} + * @since 1.13 + */ + protected WriteFile(java.lang.String workspace, com.google.api.services.dataform.v1.model.WriteFileRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.WriteFileResponse.class); + this.workspace = com.google.api.client.util.Preconditions.checkNotNull(workspace, "Required parameter workspace must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } - /** Required. Name of the team_folder whose contents to list. Format: `projects/locations/teamFolders`. - */ - public java.lang.String getTeamFolder() { - return teamFolder; - } + @Override + public WriteFile set$Xgafv(java.lang.String $Xgafv) { + return (WriteFile) super.set$Xgafv($Xgafv); + } - /** - * Required. Name of the team_folder whose contents to list. Format: - * `projects/locations/teamFolders`. - */ - public QueryContents setTeamFolder(java.lang.String teamFolder) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TEAM_FOLDER_PATTERN.matcher(teamFolder).matches(), - "Parameter teamFolder must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); + @Override + public WriteFile setAccessToken(java.lang.String accessToken) { + return (WriteFile) super.setAccessToken(accessToken); } - this.teamFolder = teamFolder; - return this; - } - /** - * Optional. Optional filtering for the returned list. Filtering is currently only - * supported on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public WriteFile setAlt(java.lang.String alt) { + return (WriteFile) super.setAlt(alt); + } - /** Optional. Optional filtering for the returned list. Filtering is currently only supported on the - `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public WriteFile setCallback(java.lang.String callback) { + return (WriteFile) super.setCallback(callback); + } - /** - * Optional. Optional filtering for the returned list. Filtering is currently only - * supported on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public QueryContents setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public WriteFile setFields(java.lang.String fields) { + return (WriteFile) super.setFields(fields); + } - /** - * Optional. Field to additionally sort results by. Will order Folders before - * Repositories, and then by `order_by` in ascending order. Supported keywords: - * `display_name` (default), `create_time`, last_modified_time. Examples: - - * `orderBy="display_name"` - `orderBy="display_name desc"` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public WriteFile setKey(java.lang.String key) { + return (WriteFile) super.setKey(key); + } - /** Optional. Field to additionally sort results by. Will order Folders before Repositories, and then - by `order_by` in ascending order. Supported keywords: `display_name` (default), `create_time`, - last_modified_time. Examples: - `orderBy="display_name"` - `orderBy="display_name desc"` - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public WriteFile setOauthToken(java.lang.String oauthToken) { + return (WriteFile) super.setOauthToken(oauthToken); + } - /** - * Optional. Field to additionally sort results by. Will order Folders before - * Repositories, and then by `order_by` in ascending order. Supported keywords: - * `display_name` (default), `create_time`, last_modified_time. Examples: - - * `orderBy="display_name"` - `orderBy="display_name desc"` - */ - public QueryContents setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public WriteFile setPrettyPrint(java.lang.Boolean prettyPrint) { + return (WriteFile) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public WriteFile setQuotaUser(java.lang.String quotaUser) { + return (WriteFile) super.setQuotaUser(quotaUser); + } - /** Optional. Maximum number of paths to return. The server may return fewer items than requested. If - unspecified, the server will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public WriteFile setUploadType(java.lang.String uploadType) { + return (WriteFile) super.setUploadType(uploadType); + } - /** - * Optional. Maximum number of paths to return. The server may return fewer items than - * requested. If unspecified, the server will pick an appropriate default. - */ - public QueryContents setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public WriteFile setUploadProtocol(java.lang.String uploadProtocol) { + return (WriteFile) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. Page token received from a previous `QueryTeamFolderContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryTeamFolderContents`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The workspace's name. */ + @com.google.api.client.util.Key + private java.lang.String workspace; - /** Optional. Page token received from a previous `QueryTeamFolderContents` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `QueryTeamFolderContents`, with the exception of `page_size`, must match the call that provided the - page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** Required. The workspace's name. + */ + public java.lang.String getWorkspace() { + return workspace; + } - /** - * Optional. Page token received from a previous `QueryTeamFolderContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryTeamFolderContents`, with the exception of `page_size`, must match the call that - * provided the page token. - */ - public QueryContents setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. The workspace's name. */ + public WriteFile setWorkspace(java.lang.String workspace) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(WORKSPACE_PATTERN.matcher(workspace).matches(), + "Parameter workspace must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + this.workspace = workspace; + return this; + } - @Override - public QueryContents set(String parameterName, Object value) { - return (QueryContents) super.set(parameterName, value); + @Override + public WriteFile set(String parameterName, Object value) { + return (WriteFile) super.set(parameterName, value); + } } + } + } + /** + * An accessor for creating requests from the TeamFolders collection. + * + *

The typical use is:

+ *
+       *   {@code Dataform dataform = new Dataform(...);}
+       *   {@code Dataform.TeamFolders.List request = dataform.teamFolders().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public TeamFolders teamFolders() { + return new TeamFolders(); + } + + /** + * The "teamFolders" collection of methods. + */ + public class TeamFolders { + /** - * Returns all TeamFolders in a given location that the caller has access to and match the provided - * filter. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "teamFolders.search". + * Create a request for the method "teamFolders.getIamPolicy". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Search#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param location Required. Location in which to query TeamFolders. Format: `projects/locations`. + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Search search(java.lang.String location) throws java.io.IOException { - Search result = new Search(location); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Search extends DataformRequest { + public class GetIamPolicy extends DataformRequest { - private static final String REST_PATH = "v1/{+location}/teamFolders:search"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern LOCATION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); /** - * Returns all TeamFolders in a given location that the caller has access to and match the - * provided filter. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "teamFolders.search". + * Create a request for the method "teamFolders.getIamPolicy". * * This request holds the parameters needed by the the dataform server. After setting any - * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. - *

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

+ * 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 location Required. Location in which to query TeamFolders. Format: `projects/locations`. + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Search(java.lang.String location) { - super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.SearchTeamFoldersResponse.class); - this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); } } @@ -14209,184 +11571,137 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Search set$Xgafv(java.lang.String $Xgafv) { - return (Search) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Search setAccessToken(java.lang.String accessToken) { - return (Search) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Search setAlt(java.lang.String alt) { - return (Search) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Search setCallback(java.lang.String callback) { - return (Search) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Search setFields(java.lang.String fields) { - return (Search) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Search setKey(java.lang.String key) { - return (Search) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Search setOauthToken(java.lang.String oauthToken) { - return (Search) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Search setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Search) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Search setQuotaUser(java.lang.String quotaUser) { - return (Search) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Search setUploadType(java.lang.String uploadType) { - return (Search) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Search setUploadProtocol(java.lang.String uploadProtocol) { - return (Search) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Location in which to query TeamFolders. Format: `projects/locations`. */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** Required. Location in which to query TeamFolders. Format: `projects/locations`. - */ - public java.lang.String getLocation() { - return location; - } - - /** Required. Location in which to query TeamFolders. Format: `projects/locations`. */ - public Search setLocation(java.lang.String location) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.location = location; - return this; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently only - * supported on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Optional filtering for the returned list. Filtering is currently only supported on the - `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently only - * supported on the `display_name` field. Example: - `filter="display_name="MyFolder""` - */ - public Search setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Field to additionally sort results by. Supported keywords: `display_name` - * (default), `create_time`, `last_modified_time`. Examples: - `orderBy="display_name"` - - * `orderBy="display_name desc"` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Field to additionally sort results by. Supported keywords: `display_name` (default), - `create_time`, `last_modified_time`. Examples: - `orderBy="display_name"` - `orderBy="display_name - desc"` - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. Field to additionally sort results by. Supported keywords: `display_name` - * (default), `create_time`, `last_modified_time`. Examples: - `orderBy="display_name"` - - * `orderBy="display_name desc"` - */ - public Search setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Optional. Maximum number of TeamFolders to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String resource; - /** Optional. Maximum number of TeamFolders to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getResource() { + return resource; } /** - * Optional. Maximum number of TeamFolders to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Search setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + 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 " + + "^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. Page token received from a previous `SearchTeamFolders` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `SearchTeamFolders`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. Page token received from a previous `SearchTeamFolders` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to `SearchTeamFolders`, with - the exception of `page_size`, must match the call that provided the page token. + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Optional. Page token received from a previous `SearchTeamFolders` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `SearchTeamFolders`, with the exception of `page_size`, must match the call that - * provided the page token. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public Search setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Search set(String parameterName, Object value) { - return (Search) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CommitLogEntry.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CommitLogEntry.java index 029e5d0f1f0..84a4e463858 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CommitLogEntry.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CommitLogEntry.java @@ -55,7 +55,7 @@ public final class CommitLogEntry extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String commitTime; + private java.lang.String commitTime; /** * The commit author for this commit log entry. @@ -112,7 +112,7 @@ public CommitLogEntry setCommitSha(java.lang.String commitSha) { * Commit timestamp. * @return value or {@code null} for none */ - public String getCommitTime() { + public java.lang.String getCommitTime() { return commitTime; } @@ -120,7 +120,7 @@ public String getCommitTime() { * Commit timestamp. * @param commitTime commitTime or {@code null} for none */ - public CommitLogEntry setCommitTime(String commitTime) { + public CommitLogEntry setCommitTime(java.lang.String commitTime) { this.commitTime = commitTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CompilationResult.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CompilationResult.java index 70d0c6ebf79..2d2e8de79e5 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CompilationResult.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/CompilationResult.java @@ -55,7 +55,7 @@ public final class CompilationResult extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Only set if the repository has a KMS Key. @@ -167,7 +167,7 @@ public CompilationResult setCompilationErrors(java.util.List c * Output only. The timestamp of when the compilation result was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -175,7 +175,7 @@ public String getCreateTime() { * Output only. The timestamp of when the compilation result was created. * @param createTime createTime or {@code null} for none */ - public CompilationResult setCreateTime(String createTime) { + public CompilationResult setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/DirectoryEntry.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/DirectoryEntry.java index 3010736510c..dbdadcd9ef7 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/DirectoryEntry.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/DirectoryEntry.java @@ -43,13 +43,6 @@ public final class DirectoryEntry extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String file; - /** - * Entry with metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FilesystemEntryMetadata metadata; - /** * A child directory in the directory. * @return value or {@code null} for none @@ -84,23 +77,6 @@ public DirectoryEntry setFile(java.lang.String file) { return this; } - /** - * Entry with metadata. - * @return value or {@code null} for none - */ - public FilesystemEntryMetadata getMetadata() { - return metadata; - } - - /** - * Entry with metadata. - * @param metadata metadata or {@code null} for none - */ - public DirectoryEntry setMetadata(FilesystemEntryMetadata metadata) { - this.metadata = metadata; - return this; - } - @Override public DirectoryEntry set(String fieldName, Object value) { return (DirectoryEntry) super.set(fieldName, value); diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Interval.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Interval.java index 9ac076f188c..da8aabc3be3 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Interval.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Interval.java @@ -38,7 +38,7 @@ public final class Interval extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval @@ -46,14 +46,14 @@ public final class Interval extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will * have to be before the end. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -62,7 +62,7 @@ public String getEndTime() { * have to be before the end. * @param endTime endTime or {@code null} for none */ - public Interval setEndTime(String endTime) { + public Interval setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -72,7 +72,7 @@ public Interval setEndTime(String endTime) { * will have to be the same or after the start. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -81,7 +81,7 @@ public String getStartTime() { * will have to be the same or after the start. * @param startTime startTime or {@code null} for none */ - public Interval setStartTime(String startTime) { + public Interval setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/OperationMetadata.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/OperationMetadata.java index 6c6307212a0..484bf444f58 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/OperationMetadata.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/OperationMetadata.java @@ -50,14 +50,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Human-readable status of the operation, if any. @@ -122,7 +122,7 @@ public OperationMetadata setCancelRequested(java.lang.Boolean cancelRequested) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -130,7 +130,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -139,7 +139,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -147,7 +147,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Repository.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Repository.java index d143497a618..0ffdf83635f 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Repository.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Repository.java @@ -29,21 +29,12 @@ @SuppressWarnings("javadoc") public final class Repository extends com.google.api.client.json.GenericJson { - /** - * Optional. The name of the containing folder of the repository. The field is immutable and it - * can be modified via a MoveRepository operation. Format: `projects/locations/folders`. or - * `projects/locations/teamFolders`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String containingFolder; - /** * Output only. The timestamp of when the repository was created. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. A data encryption state of a Git repository if this Repository is protected by a @@ -123,15 +114,6 @@ public final class Repository extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean setAuthenticatedUserAdmin; - /** - * Output only. The resource name of the TeamFolder that this Repository is associated with. This - * should take the format: projects/{project}/locations/{location}/teamFolders/{teamFolder}. If - * this is not set, the Repository is not associated with a TeamFolder. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String teamFolderName; - /** * Optional. If set, fields of `workspace_compilation_overrides` override the default compilation * settings that are specified in dataform.json when creating workspace-scoped compilation @@ -141,32 +123,11 @@ public final class Repository extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private WorkspaceCompilationOverrides workspaceCompilationOverrides; - /** - * Optional. The name of the containing folder of the repository. The field is immutable and it - * can be modified via a MoveRepository operation. Format: `projects/locations/folders`. or - * `projects/locations/teamFolders`. - * @return value or {@code null} for none - */ - public java.lang.String getContainingFolder() { - return containingFolder; - } - - /** - * Optional. The name of the containing folder of the repository. The field is immutable and it - * can be modified via a MoveRepository operation. Format: `projects/locations/folders`. or - * `projects/locations/teamFolders`. - * @param containingFolder containingFolder or {@code null} for none - */ - public Repository setContainingFolder(java.lang.String containingFolder) { - this.containingFolder = containingFolder; - return this; - } - /** * Output only. The timestamp of when the repository was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -174,7 +135,7 @@ public String getCreateTime() { * Output only. The timestamp of when the repository was created. * @param createTime createTime or {@code null} for none */ - public Repository setCreateTime(String createTime) { + public Repository setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -365,27 +326,6 @@ public Repository setSetAuthenticatedUserAdmin(java.lang.Boolean setAuthenticate return this; } - /** - * Output only. The resource name of the TeamFolder that this Repository is associated with. This - * should take the format: projects/{project}/locations/{location}/teamFolders/{teamFolder}. If - * this is not set, the Repository is not associated with a TeamFolder. - * @return value or {@code null} for none - */ - public java.lang.String getTeamFolderName() { - return teamFolderName; - } - - /** - * Output only. The resource name of the TeamFolder that this Repository is associated with. This - * should take the format: projects/{project}/locations/{location}/teamFolders/{teamFolder}. If - * this is not set, the Repository is not associated with a TeamFolder. - * @param teamFolderName teamFolderName or {@code null} for none - */ - public Repository setTeamFolderName(java.lang.String teamFolderName) { - this.teamFolderName = teamFolderName; - return this; - } - /** * Optional. If set, fields of `workspace_compilation_overrides` override the default compilation * settings that are specified in dataform.json when creating workspace-scoped compilation diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledExecutionRecord.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledExecutionRecord.java index c91701d59b8..fa9404a5425 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledExecutionRecord.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledExecutionRecord.java @@ -42,7 +42,7 @@ public final class ScheduledExecutionRecord extends com.google.api.client.json.G * The value may be {@code null}. */ @com.google.api.client.util.Key - private String executionTime; + private java.lang.String executionTime; /** * The name of the created workflow invocation, if one was successfully created. Must be in the @@ -75,7 +75,7 @@ public ScheduledExecutionRecord setErrorStatus(Status errorStatus) { * Output only. The timestamp of this execution attempt. * @return value or {@code null} for none */ - public String getExecutionTime() { + public java.lang.String getExecutionTime() { return executionTime; } @@ -83,7 +83,7 @@ public String getExecutionTime() { * Output only. The timestamp of this execution attempt. * @param executionTime executionTime or {@code null} for none */ - public ScheduledExecutionRecord setExecutionTime(String executionTime) { + public ScheduledExecutionRecord setExecutionTime(java.lang.String executionTime) { this.executionTime = executionTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledReleaseRecord.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledReleaseRecord.java index 75e35c16fef..b29b72d9e35 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledReleaseRecord.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/ScheduledReleaseRecord.java @@ -50,7 +50,7 @@ public final class ScheduledReleaseRecord extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String releaseTime; + private java.lang.String releaseTime; /** * The name of the created compilation result, if one was successfully created. Must be in the @@ -94,7 +94,7 @@ public ScheduledReleaseRecord setErrorStatus(Status errorStatus) { * Output only. The timestamp of this release attempt. * @return value or {@code null} for none */ - public String getReleaseTime() { + public java.lang.String getReleaseTime() { return releaseTime; } @@ -102,7 +102,7 @@ public String getReleaseTime() { * Output only. The timestamp of this release attempt. * @param releaseTime releaseTime or {@code null} for none */ - public ScheduledReleaseRecord setReleaseTime(String releaseTime) { + public ScheduledReleaseRecord setReleaseTime(java.lang.String releaseTime) { this.releaseTime = releaseTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/WorkflowConfig.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/WorkflowConfig.java index 2e1ac205669..bdfebe863d9 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/WorkflowConfig.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/WorkflowConfig.java @@ -34,7 +34,7 @@ public final class WorkflowConfig extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Optional schedule (in cron format) for automatic execution of this workflow config. @@ -110,13 +110,13 @@ public final class WorkflowConfig extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp of when the WorkflowConfig was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -124,7 +124,7 @@ public String getCreateTime() { * Output only. The timestamp of when the WorkflowConfig was created. * @param createTime createTime or {@code null} for none */ - public WorkflowConfig setCreateTime(String createTime) { + public WorkflowConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -283,7 +283,7 @@ public WorkflowConfig setTimeZone(java.lang.String timeZone) { * Output only. The timestamp of when the WorkflowConfig was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -291,7 +291,7 @@ public String getUpdateTime() { * Output only. The timestamp of when the WorkflowConfig was last updated. * @param updateTime updateTime or {@code null} for none */ - public WorkflowConfig setUpdateTime(String updateTime) { + public WorkflowConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Workspace.java b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Workspace.java index daef3fc4c84..03d1adb29ef 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Workspace.java +++ b/clients/google-api-services-dataform/v1/2.0.0/com/google/api/services/dataform/v1/model/Workspace.java @@ -34,7 +34,7 @@ public final class Workspace extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. A data encryption state of a Git repository if this Workspace is protected by a @@ -44,14 +44,6 @@ public final class Workspace extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private DataEncryptionState dataEncryptionState; - /** - * Optional. If set to true, workspaces will not be moved if its linked Repository is moved. - * Instead, it will be deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean disableMoves; - /** * Output only. All the metadata information that is used internally to serve the resource. For * example: timestamps, flags, status fields, etc. The format of this field is a JSON string. @@ -79,7 +71,7 @@ public final class Workspace extends com.google.api.client.json.GenericJson { * Output only. The timestamp of when the workspace was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -87,7 +79,7 @@ public String getCreateTime() { * Output only. The timestamp of when the workspace was created. * @param createTime createTime or {@code null} for none */ - public Workspace setCreateTime(String createTime) { + public Workspace setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -111,25 +103,6 @@ public Workspace setDataEncryptionState(DataEncryptionState dataEncryptionState) return this; } - /** - * Optional. If set to true, workspaces will not be moved if its linked Repository is moved. - * Instead, it will be deleted. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDisableMoves() { - return disableMoves; - } - - /** - * Optional. If set to true, workspaces will not be moved if its linked Repository is moved. - * Instead, it will be deleted. - * @param disableMoves disableMoves or {@code null} for none - */ - public Workspace setDisableMoves(java.lang.Boolean disableMoves) { - this.disableMoves = disableMoves; - return this; - } - /** * Output only. All the metadata information that is used internally to serve the resource. For * example: timestamps, flags, status fields, etc. The format of this field is a JSON string. diff --git a/clients/google-api-services-dataform/v1/2.0.0/pom.xml b/clients/google-api-services-dataform/v1/2.0.0/pom.xml index e2fb563c381..cd5ac9afb98 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-dataform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-dataform - v1-rev20260326-2.0.0 - Dataform API v1-rev20260326-2.0.0 + v1-rev20260217-2.0.0 + Dataform API v1-rev20260217-2.0.0 jar 2011 diff --git a/clients/google-api-services-datamanager/v1/2.0.0/README.md b/clients/google-api-services-datamanager/v1/2.0.0/README.md index e527aad9a50..48615560001 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/README.md +++ b/clients/google-api-services-datamanager/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-datamanager - v1-rev20260321-2.0.0 + v1-rev20260307-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-datamanager:v1-rev20260321-2.0.0' + implementation 'com.google.apis:google-api-services-datamanager:v1-rev20260307-2.0.0' } ``` diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/DataManager.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/DataManager.java index a682dae9e5a..d408726e442 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/DataManager.java +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/DataManager.java @@ -373,7 +373,9 @@ public class PartnerLinks { * following optional headers to define how the API authorizes access for the request: * `login- * account`: (Optional) The resource name of the account where the Google Account of the credentials * is a user. If not set, defaults to the account of the request. Format: - * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` + * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The + * resource name of the account with an established product link to the `login-account`. Format: + * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * Create a request for the method "partnerLinks.create". * @@ -403,7 +405,9 @@ public class Create extends DataManagerRequest experimenta * Optional. The last time the event was updated. * @return value or {@code null} for none */ - public String getLastUpdatedTimestamp() { + public java.lang.String getLastUpdatedTimestamp() { return lastUpdatedTimestamp; } @@ -440,7 +440,7 @@ public String getLastUpdatedTimestamp() { * Optional. The last time the event was updated. * @param lastUpdatedTimestamp lastUpdatedTimestamp or {@code null} for none */ - public Event setLastUpdatedTimestamp(String lastUpdatedTimestamp) { + public Event setLastUpdatedTimestamp(java.lang.String lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; return this; } diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserList.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserList.java index 654bbb8d6ad..dbc976d623a 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserList.java +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserList.java @@ -95,7 +95,7 @@ public final class UserList extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String membershipDuration; + private java.lang.String membershipDuration; /** * Optional. Membership status of this user list. @@ -281,7 +281,7 @@ public UserList setIntegrationCode(java.lang.String integrationCode) { * result in an INVALID_ARGUMENT error. * @return value or {@code null} for none */ - public String getMembershipDuration() { + public java.lang.String getMembershipDuration() { return membershipDuration; } @@ -291,7 +291,7 @@ public String getMembershipDuration() { * result in an INVALID_ARGUMENT error. * @param membershipDuration membershipDuration or {@code null} for none */ - public UserList setMembershipDuration(String membershipDuration) { + public UserList setMembershipDuration(java.lang.String membershipDuration) { this.membershipDuration = membershipDuration; return this; } diff --git a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserListLicensePricing.java b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserListLicensePricing.java index 791b1387bfd..e4421a9e333 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserListLicensePricing.java +++ b/clients/google-api-services-datamanager/v1/2.0.0/com/google/api/services/datamanager/v1/model/UserListLicensePricing.java @@ -65,7 +65,7 @@ public final class UserListLicensePricing extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Optional. The maximum CPM a commerce audience can be charged when the MEDIA_SHARE cost type is @@ -97,7 +97,7 @@ public final class UserListLicensePricing extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The buyer approval state of this pricing. This field is read-only. @@ -177,7 +177,7 @@ public UserListLicensePricing setCurrencyCode(java.lang.String currencyCode) { * Optional. End time of the pricing. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -185,7 +185,7 @@ public String getEndTime() { * Optional. End time of the pricing. * @param endTime endTime or {@code null} for none */ - public UserListLicensePricing setEndTime(String endTime) { + public UserListLicensePricing setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -253,7 +253,7 @@ public UserListLicensePricing setPricingId(java.lang.Long pricingId) { * Output only. Start time of the pricing. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -261,7 +261,7 @@ public String getStartTime() { * Output only. Start time of the pricing. * @param startTime startTime or {@code null} for none */ - public UserListLicensePricing setStartTime(String startTime) { + public UserListLicensePricing setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-datamanager/v1/2.0.0/pom.xml b/clients/google-api-services-datamanager/v1/2.0.0/pom.xml index 148a26890bb..5c8365792b7 100644 --- a/clients/google-api-services-datamanager/v1/2.0.0/pom.xml +++ b/clients/google-api-services-datamanager/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-datamanager - v1-rev20260321-2.0.0 - Data Manager API v1-rev20260321-2.0.0 + v1-rev20260307-2.0.0 + Data Manager API v1-rev20260307-2.0.0 jar 2011 diff --git a/clients/google-api-services-datastore/v1/2.0.0/README.md b/clients/google-api-services-datastore/v1/2.0.0/README.md index 71349203f52..99a1eb87e67 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/README.md +++ b/clients/google-api-services-datastore/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-datastore - v1-rev20260323-2.0.0 + v1-rev20260130-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-datastore:v1-rev20260323-2.0.0' + implementation 'com.google.apis:google-api-services-datastore:v1-rev20260130-2.0.0' } ``` diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/AggregationResultBatch.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/AggregationResultBatch.java index 8da812a4d6a..6ec9b10684d 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/AggregationResultBatch.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/AggregationResultBatch.java @@ -57,7 +57,7 @@ public final class AggregationResultBatch extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String readTime; + private java.lang.String readTime; /** * The aggregation results for this batch. @@ -101,7 +101,7 @@ public AggregationResultBatch setMoreResults(java.lang.String moreResults) { * for all preceding batches. * @return value or {@code null} for none */ - public String getReadTime() { + public java.lang.String getReadTime() { return readTime; } @@ -111,7 +111,7 @@ public String getReadTime() { * for all preceding batches. * @param readTime readTime or {@code null} for none */ - public AggregationResultBatch setReadTime(String readTime) { + public AggregationResultBatch setReadTime(java.lang.String readTime) { this.readTime = readTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/CommitResponse.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/CommitResponse.java index 8a22d027fa8..635b8efdc7c 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/CommitResponse.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/CommitResponse.java @@ -34,7 +34,7 @@ public final class CommitResponse extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String commitTime; + private java.lang.String commitTime; /** * The number of index entries updated during the commit, or zero if none were updated. @@ -55,7 +55,7 @@ public final class CommitResponse extends com.google.api.client.json.GenericJson * The transaction commit timestamp. Not set for non-transactional commits. * @return value or {@code null} for none */ - public String getCommitTime() { + public java.lang.String getCommitTime() { return commitTime; } @@ -63,7 +63,7 @@ public String getCommitTime() { * The transaction commit timestamp. Not set for non-transactional commits. * @param commitTime commitTime or {@code null} for none */ - public CommitResponse setCommitTime(String commitTime) { + public CommitResponse setCommitTime(java.lang.String commitTime) { this.commitTime = commitTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/EntityResult.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/EntityResult.java index bc98d649498..7792facb5ce 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/EntityResult.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/EntityResult.java @@ -35,7 +35,7 @@ public final class EntityResult extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * A cursor that points to the position after the result entity. Set only when the `EntityResult` @@ -58,7 +58,7 @@ public final class EntityResult extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The version of the entity, a strictly positive number that monotonically increases with changes @@ -75,7 +75,7 @@ public final class EntityResult extends com.google.api.client.json.GenericJson { * entity is missing, this field will not be set. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -84,7 +84,7 @@ public String getCreateTime() { * entity is missing, this field will not be set. * @param createTime createTime or {@code null} for none */ - public EntityResult setCreateTime(String createTime) { + public EntityResult setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -160,7 +160,7 @@ public EntityResult setEntity(Entity entity) { * this entity is missing, this field will not be set. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -169,7 +169,7 @@ public String getUpdateTime() { * this entity is missing, this field will not be set. * @param updateTime updateTime or {@code null} for none */ - public EntityResult setUpdateTime(String updateTime) { + public EntityResult setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ExecutionStats.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ExecutionStats.java index d6d829f5683..a8f9318c592 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ExecutionStats.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ExecutionStats.java @@ -44,7 +44,7 @@ public final class ExecutionStats extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String executionDuration; + private java.lang.String executionDuration; /** * Total billable read operations. @@ -87,7 +87,7 @@ public ExecutionStats setDebugStats(java.util.Map debu * Total time to execute the query in the backend. * @return value or {@code null} for none */ - public String getExecutionDuration() { + public java.lang.String getExecutionDuration() { return executionDuration; } @@ -95,7 +95,7 @@ public String getExecutionDuration() { * Total time to execute the query in the backend. * @param executionDuration executionDuration or {@code null} for none */ - public ExecutionStats setExecutionDuration(String executionDuration) { + public ExecutionStats setExecutionDuration(java.lang.String executionDuration) { this.executionDuration = executionDuration; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1CommonMetadata.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1CommonMetadata.java index b1b5a26d8c5..2eece6178b3 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1CommonMetadata.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1CommonMetadata.java @@ -34,7 +34,7 @@ public final class GoogleDatastoreAdminV1CommonMetadata extends com.google.api.c * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * The client-assigned labels which were provided when the operation was created. May also include @@ -56,7 +56,7 @@ public final class GoogleDatastoreAdminV1CommonMetadata extends com.google.api.c * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * The current state of the Operation. @@ -69,7 +69,7 @@ public final class GoogleDatastoreAdminV1CommonMetadata extends com.google.api.c * The time the operation ended, either successfully or otherwise. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -77,7 +77,7 @@ public String getEndTime() { * The time the operation ended, either successfully or otherwise. * @param endTime endTime or {@code null} for none */ - public GoogleDatastoreAdminV1CommonMetadata setEndTime(String endTime) { + public GoogleDatastoreAdminV1CommonMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -122,7 +122,7 @@ public GoogleDatastoreAdminV1CommonMetadata setOperationType(java.lang.String op * The time that work began on the operation. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -130,7 +130,7 @@ public String getStartTime() { * The time that work began on the operation. * @param startTime startTime or {@code null} for none */ - public GoogleDatastoreAdminV1CommonMetadata setStartTime(String startTime) { + public GoogleDatastoreAdminV1CommonMetadata setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1beta1CommonMetadata.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1beta1CommonMetadata.java index 1e4da9b1333..12bea66c5d0 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1beta1CommonMetadata.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/GoogleDatastoreAdminV1beta1CommonMetadata.java @@ -34,7 +34,7 @@ public final class GoogleDatastoreAdminV1beta1CommonMetadata extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * The client-assigned labels which were provided when the operation was created. May also include @@ -56,7 +56,7 @@ public final class GoogleDatastoreAdminV1beta1CommonMetadata extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * The current state of the Operation. @@ -69,7 +69,7 @@ public final class GoogleDatastoreAdminV1beta1CommonMetadata extends com.google. * The time the operation ended, either successfully or otherwise. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -77,7 +77,7 @@ public String getEndTime() { * The time the operation ended, either successfully or otherwise. * @param endTime endTime or {@code null} for none */ - public GoogleDatastoreAdminV1beta1CommonMetadata setEndTime(String endTime) { + public GoogleDatastoreAdminV1beta1CommonMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -122,7 +122,7 @@ public GoogleDatastoreAdminV1beta1CommonMetadata setOperationType(java.lang.Stri * The time that work began on the operation. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -130,7 +130,7 @@ public String getStartTime() { * The time that work began on the operation. * @param startTime startTime or {@code null} for none */ - public GoogleDatastoreAdminV1beta1CommonMetadata setStartTime(String startTime) { + public GoogleDatastoreAdminV1beta1CommonMetadata setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/LookupResponse.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/LookupResponse.java index 182499cd168..54138856429 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/LookupResponse.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/LookupResponse.java @@ -76,7 +76,7 @@ public final class LookupResponse extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String readTime; + private java.lang.String readTime; /** * The identifier of the transaction that was started as part of this Lookup request. Set only @@ -147,7 +147,7 @@ public LookupResponse setMissing(java.util.List missing) { * The time at which these entities were read or found missing. * @return value or {@code null} for none */ - public String getReadTime() { + public java.lang.String getReadTime() { return readTime; } @@ -155,7 +155,7 @@ public String getReadTime() { * The time at which these entities were read or found missing. * @param readTime readTime or {@code null} for none */ - public LookupResponse setReadTime(String readTime) { + public LookupResponse setReadTime(java.lang.String readTime) { this.readTime = readTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Mutation.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Mutation.java index 8d75090de1b..b2238cf1b38 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Mutation.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Mutation.java @@ -93,7 +93,7 @@ public final class Mutation extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The entity to upsert. The entity may or may not already exist. The entity key's final path @@ -245,7 +245,7 @@ public Mutation setUpdate(Entity update) { * the current update time on the server, the mutation conflicts. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -254,7 +254,7 @@ public String getUpdateTime() { * the current update time on the server, the mutation conflicts. * @param updateTime updateTime or {@code null} for none */ - public Mutation setUpdateTime(String updateTime) { + public Mutation setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/MutationResult.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/MutationResult.java index 734d65d8616..f99b222a64f 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/MutationResult.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/MutationResult.java @@ -42,7 +42,7 @@ public final class MutationResult extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The automatically allocated key. Set only when the mutation allocated a key. @@ -65,7 +65,7 @@ public final class MutationResult extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The version of the entity on the server after processing the mutation. If the mutation doesn't @@ -100,7 +100,7 @@ public MutationResult setConflictDetected(java.lang.Boolean conflictDetected) { * The create time of the entity. This field will not be set after a 'delete'. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -108,7 +108,7 @@ public String getCreateTime() { * The create time of the entity. This field will not be set after a 'delete'. * @param createTime createTime or {@code null} for none */ - public MutationResult setCreateTime(String createTime) { + public MutationResult setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -153,7 +153,7 @@ public MutationResult setTransformResults(java.util.List transformResults * current entity. This field will not be set after a 'delete'. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -163,7 +163,7 @@ public String getUpdateTime() { * current entity. This field will not be set after a 'delete'. * @param updateTime updateTime or {@code null} for none */ - public MutationResult setUpdateTime(String updateTime) { + public MutationResult setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/QueryResultBatch.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/QueryResultBatch.java index f4d971b0f0b..342bce36184 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/QueryResultBatch.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/QueryResultBatch.java @@ -73,7 +73,7 @@ public final class QueryResultBatch extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String readTime; + private java.lang.String readTime; /** * A cursor that points to the position after the last skipped result. Will be set when @@ -207,7 +207,7 @@ public QueryResultBatch setMoreResults(java.lang.String moreResults) { * Cloud Datastore. * @return value or {@code null} for none */ - public String getReadTime() { + public java.lang.String getReadTime() { return readTime; } @@ -220,7 +220,7 @@ public String getReadTime() { * Cloud Datastore. * @param readTime readTime or {@code null} for none */ - public QueryResultBatch setReadTime(String readTime) { + public QueryResultBatch setReadTime(java.lang.String readTime) { this.readTime = readTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOnly.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOnly.java index e38d0ad425a..87596c27a6d 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOnly.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOnly.java @@ -36,7 +36,7 @@ public final class ReadOnly extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String readTime; + private java.lang.String readTime; /** * Reads entities at the given time. This must be a microsecond precision timestamp within the @@ -44,7 +44,7 @@ public final class ReadOnly extends com.google.api.client.json.GenericJson { * timestamp within the past 7 days. * @return value or {@code null} for none */ - public String getReadTime() { + public java.lang.String getReadTime() { return readTime; } @@ -54,7 +54,7 @@ public String getReadTime() { * timestamp within the past 7 days. * @param readTime readTime or {@code null} for none */ - public ReadOnly setReadTime(String readTime) { + public ReadOnly setReadTime(java.lang.String readTime) { this.readTime = readTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOptions.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOptions.java index 6633492540c..2beb9f617c1 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOptions.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/ReadOptions.java @@ -53,7 +53,7 @@ public final class ReadOptions extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String readTime; + private java.lang.String readTime; /** * The identifier of the transaction in which to read. A transaction identifier is returned by a @@ -108,7 +108,7 @@ public ReadOptions setReadConsistency(java.lang.String readConsistency) { * past 7 days. * @return value or {@code null} for none */ - public String getReadTime() { + public java.lang.String getReadTime() { return readTime; } @@ -119,7 +119,7 @@ public String getReadTime() { * past 7 days. * @param readTime readTime or {@code null} for none */ - public ReadOptions setReadTime(String readTime) { + public ReadOptions setReadTime(java.lang.String readTime) { this.readTime = readTime; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Value.java b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Value.java index 4d17167ce20..dba2e4ce478 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Value.java +++ b/clients/google-api-services-datastore/v1/2.0.0/com/google/api/services/datastore/v1/model/Value.java @@ -123,7 +123,7 @@ public final class Value extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timestampValue; + private java.lang.String timestampValue; /** * An array value. Cannot contain another array value. A `Value` instance that sets field @@ -372,7 +372,7 @@ public Value setStringValue(java.lang.String stringValue) { * precision is rounded down. * @return value or {@code null} for none */ - public String getTimestampValue() { + public java.lang.String getTimestampValue() { return timestampValue; } @@ -381,7 +381,7 @@ public String getTimestampValue() { * precision is rounded down. * @param timestampValue timestampValue or {@code null} for none */ - public Value setTimestampValue(String timestampValue) { + public Value setTimestampValue(java.lang.String timestampValue) { this.timestampValue = timestampValue; return this; } diff --git a/clients/google-api-services-datastore/v1/2.0.0/pom.xml b/clients/google-api-services-datastore/v1/2.0.0/pom.xml index a8845825f3a..c9c5c90cd22 100644 --- a/clients/google-api-services-datastore/v1/2.0.0/pom.xml +++ b/clients/google-api-services-datastore/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-datastore - v1-rev20260323-2.0.0 - Cloud Datastore API v1-rev20260323-2.0.0 + v1-rev20260130-2.0.0 + Cloud Datastore API v1-rev20260130-2.0.0 jar 2011 diff --git a/clients/google-api-services-datastream/v1/2.0.0/README.md b/clients/google-api-services-datastream/v1/2.0.0/README.md index 9454824badd..65d8a242f5d 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/README.md +++ b/clients/google-api-services-datastream/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-datastream - v1-rev20260321-2.0.0 + v1-rev20260204-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-datastream:v1-rev20260321-2.0.0' + implementation 'com.google.apis:google-api-services-datastream:v1-rev20260204-2.0.0' } ``` diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/Datastream.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/Datastream.java index befe4969f57..a1545a1dc71 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/Datastream.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/Datastream.java @@ -499,14 +499,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -530,15 +526,10 @@ public class List extends DatastreamRequest errors) { * Output only. Backfill job's end time. * @return value or {@code null} for none */ - public String getLastEndTime() { + public java.lang.String getLastEndTime() { return lastEndTime; } @@ -93,7 +93,7 @@ public String getLastEndTime() { * Output only. Backfill job's end time. * @param lastEndTime lastEndTime or {@code null} for none */ - public BackfillJob setLastEndTime(String lastEndTime) { + public BackfillJob setLastEndTime(java.lang.String lastEndTime) { this.lastEndTime = lastEndTime; return this; } @@ -102,7 +102,7 @@ public BackfillJob setLastEndTime(String lastEndTime) { * Output only. Backfill job's start time. * @return value or {@code null} for none */ - public String getLastStartTime() { + public java.lang.String getLastStartTime() { return lastStartTime; } @@ -110,7 +110,7 @@ public String getLastStartTime() { * Output only. Backfill job's start time. * @param lastStartTime lastStartTime or {@code null} for none */ - public BackfillJob setLastStartTime(String lastStartTime) { + public BackfillJob setLastStartTime(java.lang.String lastStartTime) { this.lastStartTime = lastStartTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/BigQueryDestinationConfig.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/BigQueryDestinationConfig.java index c686b99cdf2..d4f9e4d1632 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/BigQueryDestinationConfig.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/BigQueryDestinationConfig.java @@ -51,7 +51,7 @@ public final class BigQueryDestinationConfig extends com.google.api.client.json. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String dataFreshness; + private java.lang.String dataFreshness; /** * The standard mode @@ -115,7 +115,7 @@ public BigQueryDestinationConfig setBlmtConfig(BlmtConfig blmtConfig) { * cost. * @return value or {@code null} for none */ - public String getDataFreshness() { + public java.lang.String getDataFreshness() { return dataFreshness; } @@ -126,7 +126,7 @@ public String getDataFreshness() { * cost. * @param dataFreshness dataFreshness or {@code null} for none */ - public BigQueryDestinationConfig setDataFreshness(String dataFreshness) { + public BigQueryDestinationConfig setDataFreshness(java.lang.String dataFreshness) { this.dataFreshness = dataFreshness; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/ConnectionProfile.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/ConnectionProfile.java index ba5e36b5fc5..7c155b6a2cd 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/ConnectionProfile.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/ConnectionProfile.java @@ -41,7 +41,7 @@ public final class ConnectionProfile extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Display name. @@ -160,7 +160,7 @@ public final class ConnectionProfile extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Profile for connecting to a BigQuery destination. @@ -183,7 +183,7 @@ public ConnectionProfile setBigqueryProfile(BigQueryProfile bigqueryProfile) { * Output only. The create time of the resource. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -191,7 +191,7 @@ public String getCreateTime() { * Output only. The create time of the resource. * @param createTime createTime or {@code null} for none */ - public ConnectionProfile setCreateTime(String createTime) { + public ConnectionProfile setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -472,7 +472,7 @@ public ConnectionProfile setStaticServiceIpConnectivity(StaticServiceIpConnectiv * Output only. The update time of the resource. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -480,7 +480,7 @@ public String getUpdateTime() { * Output only. The update time of the resource. * @param updateTime updateTime or {@code null} for none */ - public ConnectionProfile setUpdateTime(String updateTime) { + public ConnectionProfile setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Error.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Error.java index b5285a8c2fe..dd658a529a9 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Error.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Error.java @@ -41,7 +41,7 @@ public final class Error extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String errorTime; + private java.lang.String errorTime; /** * A unique identifier for this specific error, allowing it to be traced throughout the system in @@ -86,7 +86,7 @@ public Error setDetails(java.util.Map details) { * The time when the error occurred. * @return value or {@code null} for none */ - public String getErrorTime() { + public java.lang.String getErrorTime() { return errorTime; } @@ -94,7 +94,7 @@ public String getErrorTime() { * The time when the error occurred. * @param errorTime errorTime or {@code null} for none */ - public Error setErrorTime(String errorTime) { + public Error setErrorTime(java.lang.String errorTime) { this.errorTime = errorTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/FieldViolation.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/FieldViolation.java index 57dfa6d0256..36a8f030c46 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/FieldViolation.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/FieldViolation.java @@ -43,11 +43,11 @@ public final class FieldViolation extends com.google.api.client.json.GenericJson * = 2; } optional string email = 1; repeated EmailType type = 2; } string full_name = 1; repeated * EmailAddress email_addresses = 2; } In this example, in proto `field` could take one of the * following values: * `full_name` for a violation in the `full_name` value * - * `email_addresses[0].email` for a violation in the `email` field of the first `email_addresses` - * message * `email_addresses[2].type[1]` for a violation in the second `type` value in the third + * `email_addresses[1].email` for a violation in the `email` field of the first `email_addresses` + * message * `email_addresses[3].type[2]` for a violation in the second `type` value in the third * `email_addresses` message. In JSON, the same values are represented as: * `fullName` for a - * violation in the `fullName` value * `emailAddresses[0].email` for a violation in the `email` - * field of the first `emailAddresses` message * `emailAddresses[2].type[1]` for a violation in + * violation in the `fullName` value * `emailAddresses[1].email` for a violation in the `email` + * field of the first `emailAddresses` message * `emailAddresses[3].type[2]` for a violation in * the second `type` value in the third `emailAddresses` message. * The value may be {@code null}. */ @@ -96,11 +96,11 @@ public FieldViolation setDescription(java.lang.String description) { * = 2; } optional string email = 1; repeated EmailType type = 2; } string full_name = 1; repeated * EmailAddress email_addresses = 2; } In this example, in proto `field` could take one of the * following values: * `full_name` for a violation in the `full_name` value * - * `email_addresses[0].email` for a violation in the `email` field of the first `email_addresses` - * message * `email_addresses[2].type[1]` for a violation in the second `type` value in the third + * `email_addresses[1].email` for a violation in the `email` field of the first `email_addresses` + * message * `email_addresses[3].type[2]` for a violation in the second `type` value in the third * `email_addresses` message. In JSON, the same values are represented as: * `fullName` for a - * violation in the `fullName` value * `emailAddresses[0].email` for a violation in the `email` - * field of the first `emailAddresses` message * `emailAddresses[2].type[1]` for a violation in + * violation in the `fullName` value * `emailAddresses[1].email` for a violation in the `email` + * field of the first `emailAddresses` message * `emailAddresses[3].type[2]` for a violation in * the second `type` value in the third `emailAddresses` message. * @return value or {@code null} for none */ @@ -115,11 +115,11 @@ public java.lang.String getField() { * = 2; } optional string email = 1; repeated EmailType type = 2; } string full_name = 1; repeated * EmailAddress email_addresses = 2; } In this example, in proto `field` could take one of the * following values: * `full_name` for a violation in the `full_name` value * - * `email_addresses[0].email` for a violation in the `email` field of the first `email_addresses` - * message * `email_addresses[2].type[1]` for a violation in the second `type` value in the third + * `email_addresses[1].email` for a violation in the `email` field of the first `email_addresses` + * message * `email_addresses[3].type[2]` for a violation in the second `type` value in the third * `email_addresses` message. In JSON, the same values are represented as: * `fullName` for a - * violation in the `fullName` value * `emailAddresses[0].email` for a violation in the `email` - * field of the first `emailAddresses` message * `emailAddresses[2].type[1]` for a violation in + * violation in the `fullName` value * `emailAddresses[1].email` for a violation in the `email` + * field of the first `emailAddresses` message * `emailAddresses[3].type[2]` for a violation in * the second `type` value in the third `emailAddresses` message. * @param field field or {@code null} for none */ diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/GcsDestinationConfig.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/GcsDestinationConfig.java index 934b128ed7d..ec637d7c595 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/GcsDestinationConfig.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/GcsDestinationConfig.java @@ -42,7 +42,7 @@ public final class GcsDestinationConfig extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String fileRotationInterval; + private java.lang.String fileRotationInterval; /** * The maximum file size to be saved in the bucket. @@ -87,7 +87,7 @@ public GcsDestinationConfig setAvroFileFormat(AvroFileFormat avroFileFormat) { * created. Values within the range of 15-60 seconds are allowed. * @return value or {@code null} for none */ - public String getFileRotationInterval() { + public java.lang.String getFileRotationInterval() { return fileRotationInterval; } @@ -96,7 +96,7 @@ public String getFileRotationInterval() { * created. Values within the range of 15-60 seconds are allowed. * @param fileRotationInterval fileRotationInterval or {@code null} for none */ - public GcsDestinationConfig setFileRotationInterval(String fileRotationInterval) { + public GcsDestinationConfig setFileRotationInterval(java.lang.String fileRotationInterval) { this.fileRotationInterval = fileRotationInterval; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/MongodbChangeStreamPosition.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/MongodbChangeStreamPosition.java index ea8085d2638..3c3b4c73c01 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/MongodbChangeStreamPosition.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/MongodbChangeStreamPosition.java @@ -34,13 +34,13 @@ public final class MongodbChangeStreamPosition extends com.google.api.client.jso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Required. The timestamp to start change stream from. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -48,7 +48,7 @@ public String getStartTime() { * Required. The timestamp to start change stream from. * @param startTime startTime or {@code null} for none */ - public MongodbChangeStreamPosition setStartTime(String startTime) { + public MongodbChangeStreamPosition setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/OperationMetadata.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/OperationMetadata.java index 17311f9bf34..f00a11e4f8a 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/OperationMetadata.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/OperationMetadata.java @@ -41,14 +41,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -108,7 +108,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -116,7 +116,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -125,7 +125,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -133,7 +133,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/PrivateConnection.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/PrivateConnection.java index d49e5818e49..bb5f9d4ab1a 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/PrivateConnection.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/PrivateConnection.java @@ -35,7 +35,7 @@ public final class PrivateConnection extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Display name. @@ -98,7 +98,7 @@ public final class PrivateConnection extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * VPC Peering Config. @@ -111,7 +111,7 @@ public final class PrivateConnection extends com.google.api.client.json.GenericJ * Output only. The create time of the resource. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -119,7 +119,7 @@ public String getCreateTime() { * Output only. The create time of the resource. * @param createTime createTime or {@code null} for none */ - public PrivateConnection setCreateTime(String createTime) { + public PrivateConnection setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -264,7 +264,7 @@ public PrivateConnection setState(java.lang.String state) { * Output only. The update time of the resource. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -272,7 +272,7 @@ public String getUpdateTime() { * Output only. The update time of the resource. * @param updateTime updateTime or {@code null} for none */ - public PrivateConnection setUpdateTime(String updateTime) { + public PrivateConnection setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/RetryInfo.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/RetryInfo.java index 6d85ebbfd55..59ddf324084 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/RetryInfo.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/RetryInfo.java @@ -40,13 +40,13 @@ public final class RetryInfo extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String retryDelay; + private java.lang.String retryDelay; /** * Clients should wait at least this long between retrying the same request. * @return value or {@code null} for none */ - public String getRetryDelay() { + public java.lang.String getRetryDelay() { return retryDelay; } @@ -54,7 +54,7 @@ public String getRetryDelay() { * Clients should wait at least this long between retrying the same request. * @param retryDelay retryDelay or {@code null} for none */ - public RetryInfo setRetryDelay(String retryDelay) { + public RetryInfo setRetryDelay(java.lang.String retryDelay) { this.retryDelay = retryDelay; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Route.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Route.java index 4c7309afb03..aeb8f60f8c1 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Route.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Route.java @@ -35,7 +35,7 @@ public final class Route extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Destination address for connection @@ -77,13 +77,13 @@ public final class Route extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The create time of the resource. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -91,7 +91,7 @@ public String getCreateTime() { * Output only. The create time of the resource. * @param createTime createTime or {@code null} for none */ - public Route setCreateTime(String createTime) { + public Route setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -185,7 +185,7 @@ public Route setName(java.lang.String name) { * Output only. The update time of the resource. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -193,7 +193,7 @@ public String getUpdateTime() { * Output only. The update time of the resource. * @param updateTime updateTime or {@code null} for none */ - public Route setUpdateTime(String updateTime) { + public Route setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SalesforceSourceConfig.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SalesforceSourceConfig.java index 49de1d559c8..130aa0d75e7 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SalesforceSourceConfig.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/SalesforceSourceConfig.java @@ -49,7 +49,7 @@ public final class SalesforceSourceConfig extends com.google.api.client.json.Gen * The value may be {@code null}. */ @com.google.api.client.util.Key - private String pollingInterval; + private java.lang.String pollingInterval; /** * The Salesforce objects to exclude from the stream. @@ -90,7 +90,7 @@ public SalesforceSourceConfig setIncludeObjects(SalesforceOrg includeObjects) { * for each object. The duration must be from `5 minutes` to `24 hours`, inclusive. * @return value or {@code null} for none */ - public String getPollingInterval() { + public java.lang.String getPollingInterval() { return pollingInterval; } @@ -99,7 +99,7 @@ public String getPollingInterval() { * for each object. The duration must be from `5 minutes` to `24 hours`, inclusive. * @param pollingInterval pollingInterval or {@code null} for none */ - public SalesforceSourceConfig setPollingInterval(String pollingInterval) { + public SalesforceSourceConfig setPollingInterval(java.lang.String pollingInterval) { this.pollingInterval = pollingInterval; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Stream.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Stream.java index 657d95f132b..be041b063b6 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Stream.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/Stream.java @@ -49,7 +49,7 @@ public final class Stream extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Immutable. A reference to a KMS encryption key. If provided, it will be used to encrypt the @@ -100,7 +100,7 @@ public final class Stream extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRecoveryTime; + private java.lang.String lastRecoveryTime; /** * Output only. Identifier. The stream's name. @@ -155,7 +155,7 @@ public final class Stream extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Automatically backfill objects included in the stream source configuration. Specific objects @@ -197,7 +197,7 @@ public Stream setBackfillNone(BackfillNoneStrategy backfillNone) { * Output only. The creation time of the stream. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -205,7 +205,7 @@ public String getCreateTime() { * Output only. The creation time of the stream. * @param createTime createTime or {@code null} for none */ - public Stream setCreateTime(String createTime) { + public Stream setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -304,7 +304,7 @@ public Stream setLabels(java.util.Map labels) { * currently experimental. * @return value or {@code null} for none */ - public String getLastRecoveryTime() { + public java.lang.String getLastRecoveryTime() { return lastRecoveryTime; } @@ -313,7 +313,7 @@ public String getLastRecoveryTime() { * currently experimental. * @param lastRecoveryTime lastRecoveryTime or {@code null} for none */ - public Stream setLastRecoveryTime(String lastRecoveryTime) { + public Stream setLastRecoveryTime(java.lang.String lastRecoveryTime) { this.lastRecoveryTime = lastRecoveryTime; return this; } @@ -424,7 +424,7 @@ public Stream setState(java.lang.String state) { * Output only. The last update time of the stream. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -432,7 +432,7 @@ public String getUpdateTime() { * Output only. The last update time of the stream. * @param updateTime updateTime or {@code null} for none */ - public Stream setUpdateTime(String updateTime) { + public Stream setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/StreamObject.java b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/StreamObject.java index a1cbc57848f..88c7322a74c 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/StreamObject.java +++ b/clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/StreamObject.java @@ -41,7 +41,7 @@ public final class StreamObject extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The customization rules for the object. These rules are derived from the parent @@ -96,7 +96,7 @@ public final class StreamObject extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The latest backfill job that was initiated for the stream object. @@ -119,7 +119,7 @@ public StreamObject setBackfillJob(BackfillJob backfillJob) { * Output only. The creation time of the object. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -127,7 +127,7 @@ public String getCreateTime() { * Output only. The creation time of the object. * @param createTime createTime or {@code null} for none */ - public StreamObject setCreateTime(String createTime) { + public StreamObject setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -223,7 +223,7 @@ public StreamObject setSourceObject(SourceObjectIdentifier sourceObject) { * Output only. The last update time of the object. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -231,7 +231,7 @@ public String getUpdateTime() { * Output only. The last update time of the object. * @param updateTime updateTime or {@code null} for none */ - public StreamObject setUpdateTime(String updateTime) { + public StreamObject setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-datastream/v1/2.0.0/pom.xml b/clients/google-api-services-datastream/v1/2.0.0/pom.xml index dbd875440ec..27dea094e87 100644 --- a/clients/google-api-services-datastream/v1/2.0.0/pom.xml +++ b/clients/google-api-services-datastream/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-datastream - v1-rev20260321-2.0.0 - Datastream API v1-rev20260321-2.0.0 + v1-rev20260204-2.0.0 + Datastream API v1-rev20260204-2.0.0 jar 2011 diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/README.md b/clients/google-api-services-firebaseappcheck/v1/2.0.0/README.md index 410946a293d..96d4ebd9f57 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/README.md +++ b/clients/google-api-services-firebaseappcheck/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-firebaseappcheck - v1-rev20260403-2.0.0 + v1-rev20260207-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-firebaseappcheck:v1-rev20260403-2.0.0' + implementation 'com.google.apis:google-api-services-firebaseappcheck:v1-rev20260207-2.0.0' } ``` diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/Firebaseappcheck.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/Firebaseappcheck.java index 17cda8aa093..0377d516057 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/Firebaseappcheck.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/Firebaseappcheck.java @@ -3179,12 +3179,12 @@ public Patch setName(java.lang.String name) { * Example: `token_ttl`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the AppAttestConfig to update. Example: `token_ttl`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -3192,7 +3192,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the AppAttestConfig to update. * Example: `token_ttl`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -3507,40 +3507,6 @@ public Delete setName(java.lang.String name) { return this; } - /** - * Optional. The checksum to be validated against the current DebugToken, to ensure the - * client has an up-to-date value before proceeding. This checksum is computed by the - * server based on the values of fields in the DebugToken object, and can be obtained from - * the DebugToken object received from the last CreateDebugToken, GetDebugToken, - * ListDebugTokens, or UpdateDebugToken call. This etag is strongly validated as defined - * by RFC 7232. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** Optional. The checksum to be validated against the current DebugToken, to ensure the client has an - up-to-date value before proceeding. This checksum is computed by the server based on the values of - fields in the DebugToken object, and can be obtained from the DebugToken object received from the - last CreateDebugToken, GetDebugToken, ListDebugTokens, or UpdateDebugToken call. This etag is - strongly validated as defined by RFC 7232. - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Optional. The checksum to be validated against the current DebugToken, to ensure the - * client has an up-to-date value before proceeding. This checksum is computed by the - * server based on the values of fields in the DebugToken object, and can be obtained from - * the DebugToken object received from the last CreateDebugToken, GetDebugToken, - * ListDebugTokens, or UpdateDebugToken call. This etag is strongly validated as defined - * by RFC 7232. - */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -4044,12 +4010,12 @@ public Patch setName(java.lang.String name) { * Example: `display_name`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the DebugToken to update. Example: `display_name`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -4057,7 +4023,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the DebugToken to update. * Example: `display_name`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -4563,12 +4529,12 @@ public Patch setName(java.lang.String name) { * Example: `key_id,private_key`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the DeviceCheckConfig to update. Example: `key_id,private_key`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -4576,7 +4542,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the DeviceCheckConfig to update. * Example: `key_id,private_key`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -5076,12 +5042,12 @@ public Patch setName(java.lang.String name) { * update. Example: `token_ttl`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the PlayIntegrityConfig to update. Example: `token_ttl`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -5089,7 +5055,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the PlayIntegrityConfig to * update. Example: `token_ttl`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -5595,12 +5561,12 @@ public Patch setName(java.lang.String name) { * update. Example: `site_key`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the RecaptchaEnterpriseConfig to update. Example: `site_key`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -5608,7 +5574,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the RecaptchaEnterpriseConfig to * update. Example: `site_key`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -6114,12 +6080,12 @@ public Patch setName(java.lang.String name) { * Example: `site_secret`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the RecaptchaV3Config to update. Example: `site_secret`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -6127,7 +6093,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the RecaptchaV3Config to update. * Example: `site_secret`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -6627,12 +6593,12 @@ public Patch setName(java.lang.String name) { * Example: `token_ttl`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the SafetyNetConfig to update. Example: `token_ttl`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -6640,7 +6606,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the SafetyNetConfig to update. * Example: `token_ttl`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -7360,12 +7326,12 @@ public Patch setName(java.lang.String name) { * `enforcement_mode`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the Service to update. Example: `enforcement_mode`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -7373,7 +7339,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the Service to update. Example: * `enforcement_mode`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -8452,12 +8418,12 @@ public Patch setName(java.lang.String name) { * Example: `enforcement_mode`. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. A comma-separated list of names of fields in the ResourcePolicy to update. Example: `enforcement_mode`. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -8465,7 +8431,7 @@ public String getUpdateMask() { * Required. A comma-separated list of names of fields in the ResourcePolicy to update. * Example: `enforcement_mode`. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppAttestConfig.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppAttestConfig.java index d09d0dead81..a81774f351a 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppAttestConfig.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppAttestConfig.java @@ -50,7 +50,7 @@ public final class GoogleFirebaseAppcheckV1AppAttestConfig extends com.google.ap * The value may be {@code null}. */ @com.google.api.client.util.Key - private String tokenTtl; + private java.lang.String tokenTtl; /** * Required. The relative resource name of the App Attest configuration object, in the format: ``` @@ -77,7 +77,7 @@ public GoogleFirebaseAppcheckV1AppAttestConfig setName(java.lang.String name) { * inclusive. * @return value or {@code null} for none */ - public String getTokenTtl() { + public java.lang.String getTokenTtl() { return tokenTtl; } @@ -87,7 +87,7 @@ public String getTokenTtl() { * inclusive. * @param tokenTtl tokenTtl or {@code null} for none */ - public GoogleFirebaseAppcheckV1AppAttestConfig setTokenTtl(String tokenTtl) { + public GoogleFirebaseAppcheckV1AppAttestConfig setTokenTtl(java.lang.String tokenTtl) { this.tokenTtl = tokenTtl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppCheckToken.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppCheckToken.java index 5c80779e75d..fb98b490619 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppCheckToken.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1AppCheckToken.java @@ -49,7 +49,7 @@ public final class GoogleFirebaseAppcheckV1AppCheckToken extends com.google.api. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * The App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/html/rfc7519) @@ -82,7 +82,7 @@ public GoogleFirebaseAppcheckV1AppCheckToken setToken(java.lang.String token) { * accurately measure a duration. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -92,7 +92,7 @@ public String getTtl() { * accurately measure a duration. * @param ttl ttl or {@code null} for none */ - public GoogleFirebaseAppcheckV1AppCheckToken setTtl(String ttl) { + public GoogleFirebaseAppcheckV1AppCheckToken setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest.java index a3624d978a9..633fa717fc9 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest.java @@ -46,7 +46,7 @@ public final class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest ex * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. The request messages specifying the ResourcePolicy objects to update. A maximum of @@ -74,7 +74,7 @@ public GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest setRequests(ja * no updates will be committed. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -85,7 +85,7 @@ public String getUpdateMask() { * no updates will be committed. * @param updateMask updateMask or {@code null} for none */ - public GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest setUpdateMask(String updateMask) { + public GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateServicesRequest.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateServicesRequest.java index 4f509577f61..a5eb735a294 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateServicesRequest.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1BatchUpdateServicesRequest.java @@ -46,7 +46,7 @@ public final class GoogleFirebaseAppcheckV1BatchUpdateServicesRequest extends co * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. The request messages specifying the Services to update. A maximum of 100 objects can @@ -74,7 +74,7 @@ public GoogleFirebaseAppcheckV1BatchUpdateServicesRequest setRequests(java.util. * committed. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -85,7 +85,7 @@ public String getUpdateMask() { * committed. * @param updateMask updateMask or {@code null} for none */ - public GoogleFirebaseAppcheckV1BatchUpdateServicesRequest setUpdateMask(String updateMask) { + public GoogleFirebaseAppcheckV1BatchUpdateServicesRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DebugToken.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DebugToken.java index 2908790767c..387425e1220 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DebugToken.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DebugToken.java @@ -39,15 +39,6 @@ public final class GoogleFirebaseAppcheckV1DebugToken extends com.google.api.cli @com.google.api.client.util.Key private java.lang.String displayName; - /** - * Optional. This checksum is computed by the server based on the value of other fields, and may - * be sent on update and delete requests to ensure the client has an up-to-date value before - * proceeding. This etag is strongly validated as defined by RFC 7232. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - /** * Required. The relative resource name of the debug token, in the format: ``` * projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id} ``` @@ -72,7 +63,7 @@ public final class GoogleFirebaseAppcheckV1DebugToken extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Required. A human readable display name used to identify this debug token. @@ -91,27 +82,6 @@ public GoogleFirebaseAppcheckV1DebugToken setDisplayName(java.lang.String displa return this; } - /** - * Optional. This checksum is computed by the server based on the value of other fields, and may - * be sent on update and delete requests to ensure the client has an up-to-date value before - * proceeding. This etag is strongly validated as defined by RFC 7232. - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of other fields, and may - * be sent on update and delete requests to ensure the client has an up-to-date value before - * proceeding. This etag is strongly validated as defined by RFC 7232. - * @param etag etag or {@code null} for none - */ - public GoogleFirebaseAppcheckV1DebugToken setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - /** * Required. The relative resource name of the debug token, in the format: ``` * projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id} ``` @@ -160,7 +130,7 @@ public GoogleFirebaseAppcheckV1DebugToken setToken(java.lang.String token) { * Output only. Timestamp when this debug token was most recently updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -168,7 +138,7 @@ public String getUpdateTime() { * Output only. Timestamp when this debug token was most recently updated. * @param updateTime updateTime or {@code null} for none */ - public GoogleFirebaseAppcheckV1DebugToken setUpdateTime(String updateTime) { + public GoogleFirebaseAppcheckV1DebugToken setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DeviceCheckConfig.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DeviceCheckConfig.java index 51329e818f7..08dbd8a0fe5 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DeviceCheckConfig.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1DeviceCheckConfig.java @@ -75,7 +75,7 @@ public final class GoogleFirebaseAppcheckV1DeviceCheckConfig extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String tokenTtl; + private java.lang.String tokenTtl; /** * Required. The key identifier of a private key enabled with DeviceCheck, created in your Apple @@ -161,7 +161,7 @@ public GoogleFirebaseAppcheckV1DeviceCheckConfig setPrivateKeySet(java.lang.Bool * inclusive. * @return value or {@code null} for none */ - public String getTokenTtl() { + public java.lang.String getTokenTtl() { return tokenTtl; } @@ -171,7 +171,7 @@ public String getTokenTtl() { * inclusive. * @param tokenTtl tokenTtl or {@code null} for none */ - public GoogleFirebaseAppcheckV1DeviceCheckConfig setTokenTtl(String tokenTtl) { + public GoogleFirebaseAppcheckV1DeviceCheckConfig setTokenTtl(java.lang.String tokenTtl) { this.tokenTtl = tokenTtl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse.java index e143536a67c..750a7a0fd5c 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse.java @@ -44,7 +44,7 @@ public final class GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse ex * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * A one-time use challenge for the client to pass to the App Attest API. @@ -97,7 +97,7 @@ public GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse encodeChalleng * still able to accurately measure a duration. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -107,7 +107,7 @@ public String getTtl() { * still able to accurately measure a duration. * @param ttl ttl or {@code null} for none */ - public GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse setTtl(String ttl) { + public GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponse setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse.java index fd0d17d1f08..9e60ee5047a 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse.java @@ -45,7 +45,7 @@ public final class GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeRespons * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * A one-time use [challenge](https://developer.android.com/google/play/integrity/verdict#protect- @@ -72,7 +72,7 @@ public GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse setChallen * still able to accurately measure a duration. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -82,7 +82,7 @@ public String getTtl() { * still able to accurately measure a duration. * @param ttl ttl or {@code null} for none */ - public GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse setTtl(String ttl) { + public GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1PlayIntegrityConfig.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1PlayIntegrityConfig.java index 6e4e8df107b..848db9a5c8e 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1PlayIntegrityConfig.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1PlayIntegrityConfig.java @@ -91,7 +91,7 @@ public final class GoogleFirebaseAppcheckV1PlayIntegrityConfig extends com.googl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String tokenTtl; + private java.lang.String tokenTtl; /** * Specifies account requirements for Android devices running your app. These settings correspond @@ -209,7 +209,7 @@ public GoogleFirebaseAppcheckV1PlayIntegrityConfig setName(java.lang.String name * inclusive. * @return value or {@code null} for none */ - public String getTokenTtl() { + public java.lang.String getTokenTtl() { return tokenTtl; } @@ -219,7 +219,7 @@ public String getTokenTtl() { * inclusive. * @param tokenTtl tokenTtl or {@code null} for none */ - public GoogleFirebaseAppcheckV1PlayIntegrityConfig setTokenTtl(String tokenTtl) { + public GoogleFirebaseAppcheckV1PlayIntegrityConfig setTokenTtl(java.lang.String tokenTtl) { this.tokenTtl = tokenTtl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig.java index 2a920c8bd8d..a7d025c96f4 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig.java @@ -68,7 +68,7 @@ public final class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig extends com * The value may be {@code null}. */ @com.google.api.client.util.Key - private String tokenTtl; + private java.lang.String tokenTtl; /** * Required. The relative resource name of the reCAPTCHA Enterprise configuration object, in the @@ -143,7 +143,7 @@ public GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig setSiteKey(java.lang.St * days, inclusive. * @return value or {@code null} for none */ - public String getTokenTtl() { + public java.lang.String getTokenTtl() { return tokenTtl; } @@ -153,7 +153,7 @@ public String getTokenTtl() { * days, inclusive. * @param tokenTtl tokenTtl or {@code null} for none */ - public GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig setTokenTtl(String tokenTtl) { + public GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig setTokenTtl(java.lang.String tokenTtl) { this.tokenTtl = tokenTtl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaV3Config.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaV3Config.java index a25b6f7ab73..993c273a81f 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaV3Config.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1RecaptchaV3Config.java @@ -72,7 +72,7 @@ public final class GoogleFirebaseAppcheckV1RecaptchaV3Config extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String tokenTtl; + private java.lang.String tokenTtl; /** * Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score @@ -158,7 +158,7 @@ public GoogleFirebaseAppcheckV1RecaptchaV3Config setSiteSecretSet(java.lang.Bool * inclusive. * @return value or {@code null} for none */ - public String getTokenTtl() { + public java.lang.String getTokenTtl() { return tokenTtl; } @@ -168,7 +168,7 @@ public String getTokenTtl() { * inclusive. * @param tokenTtl tokenTtl or {@code null} for none */ - public GoogleFirebaseAppcheckV1RecaptchaV3Config setTokenTtl(String tokenTtl) { + public GoogleFirebaseAppcheckV1RecaptchaV3Config setTokenTtl(java.lang.String tokenTtl) { this.tokenTtl = tokenTtl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1ResourcePolicy.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1ResourcePolicy.java index ad3e9bafe0a..c09e896a310 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1ResourcePolicy.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1ResourcePolicy.java @@ -78,7 +78,7 @@ public final class GoogleFirebaseAppcheckV1ResourcePolicy extends com.google.api * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Required. The App Check enforcement mode for this resource. This will override the App Check @@ -179,7 +179,7 @@ public GoogleFirebaseAppcheckV1ResourcePolicy setTargetResource(java.lang.String * updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -188,7 +188,7 @@ public String getUpdateTime() { * updated. * @param updateTime updateTime or {@code null} for none */ - public GoogleFirebaseAppcheckV1ResourcePolicy setUpdateTime(String updateTime) { + public GoogleFirebaseAppcheckV1ResourcePolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1SafetyNetConfig.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1SafetyNetConfig.java index 8f21b3097f2..1d0fa58a4dc 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1SafetyNetConfig.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1SafetyNetConfig.java @@ -49,7 +49,7 @@ public final class GoogleFirebaseAppcheckV1SafetyNetConfig extends com.google.ap * The value may be {@code null}. */ @com.google.api.client.util.Key - private String tokenTtl; + private java.lang.String tokenTtl; /** * Required. The relative resource name of the SafetyNet configuration object, in the format: ``` @@ -76,7 +76,7 @@ public GoogleFirebaseAppcheckV1SafetyNetConfig setName(java.lang.String name) { * inclusive. * @return value or {@code null} for none */ - public String getTokenTtl() { + public java.lang.String getTokenTtl() { return tokenTtl; } @@ -86,7 +86,7 @@ public String getTokenTtl() { * inclusive. * @param tokenTtl tokenTtl or {@code null} for none */ - public GoogleFirebaseAppcheckV1SafetyNetConfig setTokenTtl(String tokenTtl) { + public GoogleFirebaseAppcheckV1SafetyNetConfig setTokenTtl(java.lang.String tokenTtl) { this.tokenTtl = tokenTtl; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1Service.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1Service.java index a8d12626944..aa6af112c3e 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1Service.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1Service.java @@ -37,15 +37,6 @@ public final class GoogleFirebaseAppcheckV1Service extends com.google.api.client @com.google.api.client.util.Key private java.lang.String enforcementMode; - /** - * Optional. This checksum is computed by the server based on the value of other fields, and may - * be sent on update and delete requests to ensure the client has an up-to-date value before - * proceeding. This etag is strongly validated as defined by RFC 7232. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - /** * Required. The relative resource name of the service configuration object, in the format: ``` * projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be @@ -58,27 +49,6 @@ public final class GoogleFirebaseAppcheckV1Service extends com.google.api.client @com.google.api.client.util.Key private java.lang.String name; - /** - * Optional. The replay protection enforcement mode for this service. Note that this field cannot - * be set to a level higher than the overall App Check enforcement mode. For example, if the - * overall App Check enforcement mode is set to `UNENFORCED`, this field cannot be set to - * `ENFORCED`. In order to enforce replay protection, you must first enforce App Check. An HTTP - * 400 error will be returned in this case. By default, this field is set to `OFF`. Setting this - * field to `UNENFORCED` or `ENFORCED` is considered opting into replay protection. Once opted in, - * requests to your protected services may experience higher latency. To opt out of replay - * protection after opting in, set this field to `OFF`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String replayProtection; - - /** - * Output only. Timestamp when this service configuration object was most recently updated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String updateTime; - /** * Required. The App Check enforcement mode for this service. * @return value or {@code null} for none @@ -96,27 +66,6 @@ public GoogleFirebaseAppcheckV1Service setEnforcementMode(java.lang.String enfor return this; } - /** - * Optional. This checksum is computed by the server based on the value of other fields, and may - * be sent on update and delete requests to ensure the client has an up-to-date value before - * proceeding. This etag is strongly validated as defined by RFC 7232. - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of other fields, and may - * be sent on update and delete requests to ensure the client has an up-to-date value before - * proceeding. This etag is strongly validated as defined by RFC 7232. - * @param etag etag or {@code null} for none - */ - public GoogleFirebaseAppcheckV1Service setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - /** * Required. The relative resource name of the service configuration object, in the format: ``` * projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be @@ -144,54 +93,6 @@ public GoogleFirebaseAppcheckV1Service setName(java.lang.String name) { return this; } - /** - * Optional. The replay protection enforcement mode for this service. Note that this field cannot - * be set to a level higher than the overall App Check enforcement mode. For example, if the - * overall App Check enforcement mode is set to `UNENFORCED`, this field cannot be set to - * `ENFORCED`. In order to enforce replay protection, you must first enforce App Check. An HTTP - * 400 error will be returned in this case. By default, this field is set to `OFF`. Setting this - * field to `UNENFORCED` or `ENFORCED` is considered opting into replay protection. Once opted in, - * requests to your protected services may experience higher latency. To opt out of replay - * protection after opting in, set this field to `OFF`. - * @return value or {@code null} for none - */ - public java.lang.String getReplayProtection() { - return replayProtection; - } - - /** - * Optional. The replay protection enforcement mode for this service. Note that this field cannot - * be set to a level higher than the overall App Check enforcement mode. For example, if the - * overall App Check enforcement mode is set to `UNENFORCED`, this field cannot be set to - * `ENFORCED`. In order to enforce replay protection, you must first enforce App Check. An HTTP - * 400 error will be returned in this case. By default, this field is set to `OFF`. Setting this - * field to `UNENFORCED` or `ENFORCED` is considered opting into replay protection. Once opted in, - * requests to your protected services may experience higher latency. To opt out of replay - * protection after opting in, set this field to `OFF`. - * @param replayProtection replayProtection or {@code null} for none - */ - public GoogleFirebaseAppcheckV1Service setReplayProtection(java.lang.String replayProtection) { - this.replayProtection = replayProtection; - return this; - } - - /** - * Output only. Timestamp when this service configuration object was most recently updated. - * @return value or {@code null} for none - */ - public String getUpdateTime() { - return updateTime; - } - - /** - * Output only. Timestamp when this service configuration object was most recently updated. - * @param updateTime updateTime or {@code null} for none - */ - public GoogleFirebaseAppcheckV1Service setUpdateTime(String updateTime) { - this.updateTime = updateTime; - return this; - } - @Override public GoogleFirebaseAppcheckV1Service set(String fieldName, Object value) { return (GoogleFirebaseAppcheckV1Service) super.set(fieldName, value); diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest.java index a3f54480e48..dd322a4432c 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest.java @@ -48,7 +48,7 @@ public final class GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest extends c * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. The ResourcePolicy to update. The ResourcePolicy's `name` field is used to identify @@ -80,7 +80,7 @@ public GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest setResourcePolicy(Goo * `enforcement_mode`. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -89,7 +89,7 @@ public String getUpdateMask() { * `enforcement_mode`. * @param updateMask updateMask or {@code null} for none */ - public GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest setUpdateMask(String updateMask) { + public GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateServiceRequest.java b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateServiceRequest.java index 750c47099b2..e796fd9c30c 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateServiceRequest.java +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/com/google/api/services/firebaseappcheck/v1/model/GoogleFirebaseAppcheckV1UpdateServiceRequest.java @@ -49,7 +49,7 @@ public final class GoogleFirebaseAppcheckV1UpdateServiceRequest extends com.goog * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. The Service to update. The Service's `name` field is used to identify the Service to @@ -83,7 +83,7 @@ public GoogleFirebaseAppcheckV1UpdateServiceRequest setService(GoogleFirebaseApp * `enforcement_mode`. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -92,7 +92,7 @@ public String getUpdateMask() { * `enforcement_mode`. * @param updateMask updateMask or {@code null} for none */ - public GoogleFirebaseAppcheckV1UpdateServiceRequest setUpdateMask(String updateMask) { + public GoogleFirebaseAppcheckV1UpdateServiceRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-firebaseappcheck/v1/2.0.0/pom.xml b/clients/google-api-services-firebaseappcheck/v1/2.0.0/pom.xml index a8de2585baf..8aaee5f7e62 100644 --- a/clients/google-api-services-firebaseappcheck/v1/2.0.0/pom.xml +++ b/clients/google-api-services-firebaseappcheck/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-firebaseappcheck - v1-rev20260403-2.0.0 - Firebase App Check API v1-rev20260403-2.0.0 + v1-rev20260207-2.0.0 + Firebase App Check API v1-rev20260207-2.0.0 jar 2011 diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/README.md b/clients/google-api-services-firebaseapphosting/v1/2.0.0/README.md index 976e20445d3..db690656dee 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/README.md +++ b/clients/google-api-services-firebaseapphosting/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-firebaseapphosting - v1-rev20260319-2.0.0 + v1-rev20260305-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-firebaseapphosting:v1-rev20260319-2.0.0' + implementation 'com.google.apis:google-api-services-firebaseapphosting:v1-rev20260305-2.0.0' } ``` diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/FirebaseAppHosting.java b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/FirebaseAppHosting.java index 938b67d3eaa..8f4db32cfbe 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/FirebaseAppHosting.java +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/FirebaseAppHosting.java @@ -313,14 +313,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -344,15 +340,10 @@ public class List extends FirebaseAppHostingRequest annotations * Output only. Time at which the domain was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -161,7 +161,7 @@ public String getCreateTime() { * Output only. Time at which the domain was created. * @param createTime createTime or {@code null} for none */ - public Domain setCreateTime(String createTime) { + public Domain setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -189,7 +189,7 @@ public Domain setCustomDomainStatus(CustomDomainStatus customDomainStatus) { * Output only. Time at which the domain was deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -197,7 +197,7 @@ public String getDeleteTime() { * Output only. Time at which the domain was deleted. * @param deleteTime deleteTime or {@code null} for none */ - public Domain setDeleteTime(String deleteTime) { + public Domain setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -365,7 +365,7 @@ public Domain setUid(java.lang.String uid) { * Output only. Time at which the domain was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -373,7 +373,7 @@ public String getUpdateTime() { * Output only. Time at which the domain was last updated. * @param updateTime updateTime or {@code null} for none */ - public Domain setUpdateTime(String updateTime) { + public Domain setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/DomainOperationMetadata.java b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/DomainOperationMetadata.java index ef4a0773747..3101febe1fb 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/DomainOperationMetadata.java +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/DomainOperationMetadata.java @@ -42,7 +42,7 @@ public final class DomainOperationMetadata extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Additional metadata for operations on custom domains. @@ -56,7 +56,7 @@ public final class DomainOperationMetadata extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -109,7 +109,7 @@ public DomainOperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -117,7 +117,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public DomainOperationMetadata setCreateTime(String createTime) { + public DomainOperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -143,7 +143,7 @@ public DomainOperationMetadata setCustomDomainOperationMetadata(CustomDomainOper * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -151,7 +151,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public DomainOperationMetadata setEndTime(String endTime) { + public DomainOperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/OperationMetadata.java b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/OperationMetadata.java index 14b86aef021..4b7c96b99fe 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/OperationMetadata.java +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/OperationMetadata.java @@ -42,14 +42,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -102,7 +102,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -110,7 +110,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -119,7 +119,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -127,7 +127,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Rollout.java b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Rollout.java index 751d4752eb9..800cb4a2fe6 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Rollout.java +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Rollout.java @@ -51,14 +51,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Time at which the rollout was deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * Optional. Human-readable name. 63 character limit. @@ -124,7 +124,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Unstructured key value map that may be set by external tools to store and arbitrary @@ -168,7 +168,7 @@ public Rollout setBuild(java.lang.String build) { * Output only. Time at which the rollout was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -176,7 +176,7 @@ public String getCreateTime() { * Output only. Time at which the rollout was created. * @param createTime createTime or {@code null} for none */ - public Rollout setCreateTime(String createTime) { + public Rollout setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -185,7 +185,7 @@ public Rollout setCreateTime(String createTime) { * Output only. Time at which the rollout was deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -193,7 +193,7 @@ public String getDeleteTime() { * Output only. Time at which the rollout was deleted. * @param deleteTime deleteTime or {@code null} for none */ - public Rollout setDeleteTime(String deleteTime) { + public Rollout setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -344,7 +344,7 @@ public Rollout setUid(java.lang.String uid) { * Output only. Time at which the rollout was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -352,7 +352,7 @@ public String getUpdateTime() { * Output only. Time at which the rollout was last updated. * @param updateTime updateTime or {@code null} for none */ - public Rollout setUpdateTime(String updateTime) { + public Rollout setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/RolloutPolicy.java b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/RolloutPolicy.java index ecc51b82362..bcd7e722240 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/RolloutPolicy.java +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/RolloutPolicy.java @@ -51,7 +51,7 @@ public final class RolloutPolicy extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String disabledTime; + private java.lang.String disabledTime; /** * Optional. A list of file paths patterns to exclude from triggering a rollout. Patterns in this @@ -127,7 +127,7 @@ public RolloutPolicy setDisabled(java.lang.Boolean disabled) { * Output only. If `disabled` is set, the time at which the automatic rollouts were disabled. * @return value or {@code null} for none */ - public String getDisabledTime() { + public java.lang.String getDisabledTime() { return disabledTime; } @@ -135,7 +135,7 @@ public String getDisabledTime() { * Output only. If `disabled` is set, the time at which the automatic rollouts were disabled. * @param disabledTime disabledTime or {@code null} for none */ - public RolloutPolicy setDisabledTime(String disabledTime) { + public RolloutPolicy setDisabledTime(java.lang.String disabledTime) { this.disabledTime = disabledTime; return this; } diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Traffic.java b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Traffic.java index e76c1699dbe..82ea32c0453 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Traffic.java +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/com/google/api/services/firebaseapphosting/v1/model/Traffic.java @@ -43,7 +43,7 @@ public final class Traffic extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Current state of traffic allocation for the backend. When setting `target`, this @@ -111,7 +111,7 @@ public final class Traffic extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Unstructured key value map that may be set by external tools to store and arbitrary @@ -136,7 +136,7 @@ public Traffic setAnnotations(java.util.Map annotation * Output only. Time at which the backend was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -144,7 +144,7 @@ public String getCreateTime() { * Output only. Time at which the backend was created. * @param createTime createTime or {@code null} for none */ - public Traffic setCreateTime(String createTime) { + public Traffic setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -299,7 +299,7 @@ public Traffic setUid(java.lang.String uid) { * Output only. Time at which the backend was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -307,7 +307,7 @@ public String getUpdateTime() { * Output only. Time at which the backend was last updated. * @param updateTime updateTime or {@code null} for none */ - public Traffic setUpdateTime(String updateTime) { + public Traffic setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebaseapphosting/v1/2.0.0/pom.xml b/clients/google-api-services-firebaseapphosting/v1/2.0.0/pom.xml index 72b43ae8dc9..d3cd8f1105c 100644 --- a/clients/google-api-services-firebaseapphosting/v1/2.0.0/pom.xml +++ b/clients/google-api-services-firebaseapphosting/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-firebaseapphosting - v1-rev20260319-2.0.0 - Firebase App Hosting API v1-rev20260319-2.0.0 + v1-rev20260305-2.0.0 + Firebase App Hosting API v1-rev20260305-2.0.0 jar 2011 diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/README.md b/clients/google-api-services-firebasedataconnect/v1/2.0.0/README.md index 4c1ff4b83ab..d3edb1232cf 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/README.md +++ b/clients/google-api-services-firebasedataconnect/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-firebasedataconnect - v1-rev20260322-2.0.0 + v1-rev20260301-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-firebasedataconnect:v1-rev20260322-2.0.0' + implementation 'com.google.apis:google-api-services-firebasedataconnect:v1-rev20260301-2.0.0' } ``` diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/FirebaseDataConnect.java b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/FirebaseDataConnect.java index e0f6023bc7a..dc2d0d08623 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/FirebaseDataConnect.java +++ b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/FirebaseDataConnect.java @@ -313,14 +313,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -344,15 +340,10 @@ public class List extends FirebaseDataConnectRequest entit * The server-suggested duration before data under path is considered stale. * @return value or {@code null} for none */ - public String getMaxAge() { + public java.lang.String getMaxAge() { return maxAge; } @@ -109,7 +109,7 @@ public String getMaxAge() { * The server-suggested duration before data under path is considered stale. * @param maxAge maxAge or {@code null} for none */ - public DataConnectProperties setMaxAge(String maxAge) { + public DataConnectProperties setMaxAge(java.lang.String maxAge) { this.maxAge = maxAge; return this; } diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/HttpGraphql.java b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/HttpGraphql.java index ff8b816a917..207f5798f91 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/HttpGraphql.java +++ b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/HttpGraphql.java @@ -35,7 +35,7 @@ public final class HttpGraphql extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * Required. The endpoint of the HTTP GraphQL server. @@ -48,7 +48,7 @@ public final class HttpGraphql extends com.google.api.client.json.GenericJson { * Optional. Timeout duration for the HTTP request. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -56,7 +56,7 @@ public String getTimeout() { * Optional. Timeout duration for the HTTP request. * @param timeout timeout or {@code null} for none */ - public HttpGraphql setTimeout(String timeout) { + public HttpGraphql setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/OperationMetadata.java b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/OperationMetadata.java index e3c39b83976..e44b83d894a 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/OperationMetadata.java +++ b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/OperationMetadata.java @@ -47,14 +47,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -107,7 +107,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -115,7 +115,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -124,7 +124,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -132,7 +132,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Schema.java b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Schema.java index c84b1142376..ebf16379ec0 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Schema.java +++ b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Schema.java @@ -42,7 +42,7 @@ public final class Schema extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. The data sources linked in the schema. @@ -116,7 +116,7 @@ public final class Schema extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Stores small amounts of arbitrary data. @@ -139,7 +139,7 @@ public Schema setAnnotations(java.util.Map annotations * Output only. [Output only] Create time stamp. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -147,7 +147,7 @@ public String getCreateTime() { * Output only. [Output only] Create time stamp. * @param createTime createTime or {@code null} for none */ - public Schema setCreateTime(String createTime) { + public Schema setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -302,7 +302,7 @@ public Schema setUid(java.lang.String uid) { * Output only. [Output only] Update time stamp. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -310,7 +310,7 @@ public String getUpdateTime() { * Output only. [Output only] Update time stamp. * @param updateTime updateTime or {@code null} for none */ - public Schema setUpdateTime(String updateTime) { + public Schema setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Service.java b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Service.java index 75a02c60450..28ff9f45ed5 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Service.java +++ b/clients/google-api-services-firebasedataconnect/v1/2.0.0/com/google/api/services/firebasedataconnect/v1/model/Service.java @@ -42,7 +42,7 @@ public final class Service extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Mutable human-readable name. 63 character limit. @@ -96,7 +96,7 @@ public final class Service extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Stores small amounts of arbitrary data. @@ -119,7 +119,7 @@ public Service setAnnotations(java.util.Map annotation * Output only. [Output only] Create time stamp. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -127,7 +127,7 @@ public String getCreateTime() { * Output only. [Output only] Create time stamp. * @param createTime createTime or {@code null} for none */ - public Service setCreateTime(String createTime) { + public Service setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -248,7 +248,7 @@ public Service setUid(java.lang.String uid) { * Output only. [Output only] Update time stamp. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -256,7 +256,7 @@ public String getUpdateTime() { * Output only. [Output only] Update time stamp. * @param updateTime updateTime or {@code null} for none */ - public Service setUpdateTime(String updateTime) { + public Service setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-firebasedataconnect/v1/2.0.0/pom.xml b/clients/google-api-services-firebasedataconnect/v1/2.0.0/pom.xml index f903e5f3786..4fda2344e92 100644 --- a/clients/google-api-services-firebasedataconnect/v1/2.0.0/pom.xml +++ b/clients/google-api-services-firebasedataconnect/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-firebasedataconnect - v1-rev20260322-2.0.0 - Firebase Data Connect API v1-rev20260322-2.0.0 + v1-rev20260301-2.0.0 + Firebase Data Connect API v1-rev20260301-2.0.0 jar 2011 diff --git a/clients/google-api-services-firebasedynamiclinks/v1/2.0.0/com/google/api/services/firebasedynamiclinks/v1/model/ManagedShortLink.java b/clients/google-api-services-firebasedynamiclinks/v1/2.0.0/com/google/api/services/firebasedynamiclinks/v1/model/ManagedShortLink.java index 288b970a8d9..841cc0595c1 100644 --- a/clients/google-api-services-firebasedynamiclinks/v1/2.0.0/com/google/api/services/firebasedynamiclinks/v1/model/ManagedShortLink.java +++ b/clients/google-api-services-firebasedynamiclinks/v1/2.0.0/com/google/api/services/firebasedynamiclinks/v1/model/ManagedShortLink.java @@ -35,7 +35,7 @@ public final class ManagedShortLink extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String creationTime; + private java.lang.String creationTime; /** * Attributes that have been flagged about this short url. @@ -76,7 +76,7 @@ public final class ManagedShortLink extends com.google.api.client.json.GenericJs * Creation timestamp of the short link. * @return value or {@code null} for none */ - public String getCreationTime() { + public java.lang.String getCreationTime() { return creationTime; } @@ -84,7 +84,7 @@ public String getCreationTime() { * Creation timestamp of the short link. * @param creationTime creationTime or {@code null} for none */ - public ManagedShortLink setCreationTime(String creationTime) { + public ManagedShortLink setCreationTime(java.lang.String creationTime) { this.creationTime = creationTime; return this; } diff --git a/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/DnsUpdates.java b/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/DnsUpdates.java index 7ae992746cb..e0072c43292 100644 --- a/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/DnsUpdates.java +++ b/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/DnsUpdates.java @@ -37,7 +37,7 @@ public final class DnsUpdates extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String checkTime; + private java.lang.String checkTime; /** * The set of DNS records Hosting needs to serve secure content on the domain. @@ -69,7 +69,7 @@ public final class DnsUpdates extends com.google.api.client.json.GenericJson { * The last time Hosting checked your custom domain's DNS records. * @return value or {@code null} for none */ - public String getCheckTime() { + public java.lang.String getCheckTime() { return checkTime; } @@ -77,7 +77,7 @@ public String getCheckTime() { * The last time Hosting checked your custom domain's DNS records. * @param checkTime checkTime or {@code null} for none */ - public DnsUpdates setCheckTime(String checkTime) { + public DnsUpdates setCheckTime(java.lang.String checkTime) { this.checkTime = checkTime; return this; } diff --git a/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/HttpUpdate.java b/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/HttpUpdate.java index db46fa187d3..492cf774122 100644 --- a/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/HttpUpdate.java +++ b/clients/google-api-services-firebasehosting/v1/2.0.0/com/google/api/services/firebasehosting/v1/model/HttpUpdate.java @@ -58,7 +58,7 @@ public final class HttpUpdate extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastCheckTime; + private java.lang.String lastCheckTime; /** * Output only. The path to the file. @@ -126,7 +126,7 @@ public HttpUpdate setDiscovered(java.lang.String discovered) { * Output only. The last time Hosting systems checked for the file contents. * @return value or {@code null} for none */ - public String getLastCheckTime() { + public java.lang.String getLastCheckTime() { return lastCheckTime; } @@ -134,7 +134,7 @@ public String getLastCheckTime() { * Output only. The last time Hosting systems checked for the file contents. * @param lastCheckTime lastCheckTime or {@code null} for none */ - public HttpUpdate setLastCheckTime(String lastCheckTime) { + public HttpUpdate setLastCheckTime(java.lang.String lastCheckTime) { this.lastCheckTime = lastCheckTime; return this; } diff --git a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/FormResponse.java b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/FormResponse.java index 31b8bb85022..5644f3197ba 100644 --- a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/FormResponse.java +++ b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/FormResponse.java @@ -47,7 +47,7 @@ public final class FormResponse extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The form ID. @@ -62,7 +62,7 @@ public final class FormResponse extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastSubmittedTime; + private java.lang.String lastSubmittedTime; /** * Output only. The email address (if collected) for the respondent. @@ -108,7 +108,7 @@ public FormResponse setAnswers(java.util.Map answers) { * Output only. Timestamp for the first time the response was submitted. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -116,7 +116,7 @@ public String getCreateTime() { * Output only. Timestamp for the first time the response was submitted. * @param createTime createTime or {@code null} for none */ - public FormResponse setCreateTime(String createTime) { + public FormResponse setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -143,7 +143,7 @@ public FormResponse setFormId(java.lang.String formId) { * changes to grades. * @return value or {@code null} for none */ - public String getLastSubmittedTime() { + public java.lang.String getLastSubmittedTime() { return lastSubmittedTime; } @@ -152,7 +152,7 @@ public String getLastSubmittedTime() { * changes to grades. * @param lastSubmittedTime lastSubmittedTime or {@code null} for none */ - public FormResponse setLastSubmittedTime(String lastSubmittedTime) { + public FormResponse setLastSubmittedTime(java.lang.String lastSubmittedTime) { this.lastSubmittedTime = lastSubmittedTime; return this; } diff --git a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/SetPublishSettingsRequest.java b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/SetPublishSettingsRequest.java index 50fa0593bc4..acfac82ef7e 100644 --- a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/SetPublishSettingsRequest.java +++ b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/SetPublishSettingsRequest.java @@ -43,7 +43,7 @@ public final class SetPublishSettingsRequest extends com.google.api.client.json. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. The desired publish settings to apply to the form. @@ -68,7 +68,7 @@ public SetPublishSettingsRequest setPublishSettings(PublishSettings publishSetti * or replaces all `publish_settings` fields. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -78,7 +78,7 @@ public String getUpdateMask() { * or replaces all `publish_settings` fields. * @param updateMask updateMask or {@code null} for none */ - public SetPublishSettingsRequest setUpdateMask(String updateMask) { + public SetPublishSettingsRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateFormInfoRequest.java b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateFormInfoRequest.java index 0f00d77a520..6cfb766bf37 100644 --- a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateFormInfoRequest.java +++ b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateFormInfoRequest.java @@ -43,7 +43,7 @@ public final class UpdateFormInfoRequest extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * The info to update. @@ -68,7 +68,7 @@ public UpdateFormInfoRequest setInfo(Info info) { * for updating every field. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -78,7 +78,7 @@ public String getUpdateMask() { * for updating every field. * @param updateMask updateMask or {@code null} for none */ - public UpdateFormInfoRequest setUpdateMask(String updateMask) { + public UpdateFormInfoRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateItemRequest.java b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateItemRequest.java index 1de07addfa4..e147f1e1b5c 100644 --- a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateItemRequest.java +++ b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateItemRequest.java @@ -52,7 +52,7 @@ public final class UpdateItemRequest extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. New values for the item. Note that item and question IDs are used if they are @@ -100,7 +100,7 @@ public UpdateItemRequest setLocation(Location location) { * Required. Only values named in this mask are changed. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -108,7 +108,7 @@ public String getUpdateMask() { * Required. Only values named in this mask are changed. * @param updateMask updateMask or {@code null} for none */ - public UpdateItemRequest setUpdateMask(String updateMask) { + public UpdateItemRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateSettingsRequest.java b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateSettingsRequest.java index ac4056a7c0b..7985a85ddea 100644 --- a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateSettingsRequest.java +++ b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/UpdateSettingsRequest.java @@ -43,7 +43,7 @@ public final class UpdateSettingsRequest extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * Required. The settings to update with. @@ -68,7 +68,7 @@ public UpdateSettingsRequest setSettings(FormSettings settings) { * hand for updating every field. * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -78,7 +78,7 @@ public String getUpdateMask() { * hand for updating every field. * @param updateMask updateMask or {@code null} for none */ - public UpdateSettingsRequest setUpdateMask(String updateMask) { + public UpdateSettingsRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/Watch.java b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/Watch.java index 861ac7270fa..4561c800bdb 100644 --- a/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/Watch.java +++ b/clients/google-api-services-forms/v1/2.0.0/com/google/api/services/forms/v1/model/Watch.java @@ -40,7 +40,7 @@ public final class Watch extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The most recent error type for an attempted delivery. To begin watching the form @@ -63,7 +63,7 @@ public final class Watch extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Output only. The ID of this watch. See notes on CreateWatchRequest.watch_id. @@ -91,7 +91,7 @@ public final class Watch extends com.google.api.client.json.GenericJson { * Output only. Timestamp of when this was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Output only. Timestamp of when this was created. * @param createTime createTime or {@code null} for none */ - public Watch setCreateTime(String createTime) { + public Watch setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -145,7 +145,7 @@ public Watch setEventType(java.lang.String eventType) { * days in the future. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -154,7 +154,7 @@ public String getExpireTime() { * days in the future. * @param expireTime expireTime or {@code null} for none */ - public Watch setExpireTime(String expireTime) { + public Watch setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/README.md b/clients/google-api-services-healthcare/v1/2.0.0/README.md index 01a94cc4224..9f375a7d98b 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/README.md +++ b/clients/google-api-services-healthcare/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-healthcare - v1-rev20260331-2.0.0 + v1-rev20260128-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-healthcare:v1-rev20260331-2.0.0' + implementation 'com.google.apis:google-api-services-healthcare:v1-rev20260128-2.0.0' } ``` diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/CloudHealthcare.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/CloudHealthcare.java index 4d5f8556bb3..e5a38ca2df6 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/CloudHealthcare.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/CloudHealthcare.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends CloudHealthcareRequest * Output only. The timestamp that the revision was created. * @return value or {@code null} for none */ - public String getRevisionCreateTime() { + public java.lang.String getRevisionCreateTime() { return revisionCreateTime; } @@ -231,7 +231,7 @@ public String getRevisionCreateTime() { * Output only. The timestamp that the revision was created. * @param revisionCreateTime revisionCreateTime or {@code null} for none */ - public Consent setRevisionCreateTime(String revisionCreateTime) { + public Consent setRevisionCreateTime(java.lang.String revisionCreateTime) { this.revisionCreateTime = revisionCreateTime; return this; } @@ -278,7 +278,7 @@ public Consent setState(java.lang.String state) { * Input only. The time to live for this Consent from when it is created. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -286,7 +286,7 @@ public String getTtl() { * Input only. The time to live for this Consent from when it is created. * @param ttl ttl or {@code null} for none */ - public Consent setTtl(String ttl) { + public Consent setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ConsentStore.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ConsentStore.java index a7c47cc4490..045cceec6cd 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ConsentStore.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ConsentStore.java @@ -35,7 +35,7 @@ public final class ConsentStore extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String defaultConsentTtl; + private java.lang.String defaultConsentTtl; /** * Optional. If `true`, UpdateConsent creates the Consent if it does not already exist. If @@ -72,7 +72,7 @@ public final class ConsentStore extends com.google.api.client.json.GenericJson { * Updating this field will not affect the expiration time of existing consents. * @return value or {@code null} for none */ - public String getDefaultConsentTtl() { + public java.lang.String getDefaultConsentTtl() { return defaultConsentTtl; } @@ -81,7 +81,7 @@ public String getDefaultConsentTtl() { * Updating this field will not affect the expiration time of existing consents. * @param defaultConsentTtl defaultConsentTtl or {@code null} for none */ - public ConsentStore setDefaultConsentTtl(String defaultConsentTtl) { + public ConsentStore setDefaultConsentTtl(java.lang.String defaultConsentTtl) { this.defaultConsentTtl = defaultConsentTtl; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExplainDataAccessConsentInfo.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExplainDataAccessConsentInfo.java index 4ab30bc1947..e76e146636b 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExplainDataAccessConsentInfo.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExplainDataAccessConsentInfo.java @@ -51,7 +51,7 @@ public final class ExplainDataAccessConsentInfo extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String enforcementTime; + private java.lang.String enforcementTime; /** * A list of all the matching accessor scopes of this consent policy that enforced @@ -134,7 +134,7 @@ public ExplainDataAccessConsentInfo setConsentResource(java.lang.String consentR * Last enforcement timestamp of this consent resource. * @return value or {@code null} for none */ - public String getEnforcementTime() { + public java.lang.String getEnforcementTime() { return enforcementTime; } @@ -142,7 +142,7 @@ public String getEnforcementTime() { * Last enforcement timestamp of this consent resource. * @param enforcementTime enforcementTime or {@code null} for none */ - public ExplainDataAccessConsentInfo setEnforcementTime(String enforcementTime) { + public ExplainDataAccessConsentInfo setEnforcementTime(java.lang.String enforcementTime) { this.enforcementTime = enforcementTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExportMessagesRequest.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExportMessagesRequest.java index 4d593a3af48..b138f8e66ad 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExportMessagesRequest.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/ExportMessagesRequest.java @@ -38,7 +38,7 @@ public final class ExportMessagesRequest extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Restricts messages exported to those matching a filter, only applicable to PubsubDestination @@ -100,7 +100,7 @@ public final class ExportMessagesRequest extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * The end of the range in `send_time` (MSH.7, https://www.hl7.org/documentcenter/public_temp_2E58 @@ -110,7 +110,7 @@ public final class ExportMessagesRequest extends com.google.api.client.json.Gene * (exclusive) are exported. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -122,7 +122,7 @@ public String getEndTime() { * (exclusive) are exported. * @param endTime endTime or {@code null} for none */ - public ExportMessagesRequest setEndTime(String endTime) { + public ExportMessagesRequest setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -246,7 +246,7 @@ public ExportMessagesRequest setPubsubDestination(PubsubDestination pubsubDestin * (exclusive) are exported. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -258,7 +258,7 @@ public String getStartTime() { * (exclusive) are exported. * @param startTime startTime or {@code null} for none */ - public ExportMessagesRequest setStartTime(String startTime) { + public ExportMessagesRequest setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Message.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Message.java index 15780f6b920..7007569e904 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Message.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Message.java @@ -35,7 +35,7 @@ public final class Message extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Raw message bytes. @@ -105,13 +105,13 @@ public final class Message extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String sendTime; + private java.lang.String sendTime; /** * Output only. The datetime when the message was created. Set by the server. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -119,7 +119,7 @@ public String getCreateTime() { * Output only. The datetime when the message was created. Set by the server. * @param createTime createTime or {@code null} for none */ - public Message setCreateTime(String createTime) { + public Message setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -306,7 +306,7 @@ public Message setSendFacility(java.lang.String sendFacility) { * Output only. The datetime the sending application sent this message. MSH-7. * @return value or {@code null} for none */ - public String getSendTime() { + public java.lang.String getSendTime() { return sendTime; } @@ -314,7 +314,7 @@ public String getSendTime() { * Output only. The datetime the sending application sent this message. MSH-7. * @param sendTime sendTime or {@code null} for none */ - public Message setSendTime(String sendTime) { + public Message setSendTime(java.lang.String sendTime) { this.sendTime = sendTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/OperationMetadata.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/OperationMetadata.java index 295616fa9ec..e225fcae8c7 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/OperationMetadata.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/OperationMetadata.java @@ -55,14 +55,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The time at which execution was completed. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * A link to audit and error logs in the log viewer. Error logs are generated only by some @@ -126,7 +126,7 @@ public OperationMetadata setCounter(ProgressCounter counter) { * The time at which the operation was created by the API. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -134,7 +134,7 @@ public String getCreateTime() { * The time at which the operation was created by the API. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -143,7 +143,7 @@ public OperationMetadata setCreateTime(String createTime) { * The time at which execution was completed. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -151,7 +151,7 @@ public String getEndTime() { * The time at which execution was completed. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackFhirResourcesRequest.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackFhirResourcesRequest.java index bb3f7d41cad..9feda5407a5 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackFhirResourcesRequest.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackFhirResourcesRequest.java @@ -77,7 +77,7 @@ public final class RollbackFhirResourcesRequest extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String rollbackTime; + private java.lang.String rollbackTime; /** * Optional. If specified, revert only resources of these types @@ -194,7 +194,7 @@ public RollbackFhirResourcesRequest setResultGcsBucket(java.lang.String resultGc * Required. Time point to rollback to. * @return value or {@code null} for none */ - public String getRollbackTime() { + public java.lang.String getRollbackTime() { return rollbackTime; } @@ -202,7 +202,7 @@ public String getRollbackTime() { * Required. Time point to rollback to. * @param rollbackTime rollbackTime or {@code null} for none */ - public RollbackFhirResourcesRequest setRollbackTime(String rollbackTime) { + public RollbackFhirResourcesRequest setRollbackTime(java.lang.String rollbackTime) { this.rollbackTime = rollbackTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackHl7V2MessagesRequest.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackHl7V2MessagesRequest.java index e6e0a25410a..1997f7bbf72 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackHl7V2MessagesRequest.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/RollbackHl7V2MessagesRequest.java @@ -77,7 +77,7 @@ public final class RollbackHl7V2MessagesRequest extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String rollbackTime; + private java.lang.String rollbackTime; /** * Optional. CREATE/UPDATE/DELETE/ALL for reverting all txns of a certain type. @@ -187,7 +187,7 @@ public RollbackHl7V2MessagesRequest setResultGcsBucket(java.lang.String resultGc * Required. Times point to rollback to. * @return value or {@code null} for none */ - public String getRollbackTime() { + public java.lang.String getRollbackTime() { return rollbackTime; } @@ -195,7 +195,7 @@ public String getRollbackTime() { * Required. Times point to rollback to. * @param rollbackTime rollbackTime or {@code null} for none */ - public RollbackHl7V2MessagesRequest setRollbackTime(String rollbackTime) { + public RollbackHl7V2MessagesRequest setRollbackTime(java.lang.String rollbackTime) { this.rollbackTime = rollbackTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/SetIamPolicyRequest.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/SetIamPolicyRequest.java index 989d987c3a5..9d69b83052d 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/SetIamPolicyRequest.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/SetIamPolicyRequest.java @@ -45,7 +45,7 @@ public final class SetIamPolicyRequest extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is @@ -74,7 +74,7 @@ public SetIamPolicyRequest setPolicy(Policy policy) { * "bindings, etag"` * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -84,7 +84,7 @@ public String getUpdateMask() { * "bindings, etag"` * @param updateMask updateMask or {@code null} for none */ - public SetIamPolicyRequest setUpdateMask(String updateMask) { + public SetIamPolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Signature.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Signature.java index cdeab65e61a..efdb9079f34 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Signature.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/Signature.java @@ -49,7 +49,7 @@ public final class Signature extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String signatureTime; + private java.lang.String signatureTime; /** * Required. User's UUID provided by the client. @@ -98,7 +98,7 @@ public Signature setMetadata(java.util.Map metadata) { * Optional. Timestamp of the signature. * @return value or {@code null} for none */ - public String getSignatureTime() { + public java.lang.String getSignatureTime() { return signatureTime; } @@ -106,7 +106,7 @@ public String getSignatureTime() { * Optional. Timestamp of the signature. * @param signatureTime signatureTime or {@code null} for none */ - public Signature setSignatureTime(String signatureTime) { + public Signature setSignatureTime(java.lang.String signatureTime) { this.signatureTime = signatureTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/UserDataMapping.java b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/UserDataMapping.java index c5af16b5481..f1cbab26c56 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/UserDataMapping.java +++ b/clients/google-api-services-healthcare/v1/2.0.0/com/google/api/services/healthcare/v1/model/UserDataMapping.java @@ -34,7 +34,7 @@ public final class UserDataMapping extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String archiveTime; + private java.lang.String archiveTime; /** * Output only. Indicates whether this mapping is archived. @@ -86,7 +86,7 @@ public final class UserDataMapping extends com.google.api.client.json.GenericJso * Output only. Indicates the time when this mapping was archived. * @return value or {@code null} for none */ - public String getArchiveTime() { + public java.lang.String getArchiveTime() { return archiveTime; } @@ -94,7 +94,7 @@ public String getArchiveTime() { * Output only. Indicates the time when this mapping was archived. * @param archiveTime archiveTime or {@code null} for none */ - public UserDataMapping setArchiveTime(String archiveTime) { + public UserDataMapping setArchiveTime(java.lang.String archiveTime) { this.archiveTime = archiveTime; return this; } diff --git a/clients/google-api-services-healthcare/v1/2.0.0/pom.xml b/clients/google-api-services-healthcare/v1/2.0.0/pom.xml index e80f96eb3d7..1065b619e33 100644 --- a/clients/google-api-services-healthcare/v1/2.0.0/pom.xml +++ b/clients/google-api-services-healthcare/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-healthcare - v1-rev20260331-2.0.0 - Cloud Healthcare API v1-rev20260331-2.0.0 + v1-rev20260128-2.0.0 + Cloud Healthcare API v1-rev20260128-2.0.0 jar 2011 diff --git a/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1BookingLead.java b/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1BookingLead.java index 4869a92954a..d342cdec855 100644 --- a/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1BookingLead.java +++ b/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1BookingLead.java @@ -34,7 +34,7 @@ public final class GoogleAdsHomeservicesLocalservicesV1BookingLead extends com.g * The value may be {@code null}. */ @com.google.api.client.util.Key - private String bookingAppointmentTimestamp; + private java.lang.String bookingAppointmentTimestamp; /** * Consumer email associated with the booking lead. @@ -68,7 +68,7 @@ public final class GoogleAdsHomeservicesLocalservicesV1BookingLead extends com.g * Timestamp of when service is provided by advertiser. * @return value or {@code null} for none */ - public String getBookingAppointmentTimestamp() { + public java.lang.String getBookingAppointmentTimestamp() { return bookingAppointmentTimestamp; } @@ -76,7 +76,7 @@ public String getBookingAppointmentTimestamp() { * Timestamp of when service is provided by advertiser. * @param bookingAppointmentTimestamp bookingAppointmentTimestamp or {@code null} for none */ - public GoogleAdsHomeservicesLocalservicesV1BookingLead setBookingAppointmentTimestamp(String bookingAppointmentTimestamp) { + public GoogleAdsHomeservicesLocalservicesV1BookingLead setBookingAppointmentTimestamp(java.lang.String bookingAppointmentTimestamp) { this.bookingAppointmentTimestamp = bookingAppointmentTimestamp; return this; } diff --git a/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport.java b/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport.java index f5bb3fafa8c..86acedcce5b 100644 --- a/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport.java +++ b/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport.java @@ -105,7 +105,7 @@ public final class GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport extend * The value may be {@code null}. */ @com.google.api.client.util.Key - private String leadCreationTimestamp; + private java.lang.String leadCreationTimestamp; /** * Deprecated in favor of google_ads_lead_id. Unique identifier of a Detailed Lead Report. @@ -323,7 +323,7 @@ public GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport setLeadCategory(ja * Timestamp of when the lead was created. * @return value or {@code null} for none */ - public String getLeadCreationTimestamp() { + public java.lang.String getLeadCreationTimestamp() { return leadCreationTimestamp; } @@ -331,7 +331,7 @@ public String getLeadCreationTimestamp() { * Timestamp of when the lead was created. * @param leadCreationTimestamp leadCreationTimestamp or {@code null} for none */ - public GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport setLeadCreationTimestamp(String leadCreationTimestamp) { + public GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport setLeadCreationTimestamp(java.lang.String leadCreationTimestamp) { this.leadCreationTimestamp = leadCreationTimestamp; return this; } diff --git a/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1PhoneLead.java b/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1PhoneLead.java index f6340442466..611c509291f 100644 --- a/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1PhoneLead.java +++ b/clients/google-api-services-localservices/v1/2.0.0/com/google/api/services/localservices/v1/model/GoogleAdsHomeservicesLocalservicesV1PhoneLead.java @@ -34,14 +34,14 @@ public final class GoogleAdsHomeservicesLocalservicesV1PhoneLead extends com.goo * The value may be {@code null}. */ @com.google.api.client.util.Key - private String chargedCallTimestamp; + private java.lang.String chargedCallTimestamp; /** * Duration of the charged phone call in seconds. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String chargedConnectedCallDurationSeconds; + private java.lang.String chargedConnectedCallDurationSeconds; /** * Consumer phone number associated with the phone lead. @@ -54,7 +54,7 @@ public final class GoogleAdsHomeservicesLocalservicesV1PhoneLead extends com.goo * Timestamp of the phone call which resulted in a charged phone lead. * @return value or {@code null} for none */ - public String getChargedCallTimestamp() { + public java.lang.String getChargedCallTimestamp() { return chargedCallTimestamp; } @@ -62,7 +62,7 @@ public String getChargedCallTimestamp() { * Timestamp of the phone call which resulted in a charged phone lead. * @param chargedCallTimestamp chargedCallTimestamp or {@code null} for none */ - public GoogleAdsHomeservicesLocalservicesV1PhoneLead setChargedCallTimestamp(String chargedCallTimestamp) { + public GoogleAdsHomeservicesLocalservicesV1PhoneLead setChargedCallTimestamp(java.lang.String chargedCallTimestamp) { this.chargedCallTimestamp = chargedCallTimestamp; return this; } @@ -71,7 +71,7 @@ public GoogleAdsHomeservicesLocalservicesV1PhoneLead setChargedCallTimestamp(Str * Duration of the charged phone call in seconds. * @return value or {@code null} for none */ - public String getChargedConnectedCallDurationSeconds() { + public java.lang.String getChargedConnectedCallDurationSeconds() { return chargedConnectedCallDurationSeconds; } @@ -79,7 +79,7 @@ public String getChargedConnectedCallDurationSeconds() { * Duration of the charged phone call in seconds. * @param chargedConnectedCallDurationSeconds chargedConnectedCallDurationSeconds or {@code null} for none */ - public GoogleAdsHomeservicesLocalservicesV1PhoneLead setChargedConnectedCallDurationSeconds(String chargedConnectedCallDurationSeconds) { + public GoogleAdsHomeservicesLocalservicesV1PhoneLead setChargedConnectedCallDurationSeconds(java.lang.String chargedConnectedCallDurationSeconds) { this.chargedConnectedCallDurationSeconds = chargedConnectedCallDurationSeconds; return this; } diff --git a/clients/google-api-services-managedkafka/v1/2.0.0/README.md b/clients/google-api-services-managedkafka/v1/2.0.0/README.md index 7701412d5f8..ef112c8b04f 100644 --- a/clients/google-api-services-managedkafka/v1/2.0.0/README.md +++ b/clients/google-api-services-managedkafka/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-managedkafka - v1-rev20260319-2.0.0 + v1-rev20260129-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-managedkafka:v1-rev20260319-2.0.0' + implementation 'com.google.apis:google-api-services-managedkafka:v1-rev20260129-2.0.0' } ``` diff --git a/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/ManagedKafka.java b/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/ManagedKafka.java index 7c0a8767196..2ae9526909d 100644 --- a/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/ManagedKafka.java +++ b/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/ManagedKafka.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends ManagedKafkaRequest config) * Output only. The time when the cluster was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -159,7 +159,7 @@ public String getCreateTime() { * Output only. The time when the cluster was created. * @param createTime createTime or {@code null} for none */ - public ConnectCluster setCreateTime(String createTime) { + public ConnectCluster setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -293,7 +293,7 @@ public ConnectCluster setState(java.lang.String state) { * Output only. The time when the cluster was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -301,7 +301,7 @@ public String getUpdateTime() { * Output only. The time when the cluster was last updated. * @param updateTime updateTime or {@code null} for none */ - public ConnectCluster setUpdateTime(String updateTime) { + public ConnectCluster setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/OperationMetadata.java b/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/OperationMetadata.java index ed9de210796..d18862df7c4 100644 --- a/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/OperationMetadata.java +++ b/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/OperationMetadata.java @@ -42,14 +42,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -102,7 +102,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -110,7 +110,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -119,7 +119,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -127,7 +127,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/TaskRetryPolicy.java b/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/TaskRetryPolicy.java index 73a2d36527e..d44e17bdd76 100644 --- a/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/TaskRetryPolicy.java +++ b/clients/google-api-services-managedkafka/v1/2.0.0/com/google/api/services/managedkafka/v1/model/TaskRetryPolicy.java @@ -43,7 +43,7 @@ public final class TaskRetryPolicy extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maximumBackoff; + private java.lang.String maximumBackoff; /** * Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower @@ -51,7 +51,7 @@ public final class TaskRetryPolicy extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minimumBackoff; + private java.lang.String minimumBackoff; /** * Optional. If true, task retry is disabled. @@ -65,7 +65,7 @@ public final class TaskRetryPolicy extends com.google.api.client.json.GenericJso * bound for the backoff delay. * @return value or {@code null} for none */ - public String getMaximumBackoff() { + public java.lang.String getMaximumBackoff() { return maximumBackoff; } @@ -74,7 +74,7 @@ public String getMaximumBackoff() { * bound for the backoff delay. * @param maximumBackoff maximumBackoff or {@code null} for none */ - public TaskRetryPolicy setMaximumBackoff(String maximumBackoff) { + public TaskRetryPolicy setMaximumBackoff(java.lang.String maximumBackoff) { this.maximumBackoff = maximumBackoff; return this; } @@ -84,7 +84,7 @@ public TaskRetryPolicy setMaximumBackoff(String maximumBackoff) { * bound for the backoff delay. * @return value or {@code null} for none */ - public String getMinimumBackoff() { + public java.lang.String getMinimumBackoff() { return minimumBackoff; } @@ -93,7 +93,7 @@ public String getMinimumBackoff() { * bound for the backoff delay. * @param minimumBackoff minimumBackoff or {@code null} for none */ - public TaskRetryPolicy setMinimumBackoff(String minimumBackoff) { + public TaskRetryPolicy setMinimumBackoff(java.lang.String minimumBackoff) { this.minimumBackoff = minimumBackoff; return this; } diff --git a/clients/google-api-services-managedkafka/v1/2.0.0/pom.xml b/clients/google-api-services-managedkafka/v1/2.0.0/pom.xml index 396f9d9bf10..76741856b1d 100644 --- a/clients/google-api-services-managedkafka/v1/2.0.0/pom.xml +++ b/clients/google-api-services-managedkafka/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-managedkafka - v1-rev20260319-2.0.0 - Managed Service for Apache Kafka API v1-rev20260319-2.0.0 + v1-rev20260129-2.0.0 + Managed Service for Apache Kafka API v1-rev20260129-2.0.0 jar 2011 diff --git a/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/ManufacturerCenter.java b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/ManufacturerCenter.java index 7368f81d002..e0ac80288bc 100644 --- a/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/ManufacturerCenter.java +++ b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/ManufacturerCenter.java @@ -838,13 +838,13 @@ public Patch setName(java.lang.String name) { * Setting any other values will returns UNIMPLEMENTED error. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. The list of fields to update according to aip.dev/134. However, only full update is supported as of right now. Therefore, it can be either ignored or set to "*". Setting any other values will returns UNIMPLEMENTED error. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -853,7 +853,7 @@ public String getUpdateMask() { * update is supported as of right now. Therefore, it can be either ignored or set to "*". * Setting any other values will returns UNIMPLEMENTED error. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/Issue.java b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/Issue.java index bd9b856c9f9..47c6c6c3af5 100644 --- a/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/Issue.java +++ b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/Issue.java @@ -79,7 +79,7 @@ public final class Issue extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timestamp; + private java.lang.String timestamp; /** * Short title describing the nature of the issue. @@ -206,7 +206,7 @@ public Issue setSeverity(java.lang.String severity) { * The timestamp when this issue appeared. * @return value or {@code null} for none */ - public String getTimestamp() { + public java.lang.String getTimestamp() { return timestamp; } @@ -214,7 +214,7 @@ public String getTimestamp() { * The timestamp when this issue appeared. * @param timestamp timestamp or {@code null} for none */ - public Issue setTimestamp(String timestamp) { + public Issue setTimestamp(java.lang.String timestamp) { this.timestamp = timestamp; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/README.md b/clients/google-api-services-monitoring/v1/2.0.0/README.md index 07b7a08ea13..32455da809b 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/README.md +++ b/clients/google-api-services-monitoring/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-monitoring - v1-rev20260402-2.0.0 + v1-rev20260302-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260402-2.0.0' + implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260302-2.0.0' } ``` diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Aggregation.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Aggregation.java index 1dde746c143..da35a7b2529 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Aggregation.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Aggregation.java @@ -55,7 +55,7 @@ public final class Aggregation extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String alignmentPeriod; + private java.lang.String alignmentPeriod; /** * The reduction operation to be used to combine time series into a single time series, where the @@ -111,7 +111,7 @@ public final class Aggregation extends com.google.api.client.json.GenericJson { * ignored.The maximum value of the alignment_period is 2 years, or 104 weeks. * @return value or {@code null} for none */ - public String getAlignmentPeriod() { + public java.lang.String getAlignmentPeriod() { return alignmentPeriod; } @@ -124,7 +124,7 @@ public String getAlignmentPeriod() { * ignored.The maximum value of the alignment_period is 2 years, or 104 weeks. * @param alignmentPeriod alignmentPeriod or {@code null} for none */ - public Aggregation setAlignmentPeriod(String alignmentPeriod) { + public Aggregation setAlignmentPeriod(java.lang.String alignmentPeriod) { this.alignmentPeriod = alignmentPeriod; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/DataSet.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/DataSet.java index 2c79d2df185..f89432c8e87 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/DataSet.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/DataSet.java @@ -66,16 +66,13 @@ public final class DataSet extends com.google.api.client.json.GenericJson { /** * Optional. The lower bound on data point frequency for this data set, implemented by specifying - * the minimum alignment period to use in a time series query. For example, if the data is + * the minimum alignment period to use in a time series query For example, if the data is * published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It - * would not make sense to fetch and align data at one minute intervals.For PromQL queries, this - * field is used to set the minimum interval for the query step, controlling data granularity. - * Larger values can improve performance on long time ranges. See Querying Basics and Range - * Queries for more details on the PromQL step. + * would not make sense to fetch and align data at one minute intervals. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minAlignmentPeriod; + private java.lang.String minAlignmentPeriod; /** * How this data should be plotted on the chart. @@ -183,29 +180,23 @@ public DataSet setMeasures(java.util.List measures) { /** * Optional. The lower bound on data point frequency for this data set, implemented by specifying - * the minimum alignment period to use in a time series query. For example, if the data is + * the minimum alignment period to use in a time series query For example, if the data is * published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It - * would not make sense to fetch and align data at one minute intervals.For PromQL queries, this - * field is used to set the minimum interval for the query step, controlling data granularity. - * Larger values can improve performance on long time ranges. See Querying Basics and Range - * Queries for more details on the PromQL step. + * would not make sense to fetch and align data at one minute intervals. * @return value or {@code null} for none */ - public String getMinAlignmentPeriod() { + public java.lang.String getMinAlignmentPeriod() { return minAlignmentPeriod; } /** * Optional. The lower bound on data point frequency for this data set, implemented by specifying - * the minimum alignment period to use in a time series query. For example, if the data is + * the minimum alignment period to use in a time series query For example, if the data is * published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It - * would not make sense to fetch and align data at one minute intervals.For PromQL queries, this - * field is used to set the minimum interval for the query step, controlling data granularity. - * Larger values can improve performance on long time ranges. See Querying Basics and Range - * Queries for more details on the PromQL step. + * would not make sense to fetch and align data at one minute intervals. * @param minAlignmentPeriod minAlignmentPeriod or {@code null} for none */ - public DataSet setMinAlignmentPeriod(String minAlignmentPeriod) { + public DataSet setMinAlignmentPeriod(java.lang.String minAlignmentPeriod) { this.minAlignmentPeriod = minAlignmentPeriod; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Dimension.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Dimension.java index d73c4d523fb..469b8199543 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Dimension.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Dimension.java @@ -98,7 +98,7 @@ public final class Dimension extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeBinSize; + private java.lang.String timeBinSize; /** * Required. For widgets that use SQL queries, set the value to the name of the column in the @@ -249,7 +249,7 @@ public Dimension setSortOrder(java.lang.String sortOrder) { * multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours. * @return value or {@code null} for none */ - public String getTimeBinSize() { + public java.lang.String getTimeBinSize() { return timeBinSize; } @@ -259,7 +259,7 @@ public String getTimeBinSize() { * multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours. * @param timeBinSize timeBinSize or {@code null} for none */ - public Dimension setTimeBinSize(String timeBinSize) { + public Dimension setTimeBinSize(java.lang.String timeBinSize) { this.timeBinSize = timeBinSize; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Interval.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Interval.java index 4927a803b77..83269211eff 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Interval.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Interval.java @@ -38,7 +38,7 @@ public final class Interval extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will @@ -46,14 +46,14 @@ public final class Interval extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will * have to be before the end. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -62,7 +62,7 @@ public String getEndTime() { * have to be before the end. * @param endTime endTime or {@code null} for none */ - public Interval setEndTime(String endTime) { + public Interval setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -72,7 +72,7 @@ public Interval setEndTime(String endTime) { * have to be the same or after the start. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -81,7 +81,7 @@ public String getStartTime() { * have to be the same or after the start. * @param startTime startTime or {@code null} for none */ - public Interval setStartTime(String startTime) { + public Interval setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MetricsScope.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MetricsScope.java index d2acffe5d5e..af405ecc14a 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MetricsScope.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MetricsScope.java @@ -36,7 +36,7 @@ public final class MetricsScope extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The list of projects monitored by this Metrics Scope. @@ -60,13 +60,13 @@ public final class MetricsScope extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time when this Metrics Scope was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -74,7 +74,7 @@ public String getCreateTime() { * Output only. The time when this Metrics Scope was created. * @param createTime createTime or {@code null} for none */ - public MetricsScope setCreateTime(String createTime) { + public MetricsScope setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -123,7 +123,7 @@ public MetricsScope setName(java.lang.String name) { * Output only. The time when this Metrics Scope record was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -131,7 +131,7 @@ public String getUpdateTime() { * Output only. The time when this Metrics Scope record was last updated. * @param updateTime updateTime or {@code null} for none */ - public MetricsScope setUpdateTime(String updateTime) { + public MetricsScope setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MonitoredProject.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MonitoredProject.java index 5b59c707d54..ca2ea4a5d34 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MonitoredProject.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/MonitoredProject.java @@ -35,7 +35,7 @@ public final class MonitoredProject extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Set if the project has been tombstoned by the user. @@ -58,7 +58,7 @@ public final class MonitoredProject extends com.google.api.client.json.GenericJs * Output only. The time when this MonitoredProject was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -66,7 +66,7 @@ public String getCreateTime() { * Output only. The time when this MonitoredProject was created. * @param createTime createTime or {@code null} for none */ - public MonitoredProject setCreateTime(String createTime) { + public MonitoredProject setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/OperationMetadata.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/OperationMetadata.java index a7a5ade6ca8..3d645d5cf64 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/OperationMetadata.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/OperationMetadata.java @@ -34,7 +34,7 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Current state of the batch operation. @@ -48,13 +48,13 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The time when the batch request was received. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -62,7 +62,7 @@ public String getCreateTime() { * The time when the batch request was received. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -88,7 +88,7 @@ public OperationMetadata setState(java.lang.String state) { * The time when the operation result was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -96,7 +96,7 @@ public String getUpdateTime() { * The time when the operation result was last updated. * @param updateTime updateTime or {@code null} for none */ - public OperationMetadata setUpdateTime(String updateTime) { + public OperationMetadata setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/PieChartDataSet.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/PieChartDataSet.java index 8f8b33764d7..f586a506cf2 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/PieChartDataSet.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/PieChartDataSet.java @@ -64,7 +64,7 @@ public final class PieChartDataSet extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minAlignmentPeriod; + private java.lang.String minAlignmentPeriod; /** * Optional. A template for the name of the slice. This name will be displayed in the legend and @@ -126,7 +126,7 @@ public PieChartDataSet setMeasures(java.util.List measures) { * would not make sense to fetch and align data at one minute intervals. * @return value or {@code null} for none */ - public String getMinAlignmentPeriod() { + public java.lang.String getMinAlignmentPeriod() { return minAlignmentPeriod; } @@ -137,7 +137,7 @@ public String getMinAlignmentPeriod() { * would not make sense to fetch and align data at one minute intervals. * @param minAlignmentPeriod minAlignmentPeriod or {@code null} for none */ - public PieChartDataSet setMinAlignmentPeriod(String minAlignmentPeriod) { + public PieChartDataSet setMinAlignmentPeriod(java.lang.String minAlignmentPeriod) { this.minAlignmentPeriod = minAlignmentPeriod; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SparkChartView.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SparkChartView.java index 0d0d27afab8..cc309c22d9c 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SparkChartView.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SparkChartView.java @@ -35,14 +35,11 @@ public final class SparkChartView extends com.google.api.client.json.GenericJson * The lower bound on data point frequency in the chart implemented by specifying the minimum * alignment period to use in a time series query. For example, if the data is published once * every 10 minutes it would not make sense to fetch and align data at one minute intervals. This - * field is optional and exists only as a hint.For PromQL queries, this field is used to set the - * minimum interval for the query step, controlling data granularity. Larger values can improve - * performance on long time ranges. See Querying Basics and Range Queries for more details on the - * PromQL step. + * field is optional and exists only as a hint. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minAlignmentPeriod; + private java.lang.String minAlignmentPeriod; /** * Required. The type of sparkchart to show in this chartView. @@ -55,13 +52,10 @@ public final class SparkChartView extends com.google.api.client.json.GenericJson * The lower bound on data point frequency in the chart implemented by specifying the minimum * alignment period to use in a time series query. For example, if the data is published once * every 10 minutes it would not make sense to fetch and align data at one minute intervals. This - * field is optional and exists only as a hint.For PromQL queries, this field is used to set the - * minimum interval for the query step, controlling data granularity. Larger values can improve - * performance on long time ranges. See Querying Basics and Range Queries for more details on the - * PromQL step. + * field is optional and exists only as a hint. * @return value or {@code null} for none */ - public String getMinAlignmentPeriod() { + public java.lang.String getMinAlignmentPeriod() { return minAlignmentPeriod; } @@ -69,13 +63,10 @@ public String getMinAlignmentPeriod() { * The lower bound on data point frequency in the chart implemented by specifying the minimum * alignment period to use in a time series query. For example, if the data is published once * every 10 minutes it would not make sense to fetch and align data at one minute intervals. This - * field is optional and exists only as a hint.For PromQL queries, this field is used to set the - * minimum interval for the query step, controlling data granularity. Larger values can improve - * performance on long time ranges. See Querying Basics and Range Queries for more details on the - * PromQL step. + * field is optional and exists only as a hint. * @param minAlignmentPeriod minAlignmentPeriod or {@code null} for none */ - public SparkChartView setMinAlignmentPeriod(String minAlignmentPeriod) { + public SparkChartView setMinAlignmentPeriod(java.lang.String minAlignmentPeriod) { this.minAlignmentPeriod = minAlignmentPeriod; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TableDataSet.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TableDataSet.java index f6493f98289..c36271cbb45 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TableDataSet.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TableDataSet.java @@ -37,7 +37,7 @@ public final class TableDataSet extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minAlignmentPeriod; + private java.lang.String minAlignmentPeriod; /** * Optional. Table display options for configuring how the table is rendered. @@ -69,7 +69,7 @@ public final class TableDataSet extends com.google.api.client.json.GenericJson { * would not make sense to fetch and align data at one minute intervals. * @return value or {@code null} for none */ - public String getMinAlignmentPeriod() { + public java.lang.String getMinAlignmentPeriod() { return minAlignmentPeriod; } @@ -80,7 +80,7 @@ public String getMinAlignmentPeriod() { * would not make sense to fetch and align data at one minute intervals. * @param minAlignmentPeriod minAlignmentPeriod or {@code null} for none */ - public TableDataSet setMinAlignmentPeriod(String minAlignmentPeriod) { + public TableDataSet setMinAlignmentPeriod(java.lang.String minAlignmentPeriod) { this.minAlignmentPeriod = minAlignmentPeriod; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/XyChart.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/XyChart.java index 0227ce5063b..8045c03acdf 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/XyChart.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/XyChart.java @@ -69,7 +69,7 @@ public final class XyChart extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeshiftDuration; + private java.lang.String timeshiftDuration; /** * The properties applied to the x-axis. @@ -149,7 +149,7 @@ public XyChart setThresholds(java.util.List thresholds) { * positive, and it can only be applied to charts with data sets of LINE plot type. * @return value or {@code null} for none */ - public String getTimeshiftDuration() { + public java.lang.String getTimeshiftDuration() { return timeshiftDuration; } @@ -159,7 +159,7 @@ public String getTimeshiftDuration() { * positive, and it can only be applied to charts with data sets of LINE plot type. * @param timeshiftDuration timeshiftDuration or {@code null} for none */ - public XyChart setTimeshiftDuration(String timeshiftDuration) { + public XyChart setTimeshiftDuration(java.lang.String timeshiftDuration) { this.timeshiftDuration = timeshiftDuration; return this; } diff --git a/clients/google-api-services-monitoring/v1/2.0.0/pom.xml b/clients/google-api-services-monitoring/v1/2.0.0/pom.xml index 5f7a63c5446..2aa94752d77 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/pom.xml +++ b/clients/google-api-services-monitoring/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-monitoring - v1-rev20260402-2.0.0 - Cloud Monitoring API v1-rev20260402-2.0.0 + v1-rev20260302-2.0.0 + Cloud Monitoring API v1-rev20260302-2.0.0 jar 2011 diff --git a/clients/google-api-services-mybusinessverifications/v1/2.0.0/com/google/api/services/mybusinessverifications/v1/model/Verification.java b/clients/google-api-services-mybusinessverifications/v1/2.0.0/com/google/api/services/mybusinessverifications/v1/model/Verification.java index 848a478d07e..70b28341338 100644 --- a/clients/google-api-services-mybusinessverifications/v1/2.0.0/com/google/api/services/mybusinessverifications/v1/model/Verification.java +++ b/clients/google-api-services-mybusinessverifications/v1/2.0.0/com/google/api/services/mybusinessverifications/v1/model/Verification.java @@ -42,7 +42,7 @@ public final class Verification extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The method of the verification. @@ -86,7 +86,7 @@ public Verification setAnnouncement(java.lang.String announcement) { * The timestamp when the verification is requested. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -94,7 +94,7 @@ public String getCreateTime() { * The timestamp when the verification is requested. * @param createTime createTime or {@code null} for none */ - public Verification setCreateTime(String createTime) { + public Verification setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/README.md b/clients/google-api-services-networkconnectivity/v1/2.0.0/README.md index cc47a2a29c1..3fa04b81948 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/README.md +++ b/clients/google-api-services-networkconnectivity/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-networkconnectivity - v1-rev20260326-2.0.0 + v1-rev20260309-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20260326-2.0.0' + implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20260309-2.0.0' } ``` diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java index e287088239f..6ee6502e6a0 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java @@ -461,14 +461,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -492,15 +488,10 @@ public class List extends NetworkconnectivityRequestThe typical use is:

*
        *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
-       *   {@code Networkconnectivity.RemoteTransportProfiles.List request = networkconnectivity.remoteTransportProfiles().list(parameters ...)}
+       *   {@code Networkconnectivity.ServiceClasses.List request = networkconnectivity.serviceClasses().list(parameters ...)}
        * 
* * @return the resource collection */ - public RemoteTransportProfiles remoteTransportProfiles() { - return new RemoteTransportProfiles(); + public ServiceClasses serviceClasses() { + return new ServiceClasses(); } /** - * The "remoteTransportProfiles" collection of methods. + * The "serviceClasses" collection of methods. */ - public class RemoteTransportProfiles { + public class ServiceClasses { /** - * Gets details of a single RemoteTransportProfile. + * Deletes a single ServiceClass. * - * Create a request for the method "remoteTransportProfiles.get". + * Create a request for the method "serviceClasses.delete". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. Name of the resource. + * @param name Required. The name of the ServiceClass to delete. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get extends NetworkconnectivityRequest { + public class Delete extends NetworkconnectivityRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/remoteTransportProfiles/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); /** - * Gets details of a single RemoteTransportProfile. + * Deletes a single ServiceClass. * - * Create a request for the method "remoteTransportProfiles.get". + * Create a request for the method "serviceClasses.delete". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param name Required. Name of the resource. + * @param name Required. The name of the ServiceClass to delete. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.RemoteTransportProfile.class); + protected Delete(java.lang.String name) { + super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/remoteTransportProfiles/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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); } - /** Required. Name of the resource. */ + /** Required. The name of the ServiceClass to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the resource. + /** Required. The name of the ServiceClass to delete. */ public java.lang.String getName() { return name; } - /** Required. Name of the resource. */ - public Get setName(java.lang.String name) { + /** Required. The name of the ServiceClass to delete. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/remoteTransportProfiles/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } this.name = name; return this; } + /** + * Optional. The etag is computed by the server, and may be sent on update and delete + * requests to ensure the client has an up-to-date value before proceeding. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag is computed by the server, and may be sent on update and delete requests to + ensure the client has an up-to-date value before proceeding. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag is computed by the server, and may be sent on update and delete + * requests to ensure the client has an up-to-date value before proceeding. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * after the first 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. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first 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. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * after the first 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. The request ID must be 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); } } /** - * Lists RemoteTransportProfiles in a given project and location. + * Gets details of a single ServiceClass. * - * Create a request for the method "remoteTransportProfiles.list". + * Create a request for the method "serviceClasses.get". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. Parent value for ListRemoteTransportProfilesRequest. + * @param name Required. Name of the ServiceClass to get. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class List extends NetworkconnectivityRequest { + public class Get extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/remoteTransportProfiles"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); /** - * Lists RemoteTransportProfiles in a given project and location. + * Gets details of a single ServiceClass. * - * Create a request for the method "remoteTransportProfiles.list". + * Create a request for the method "serviceClasses.get". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

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

* - * @param parent Required. Parent value for ListRemoteTransportProfilesRequest. + * @param name Required. Name of the ServiceClass to get. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListRemoteTransportProfilesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ServiceClass.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } } @@ -12506,511 +12553,283 @@ 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); } - /** Required. Parent value for ListRemoteTransportProfilesRequest. */ + /** Required. Name of the ServiceClass to get. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. Parent value for ListRemoteTransportProfilesRequest. + /** Required. Name of the ServiceClass to get. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. Parent value for ListRemoteTransportProfilesRequest. */ - public List setParent(java.lang.String parent) { + /** Required. Name of the ServiceClass to get. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. Filtering results. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filtering results. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. Filtering results. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Optional. Hint for how to order the results. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Hint for how to order the results. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** Optional. Hint for how to order the results. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server - will pick an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** Optional. A token identifying a page of results the server should return. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token identifying a page of results the server should return. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Optional. A token identifying a page of results the server should return. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.name = name; 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 ServiceClasses collection. - * - *

The typical use is:

- *
-       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
-       *   {@code Networkconnectivity.ServiceClasses.List request = networkconnectivity.serviceClasses().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public ServiceClasses serviceClasses() { - return new ServiceClasses(); - } - - /** - * The "serviceClasses" collection of methods. - */ - public class ServiceClasses { - /** - * Deletes a single ServiceClass. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "serviceClasses.delete". + * Create a request for the method "serviceClasses.getIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the ServiceClass to delete. + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Delete extends NetworkconnectivityRequest { + public class GetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); /** - * Deletes a single ServiceClass. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "serviceClasses.delete". + * Create a request for the method "serviceClasses.getIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * any optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote * operation.

{@link - * Delete#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 name Required. The name of the ServiceClass to delete. + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } } @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); } - /** Required. The name of the ServiceClass to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the ServiceClass to delete. - */ - public java.lang.String getName() { - return name; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** Required. The name of the ServiceClass to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); - } - this.name = name; - return this; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Optional. The etag is computed by the server, and may be sent on update and delete - * requests to ensure the client has an up-to-date value before proceeding. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String etag; + private java.lang.String resource; - /** Optional. The etag is computed by the server, and may be sent on update and delete requests to - ensure the client has an up-to-date value before proceeding. + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getEtag() { - return etag; + public java.lang.String getResource() { + return resource; } /** - * Optional. The etag is computed by the server, and may be sent on update and delete - * requests to ensure the client has an up-to-date value before proceeding. + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; + 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 " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.String requestId; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - 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 java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - } - /** - * Gets details of a single ServiceClass. - * - * Create a request for the method "serviceClasses.get". - * - * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. Name of the ServiceClass to get. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends NetworkconnectivityRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); /** - * Gets details of a single ServiceClass. - * - * Create a request for the method "serviceClasses.get". - * - * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. Name of the ServiceClass to get. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ServiceClass.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Name of the ServiceClass to get. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Name of the ServiceClass to get. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.String getName() { - return name; - } - - /** Required. Name of the ServiceClass to get. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); - } - this.name = name; + 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); } } /** @@ -13406,14 +13225,14 @@ public Patch setRequestId(java.lang.String requestId) { * the mask. If the user does not provide a mask then all fields will be overwritten. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. Field mask is used to specify the fields to be overwritten in the ServiceClass resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -13423,7 +13242,7 @@ public String getUpdateMask() { * relative to the resource, not the full request. A field will be overwritten if it is in * the mask. If the user does not provide a mask then all fields will be overwritten. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -13433,383 +13252,460 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the ServiceConnectionMaps collection. - * - *

The typical use is:

- *
-       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
-       *   {@code Networkconnectivity.ServiceConnectionMaps.List request = networkconnectivity.serviceConnectionMaps().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public ServiceConnectionMaps serviceConnectionMaps() { - return new ServiceConnectionMaps(); - } - - /** - * The "serviceConnectionMaps" collection of methods. - */ - public class ServiceConnectionMaps { - /** - * Creates a new ServiceConnectionMap in a given project and location. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "serviceConnectionMaps.create". + * Create a request for the method "serviceClasses.setIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param parent Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us- - * east1 - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) throws java.io.IOException { - Create result = new Create(parent, content); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Create extends NetworkconnectivityRequest { + public class SetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/serviceConnectionMaps"; + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); /** - * Creates a new ServiceConnectionMap in a given project and location. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "serviceConnectionMaps.create". + * Create a request for the method "serviceClasses.setIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * any optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

{@link - * Create#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 parent Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us- - * east1 - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) { - super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent resource's name of the ServiceConnectionMap. ex. - * projects/123/locations/us-east1 + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String resource; - /** Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us- - east1 + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getResource() { + return resource; } /** - * Required. The parent resource's name of the ServiceConnectionMap. ex. - * projects/123/locations/us-east1 + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Create setParent(java.lang.String parent) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. Resource ID (i.e. 'foo' in - * '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See - * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not - * provided, one will be generated. - */ - @com.google.api.client.util.Key - private java.lang.String serviceConnectionMapId; - - /** Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See - https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one - will be generated. - */ - public java.lang.String getServiceConnectionMapId() { - return serviceConnectionMapId; - } - - /** - * Optional. Resource ID (i.e. 'foo' in - * '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See - * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not - * provided, one will be generated. - */ - public Create setServiceConnectionMapId(java.lang.String serviceConnectionMapId) { - this.serviceConnectionMapId = serviceConnectionMapId; + this.resource = resource; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a single ServiceConnectionMap. + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "serviceConnectionMaps.delete". + * Create a request for the method "serviceClasses.testIamPermissions". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the ServiceConnectionMap to delete. + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } - public class Delete extends NetworkconnectivityRequest { + public class TestIamPermissions extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); /** - * Deletes a single ServiceConnectionMap. + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "serviceConnectionMaps.delete". + * Create a request for the method "serviceClasses.testIamPermissions". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Delete#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param name Required. The name of the ServiceConnectionMap to delete. + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } } @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); } - /** Required. The name of the ServiceConnectionMap to delete. */ + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. The name of the ServiceConnectionMap to delete. + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } - /** Required. The name of the ServiceConnectionMap to delete. */ - public Delete setName(java.lang.String name) { + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceClasses/[^/]+$"); } - this.name = name; + 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 ServiceConnectionMaps collection. + * + *

The typical use is:

+ *
+       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
+       *   {@code Networkconnectivity.ServiceConnectionMaps.List request = networkconnectivity.serviceConnectionMaps().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public ServiceConnectionMaps serviceConnectionMaps() { + return new ServiceConnectionMaps(); + } + + /** + * The "serviceConnectionMaps" collection of methods. + */ + public class ServiceConnectionMaps { + + /** + * Creates a new ServiceConnectionMap in a given project and location. + * + * Create a request for the method "serviceConnectionMaps.create". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us- + * east1 + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+parent}/serviceConnectionMaps"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** - * Optional. The etag is computed by the server, and may be sent on update and delete - * requests to ensure the client has an up-to-date value before proceeding. + * Creates a new ServiceConnectionMap in a given project and location. + * + * Create a request for the method "serviceConnectionMaps.create". + * + * This request holds the parameters needed by the the networkconnectivity server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us- + * east1 + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource's name of the ServiceConnectionMap. ex. + * projects/123/locations/us-east1 */ @com.google.api.client.util.Key - private java.lang.String etag; + private java.lang.String parent; - /** Optional. The etag is computed by the server, and may be sent on update and delete requests to - ensure the client has an up-to-date value before proceeding. + /** Required. The parent resource's name of the ServiceConnectionMap. ex. projects/123/locations/us- + east1 */ - public java.lang.String getEtag() { - return etag; + public java.lang.String getParent() { + return parent; } /** - * Optional. The etag is computed by the server, and may be sent on update and delete - * requests to ensure the client has an up-to-date value before proceeding. + * Required. The parent resource's name of the ServiceConnectionMap. ex. + * projects/123/locations/us-east1 */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; return this; } @@ -13817,7 +13713,7 @@ public Delete setEtag(java.lang.String etag) { * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial + * since the first 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 @@ -13829,7 +13725,7 @@ public Delete setEtag(java.lang.String etag) { /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first request. For + completed. The server will guarantee that for at least 60 minutes since the first 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 @@ -13844,41 +13740,69 @@ public java.lang.String getRequestId() { * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial + * since the first 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. The request ID must be 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 Create setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** + * Optional. Resource ID (i.e. 'foo' in + * '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See + * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not + * provided, one will be generated. + */ + @com.google.api.client.util.Key + private java.lang.String serviceConnectionMapId; + + /** Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See + https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one + will be generated. + */ + public java.lang.String getServiceConnectionMapId() { + return serviceConnectionMapId; + } + + /** + * Optional. Resource ID (i.e. 'foo' in + * '[...]/projects/p/locations/l/serviceConnectionMaps/foo') See + * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not + * provided, one will be generated. + */ + public Create setServiceConnectionMapId(java.lang.String serviceConnectionMapId) { + this.serviceConnectionMapId = serviceConnectionMapId; + return this; + } + @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Gets details of a single ServiceConnectionMap. + * Deletes a single ServiceConnectionMap. * - * Create a request for the method "serviceConnectionMaps.get". + * Create a request for the method "serviceConnectionMaps.delete". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. Name of the ServiceConnectionMap to get. + * @param name Required. The name of the ServiceConnectionMap to delete. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get extends NetworkconnectivityRequest { + public class Delete extends NetworkconnectivityRequest { private static final String REST_PATH = "v1/{+name}"; @@ -13886,21 +13810,21 @@ public class Get extends NetworkconnectivityRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

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

* - * @param name Required. Name of the ServiceConnectionMap to get. + * @param name Required. The name of the ServiceConnectionMap to delete. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap.class); + protected Delete(java.lang.String name) { + super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -13910,82 +13834,72 @@ protected Get(java.lang.String name) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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); } - /** Required. Name of the ServiceConnectionMap to get. */ + /** Required. The name of the ServiceConnectionMap to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the ServiceConnectionMap to get. + /** Required. The name of the ServiceConnectionMap to delete. */ public java.lang.String getName() { return name; } - /** Required. Name of the ServiceConnectionMap to get. */ - public Get setName(java.lang.String name) { + /** Required. The name of the ServiceConnectionMap to delete. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -13995,56 +13909,122 @@ public Get setName(java.lang.String name) { return this; } + /** + * Optional. The etag is computed by the server, and may be sent on update and delete + * requests to ensure the client has an up-to-date value before proceeding. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag is computed by the server, and may be sent on update and delete requests to + ensure the client has an up-to-date value before proceeding. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag is computed by the server, and may be sent on update and delete + * requests to ensure the client has an up-to-date value before proceeding. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * after the first 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. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first 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. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * after the first 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. The request ID must be 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); } } /** - * Lists ServiceConnectionMaps in a given project and location. + * Gets details of a single ServiceConnectionMap. * - * Create a request for the method "serviceConnectionMaps.list". + * Create a request for the method "serviceConnectionMaps.get". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 + * @param name Required. Name of the ServiceConnectionMap to get. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class List extends NetworkconnectivityRequest { + public class Get extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/serviceConnectionMaps"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); /** - * Lists ServiceConnectionMaps in a given project and location. + * Gets details of a single ServiceConnectionMap. * - * Create a request for the method "serviceConnectionMaps.list". + * Create a request for the method "serviceConnectionMaps.get". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. *

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

* - * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 + * @param name Required. Name of the ServiceConnectionMap to get. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListServiceConnectionMapsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); } } @@ -14059,367 +14039,1005 @@ 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); } - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ + /** Required. Name of the ServiceConnectionMap to get. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 + /** Required. Name of the ServiceConnectionMap to get. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ - public List setParent(java.lang.String parent) { + /** Required. Name of the ServiceConnectionMap to get. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** A filter expression that filters the results listed in the response. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters the results listed in the response. - */ - public java.lang.String getFilter() { - return filter; - } - - /** A filter expression that filters the results listed in the response. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Sort the results by a certain order. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sort the results by a certain order. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** Sort the results by a certain order. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** The maximum number of results per page that should be returned. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of results per page that should be returned. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The maximum number of results per page that should be returned. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates the parameters of a single ServiceConnectionMap. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "serviceConnectionMaps.patch". + * Create a request for the method "serviceConnectionMaps.getIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param name Immutable. The name of a ServiceConnectionMap. Format: - * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} - * See: https://google.aip.dev/122#fields-representing-resource-names - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) throws java.io.IOException { - Patch result = new Patch(name, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Patch extends NetworkconnectivityRequest { + public class GetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); /** - * Updates the parameters of a single ServiceConnectionMap. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "serviceConnectionMaps.patch". + * Create a request for the method "serviceConnectionMaps.getIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * any optional parameters, call the {@link GetIamPolicy#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.

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

* - * @param name Immutable. The name of a ServiceConnectionMap. Format: - * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} - * See: https://google.aip.dev/122#fields-representing-resource-names - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) { - super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); } } @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) 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); } /** - * Immutable. The name of a ServiceConnectionMap. Format: - * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} - * See: https://google.aip.dev/122#fields-representing-resource-names + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Immutable. The name of a ServiceConnectionMap. Format: - projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: - https://google.aip.dev/122#fields-representing-resource-names + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Immutable. The name of a ServiceConnectionMap. Format: - * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} - * See: https://google.aip.dev/122#fields-representing-resource-names + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Patch setName(java.lang.String name) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.String requestId; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + 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); + } + } + /** + * Lists ServiceConnectionMaps in a given project and location. + * + * Create a request for the method "serviceConnectionMaps.list". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+parent}/serviceConnectionMaps"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists ServiceConnectionMaps in a given project and location. + * + * Create a request for the method "serviceConnectionMaps.list". + * + * This request holds the parameters needed by the the networkconnectivity server. After setting + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListServiceConnectionMapsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** A filter expression that filters the results listed in the response. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters the results listed in the response. + */ + public java.lang.String getFilter() { + return filter; + } + + /** A filter expression that filters the results listed in the response. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Sort the results by a certain order. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sort the results by a certain order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Sort the results by a certain order. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The maximum number of results per page that should be returned. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results per page that should be returned. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results per page that should be returned. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single ServiceConnectionMap. + * + * Create a request for the method "serviceConnectionMaps.patch". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. The name of a ServiceConnectionMap. Format: + * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} + * See: https://google.aip.dev/122#fields-representing-resource-names + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + + /** + * Updates the parameters of a single ServiceConnectionMap. + * + * Create a request for the method "serviceConnectionMaps.patch". + * + * This request holds the parameters needed by the the networkconnectivity 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 name Immutable. The name of a ServiceConnectionMap. Format: + * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} + * See: https://google.aip.dev/122#fields-representing-resource-names + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionMap content) { + super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + } + } + + @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); + } + + /** + * Immutable. The name of a ServiceConnectionMap. Format: + * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} + * See: https://google.aip.dev/122#fields-representing-resource-names + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The name of a ServiceConnectionMap. Format: + projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: + https://google.aip.dev/122#fields-representing-resource-names + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The name of a ServiceConnectionMap. Format: + * projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} + * See: https://google.aip.dev/122#fields-representing-resource-names + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * since the first 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. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * since the first 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. 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; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * ServiceConnectionMap resource by the update. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be overwritten if it + * is in the mask. If the user does not provide a mask then all fields will be + * overwritten. + */ + @com.google.api.client.util.Key + private java.lang.String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionMap + resource by the update. The fields specified in the update_mask are relative to the resource, not + the full request. A field will be overwritten if it is in the mask. If the user does not provide a + mask then all fields will be overwritten. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * ServiceConnectionMap resource by the update. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be overwritten if it + * is in the mask. If the user does not provide a mask then all fields will be + * overwritten. + */ + public Patch setUpdateMask(java.lang.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. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "serviceConnectionMaps.setIamPolicy". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "serviceConnectionMaps.setIamPolicy". + * + * This request holds the parameters needed by the the networkconnectivity server. After setting + * any optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + } + } + + @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); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + } + 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. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "serviceConnectionMaps.testIamPermissions". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "serviceConnectionMaps.testIamPermissions". + * + * This request holds the parameters needed by the the networkconnectivity 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.ser + * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + } + } + + @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); } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * ServiceConnectionMap resource by the update. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be overwritten if it - * is in the mask. If the user does not provide a mask then all fields will be - * overwritten. + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionMap - resource by the update. The fields specified in the update_mask are relative to the resource, not - the full request. A field will be overwritten if it is in the mask. If the user does not provide a - mask then all fields will be overwritten. + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * ServiceConnectionMap resource by the update. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be overwritten if it - * is in the mask. If the user does not provide a mask then all fields will be - * overwritten. + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + 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 " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionMaps/[^/]+$"); + } + 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); } } @@ -15004,564 +15622,315 @@ public Get setAccessToken(java.lang.String accessToken) { } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Name of the ServiceConnectionPolicy to get. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Name of the ServiceConnectionPolicy to get. - */ - public java.lang.String getName() { - return name; - } - - /** Required. Name of the ServiceConnectionPolicy to get. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists ServiceConnectionPolicies in a given project and location. - * - * Create a request for the method "serviceConnectionPolicies.list". - * - * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends NetworkconnectivityRequest { - - private static final String REST_PATH = "v1/{+parent}/serviceConnectionPolicies"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Lists ServiceConnectionPolicies in a given project and location. - * - * Create a request for the method "serviceConnectionPolicies.list". - * - * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListServiceConnectionPoliciesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } - /** A filter expression that filters the results listed in the response. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters the results listed in the response. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** A filter expression that filters the results listed in the response. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - /** Sort the results by a certain order. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Sort the results by a certain order. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - /** Sort the results by a certain order. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** The maximum number of results per page that should be returned. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** The maximum number of results per page that should be returned. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** The maximum number of results per page that should be returned. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** The page token. */ + /** Required. Name of the ServiceConnectionPolicy to get. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String name; - /** The page token. + /** Required. Name of the ServiceConnectionPolicy to get. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getName() { + return name; } - /** The page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Required. Name of the ServiceConnectionPolicy to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); + } + this.name = name; 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 parameters of a single ServiceConnectionPolicy. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "serviceConnectionPolicies.patch". + * Create a request for the method "serviceConnectionPolicies.getIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param name Immutable. The name of a ServiceConnectionPolicy. Format: - * projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_poli - * cy} See: https://google.aip.dev/122#fields-representing-resource-names - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy content) throws java.io.IOException { - Patch result = new Patch(name, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Patch extends NetworkconnectivityRequest { + public class GetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); /** - * Updates the parameters of a single ServiceConnectionPolicy. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "serviceConnectionPolicies.patch". + * Create a request for the method "serviceConnectionPolicies.getIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * any optional parameters, call the {@link GetIamPolicy#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.

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

* - * @param name Immutable. The name of a ServiceConnectionPolicy. Format: - * projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_poli - * cy} See: https://google.aip.dev/122#fields-representing-resource-names - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy content) { - super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); } } @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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } - /** - * Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/ - * {location}/serviceConnectionPolicies/{service_connection_policy} See: - * https://google.aip.dev/122#fields-representing-resource-names - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Immutable. The name of a ServiceConnectionPolicy. Format: - projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: - https://google.aip.dev/122#fields-representing-resource-names - */ - public java.lang.String getName() { - return name; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** - * Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/ - * {location}/serviceConnectionPolicies/{service_connection_policy} See: - * https://google.aip.dev/122#fields-representing-resource-names - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); - } - this.name = name; - return this; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request 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; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * ServiceConnectionPolicy resource by the update. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be overwritten if it - * is in the mask. If the user does not provide a mask then all fields will be - * overwritten. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private String updateMask; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionPolicy - resource by the update. The fields specified in the update_mask are relative to the resource, not - the full request. A field will be overwritten if it is in the mask. If the user does not provide a - mask then all fields will be overwritten. + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public String getUpdateMask() { - return updateMask; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * ServiceConnectionPolicy resource by the update. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be overwritten if it - * is in the mask. If the user does not provide a mask then all fields will be - * overwritten. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the ServiceConnectionTokens collection. - * - *

The typical use is:

- *
-       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
-       *   {@code Networkconnectivity.ServiceConnectionTokens.List request = networkconnectivity.serviceConnectionTokens().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public ServiceConnectionTokens serviceConnectionTokens() { - return new ServiceConnectionTokens(); - } - - /** - * The "serviceConnectionTokens" collection of methods. - */ - public class ServiceConnectionTokens { - /** - * Creates a new ServiceConnectionToken in a given project and location. + * Lists ServiceConnectionPolicies in a given project and location. * - * Create a request for the method "serviceConnectionTokens.create". + * Create a request for the method "serviceConnectionPolicies.list". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us- - * east1 - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken} + * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends NetworkconnectivityRequest { + public class List extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/serviceConnectionTokens"; + private static final String REST_PATH = "v1/{+parent}/serviceConnectionPolicies"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a new ServiceConnectionToken in a given project and location. + * Lists ServiceConnectionPolicies in a given project and location. * - * Create a request for the method "serviceConnectionTokens.create". + * Create a request for the method "serviceConnectionPolicies.list". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Create#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param parent Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us- - * east1 - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken} + * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken content) { - super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + protected List(java.lang.String parent) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListServiceConnectionPoliciesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -15571,79 +15940,82 @@ protected Create(java.lang.String parent, com.google.api.services.networkconnect } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** - * Required. The parent resource's name of the ServiceConnectionToken. ex. - * projects/123/locations/us-east1 - */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us- - east1 + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ public java.lang.String getParent() { return parent; } - /** - * Required. The parent resource's name of the ServiceConnectionToken. ex. - * projects/123/locations/us-east1 - */ - public Create setParent(java.lang.String parent) { + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + @@ -15653,234 +16025,220 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** A filter expression that filters the results listed in the response. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters the results listed in the response. */ + public java.lang.String getFilter() { + return filter; + } + + /** A filter expression that filters the results listed in the response. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Sort the results by a certain order. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Sort the results by a certain order. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Sort the results by a certain order. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The maximum number of results per page that should be returned. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results per page that should be returned. */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results per page that should be returned. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** - * Optional. Resource ID (i.e. 'foo' in - * '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See - * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not - * provided, one will be generated. - */ + /** The page token. */ @com.google.api.client.util.Key - private java.lang.String serviceConnectionTokenId; + private java.lang.String pageToken; - /** Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') - See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, - one will be generated. + /** The page token. */ - public java.lang.String getServiceConnectionTokenId() { - return serviceConnectionTokenId; + public java.lang.String getPageToken() { + return pageToken; } - /** - * Optional. Resource ID (i.e. 'foo' in - * '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See - * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not - * provided, one will be generated. - */ - public Create setServiceConnectionTokenId(java.lang.String serviceConnectionTokenId) { - this.serviceConnectionTokenId = serviceConnectionTokenId; + /** The page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes a single ServiceConnectionToken. + * Updates the parameters of a single ServiceConnectionPolicy. * - * Create a request for the method "serviceConnectionTokens.delete". + * Create a request for the method "serviceConnectionPolicies.patch". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the ServiceConnectionToken to delete. + * @param name Immutable. The name of a ServiceConnectionPolicy. Format: + * projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_poli + * cy} See: https://google.aip.dev/122#fields-representing-resource-names + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Delete extends NetworkconnectivityRequest { + public class Patch extends NetworkconnectivityRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); /** - * Deletes a single ServiceConnectionToken. + * Updates the parameters of a single ServiceConnectionPolicy. * - * Create a request for the method "serviceConnectionTokens.delete". + * Create a request for the method "serviceConnectionPolicies.patch". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

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

* - * @param name Required. The name of the ServiceConnectionToken to delete. + * @param name Immutable. The name of a ServiceConnectionPolicy. Format: + * projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_poli + * cy} See: https://google.aip.dev/122#fields-representing-resource-names + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionPolicy content) { + super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); } } @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); } - /** Required. The name of the ServiceConnectionToken to delete. */ + /** + * Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/ + * {location}/serviceConnectionPolicies/{service_connection_policy} See: + * https://google.aip.dev/122#fields-representing-resource-names + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the ServiceConnectionToken to delete. + /** Immutable. The name of a ServiceConnectionPolicy. Format: + projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: + https://google.aip.dev/122#fields-representing-resource-names */ public java.lang.String getName() { return name; } - /** Required. The name of the ServiceConnectionToken to delete. */ - public Delete setName(java.lang.String name) { + /** + * Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/ + * {location}/serviceConnectionPolicies/{service_connection_policy} See: + * https://google.aip.dev/122#fields-representing-resource-names + */ + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); } this.name = name; return this; } - /** - * Optional. The etag is computed by the server, and may be sent on update and delete - * requests to ensure the client has an up-to-date value before proceeding. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** Optional. The etag is computed by the server, and may be sent on update and delete requests to - ensure the client has an up-to-date value before proceeding. - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Optional. The etag is computed by the server, and may be sent on update and delete - * requests to ensure the client has an up-to-date value before proceeding. - */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - /** * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial + * since the first 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 @@ -15892,7 +16250,7 @@ public Delete setEtag(java.lang.String etag) { /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first request. For + completed. The server will guarantee that for at least 60 minutes since the first 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 @@ -15907,400 +16265,390 @@ public java.lang.String getRequestId() { * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial + * since the first 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. The request ID must be 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; } + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * ServiceConnectionPolicy resource by the update. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be overwritten if it + * is in the mask. If the user does not provide a mask then all fields will be + * overwritten. + */ + @com.google.api.client.util.Key + private java.lang.String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionPolicy + resource by the update. The fields specified in the update_mask are relative to the resource, not + the full request. A field will be overwritten if it is in the mask. If the user does not provide a + mask then all fields will be overwritten. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * ServiceConnectionPolicy resource by the update. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be overwritten if it + * is in the mask. If the user does not provide a mask then all fields will be + * overwritten. + */ + public Patch setUpdateMask(java.lang.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); } } /** - * Gets details of a single ServiceConnectionToken. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "serviceConnectionTokens.get". + * Create a request for the method "serviceConnectionPolicies.setIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param name Required. Name of the ServiceConnectionToken to get. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Get extends NetworkconnectivityRequest { + public class SetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); /** - * Gets details of a single ServiceConnectionToken. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "serviceConnectionTokens.get". + * Create a request for the method "serviceConnectionPolicies.setIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - *

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

+ * 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 name Required. Name of the ServiceConnectionToken to get. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.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); } - /** Required. Name of the ServiceConnectionToken to get. */ + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. Name of the ServiceConnectionToken to get. + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } - /** Required. Name of the ServiceConnectionToken to get. */ - public Get setName(java.lang.String name) { + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); } - this.name = name; + 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); } } /** - * Lists ServiceConnectionTokens in a given project and location. + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "serviceConnectionTokens.list". + * Create a request for the method "serviceConnectionPolicies.testIamPermissions". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation. * - * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } - public class List extends NetworkconnectivityRequest { + public class TestIamPermissions extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/serviceConnectionTokens"; + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); /** - * Lists ServiceConnectionTokens in a given project and location. + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "serviceConnectionTokens.list". + * Create a request for the method "serviceConnectionPolicies.testIamPermissions". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListServiceConnectionTokensResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** A filter expression that filters the results listed in the response. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters the results listed in the response. - */ - public java.lang.String getFilter() { - return filter; - } - - /** A filter expression that filters the results listed in the response. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Sort the results by a certain order. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sort the results by a certain order. - */ - public java.lang.String getOrderBy() { - return orderBy; + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } - /** Sort the results by a certain order. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } - /** The maximum number of results per page that should be returned. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - /** The maximum number of results per page that should be returned. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } - /** The maximum number of results per page that should be returned. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } - /** The page token. */ + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String resource; - /** The page token. + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getResource() { + return resource; } - /** The page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionPolicies/[^/]+$"); + } + 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 Spokes collection. + * An accessor for creating requests from the ServiceConnectionTokens collection. * *

The typical use is:

*
        *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
-       *   {@code Networkconnectivity.Spokes.List request = networkconnectivity.spokes().list(parameters ...)}
+       *   {@code Networkconnectivity.ServiceConnectionTokens.List request = networkconnectivity.serviceConnectionTokens().list(parameters ...)}
        * 
* * @return the resource collection */ - public Spokes spokes() { - return new Spokes(); + public ServiceConnectionTokens serviceConnectionTokens() { + return new ServiceConnectionTokens(); } /** - * The "spokes" collection of methods. + * The "serviceConnectionTokens" collection of methods. */ - public class Spokes { + public class ServiceConnectionTokens { /** - * Creates a Network Connectivity Center spoke. + * Creates a new ServiceConnectionToken in a given project and location. * - * Create a request for the method "spokes.create". + * Create a request for the method "serviceConnectionTokens.create". * * This request holds the parameters needed by the networkconnectivity server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Spoke} + * @param parent Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us- + * east1 + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.Spoke content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; @@ -16308,15 +16656,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkcon public class Create extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/spokes"; + private static final String REST_PATH = "v1/{+parent}/serviceConnectionTokens"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a Network Connectivity Center spoke. + * Creates a new ServiceConnectionToken in a given project and location. * - * Create a request for the method "spokes.create". + * Create a request for the method "serviceConnectionTokens.create". * * This request holds the parameters needed by the the networkconnectivity server. After setting * any optional parameters, call the {@link Create#execute()} method to invoke the remote @@ -16324,11 +16672,12 @@ public class Create extends NetworkconnectivityRequest * - * @param parent Required. The parent resource. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Spoke} + * @param parent Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us- + * east1 + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.Spoke content) { + protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken content) { super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { @@ -16393,17 +16742,24 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource. */ + /** + * Required. The parent resource's name of the ServiceConnectionToken. ex. + * projects/123/locations/us-east1 + */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource. + /** Required. The parent resource's name of the ServiceConnectionToken. ex. projects/123/locations/us- + east1 */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource. */ + /** + * Required. The parent resource's name of the ServiceConnectionToken. ex. + * projects/123/locations/us-east1 + */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -16415,64 +16771,73 @@ public Create setParent(java.lang.String parent) { } /** - * Optional. A request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server knows to ignore the request if it has already been - * completed. The server guarantees that a request doesn't result in creation of duplicate - * commitments for at least 60 minutes. For example, consider a situation where you make - * an initial request and the request times out. If you make the request again with the - * same request ID, the server can check to see whether the original operation was - * received. If it was, the server ignores the second request. This behavior prevents - * clients from mistakenly creating duplicate commitments. The request ID must be a valid - * UUID, with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * since the first 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. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; - /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server knows to ignore the request if it has already been completed. The server - guarantees that a request doesn't result in creation of duplicate commitments for at least 60 - minutes. For example, consider a situation where you make an initial request and the request times - out. If you make the request again with the same request ID, the server can check to see whether - the original operation was received. If it was, the server ignores the second request. This - behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a - valid UUID, with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; } /** - * Optional. A request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server knows to ignore the request if it has already been - * completed. The server guarantees that a request doesn't result in creation of duplicate - * commitments for at least 60 minutes. For example, consider a situation where you make - * an initial request and the request times out. If you make the request again with the - * same request ID, the server can check to see whether the original operation was - * received. If it was, the server ignores the second request. This behavior prevents - * clients from mistakenly creating duplicate commitments. The request ID must be a valid - * UUID, with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * since the first 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. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ public Create setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** Required. Unique id for the spoke to create. */ + /** + * Optional. Resource ID (i.e. 'foo' in + * '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See + * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not + * provided, one will be generated. + */ @com.google.api.client.util.Key - private java.lang.String spokeId; + private java.lang.String serviceConnectionTokenId; - /** Required. Unique id for the spoke to create. + /** Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') + See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, + one will be generated. */ - public java.lang.String getSpokeId() { - return spokeId; + public java.lang.String getServiceConnectionTokenId() { + return serviceConnectionTokenId; } - /** Required. Unique id for the spoke to create. */ - public Create setSpokeId(java.lang.String spokeId) { - this.spokeId = spokeId; + /** + * Optional. Resource ID (i.e. 'foo' in + * '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See + * https://google.aip.dev/122#resource-id-segments Unique per location. If one is not + * provided, one will be generated. + */ + public Create setServiceConnectionTokenId(java.lang.String serviceConnectionTokenId) { + this.serviceConnectionTokenId = serviceConnectionTokenId; return this; } @@ -16482,14 +16847,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a Network Connectivity Center spoke. + * Deletes a single ServiceConnectionToken. * - * Create a request for the method "spokes.delete". + * Create a request for the method "serviceConnectionTokens.delete". * * This request holds the parameters needed by the networkconnectivity server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the spoke to delete. + * @param name Required. The name of the ServiceConnectionToken to delete. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -16503,12 +16868,12 @@ public class Delete extends NetworkconnectivityRequest * - * @param name Required. The name of the spoke to delete. + * @param name Required. The name of the ServiceConnectionToken to delete. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -16525,7 +16890,7 @@ protected Delete(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); } } @@ -16584,67 +16949,87 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the spoke to delete. */ + /** Required. The name of the ServiceConnectionToken to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the spoke to delete. + /** Required. The name of the ServiceConnectionToken to delete. */ public java.lang.String getName() { return name; } - /** Required. The name of the spoke to delete. */ + /** Required. The name of the ServiceConnectionToken to delete. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); } this.name = name; return this; } /** - * Optional. A request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server knows to ignore the request if it has already been - * completed. The server guarantees that a request doesn't result in creation of duplicate - * commitments for at least 60 minutes. For example, consider a situation where you make - * an initial request and the request times out. If you make the request again with the - * same request ID, the server can check to see whether the original operation was - * received. If it was, the server ignores the second request. This behavior prevents - * clients from mistakenly creating duplicate commitments. The request ID must be a valid - * UUID, with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Optional. The etag is computed by the server, and may be sent on update and delete + * requests to ensure the client has an up-to-date value before proceeding. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag is computed by the server, and may be sent on update and delete requests to + ensure the client has an up-to-date value before proceeding. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag is computed by the server, and may be sent on update and delete + * requests to ensure the client has an up-to-date value before proceeding. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * after the first 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. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; - /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server knows to ignore the request if it has already been completed. The server - guarantees that a request doesn't result in creation of duplicate commitments for at least 60 - minutes. For example, consider a situation where you make an initial request and the request times - out. If you make the request again with the same request ID, the server can check to see whether - the original operation was received. If it was, the server ignores the second request. This - behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a - valid UUID, with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first 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. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; } /** - * Optional. A request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server knows to ignore the request if it has already been - * completed. The server guarantees that a request doesn't result in creation of duplicate - * commitments for at least 60 minutes. For example, consider a situation where you make - * an initial request and the request times out. If you make the request again with the - * same request ID, the server can check to see whether the original operation was - * received. If it was, the server ignores the second request. This behavior prevents - * clients from mistakenly creating duplicate commitments. The request ID must be a valid - * UUID, with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes + * after the first 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. The request ID must be 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; @@ -16657,14 +17042,14 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details about a Network Connectivity Center spoke. + * Gets details of a single ServiceConnectionToken. * - * Create a request for the method "spokes.get". + * Create a request for the method "serviceConnectionTokens.get". * * This request holds the parameters needed by the networkconnectivity server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the spoke resource. + * @param name Required. Name of the ServiceConnectionToken to get. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -16673,17 +17058,17 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkconnectivityRequest { + public class Get extends NetworkconnectivityRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); /** - * Gets details about a Network Connectivity Center spoke. + * Gets details of a single ServiceConnectionToken. * - * Create a request for the method "spokes.get". + * Create a request for the method "serviceConnectionTokens.get". * * This request holds the parameters needed by the the networkconnectivity server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. @@ -16691,16 +17076,16 @@ public class Get extends NetworkconnectivityRequest * - * @param name Required. The name of the spoke resource. + * @param name Required. Name of the ServiceConnectionToken to get. * @since 1.13 */ protected Get(java.lang.String name) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Spoke.class); + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ServiceConnectionToken.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); } } @@ -16766,243 +17151,44 @@ public Get setUploadType(java.lang.String uploadType) { @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the spoke resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the spoke resource. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the spoke resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "spokes.getIamPolicy". - * - * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends NetworkconnectivityRequest { - - private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); - - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - * Create a request for the method "spokes.getIamPolicy". - * - * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); - } - this.resource = resource; - return this; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /** Required. Name of the ServiceConnectionToken to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the ServiceConnectionToken to get. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getName() { + return name; } - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** Required. Name of the ServiceConnectionToken to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/serviceConnectionTokens/[^/]+$"); + } + this.name = name; 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); } } /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists ServiceConnectionTokens in a given project and location. * - * Create a request for the method "spokes.list". + * Create a request for the method "serviceConnectionTokens.list". * * This request holds the parameters needed by the networkconnectivity server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource. + * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -17011,17 +17197,17 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkconnectivityRequest { + public class List extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/spokes"; + private static final String REST_PATH = "v1/{+parent}/serviceConnectionTokens"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists ServiceConnectionTokens in a given project and location. * - * Create a request for the method "spokes.list". + * Create a request for the method "serviceConnectionTokens.list". * * This request holds the parameters needed by the the networkconnectivity server. After setting * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. @@ -17029,11 +17215,11 @@ public class List extends NetworkconnectivityRequest * - * @param parent Required. The parent resource. + * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 * @since 1.13 */ protected List(java.lang.String parent) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListSpokesResponse.class); + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListServiceConnectionTokensResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -17107,17 +17293,17 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource. */ + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource. + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource. */ + /** Required. The parent resource's name. ex. projects/123/locations/us-east1 */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -17128,17 +17314,17 @@ public List setParent(java.lang.String parent) { return this; } - /** An expression that filters the list of results. */ + /** A filter expression that filters the results listed in the response. */ @com.google.api.client.util.Key private java.lang.String filter; - /** An expression that filters the list of results. + /** A filter expression that filters the results listed in the response. */ public java.lang.String getFilter() { return filter; } - /** An expression that filters the list of results. */ + /** A filter expression that filters the results listed in the response. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; @@ -17160,17 +17346,17 @@ public List setOrderBy(java.lang.String orderBy) { return this; } - /** The maximum number of results to return per page. */ + /** The maximum number of results per page that should be returned. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of results to return per page. + /** The maximum number of results per page that should be returned. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The maximum number of results to return per page. */ + /** The maximum number of results per page that should be returned. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; @@ -17197,138 +17383,151 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Spokes collection. + * + *

The typical use is:

+ *
+       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
+       *   {@code Networkconnectivity.Spokes.List request = networkconnectivity.spokes().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Spokes spokes() { + return new Spokes(); + } + + /** + * The "spokes" collection of methods. + */ + public class Spokes { + /** - * Updates the parameters of a Network Connectivity Center spoke. + * Creates a Network Connectivity Center spoke. * - * Create a request for the method "spokes.patch". + * Create a request for the method "spokes.create". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Immutable. The name of the spoke. Spoke names must be unique. They use the following form: - * `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + * @param parent Required. The parent resource. * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Spoke} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.Spoke content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.Spoke content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Patch extends NetworkconnectivityRequest { + public class Create extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/spokes"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates the parameters of a Network Connectivity Center spoke. + * Creates a Network Connectivity Center spoke. * - * Create a request for the method "spokes.patch". + * Create a request for the method "spokes.create". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * any optional parameters, call the {@link Create#execute()} method to invoke the remote * operation.

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

* - * @param name Immutable. The name of the spoke. Spoke names must be unique. They use the following form: - * `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + * @param parent Required. The parent resource. * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Spoke} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.Spoke content) { - super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.Spoke content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** - * Immutable. The name of the spoke. Spoke names must be unique. They use the following - * form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}` - */ + /** Required. The parent resource. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Immutable. The name of the spoke. Spoke names must be unique. They use the following form: - `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + /** Required. The parent resource. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** - * Immutable. The name of the spoke. Spoke names must be unique. They use the following - * form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}` - */ - public Patch setName(java.lang.String name) { + /** Required. The parent resource. */ + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @@ -17373,1281 +17572,1261 @@ public java.lang.String getRequestId() { * UUID, with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Create setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** - * Optional. In the case of an update to an existing spoke, field mask is used to specify - * the fields to be overwritten. The fields specified in the update_mask are relative to - * the resource, not the full request. A field is overwritten if it is in the mask. If the - * user does not provide a mask, then all fields are overwritten. - */ + /** Required. Unique id for the spoke to create. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String spokeId; - /** Optional. In the case of an update to an existing spoke, field mask is used to specify the fields - to be overwritten. The fields specified in the update_mask are relative to the resource, not the - full request. A field is overwritten if it is in the mask. If the user does not provide a mask, - then all fields are overwritten. + /** Required. Unique id for the spoke to create. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getSpokeId() { + return spokeId; } - /** - * Optional. In the case of an update to an existing spoke, field mask is used to specify - * the fields to be overwritten. The fields specified in the update_mask are relative to - * the resource, not the full request. A field is overwritten if it is in the mask. If the - * user does not provide a mask, then all fields are overwritten. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** Required. Unique id for the spoke to create. */ + public Create setSpokeId(java.lang.String spokeId) { + this.spokeId = spokeId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Deletes a Network Connectivity Center spoke. * - * Create a request for the method "spokes.setIamPolicy". + * Create a request for the method "spokes.delete". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} + * @param name Required. The name of the spoke to delete. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class SetIamPolicy extends NetworkconnectivityRequest { + public class Delete extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Deletes a Network Connectivity Center spoke. * - * Create a request for the method "spokes.setIamPolicy". + * Create a request for the method "spokes.delete". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * any optional parameters, call the {@link Delete#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.

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

* - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} + * @param name Required. The name of the spoke to delete. * @since 1.13 */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) { - super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Delete(java.lang.String name) { + super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name 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(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } } @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); + } + + /** Required. The name of the spoke to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the spoke to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the spoke to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + } + this.name = name; + return this; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees that a request doesn't result in creation of duplicate + * commitments for at least 60 minutes. For example, consider a situation where you make + * an initial request and the request times out. If you make the request again with the + * same request ID, the server can check to see whether the original operation was + * received. If it was, the server ignores the second request. This behavior prevents + * clients from mistakenly creating duplicate commitments. The request ID must be a valid + * UUID, 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; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server knows to ignore the request if it has already been completed. The server + guarantees that a request doesn't result in creation of duplicate commitments for at least 60 + minutes. For example, consider a situation where you make an initial request and the request times + out. If you make the request again with the same request ID, the server can check to see whether + the original operation was received. If it was, the server ignores the second request. This + behavior prevents clients from mistakenly creating duplicate commitments. The request 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; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees that a request doesn't result in creation of duplicate + * commitments for at least 60 minutes. For example, consider a situation where you make + * an initial request and the request times out. If you make the request again with the + * same request ID, the server can check to see whether the original operation was + * received. If it was, the server ignores the second request. This behavior prevents + * clients from mistakenly creating duplicate commitments. The request ID must be a valid + * UUID, with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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 " + - "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); - } - this.resource = resource; + 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); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Gets details about a Network Connectivity Center spoke. * - * Create a request for the method "spokes.testIamPermissions". + * Create a request for the method "spokes.get". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} + * @param name Required. The name of the spoke resource. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class TestIamPermissions extends NetworkconnectivityRequest { + public class Get extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. + * Gets details about a Network Connectivity Center spoke. * - * Create a request for the method "spokes.testIamPermissions". + * Create a request for the method "spokes.get". * * This request holds the parameters needed by the the networkconnectivity 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.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} + * @param name Required. The name of the spoke resource. * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) { - super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Get(java.lang.String name) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Spoke.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name 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(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } } @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 Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ + /** Required. The name of the spoke resource. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the spoke resource. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Required. The name of the spoke resource. */ + public Get setName(java.lang.String name) { 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(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } - this.resource = resource; + this.name = name; 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 Transports collection. - * - *

The typical use is:

- *
-       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
-       *   {@code Networkconnectivity.Transports.List request = networkconnectivity.transports().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Transports transports() { - return new Transports(); - } - - /** - * The "transports" collection of methods. - */ - public class Transports { - /** - * Creates a new Transport in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "transports.create". + * Create a request for the method "spokes.getIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param parent Required. Value for parent. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Transport} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.Transport content) throws java.io.IOException { - Create result = new Create(parent, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Create extends NetworkconnectivityRequest { + public class GetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/transports"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); /** - * Creates a new Transport in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "transports.create". + * Create a request for the method "spokes.getIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * any optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote * operation.

{@link - * Create#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 parent Required. Value for parent. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Transport} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.Transport content) { - super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } - /** Required. Value for parent. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Value for parent. - */ - public java.lang.String getParent() { - return parent; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** Required. Value for parent. */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + } + this.resource = resource; return this; } - /** Required. Id of the requesting object */ - @com.google.api.client.util.Key - private java.lang.String transportId; + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - /** Required. Id of the requesting object + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.String getTransportId() { - return transportId; - } - - /** Required. Id of the requesting object */ - public Create setTransportId(java.lang.String transportId) { - this.transportId = transportId; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a single Transport. + * Lists the Network Connectivity Center spokes in a specified project and location. * - * Create a request for the method "transports.delete". + * Create a request for the method "spokes.list". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. Name of the resource. + * @param parent Required. The parent resource. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends NetworkconnectivityRequest { + public class List extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/spokes"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deletes a single Transport. + * Lists the Network Connectivity Center spokes in a specified project and location. * - * Create a request for the method "transports.delete". + * Create a request for the method "spokes.list". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Delete#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param name Required. Name of the resource. + * @param parent Required. The parent resource. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListSpokesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @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); } - /** Required. Name of the resource. */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. Name of the resource. + /** Required. The parent resource. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. Name of the resource. */ - public Delete setName(java.lang.String name) { + /** Required. The parent resource. */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** An expression that filters the list of results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** An expression that filters the list of results. */ + public java.lang.String getFilter() { + return filter; + } + + /** An expression that filters the list of results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Sort the results by a certain order. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Sort the results by a certain order. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Sort the results by a certain order. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** The maximum number of results to return per page. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return per page. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return per page. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; 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); } } /** - * Gets details of a single Transport. + * Updates the parameters of a Network Connectivity Center spoke. * - * Create a request for the method "transports.get". + * Create a request for the method "spokes.patch". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. Name of the resource. + * @param name Immutable. The name of the spoke. Spoke names must be unique. They use the following form: + * `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Spoke} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.Spoke content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends NetworkconnectivityRequest { + public class Patch extends NetworkconnectivityRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); /** - * Gets details of a single Transport. + * Updates the parameters of a Network Connectivity Center spoke. * - * Create a request for the method "transports.get". + * Create a request for the method "spokes.patch". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - *

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

+ * 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 name Required. Name of the resource. + * @param name Immutable. The name of the spoke. Spoke names must be unique. They use the following form: + * `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Spoke} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.Transport.class); + protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.Spoke content) { + super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + } } @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); } - /** Required. Name of the resource. */ + /** + * Immutable. The name of the spoke. Spoke names must be unique. They use the following + * form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the resource. + /** Immutable. The name of the spoke. Spoke names must be unique. They use the following form: + `projects/{project_number}/locations/{region}/spokes/{spoke_id}` */ public java.lang.String getName() { return name; } - /** Required. Name of the resource. */ - public Get setName(java.lang.String name) { + /** + * Immutable. The name of the spoke. Spoke names must be unique. They use the following + * form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}` + */ + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } this.name = name; return this; } + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees that a request doesn't result in creation of duplicate + * commitments for at least 60 minutes. For example, consider a situation where you make + * an initial request and the request times out. If you make the request again with the + * same request ID, the server can check to see whether the original operation was + * received. If it was, the server ignores the second request. This behavior prevents + * clients from mistakenly creating duplicate commitments. The request ID must be a valid + * UUID, with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server knows to ignore the request if it has already been completed. The server + guarantees that a request doesn't result in creation of duplicate commitments for at least 60 + minutes. For example, consider a situation where you make an initial request and the request times + out. If you make the request again with the same request ID, the server can check to see whether + the original operation was received. If it was, the server ignores the second request. This + behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a + valid UUID, with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees that a request doesn't result in creation of duplicate + * commitments for at least 60 minutes. For example, consider a situation where you make + * an initial request and the request times out. If you make the request again with the + * same request ID, the server can check to see whether the original operation was + * received. If it was, the server ignores the second request. This behavior prevents + * clients from mistakenly creating duplicate 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; + } + + /** + * Optional. In the case of an update to an existing spoke, field mask is used to specify + * the fields to be overwritten. The fields specified in the update_mask are relative to + * the resource, not the full request. A field is overwritten if it is in the mask. If the + * user does not provide a mask, then all fields are overwritten. + */ + @com.google.api.client.util.Key + private java.lang.String updateMask; + + /** Optional. In the case of an update to an existing spoke, field mask is used to specify the fields + to be overwritten. The fields specified in the update_mask are relative to the resource, not the + full request. A field is overwritten if it is in the mask. If the user does not provide a mask, + then all fields are overwritten. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** + * Optional. In the case of an update to an existing spoke, field mask is used to specify + * the fields to be overwritten. The fields specified in the update_mask are relative to + * the resource, not the full request. A field is overwritten if it is in the mask. If the + * user does not provide a mask, then all fields are overwritten. + */ + public Patch setUpdateMask(java.lang.String updateMask) { + this.updateMask = updateMask; + 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); } } /** - * Lists Transports in a given project and location. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "transports.list". + * Create a request for the method "spokes.setIamPolicy". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param parent Required. Parent value for ListTransportsRequest. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class List extends NetworkconnectivityRequest { + public class SetIamPolicy extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+parent}/transports"; + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); /** - * Lists Transports in a given project and location. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "transports.list". + * Create a request for the method "spokes.setIamPolicy". * * This request holds the parameters needed by the the networkconnectivity server. After setting - * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. - *

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

+ * 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 parent Required. Parent value for ListTransportsRequest. + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListTransportsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.SetIamPolicyRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Parent value for ListTransportsRequest. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Parent value for ListTransportsRequest. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Parent value for ListTransportsRequest. */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } - /** Optional. Filtering results. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filtering results. - */ - public java.lang.String getFilter() { - return filter; + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } - /** Optional. Filtering results. */ - 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); } - /** Optional. Hint for how to order the results. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } - /** Optional. Hint for how to order the results. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } - /** Optional. Hint for how to order the results. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Optional. Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String resource; - /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server - will pick an appropriate default. + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getResource() { + return resource; } /** - * Optional. Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** Optional. A token identifying a page of results the server should return. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token identifying a page of results the server should return. + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Optional. A token identifying a page of results the server should return. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + 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 " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + } + 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); } } /** - * Updates the parameters of a single Transport. + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "transports.patch". + * Create a request for the method "spokes.testIamPermissions". * * This request holds the parameters needed by the networkconnectivity server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation. * - * @param name Identifier. Name of the resource. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Transport} + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.Transport content) throws java.io.IOException { - Patch result = new Patch(name, content); + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } - public class Patch extends NetworkconnectivityRequest { + public class TestIamPermissions extends NetworkconnectivityRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); /** - * Updates the parameters of a single Transport. + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "transports.patch". + * Create a request for the method "spokes.testIamPermissions". * * This request holds the parameters needed by the the networkconnectivity 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.

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

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

* - * @param name Identifier. Name of the resource. - * @param content the {@link com.google.api.services.networkconnectivity.v1.model.Transport} + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkconnectivity.v1.model.Transport content) { - super(Networkconnectivity.this, "PATCH", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsRequest content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); } } @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); - } - - /** Identifier. Name of the resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. Name of the resource. - */ - public java.lang.String getName() { - return name; - } - - /** Identifier. Name of the resource. */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/transports/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes since the first 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. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * since the first 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. 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; + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Optional. Field mask is used to specify the fields to be overwritten in the Transport - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then all fields present in the request will be - * overwritten. + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** Optional. Field mask is used to specify the fields to be overwritten in the Transport resource by - the update. The fields specified in the update_mask are relative to the resource, not the full - request. A field will be overwritten if it is in the mask. If the user does not provide a mask then - all fields present in the request will be overwritten. + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the Transport - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then all fields present in the request will be - * overwritten. + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + 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 " + + "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$"); + } + 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); } } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsCreationSpec.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsCreationSpec.java index e3807a1d041..8a61e112c3d 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsCreationSpec.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsCreationSpec.java @@ -55,7 +55,7 @@ public final class AutomatedDnsCreationSpec extends com.google.api.client.json.G * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * Required. The DNS suffix to use for the DNS record. Must end with a dot. This should be a valid @@ -106,7 +106,7 @@ public AutomatedDnsCreationSpec setHostname(java.lang.String hostname) { * seconds will be used. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -115,7 +115,7 @@ public String getTtl() { * seconds will be used. * @param ttl ttl or {@code null} for none */ - public AutomatedDnsCreationSpec setTtl(String ttl) { + public AutomatedDnsCreationSpec setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsRecord.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsRecord.java index 804eae30f19..096a05fd45b 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsRecord.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/AutomatedDnsRecord.java @@ -43,7 +43,7 @@ public final class AutomatedDnsRecord extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Required. Immutable. The creation mode of the AutomatedDnsRecord. This field is immutable. @@ -182,7 +182,7 @@ public final class AutomatedDnsRecord extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Required. Immutable. The full resource path of the consumer network this AutomatedDnsRecord is @@ -207,7 +207,7 @@ public AutomatedDnsRecord setConsumerNetwork(java.lang.String consumerNetwork) { * Output only. The timestamp of when the record was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -215,7 +215,7 @@ public String getCreateTime() { * Output only. The timestamp of when the record was created. * @param createTime createTime or {@code null} for none */ - public AutomatedDnsRecord setCreateTime(String createTime) { + public AutomatedDnsRecord setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -533,7 +533,7 @@ public AutomatedDnsRecord setStateDetails(java.lang.String stateDetails) { * Output only. The timestamp of when the record was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -541,7 +541,7 @@ public String getUpdateTime() { * Output only. The timestamp of when the record was updated. * @param updateTime updateTime or {@code null} for none */ - public AutomatedDnsRecord setUpdateTime(String updateTime) { + public AutomatedDnsRecord setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Config.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Config.java index 975761527dd..6d24914d1d1 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Config.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Config.java @@ -47,7 +47,7 @@ public final class Config extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * Required. The list of resource record data strings. The content and format of these strings @@ -80,7 +80,7 @@ public Config setRrdatas(java.util.List rrdatas) { * Required. Number of seconds that this DNS record can be cached by resolvers. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -88,7 +88,7 @@ public String getTtl() { * Required. Number of seconds that this DNS record can be cached by resolvers. * @param ttl ttl or {@code null} for none */ - public Config setTtl(String ttl) { + public Config setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Destination.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Destination.java index 346df79e885..98f2201d8dc 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Destination.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Destination.java @@ -36,7 +36,7 @@ public final class Destination extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A description of this resource. @@ -110,13 +110,13 @@ public final class Destination extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Time when the `Destination` resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -124,7 +124,7 @@ public String getCreateTime() { * Output only. Time when the `Destination` resource was created. * @param createTime createTime or {@code null} for none */ - public Destination setCreateTime(String createTime) { + public Destination setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -291,7 +291,7 @@ public Destination setUid(java.lang.String uid) { * Output only. Time when the `Destination` resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -299,7 +299,7 @@ public String getUpdateTime() { * Output only. Time when the `Destination` resource was updated. * @param updateTime updateTime or {@code null} for none */ - public Destination setUpdateTime(String updateTime) { + public Destination setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/DestinationEndpoint.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/DestinationEndpoint.java index 11e742eb105..3492c05aad1 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/DestinationEndpoint.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/DestinationEndpoint.java @@ -56,7 +56,7 @@ public final class DestinationEndpoint extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Required. The ASN of the remote IP prefix. @@ -113,7 +113,7 @@ public DestinationEndpoint setState(java.lang.String state) { * Output only. Time when the `DestinationEndpoint` resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -121,7 +121,7 @@ public String getUpdateTime() { * Output only. Time when the `DestinationEndpoint` resource was updated. * @param updateTime updateTime or {@code null} for none */ - public DestinationEndpoint setUpdateTime(String updateTime) { + public DestinationEndpoint setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Group.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Group.java index 194cb14a007..aff9aba2324 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Group.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Group.java @@ -42,7 +42,7 @@ public final class Group extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. The description of the group. @@ -97,7 +97,7 @@ public final class Group extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The auto-accept setting for this group. @@ -120,7 +120,7 @@ public Group setAutoAccept(AutoAccept autoAccept) { * Output only. The time the group was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -128,7 +128,7 @@ public String getCreateTime() { * Output only. The time the group was created. * @param createTime createTime or {@code null} for none */ - public Group setCreateTime(String createTime) { + public Group setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -251,7 +251,7 @@ public Group setUid(java.lang.String uid) { * Output only. The time the group was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -259,7 +259,7 @@ public String getUpdateTime() { * Output only. The time the group was last updated. * @param updateTime updateTime or {@code null} for none */ - public Group setUpdateTime(String updateTime) { + public Group setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Hub.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Hub.java index 1e534cda60a..6d97d8efceb 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Hub.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Hub.java @@ -39,7 +39,7 @@ public final class Hub extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. An optional description of the hub. @@ -141,13 +141,13 @@ public final class Hub extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time the hub was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -155,7 +155,7 @@ public String getCreateTime() { * Output only. The time the hub was created. * @param createTime createTime or {@code null} for none */ - public Hub setCreateTime(String createTime) { + public Hub setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -387,7 +387,7 @@ public Hub setUniqueId(java.lang.String uniqueId) { * Output only. The time the hub was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -395,7 +395,7 @@ public String getUpdateTime() { * Output only. The time the hub was last updated. * @param updateTime updateTime or {@code null} for none */ - public Hub setUpdateTime(String updateTime) { + public Hub setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/InternalRange.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/InternalRange.java index c46bf323ada..366ecabeca1 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/InternalRange.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/InternalRange.java @@ -45,7 +45,7 @@ public final class InternalRange extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A description of this resource. @@ -155,7 +155,7 @@ public final class InternalRange extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. The type of usage set for this InternalRange. @@ -198,7 +198,7 @@ public InternalRange setAllocationOptions(AllocationOptions allocationOptions) { * Output only. Time when the internal range was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -206,7 +206,7 @@ public String getCreateTime() { * Output only. Time when the internal range was created. * @param createTime createTime or {@code null} for none */ - public InternalRange setCreateTime(String createTime) { + public InternalRange setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -457,7 +457,7 @@ public InternalRange setTargetCidrRange(java.util.List targetC * Output only. Time when the internal range was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -465,7 +465,7 @@ public String getUpdateTime() { * Output only. Time when the internal range was updated. * @param updateTime updateTime or {@code null} for none */ - public InternalRange setUpdateTime(String updateTime) { + public InternalRange setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/MulticloudDataTransferConfig.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/MulticloudDataTransferConfig.java index 54145da01b0..1c1a221813c 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/MulticloudDataTransferConfig.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/MulticloudDataTransferConfig.java @@ -36,7 +36,7 @@ public final class MulticloudDataTransferConfig extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A description of this resource. @@ -110,13 +110,13 @@ public final class MulticloudDataTransferConfig extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Time when the `MulticloudDataTransferConfig` resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -124,7 +124,7 @@ public String getCreateTime() { * Output only. Time when the `MulticloudDataTransferConfig` resource was created. * @param createTime createTime or {@code null} for none */ - public MulticloudDataTransferConfig setCreateTime(String createTime) { + public MulticloudDataTransferConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -291,7 +291,7 @@ public MulticloudDataTransferConfig setUid(java.lang.String uid) { * Output only. Time when the `MulticloudDataTransferConfig` resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -299,7 +299,7 @@ public String getUpdateTime() { * Output only. Time when the `MulticloudDataTransferConfig` resource was updated. * @param updateTime updateTime or {@code null} for none */ - public MulticloudDataTransferConfig setUpdateTime(String updateTime) { + public MulticloudDataTransferConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/OperationMetadata.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/OperationMetadata.java index 44b09a50e7c..2432015d6a4 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/OperationMetadata.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/OperationMetadata.java @@ -42,14 +42,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -102,7 +102,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -110,7 +110,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -119,7 +119,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -127,7 +127,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PolicyBasedRoute.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PolicyBasedRoute.java index 563bad8d680..eaec1a60219 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PolicyBasedRoute.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PolicyBasedRoute.java @@ -37,7 +37,7 @@ public final class PolicyBasedRoute extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. An optional description of this resource. Provide this field when you create the @@ -129,7 +129,7 @@ public final class PolicyBasedRoute extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. VM instances that this policy-based route applies to. @@ -150,7 +150,7 @@ public final class PolicyBasedRoute extends com.google.api.client.json.GenericJs * Output only. Time when the policy-based route was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -158,7 +158,7 @@ public String getCreateTime() { * Output only. Time when the policy-based route was created. * @param createTime createTime or {@code null} for none */ - public PolicyBasedRoute setCreateTime(String createTime) { + public PolicyBasedRoute setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -370,7 +370,7 @@ public PolicyBasedRoute setSelfLink(java.lang.String selfLink) { * Output only. Time when the policy-based route was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -378,7 +378,7 @@ public String getUpdateTime() { * Output only. Time when the policy-based route was updated. * @param updateTime updateTime or {@code null} for none */ - public PolicyBasedRoute setUpdateTime(String updateTime) { + public PolicyBasedRoute setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RegionalEndpoint.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RegionalEndpoint.java index a4f43bdbbe9..313e76a3fa9 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RegionalEndpoint.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RegionalEndpoint.java @@ -53,7 +53,7 @@ public final class RegionalEndpoint extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A description of this resource. @@ -123,7 +123,7 @@ public final class RegionalEndpoint extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Required. The access type of this regional endpoint. This field is reflected in the PSC @@ -171,7 +171,7 @@ public RegionalEndpoint setAddress(java.lang.String address) { * Output only. Time when the RegionalEndpoint was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -179,7 +179,7 @@ public String getCreateTime() { * Output only. Time when the RegionalEndpoint was created. * @param createTime createTime or {@code null} for none */ - public RegionalEndpoint setCreateTime(String createTime) { + public RegionalEndpoint setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -338,7 +338,7 @@ public RegionalEndpoint setTargetGoogleApi(java.lang.String targetGoogleApi) { * Output only. Time when the RegionalEndpoint was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -346,7 +346,7 @@ public String getUpdateTime() { * Output only. Time when the RegionalEndpoint was updated. * @param updateTime updateTime or {@code null} for none */ - public RegionalEndpoint setUpdateTime(String updateTime) { + public RegionalEndpoint setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Route.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Route.java index cf1f6501a93..047d2ec705b 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Route.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/Route.java @@ -36,7 +36,7 @@ public final class Route extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * An optional description of the route. @@ -159,13 +159,13 @@ public final class Route extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time the route was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -173,7 +173,7 @@ public String getCreateTime() { * Output only. The time the route was created. * @param createTime createTime or {@code null} for none */ - public Route setCreateTime(String createTime) { + public Route setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -459,7 +459,7 @@ public Route setUid(java.lang.String uid) { * Output only. The time the route was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -467,7 +467,7 @@ public String getUpdateTime() { * Output only. The time the route was last updated. * @param updateTime updateTime or {@code null} for none */ - public Route setUpdateTime(String updateTime) { + public Route setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RouteTable.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RouteTable.java index 275d255cf3c..5781504be68 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RouteTable.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/RouteTable.java @@ -35,7 +35,7 @@ public final class RouteTable extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * An optional description of the route table. @@ -83,13 +83,13 @@ public final class RouteTable extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The time the route table was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -97,7 +97,7 @@ public String getCreateTime() { * Output only. The time the route table was created. * @param createTime createTime or {@code null} for none */ - public RouteTable setCreateTime(String createTime) { + public RouteTable setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -203,7 +203,7 @@ public RouteTable setUid(java.lang.String uid) { * Output only. The time the route table was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -211,7 +211,7 @@ public String getUpdateTime() { * Output only. The time the route table was last updated. * @param updateTime updateTime or {@code null} for none */ - public RouteTable setUpdateTime(String updateTime) { + public RouteTable setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceClass.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceClass.java index 54960f416e7..be3e7fdf160 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceClass.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceClass.java @@ -35,7 +35,7 @@ public final class ServiceClass extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * A description of this resource. @@ -81,13 +81,13 @@ public final class ServiceClass extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Time when the ServiceClass was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -95,7 +95,7 @@ public String getCreateTime() { * Output only. Time when the ServiceClass was created. * @param createTime createTime or {@code null} for none */ - public ServiceClass setCreateTime(String createTime) { + public ServiceClass setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -197,7 +197,7 @@ public ServiceClass setServiceClass(java.lang.String serviceClass) { * Output only. Time when the ServiceClass was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -205,7 +205,7 @@ public String getUpdateTime() { * Output only. Time when the ServiceClass was updated. * @param updateTime updateTime or {@code null} for none */ - public ServiceClass setUpdateTime(String updateTime) { + public ServiceClass setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConfig.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConfig.java index 16c2eddb18a..c2e8abfc9ec 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConfig.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConfig.java @@ -43,7 +43,7 @@ public final class ServiceConfig extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String supportEndTime; + private java.lang.String supportEndTime; /** * Output only. The eligibility criteria for the service. @@ -67,7 +67,7 @@ public ServiceConfig setEligibilityCriteria(java.lang.String eligibilityCriteria * time is set. * @return value or {@code null} for none */ - public String getSupportEndTime() { + public java.lang.String getSupportEndTime() { return supportEndTime; } @@ -76,7 +76,7 @@ public String getSupportEndTime() { * time is set. * @param supportEndTime supportEndTime or {@code null} for none */ - public ServiceConfig setSupportEndTime(String supportEndTime) { + public ServiceConfig setSupportEndTime(java.lang.String supportEndTime) { this.supportEndTime = supportEndTime; return this; } diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConnectionMap.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConnectionMap.java index f2f59cd6f1d..ee16f9f3bdc 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConnectionMap.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ServiceConnectionMap.java @@ -61,7 +61,7 @@ public final class ServiceConnectionMap extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * A description of this resource. @@ -143,7 +143,7 @@ public final class ServiceConnectionMap extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * The PSC configurations on consumer side. @@ -183,7 +183,7 @@ public ServiceConnectionMap setConsumerPscConnections(java.util.Listcom.google.apis google-api-services-networkconnectivity - v1-rev20260326-2.0.0 - Network Connectivity API v1-rev20260326-2.0.0 + v1-rev20260309-2.0.0 + Network Connectivity API v1-rev20260309-2.0.0 jar 2011 diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/README.md b/clients/google-api-services-networksecurity/v1/2.0.0/README.md index 3ce45d49731..c3e5bae4f26 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/README.md +++ b/clients/google-api-services-networksecurity/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-networksecurity - v1-rev20260407-2.0.0 + v1-rev20260226-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networksecurity:v1-rev20260407-2.0.0' + implementation 'com.google.apis:google-api-services-networksecurity:v1-rev20260226-2.0.0' } ``` diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/NetworkSecurity.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/NetworkSecurity.java index abd3956259a..c58bf08e2be 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/NetworkSecurity.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/NetworkSecurity.java @@ -1596,14 +1596,14 @@ public Patch setRequestId(java.lang.String requestId) { * the mask. If the user does not provide a mask then all fields will be overwritten. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Optional. Field mask is used to specify the fields to be overwritten in the AddressGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -1613,7 +1613,7 @@ public String getUpdateMask() { * relative to the resource, not the full request. A field will be overwritten if it is in * the mask. If the user does not provide a mask then all fields will be overwritten. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -2678,14 +2678,14 @@ public Patch setRequestId(java.lang.String requestId) { * the user does not provide a mask then all fields will be overwritten. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Field mask is used to specify the fields to be overwritten in the Endpoint resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -2695,7 +2695,7 @@ public String getUpdateMask() { * resource, not the full request. A field will be overwritten if it is in the mask. If * the user does not provide a mask then all fields will be overwritten. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -4202,13 +4202,13 @@ public Patch setName(java.lang.String name) { * is in the mask. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Field mask is used to specify the fields to be overwritten in the SecurityProfileGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -4218,7 +4218,7 @@ public String getUpdateMask() { * are relative to the resource, not the full request. A field will be overwritten if it * is in the mask. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -5056,13 +5056,13 @@ public Patch setName(java.lang.String name) { * the mask. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Field mask is used to specify the fields to be overwritten in the SecurityProfile resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -5072,7 +5072,7 @@ public String getUpdateMask() { * relative to the resource, not the full request. A field will be overwritten if it is in * the mask. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -5266,14 +5266,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -5297,15 +5293,10 @@ public class List extends NetworkSecurityRequest rules) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -206,7 +206,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public AuthorizationPolicy setUpdateTime(String updateTime) { + public AuthorizationPolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicy.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicy.java index beb735ea240..46813f9ff7f 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicy.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicy.java @@ -51,7 +51,7 @@ public final class AuthzPolicy extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Required if the action is `CUSTOM`. Allows delegating authorization decisions to @@ -94,14 +94,6 @@ public final class AuthzPolicy extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; - /** - * Optional. Immutable. Defines the type of authorization being performed. If not specified, - * `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policyProfile; - /** * Required. Specifies the set of resources to which this policy should be applied to. * The value may be {@code null}. @@ -114,7 +106,7 @@ public final class AuthzPolicy extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`. When the action is `CUSTOM`, @@ -155,7 +147,7 @@ public AuthzPolicy setAction(java.lang.String action) { * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -163,7 +155,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public AuthzPolicy setCreateTime(String createTime) { + public AuthzPolicy setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -265,25 +257,6 @@ public AuthzPolicy setName(java.lang.String name) { return this; } - /** - * Optional. Immutable. Defines the type of authorization being performed. If not specified, - * `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created. - * @return value or {@code null} for none - */ - public java.lang.String getPolicyProfile() { - return policyProfile; - } - - /** - * Optional. Immutable. Defines the type of authorization being performed. If not specified, - * `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created. - * @param policyProfile policyProfile or {@code null} for none - */ - public AuthzPolicy setPolicyProfile(java.lang.String policyProfile) { - this.policyProfile = policyProfile; - return this; - } - /** * Required. Specifies the set of resources to which this policy should be applied to. * @return value or {@code null} for none @@ -305,7 +278,7 @@ public AuthzPolicy setTarget(AuthzPolicyTarget target) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -313,7 +286,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public AuthzPolicy setUpdateTime(String updateTime) { + public AuthzPolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicyAuthzRuleToRequestOperation.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicyAuthzRuleToRequestOperation.java index 379bc164e8a..998c52676d5 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicyAuthzRuleToRequestOperation.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicyAuthzRuleToRequestOperation.java @@ -51,15 +51,6 @@ public final class AuthzPolicyAuthzRuleToRequestOperation extends com.google.api com.google.api.client.util.Data.nullOf(AuthzPolicyAuthzRuleStringMatch.class); } - /** - * Optional. Defines the MCP protocol attributes to match on. If the MCP payload in the request - * body cannot be successfully parsed, the request will be denied. This field can be set only for - * AuthzPolicies targeting AgentGateway resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AuthzPolicyAuthzRuleToRequestOperationMCP mcp; - /** * Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name * (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case @@ -124,27 +115,6 @@ public AuthzPolicyAuthzRuleToRequestOperation setHosts(java.util.List resources; /** - * Optional. All gateways and forwarding rules referenced by this policy and extensions must share - * the same load balancing scheme. Required only when targeting forwarding rules. If targeting - * Secure Web Proxy, this field must be `INTERNAL_MANAGED` or not specified. Must not be specified - * when targeting Agent Gateway. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For - * more information, refer to [Backend services overview](https://cloud.google.com/load- + * Required. All gateways and forwarding rules referenced by this policy and extensions must share + * the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. + * For more information, refer to [Backend services overview](https://cloud.google.com/load- * balancing/docs/backend-service). * @return value or {@code null} for none */ @@ -63,11 +58,9 @@ public java.lang.String getLoadBalancingScheme() { } /** - * Optional. All gateways and forwarding rules referenced by this policy and extensions must share - * the same load balancing scheme. Required only when targeting forwarding rules. If targeting - * Secure Web Proxy, this field must be `INTERNAL_MANAGED` or not specified. Must not be specified - * when targeting Agent Gateway. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For - * more information, refer to [Backend services overview](https://cloud.google.com/load- + * Required. All gateways and forwarding rules referenced by this policy and extensions must share + * the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. + * For more information, refer to [Backend services overview](https://cloud.google.com/load- * balancing/docs/backend-service). * @param loadBalancingScheme loadBalancingScheme or {@code null} for none */ @@ -77,8 +70,7 @@ public AuthzPolicyTarget setLoadBalancingScheme(java.lang.String loadBalancingSc } /** - * Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent - * Gateways on which this policy will be applied. + * Required. A list of references to the Forwarding Rules on which this policy will be applied. * @return value or {@code null} for none */ public java.util.List getResources() { @@ -86,8 +78,7 @@ public java.util.List getResources() { } /** - * Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent - * Gateways on which this policy will be applied. + * Required. A list of references to the Forwarding Rules on which this policy will be applied. * @param resources resources or {@code null} for none */ public AuthzPolicyTarget setResources(java.util.List resources) { diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/BackendAuthenticationConfig.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/BackendAuthenticationConfig.java index 95ed8ed62fa..b7ec36b7f09 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/BackendAuthenticationConfig.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/BackendAuthenticationConfig.java @@ -52,7 +52,7 @@ public final class BackendAuthenticationConfig extends com.google.api.client.jso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Free-text description of the resource. @@ -99,7 +99,7 @@ public final class BackendAuthenticationConfig extends com.google.api.client.jso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Well known roots to use for server certificate validation. @@ -137,7 +137,7 @@ public BackendAuthenticationConfig setClientCertificate(java.lang.String clientC * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -145,7 +145,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public BackendAuthenticationConfig setCreateTime(String createTime) { + public BackendAuthenticationConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -249,7 +249,7 @@ public BackendAuthenticationConfig setTrustConfig(java.lang.String trustConfig) * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -257,7 +257,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public BackendAuthenticationConfig setUpdateTime(String updateTime) { + public BackendAuthenticationConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/ClientTlsPolicy.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/ClientTlsPolicy.java index 4ceeb4fe113..009bca09b68 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/ClientTlsPolicy.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/ClientTlsPolicy.java @@ -44,7 +44,7 @@ public final class ClientTlsPolicy extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Free-text description of the resource. @@ -89,7 +89,7 @@ public final class ClientTlsPolicy extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Defines a mechanism to provision client identity (public and private keys) for peer @@ -114,7 +114,7 @@ public ClientTlsPolicy setClientCertificate(GoogleCloudNetworksecurityV1Certific * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -122,7 +122,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public ClientTlsPolicy setCreateTime(String createTime) { + public ClientTlsPolicy setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -222,7 +222,7 @@ public ClientTlsPolicy setSni(java.lang.String sni) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -230,7 +230,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public ClientTlsPolicy setUpdateTime(String updateTime) { + public ClientTlsPolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/DnsThreatDetector.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/DnsThreatDetector.java index 2653cdc4e78..66cd257e7d9 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/DnsThreatDetector.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/DnsThreatDetector.java @@ -36,7 +36,7 @@ public final class DnsThreatDetector extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. @@ -72,13 +72,13 @@ public final class DnsThreatDetector extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. Create time stamp. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -86,7 +86,7 @@ public String getCreateTime() { * Output only. Create time stamp. * @param createTime createTime or {@code null} for none */ - public DnsThreatDetector setCreateTime(String createTime) { + public DnsThreatDetector setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -165,7 +165,7 @@ public DnsThreatDetector setProvider(java.lang.String provider) { * Output only. Update time stamp. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -173,7 +173,7 @@ public String getUpdateTime() { * Output only. Update time stamp. * @param updateTime updateTime or {@code null} for none */ - public DnsThreatDetector setUpdateTime(String updateTime) { + public DnsThreatDetector setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/FirewallEndpoint.java b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/FirewallEndpoint.java index 05de6b4efa7..552356c15df 100644 --- a/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/FirewallEndpoint.java +++ b/clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/FirewallEndpoint.java @@ -48,8 +48,7 @@ public final class FirewallEndpoint extends com.google.api.client.json.GenericJs private java.util.List associations; /** - * Optional. Project to charge for the deployed firewall endpoint. This field must be specified - * when creating the endpoint in the organization scope, and should be omitted otherwise. + * Required. Project to bill on endpoint uptime usage. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,7 +59,7 @@ public final class FirewallEndpoint extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Description of the firewall endpoint. Max length 2048 characters. @@ -123,7 +122,7 @@ public final class FirewallEndpoint extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. List of networks that are associated with this endpoint in the local zone. This is @@ -168,8 +167,7 @@ public FirewallEndpoint setAssociations(java.util.Listcom.google.apis google-api-services-networksecurity - v1-rev20260407-2.0.0 - Network Security API v1-rev20260407-2.0.0 + v1-rev20260226-2.0.0 + Network Security API v1-rev20260226-2.0.0 jar 2011 diff --git a/clients/google-api-services-networkservices/v1/2.0.0/README.md b/clients/google-api-services-networkservices/v1/2.0.0/README.md index a1ccbd9502e..49b46886d46 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/README.md +++ b/clients/google-api-services-networkservices/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-networkservices - v1-rev20260330-2.0.0 + v1-rev20260226-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260330-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260226-2.0.0' } ``` diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java index 2d0c6bc491e..77e5e92cd30 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends NetworkServicesRequest addresses; - /** - * Optional. If true, the Gateway will listen on all ports. This is mutually exclusive with the - * `ports` field. This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allPorts; - - /** - * Optional. If true, the gateway will allow traffic from clients outside of the region where the - * gateway is located. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowGlobalAccess; - /** * Optional. A fully-qualified Certificates URL reference. The proxy presents a Certificate * (selected based on SNI) when establishing a TLS connection. This feature only applies to @@ -71,7 +55,7 @@ public final class Gateway extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -194,7 +178,7 @@ public final class Gateway extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive the traffic. When @@ -219,44 +203,6 @@ public Gateway setAddresses(java.util.List addresses) { return this; } - /** - * Optional. If true, the Gateway will listen on all ports. This is mutually exclusive with the - * `ports` field. This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllPorts() { - return allPorts; - } - - /** - * Optional. If true, the Gateway will listen on all ports. This is mutually exclusive with the - * `ports` field. This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. - * @param allPorts allPorts or {@code null} for none - */ - public Gateway setAllPorts(java.lang.Boolean allPorts) { - this.allPorts = allPorts; - return this; - } - - /** - * Optional. If true, the gateway will allow traffic from clients outside of the region where the - * gateway is located. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllowGlobalAccess() { - return allowGlobalAccess; - } - - /** - * Optional. If true, the gateway will allow traffic from clients outside of the region where the - * gateway is located. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. - * @param allowGlobalAccess allowGlobalAccess or {@code null} for none - */ - public Gateway setAllowGlobalAccess(java.lang.Boolean allowGlobalAccess) { - this.allowGlobalAccess = allowGlobalAccess; - return this; - } - /** * Optional. A fully-qualified Certificates URL reference. The proxy presents a Certificate * (selected based on SNI) when establishing a TLS connection. This feature only applies to @@ -282,7 +228,7 @@ public Gateway setCertificateUrls(java.util.List certificateUr * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -290,7 +236,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public Gateway setCreateTime(String createTime) { + public Gateway setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -573,7 +519,7 @@ public Gateway setType(java.lang.String type) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -581,7 +527,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public Gateway setUpdateTime(String updateTime) { + public Gateway setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRoute.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRoute.java index 79475f9cd4c..11951cdb2e4 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRoute.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRoute.java @@ -35,7 +35,7 @@ public final class GrpcRoute extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -118,13 +118,13 @@ public final class GrpcRoute extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -132,7 +132,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public GrpcRoute setCreateTime(String createTime) { + public GrpcRoute setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -317,7 +317,7 @@ public GrpcRoute setSelfLink(java.lang.String selfLink) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -325,7 +325,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public GrpcRoute setUpdateTime(String updateTime) { + public GrpcRoute setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteFaultInjectionPolicyDelay.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteFaultInjectionPolicyDelay.java index bc5aa38ae05..c5abe366cda 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteFaultInjectionPolicyDelay.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteFaultInjectionPolicyDelay.java @@ -35,7 +35,7 @@ public final class GrpcRouteFaultInjectionPolicyDelay extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String fixedDelay; + private java.lang.String fixedDelay; /** * The percentage of traffic on which delay will be injected. The value must be between [0, 100] @@ -48,7 +48,7 @@ public final class GrpcRouteFaultInjectionPolicyDelay extends com.google.api.cli * Specify a fixed delay before forwarding the request. * @return value or {@code null} for none */ - public String getFixedDelay() { + public java.lang.String getFixedDelay() { return fixedDelay; } @@ -56,7 +56,7 @@ public String getFixedDelay() { * Specify a fixed delay before forwarding the request. * @param fixedDelay fixedDelay or {@code null} for none */ - public GrpcRouteFaultInjectionPolicyDelay setFixedDelay(String fixedDelay) { + public GrpcRouteFaultInjectionPolicyDelay setFixedDelay(java.lang.String fixedDelay) { this.fixedDelay = fixedDelay; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteRouteAction.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteRouteAction.java index 1ad58f86226..5e0980e0396 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteRouteAction.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteRouteAction.java @@ -64,7 +64,7 @@ public final class GrpcRouteRouteAction extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String idleTimeout; + private java.lang.String idleTimeout; /** * Optional. Specifies the retry policy associated with this route. @@ -87,7 +87,7 @@ public final class GrpcRouteRouteAction extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * Optional. The destination services to which traffic should be forwarded. If multiple @@ -144,7 +144,7 @@ public GrpcRouteRouteAction setFaultInjectionPolicy(GrpcRouteFaultInjectionPolic * disabled. * @return value or {@code null} for none */ - public String getIdleTimeout() { + public java.lang.String getIdleTimeout() { return idleTimeout; } @@ -155,7 +155,7 @@ public String getIdleTimeout() { * disabled. * @param idleTimeout idleTimeout or {@code null} for none */ - public GrpcRouteRouteAction setIdleTimeout(String idleTimeout) { + public GrpcRouteRouteAction setIdleTimeout(java.lang.String idleTimeout) { this.idleTimeout = idleTimeout; return this; } @@ -200,7 +200,7 @@ public GrpcRouteRouteAction setStatefulSessionAffinity(GrpcRouteStatefulSessionA * processed. Timeout includes all retries. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -210,7 +210,7 @@ public String getTimeout() { * processed. Timeout includes all retries. * @param timeout timeout or {@code null} for none */ - public GrpcRouteRouteAction setTimeout(String timeout) { + public GrpcRouteRouteAction setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteStatefulSessionAffinityPolicy.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteStatefulSessionAffinityPolicy.java index f78d2c1e502..53d9d7bc178 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteStatefulSessionAffinityPolicy.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/GrpcRouteStatefulSessionAffinityPolicy.java @@ -41,7 +41,7 @@ public final class GrpcRouteStatefulSessionAffinityPolicy extends com.google.api * The value may be {@code null}. */ @com.google.api.client.util.Key - private String cookieTtl; + private java.lang.String cookieTtl; /** * Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The @@ -49,7 +49,7 @@ public final class GrpcRouteStatefulSessionAffinityPolicy extends com.google.api * this to 0s to use a session cookie and disable cookie expiration. * @return value or {@code null} for none */ - public String getCookieTtl() { + public java.lang.String getCookieTtl() { return cookieTtl; } @@ -59,7 +59,7 @@ public String getCookieTtl() { * this to 0s to use a session cookie and disable cookie expiration. * @param cookieTtl cookieTtl or {@code null} for none */ - public GrpcRouteStatefulSessionAffinityPolicy setCookieTtl(String cookieTtl) { + public GrpcRouteStatefulSessionAffinityPolicy setCookieTtl(java.lang.String cookieTtl) { this.cookieTtl = cookieTtl; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRoute.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRoute.java index fc38a9e1b16..f418defc6e1 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRoute.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRoute.java @@ -35,7 +35,7 @@ public final class HttpRoute extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -117,13 +117,13 @@ public final class HttpRoute extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -131,7 +131,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public HttpRoute setCreateTime(String createTime) { + public HttpRoute setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -314,7 +314,7 @@ public HttpRoute setSelfLink(java.lang.String selfLink) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -322,7 +322,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public HttpRoute setUpdateTime(String updateTime) { + public HttpRoute setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteFaultInjectionPolicyDelay.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteFaultInjectionPolicyDelay.java index 8f7d2abc408..0580c7caf45 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteFaultInjectionPolicyDelay.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteFaultInjectionPolicyDelay.java @@ -35,7 +35,7 @@ public final class HttpRouteFaultInjectionPolicyDelay extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String fixedDelay; + private java.lang.String fixedDelay; /** * The percentage of traffic on which delay will be injected. The value must be between [0, 100] @@ -48,7 +48,7 @@ public final class HttpRouteFaultInjectionPolicyDelay extends com.google.api.cli * Specify a fixed delay before forwarding the request. * @return value or {@code null} for none */ - public String getFixedDelay() { + public java.lang.String getFixedDelay() { return fixedDelay; } @@ -56,7 +56,7 @@ public String getFixedDelay() { * Specify a fixed delay before forwarding the request. * @param fixedDelay fixedDelay or {@code null} for none */ - public HttpRouteFaultInjectionPolicyDelay setFixedDelay(String fixedDelay) { + public HttpRouteFaultInjectionPolicyDelay setFixedDelay(java.lang.String fixedDelay) { this.fixedDelay = fixedDelay; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRetryPolicy.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRetryPolicy.java index 444bd08241a..29b9b6a8015 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRetryPolicy.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRetryPolicy.java @@ -42,7 +42,7 @@ public final class HttpRouteRetryPolicy extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String perTryTimeout; + private java.lang.String perTryTimeout; /** * Specifies one or more conditions when this retry policy applies. Valid values are: 5xx: Proxy @@ -83,7 +83,7 @@ public HttpRouteRetryPolicy setNumRetries(java.lang.Integer numRetries) { * Specifies a non-zero timeout per retry attempt. * @return value or {@code null} for none */ - public String getPerTryTimeout() { + public java.lang.String getPerTryTimeout() { return perTryTimeout; } @@ -91,7 +91,7 @@ public String getPerTryTimeout() { * Specifies a non-zero timeout per retry attempt. * @param perTryTimeout perTryTimeout or {@code null} for none */ - public HttpRouteRetryPolicy setPerTryTimeout(String perTryTimeout) { + public HttpRouteRetryPolicy setPerTryTimeout(java.lang.String perTryTimeout) { this.perTryTimeout = perTryTimeout; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRouteAction.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRouteAction.java index 1ee83608770..3fdf97f0164 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRouteAction.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteRouteAction.java @@ -76,7 +76,7 @@ public final class HttpRouteRouteAction extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String idleTimeout; + private java.lang.String idleTimeout; /** * If set, the request is directed as configured by this field. @@ -135,7 +135,7 @@ public final class HttpRouteRouteAction extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * The specification for rewrite URL before forwarding requests to the destination. @@ -229,7 +229,7 @@ public HttpRouteRouteAction setFaultInjectionPolicy(HttpRouteFaultInjectionPolic * disabled. * @return value or {@code null} for none */ - public String getIdleTimeout() { + public java.lang.String getIdleTimeout() { return idleTimeout; } @@ -240,7 +240,7 @@ public String getIdleTimeout() { * disabled. * @param idleTimeout idleTimeout or {@code null} for none */ - public HttpRouteRouteAction setIdleTimeout(String idleTimeout) { + public HttpRouteRouteAction setIdleTimeout(java.lang.String idleTimeout) { this.idleTimeout = idleTimeout; return this; } @@ -369,7 +369,7 @@ public HttpRouteRouteAction setStatefulSessionAffinity(HttpRouteStatefulSessionA * Timeout includes all retries. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -379,7 +379,7 @@ public String getTimeout() { * Timeout includes all retries. * @param timeout timeout or {@code null} for none */ - public HttpRouteRouteAction setTimeout(String timeout) { + public HttpRouteRouteAction setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteStatefulSessionAffinityPolicy.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteStatefulSessionAffinityPolicy.java index 689003069bb..0bbc90e4323 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteStatefulSessionAffinityPolicy.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/HttpRouteStatefulSessionAffinityPolicy.java @@ -41,7 +41,7 @@ public final class HttpRouteStatefulSessionAffinityPolicy extends com.google.api * The value may be {@code null}. */ @com.google.api.client.util.Key - private String cookieTtl; + private java.lang.String cookieTtl; /** * Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The @@ -49,7 +49,7 @@ public final class HttpRouteStatefulSessionAffinityPolicy extends com.google.api * this to 0s to use a session cookie and disable cookie expiration. * @return value or {@code null} for none */ - public String getCookieTtl() { + public java.lang.String getCookieTtl() { return cookieTtl; } @@ -59,7 +59,7 @@ public String getCookieTtl() { * this to 0s to use a session cookie and disable cookie expiration. * @param cookieTtl cookieTtl or {@code null} for none */ - public HttpRouteStatefulSessionAffinityPolicy setCookieTtl(String cookieTtl) { + public HttpRouteStatefulSessionAffinityPolicy setCookieTtl(java.lang.String cookieTtl) { this.cookieTtl = cookieTtl; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbEdgeExtension.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbEdgeExtension.java index c5d14ac1433..85f631fa8d8 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbEdgeExtension.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbEdgeExtension.java @@ -35,7 +35,7 @@ public final class LbEdgeExtension extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A human-readable description of the resource. @@ -99,13 +99,13 @@ public final class LbEdgeExtension extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -113,7 +113,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public LbEdgeExtension setCreateTime(String createTime) { + public LbEdgeExtension setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -242,7 +242,7 @@ public LbEdgeExtension setName(java.lang.String name) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -250,7 +250,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public LbEdgeExtension setUpdateTime(String updateTime) { + public LbEdgeExtension setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbRouteExtension.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbRouteExtension.java index bb7f26a7a83..8c73beec553 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbRouteExtension.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbRouteExtension.java @@ -35,7 +35,7 @@ public final class LbRouteExtension extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A human-readable description of the resource. @@ -116,13 +116,13 @@ public final class LbRouteExtension extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -130,7 +130,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public LbRouteExtension setCreateTime(String createTime) { + public LbRouteExtension setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -296,7 +296,7 @@ public LbRouteExtension setName(java.lang.String name) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -304,7 +304,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public LbRouteExtension setUpdateTime(String updateTime) { + public LbRouteExtension setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbTrafficExtension.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbTrafficExtension.java index 91c23d98e7c..ad5601d2e9d 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbTrafficExtension.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/LbTrafficExtension.java @@ -36,7 +36,7 @@ public final class LbTrafficExtension extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A human-readable description of the resource. @@ -118,13 +118,13 @@ public final class LbTrafficExtension extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -132,7 +132,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public LbTrafficExtension setCreateTime(String createTime) { + public LbTrafficExtension setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -300,7 +300,7 @@ public LbTrafficExtension setName(java.lang.String name) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -308,7 +308,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public LbTrafficExtension setUpdateTime(String updateTime) { + public LbTrafficExtension setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/Mesh.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/Mesh.java index 6bb658023f0..3d19066b9d0 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/Mesh.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/Mesh.java @@ -36,7 +36,7 @@ public final class Mesh extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -90,13 +90,13 @@ public final class Mesh extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -104,7 +104,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public Mesh setCreateTime(String createTime) { + public Mesh setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -225,7 +225,7 @@ public Mesh setSelfLink(java.lang.String selfLink) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -233,7 +233,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public Mesh setUpdateTime(String updateTime) { + public Mesh setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/OperationMetadata.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/OperationMetadata.java index 4c9fe774ec1..7167663edb2 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/OperationMetadata.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/OperationMetadata.java @@ -41,14 +41,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -101,7 +101,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -109,7 +109,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -118,7 +118,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -126,7 +126,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceBinding.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceBinding.java index e49095b9be8..3b3e65ca3f7 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceBinding.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceBinding.java @@ -37,7 +37,7 @@ public final class ServiceBinding extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -85,13 +85,13 @@ public final class ServiceBinding extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -99,7 +99,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public ServiceBinding setCreateTime(String createTime) { + public ServiceBinding setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -205,7 +205,7 @@ public ServiceBinding setServiceId(java.lang.String serviceId) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -213,7 +213,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public ServiceBinding setUpdateTime(String updateTime) { + public ServiceBinding setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceLbPolicy.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceLbPolicy.java index 0b998dffe5f..6a705a91a4b 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceLbPolicy.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ServiceLbPolicy.java @@ -43,7 +43,7 @@ public final class ServiceLbPolicy extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -94,7 +94,7 @@ public final class ServiceLbPolicy extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the @@ -119,7 +119,7 @@ public ServiceLbPolicy setAutoCapacityDrain(ServiceLbPolicyAutoCapacityDrain aut * Output only. The timestamp when this resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -127,7 +127,7 @@ public String getCreateTime() { * Output only. The timestamp when this resource was created. * @param createTime createTime or {@code null} for none */ - public ServiceLbPolicy setCreateTime(String createTime) { + public ServiceLbPolicy setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -242,7 +242,7 @@ public ServiceLbPolicy setName(java.lang.String name) { * Output only. The timestamp when this resource was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -250,7 +250,7 @@ public String getUpdateTime() { * Output only. The timestamp when this resource was last updated. * @param updateTime updateTime or {@code null} for none */ - public ServiceLbPolicy setUpdateTime(String updateTime) { + public ServiceLbPolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/SetIamPolicyRequest.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/SetIamPolicyRequest.java index d1ad79d4a82..3a591f46835 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/SetIamPolicyRequest.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/SetIamPolicyRequest.java @@ -45,7 +45,7 @@ public final class SetIamPolicyRequest extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is @@ -74,7 +74,7 @@ public SetIamPolicyRequest setPolicy(Policy policy) { * "bindings, etag"` * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -84,7 +84,7 @@ public String getUpdateMask() { * "bindings, etag"` * @param updateMask updateMask or {@code null} for none */ - public SetIamPolicyRequest setUpdateMask(String updateMask) { + public SetIamPolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRoute.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRoute.java index 660f01374d1..2049b492af9 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRoute.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRoute.java @@ -34,7 +34,7 @@ public final class TcpRoute extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. A free-text description of the resource. Max length 1024 characters. @@ -96,13 +96,13 @@ public final class TcpRoute extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -110,7 +110,7 @@ public String getCreateTime() { * Output only. The timestamp when the resource was created. * @param createTime createTime or {@code null} for none */ - public TcpRoute setCreateTime(String createTime) { + public TcpRoute setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -250,7 +250,7 @@ public TcpRoute setSelfLink(java.lang.String selfLink) { * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -258,7 +258,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public TcpRoute setUpdateTime(String updateTime) { + public TcpRoute setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRouteRouteAction.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRouteRouteAction.java index f647ad198d3..81905607c2f 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRouteRouteAction.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TcpRouteRouteAction.java @@ -46,7 +46,7 @@ public final class TcpRouteRouteAction extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String idleTimeout; + private java.lang.String idleTimeout; /** * Optional. If true, Router will use the destination IP and port of the original connection as @@ -85,7 +85,7 @@ public TcpRouteRouteAction setDestinations(java.util.List targetProxies) * Output only. The timestamp when the resource was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -288,7 +288,7 @@ public String getUpdateTime() { * Output only. The timestamp when the resource was updated. * @param updateTime updateTime or {@code null} for none */ - public TlsRoute setUpdateTime(String updateTime) { + public TlsRoute setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TlsRouteRouteAction.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TlsRouteRouteAction.java index 0dcce13ce2f..8d24249bd1f 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TlsRouteRouteAction.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/TlsRouteRouteAction.java @@ -45,7 +45,7 @@ public final class TlsRouteRouteAction extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String idleTimeout; + private java.lang.String idleTimeout; /** * Required. The destination services to which traffic should be forwarded. At least one @@ -73,7 +73,7 @@ public TlsRouteRouteAction setDestinations(java.util.Listcom.google.apis google-api-services-networkservices - v1-rev20260330-2.0.0 - Network Services API v1-rev20260330-2.0.0 + v1-rev20260226-2.0.0 + Network Services API v1-rev20260226-2.0.0 jar 2011 diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/README.md b/clients/google-api-services-ondemandscanning/v1/2.0.0/README.md index 5949b5dd60a..98b7a5acb03 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/README.md +++ b/clients/google-api-services-ondemandscanning/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-ondemandscanning - v1-rev20260330-2.0.0 + v1-rev20260209-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-ondemandscanning:v1-rev20260330-2.0.0' + implementation 'com.google.apis:google-api-services-ondemandscanning:v1-rev20260209-2.0.0' } ``` diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/OnDemandScanning.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/OnDemandScanning.java index 8c5de0b001b..42f9612c172 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/OnDemandScanning.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/OnDemandScanning.java @@ -971,13 +971,13 @@ public Wait setName(java.lang.String name) { * specified, the shorter one will be used. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -986,7 +986,7 @@ public String getTimeout() { * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also * specified, the shorter one will be used. */ - public Wait setTimeout(String timeout) { + public Wait setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadata.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadata.java index fcf02a14a63..d8bc71ac7dc 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadata.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadata.java @@ -35,7 +35,7 @@ public final class AnalyzePackagesMetadata extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource URI of the container image being scanned. @@ -48,7 +48,7 @@ public final class AnalyzePackagesMetadata extends com.google.api.client.json.Ge * When the scan was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -56,7 +56,7 @@ public String getCreateTime() { * When the scan was created. * @param createTime createTime or {@code null} for none */ - public AnalyzePackagesMetadata setCreateTime(String createTime) { + public AnalyzePackagesMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadataV1.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadataV1.java index b6bc20c4a69..e19f0eb9274 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadataV1.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/AnalyzePackagesMetadataV1.java @@ -35,7 +35,7 @@ public final class AnalyzePackagesMetadataV1 extends com.google.api.client.json. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The resource URI of the container image being scanned. @@ -48,7 +48,7 @@ public final class AnalyzePackagesMetadataV1 extends com.google.api.client.json. * When the scan was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -56,7 +56,7 @@ public String getCreateTime() { * When the scan was created. * @param createTime createTime or {@code null} for none */ - public AnalyzePackagesMetadataV1 setCreateTime(String createTime) { + public AnalyzePackagesMetadataV1 setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildMetadata.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildMetadata.java index d7e03f4a632..0ac4273e1c1 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildMetadata.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildMetadata.java @@ -34,7 +34,7 @@ public final class BuildMetadata extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String finishedOn; + private java.lang.String finishedOn; /** * The value may be {@code null}. @@ -46,19 +46,19 @@ public final class BuildMetadata extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startedOn; + private java.lang.String startedOn; /** * @return value or {@code null} for none */ - public String getFinishedOn() { + public java.lang.String getFinishedOn() { return finishedOn; } /** * @param finishedOn finishedOn or {@code null} for none */ - public BuildMetadata setFinishedOn(String finishedOn) { + public BuildMetadata setFinishedOn(java.lang.String finishedOn) { this.finishedOn = finishedOn; return this; } @@ -81,14 +81,14 @@ public BuildMetadata setInvocationId(java.lang.String invocationId) { /** * @return value or {@code null} for none */ - public String getStartedOn() { + public java.lang.String getStartedOn() { return startedOn; } /** * @param startedOn startedOn or {@code null} for none */ - public BuildMetadata setStartedOn(String startedOn) { + public BuildMetadata setStartedOn(java.lang.String startedOn) { this.startedOn = startedOn; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildProvenance.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildProvenance.java index a4dcbbc8f5d..ee7ea77db38 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildProvenance.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/BuildProvenance.java @@ -71,7 +71,7 @@ public final class BuildProvenance extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * E-mail address of the user who initiated this build. Note that this was the user's e-mail @@ -87,7 +87,7 @@ public final class BuildProvenance extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Required. Unique identifier of the build. @@ -122,7 +122,7 @@ public final class BuildProvenance extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Trigger identifier if the build was triggered automatically; empty if not. @@ -205,7 +205,7 @@ public BuildProvenance setCommands(java.util.List commands) { * Time at which the build was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -213,7 +213,7 @@ public String getCreateTime() { * Time at which the build was created. * @param createTime createTime or {@code null} for none */ - public BuildProvenance setCreateTime(String createTime) { + public BuildProvenance setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -243,7 +243,7 @@ public BuildProvenance setCreator(java.lang.String creator) { * Time at which execution of the build was finished. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -251,7 +251,7 @@ public String getEndTime() { * Time at which execution of the build was finished. * @param endTime endTime or {@code null} for none */ - public BuildProvenance setEndTime(String endTime) { + public BuildProvenance setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -328,7 +328,7 @@ public BuildProvenance setSourceProvenance(Source sourceProvenance) { * Time at which execution of the build was started. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -336,7 +336,7 @@ public String getStartTime() { * Time at which execution of the build was started. * @param startTime startTime or {@code null} for none */ - public BuildProvenance setStartTime(String startTime) { + public BuildProvenance setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DeploymentOccurrence.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DeploymentOccurrence.java index 7502d6a49cb..8fe61042e92 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DeploymentOccurrence.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DeploymentOccurrence.java @@ -49,7 +49,7 @@ public final class DeploymentOccurrence extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deployTime; + private java.lang.String deployTime; /** * Platform hosting this deployment. @@ -71,7 +71,7 @@ public final class DeploymentOccurrence extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String undeployTime; + private java.lang.String undeployTime; /** * Identity of the user that triggered this deployment. @@ -118,7 +118,7 @@ public DeploymentOccurrence setConfig(java.lang.String config) { * Required. Beginning of the lifetime of this deployment. * @return value or {@code null} for none */ - public String getDeployTime() { + public java.lang.String getDeployTime() { return deployTime; } @@ -126,7 +126,7 @@ public String getDeployTime() { * Required. Beginning of the lifetime of this deployment. * @param deployTime deployTime or {@code null} for none */ - public DeploymentOccurrence setDeployTime(String deployTime) { + public DeploymentOccurrence setDeployTime(java.lang.String deployTime) { this.deployTime = deployTime; return this; } @@ -171,7 +171,7 @@ public DeploymentOccurrence setResourceUri(java.util.List reso * End of the lifetime of this deployment. * @return value or {@code null} for none */ - public String getUndeployTime() { + public java.lang.String getUndeployTime() { return undeployTime; } @@ -179,7 +179,7 @@ public String getUndeployTime() { * End of the lifetime of this deployment. * @param undeployTime undeployTime or {@code null} for none */ - public DeploymentOccurrence setUndeployTime(String undeployTime) { + public DeploymentOccurrence setUndeployTime(java.lang.String undeployTime) { this.undeployTime = undeployTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DiscoveryOccurrence.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DiscoveryOccurrence.java index e5cee8a8cac..c64c209255c 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DiscoveryOccurrence.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/DiscoveryOccurrence.java @@ -64,7 +64,7 @@ public final class DiscoveryOccurrence extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String archiveTime; + private java.lang.String archiveTime; /** * Whether the resource is continuously analyzed. @@ -92,14 +92,14 @@ public final class DiscoveryOccurrence extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastScanTime; + private java.lang.String lastScanTime; /** * The last time vulnerability scan results changed. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastVulnerabilityUpdateTime; + private java.lang.String lastVulnerabilityUpdateTime; /** * The status of an SBOM generation. @@ -182,7 +182,7 @@ public DiscoveryOccurrence setAnalysisStatusError(Status analysisStatusError) { * Output only. The time occurrences related to this discovery occurrence were archived. * @return value or {@code null} for none */ - public String getArchiveTime() { + public java.lang.String getArchiveTime() { return archiveTime; } @@ -190,7 +190,7 @@ public String getArchiveTime() { * Output only. The time occurrences related to this discovery occurrence were archived. * @param archiveTime archiveTime or {@code null} for none */ - public DiscoveryOccurrence setArchiveTime(String archiveTime) { + public DiscoveryOccurrence setArchiveTime(java.lang.String archiveTime) { this.archiveTime = archiveTime; return this; } @@ -250,7 +250,7 @@ public DiscoveryOccurrence setFiles(java.util.List files) { * The last time this resource was scanned. * @return value or {@code null} for none */ - public String getLastScanTime() { + public java.lang.String getLastScanTime() { return lastScanTime; } @@ -258,7 +258,7 @@ public String getLastScanTime() { * The last time this resource was scanned. * @param lastScanTime lastScanTime or {@code null} for none */ - public DiscoveryOccurrence setLastScanTime(String lastScanTime) { + public DiscoveryOccurrence setLastScanTime(java.lang.String lastScanTime) { this.lastScanTime = lastScanTime; return this; } @@ -267,7 +267,7 @@ public DiscoveryOccurrence setLastScanTime(String lastScanTime) { * The last time vulnerability scan results changed. * @return value or {@code null} for none */ - public String getLastVulnerabilityUpdateTime() { + public java.lang.String getLastVulnerabilityUpdateTime() { return lastVulnerabilityUpdateTime; } @@ -275,7 +275,7 @@ public String getLastVulnerabilityUpdateTime() { * The last time vulnerability scan results changed. * @param lastVulnerabilityUpdateTime lastVulnerabilityUpdateTime or {@code null} for none */ - public DiscoveryOccurrence setLastVulnerabilityUpdateTime(String lastVulnerabilityUpdateTime) { + public DiscoveryOccurrence setLastVulnerabilityUpdateTime(java.lang.String lastVulnerabilityUpdateTime) { this.lastVulnerabilityUpdateTime = lastVulnerabilityUpdateTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1FileLocation.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1FileLocation.java index 80b77f9ba2d..f07818315de 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1FileLocation.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1FileLocation.java @@ -46,14 +46,6 @@ public final class GrafeasV1FileLocation extends com.google.api.client.json.Gene @com.google.api.client.util.Key private GrafeasV1LayerDetails layerDetails; - /** - * Line number in the file where the package was found. Optional field that only applies to source - * repository scanning. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer lineNumber; - /** * For jars that are contained inside .war files, this filepath can indicate the path to war file * combined with the path to jar file. @@ -92,25 +84,6 @@ public GrafeasV1FileLocation setLayerDetails(GrafeasV1LayerDetails layerDetails) return this; } - /** - * Line number in the file where the package was found. Optional field that only applies to source - * repository scanning. - * @return value or {@code null} for none - */ - public java.lang.Integer getLineNumber() { - return lineNumber; - } - - /** - * Line number in the file where the package was found. Optional field that only applies to source - * repository scanning. - * @param lineNumber lineNumber or {@code null} for none - */ - public GrafeasV1FileLocation setLineNumber(java.lang.Integer lineNumber) { - this.lineNumber = lineNumber; - return this; - } - @Override public GrafeasV1FileLocation set(String fieldName, Object value) { return (GrafeasV1FileLocation) super.set(fieldName, value); diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.java index 3e675427ba8..13e9f7fbc14 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.java @@ -34,7 +34,7 @@ public final class GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata extends com.google * The value may be {@code null}. */ @com.google.api.client.util.Key - private String buildFinishedOn; + private java.lang.String buildFinishedOn; /** * The value may be {@code null}. @@ -46,7 +46,7 @@ public final class GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata extends com.google * The value may be {@code null}. */ @com.google.api.client.util.Key - private String buildStartedOn; + private java.lang.String buildStartedOn; /** * The value may be {@code null}. @@ -63,14 +63,14 @@ public final class GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata extends com.google /** * @return value or {@code null} for none */ - public String getBuildFinishedOn() { + public java.lang.String getBuildFinishedOn() { return buildFinishedOn; } /** * @param buildFinishedOn buildFinishedOn or {@code null} for none */ - public GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata setBuildFinishedOn(String buildFinishedOn) { + public GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata setBuildFinishedOn(java.lang.String buildFinishedOn) { this.buildFinishedOn = buildFinishedOn; return this; } @@ -93,14 +93,14 @@ public GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata setBuildInvocationId(java.lang /** * @return value or {@code null} for none */ - public String getBuildStartedOn() { + public java.lang.String getBuildStartedOn() { return buildStartedOn; } /** * @param buildStartedOn buildStartedOn or {@code null} for none */ - public GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata setBuildStartedOn(String buildStartedOn) { + public GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata setBuildStartedOn(java.lang.String buildStartedOn) { this.buildStartedOn = buildStartedOn; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Metadata.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Metadata.java index bd2574072d6..7eb10bafb7d 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Metadata.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Metadata.java @@ -35,7 +35,7 @@ public final class Metadata extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String buildFinishedOn; + private java.lang.String buildFinishedOn; /** * Identifies the particular build invocation, which can be useful for finding associated logs or @@ -50,7 +50,7 @@ public final class Metadata extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String buildStartedOn; + private java.lang.String buildStartedOn; /** * Indicates that the builder claims certain fields in this message to be complete. @@ -71,7 +71,7 @@ public final class Metadata extends com.google.api.client.json.GenericJson { * The timestamp of when the build completed. * @return value or {@code null} for none */ - public String getBuildFinishedOn() { + public java.lang.String getBuildFinishedOn() { return buildFinishedOn; } @@ -79,7 +79,7 @@ public String getBuildFinishedOn() { * The timestamp of when the build completed. * @param buildFinishedOn buildFinishedOn or {@code null} for none */ - public Metadata setBuildFinishedOn(String buildFinishedOn) { + public Metadata setBuildFinishedOn(java.lang.String buildFinishedOn) { this.buildFinishedOn = buildFinishedOn; return this; } @@ -107,7 +107,7 @@ public Metadata setBuildInvocationId(java.lang.String buildInvocationId) { * The timestamp of when the build started. * @return value or {@code null} for none */ - public String getBuildStartedOn() { + public java.lang.String getBuildStartedOn() { return buildStartedOn; } @@ -115,7 +115,7 @@ public String getBuildStartedOn() { * The timestamp of when the build started. * @param buildStartedOn buildStartedOn or {@code null} for none */ - public Metadata setBuildStartedOn(String buildStartedOn) { + public Metadata setBuildStartedOn(java.lang.String buildStartedOn) { this.buildStartedOn = buildStartedOn; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Occurrence.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Occurrence.java index 8fb37413647..c3be1e92b49 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Occurrence.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/Occurrence.java @@ -30,20 +30,6 @@ @SuppressWarnings("javadoc") public final class Occurrence extends com.google.api.client.json.GenericJson { - /** - * The time this advisory was published by the source. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String advisoryPublishTime; - - /** - * Describes an AI skill analysis. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AISkillAnalysisOccurrence aiSkillAnalysis; - /** * Describes an attestation of an artifact. * The value may be {@code null}. @@ -70,7 +56,7 @@ public final class Occurrence extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Describes the deployment of an artifact on a runtime. @@ -172,7 +158,7 @@ public final class Occurrence extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Describes an available package upgrade on the linked resource. @@ -188,40 +174,6 @@ public final class Occurrence extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private VulnerabilityOccurrence vulnerability; - /** - * The time this advisory was published by the source. - * @return value or {@code null} for none - */ - public String getAdvisoryPublishTime() { - return advisoryPublishTime; - } - - /** - * The time this advisory was published by the source. - * @param advisoryPublishTime advisoryPublishTime or {@code null} for none - */ - public Occurrence setAdvisoryPublishTime(String advisoryPublishTime) { - this.advisoryPublishTime = advisoryPublishTime; - return this; - } - - /** - * Describes an AI skill analysis. - * @return value or {@code null} for none - */ - public AISkillAnalysisOccurrence getAiSkillAnalysis() { - return aiSkillAnalysis; - } - - /** - * Describes an AI skill analysis. - * @param aiSkillAnalysis aiSkillAnalysis or {@code null} for none - */ - public Occurrence setAiSkillAnalysis(AISkillAnalysisOccurrence aiSkillAnalysis) { - this.aiSkillAnalysis = aiSkillAnalysis; - return this; - } - /** * Describes an attestation of an artifact. * @return value or {@code null} for none @@ -277,7 +229,7 @@ public Occurrence setCompliance(ComplianceOccurrence compliance) { * Output only. The time this occurrence was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -285,7 +237,7 @@ public String getCreateTime() { * Output only. The time this occurrence was created. * @param createTime createTime or {@code null} for none */ - public Occurrence setCreateTime(String createTime) { + public Occurrence setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -523,7 +475,7 @@ public Occurrence setSecret(SecretOccurrence secret) { * Output only. The time this occurrence was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -531,7 +483,7 @@ public String getUpdateTime() { * Output only. The time this occurrence was last updated. * @param updateTime updateTime or {@code null} for none */ - public Occurrence setUpdateTime(String updateTime) { + public Occurrence setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SecretStatus.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SecretStatus.java index 6ad7d02cf64..1de1dd7757f 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SecretStatus.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SecretStatus.java @@ -49,7 +49,7 @@ public final class SecretStatus extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Optional message about the status code. @@ -89,7 +89,7 @@ public SecretStatus setStatus(java.lang.String status) { * Optional. The time the secret status was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -97,7 +97,7 @@ public String getUpdateTime() { * Optional. The time the secret status was last updated. * @param updateTime updateTime or {@code null} for none */ - public SecretStatus setUpdateTime(String updateTime) { + public SecretStatus setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SlsaMetadata.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SlsaMetadata.java index e18068526cc..5c96535371a 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SlsaMetadata.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/SlsaMetadata.java @@ -35,7 +35,7 @@ public final class SlsaMetadata extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String buildFinishedOn; + private java.lang.String buildFinishedOn; /** * Identifies the particular build invocation, which can be useful for finding associated logs or @@ -50,7 +50,7 @@ public final class SlsaMetadata extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String buildStartedOn; + private java.lang.String buildStartedOn; /** * Indicates that the builder claims certain fields in this message to be complete. @@ -71,7 +71,7 @@ public final class SlsaMetadata extends com.google.api.client.json.GenericJson { * The timestamp of when the build completed. * @return value or {@code null} for none */ - public String getBuildFinishedOn() { + public java.lang.String getBuildFinishedOn() { return buildFinishedOn; } @@ -79,7 +79,7 @@ public String getBuildFinishedOn() { * The timestamp of when the build completed. * @param buildFinishedOn buildFinishedOn or {@code null} for none */ - public SlsaMetadata setBuildFinishedOn(String buildFinishedOn) { + public SlsaMetadata setBuildFinishedOn(java.lang.String buildFinishedOn) { this.buildFinishedOn = buildFinishedOn; return this; } @@ -107,7 +107,7 @@ public SlsaMetadata setBuildInvocationId(java.lang.String buildInvocationId) { * The timestamp of when the build started. * @return value or {@code null} for none */ - public String getBuildStartedOn() { + public java.lang.String getBuildStartedOn() { return buildStartedOn; } @@ -115,7 +115,7 @@ public String getBuildStartedOn() { * The timestamp of when the build started. * @param buildStartedOn buildStartedOn or {@code null} for none */ - public SlsaMetadata setBuildStartedOn(String buildStartedOn) { + public SlsaMetadata setBuildStartedOn(java.lang.String buildStartedOn) { this.buildStartedOn = buildStartedOn; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/WindowsUpdate.java b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/WindowsUpdate.java index a81838c390c..7339ca91468 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/WindowsUpdate.java +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/WindowsUpdate.java @@ -71,7 +71,7 @@ public final class WindowsUpdate extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastPublishedTimestamp; + private java.lang.String lastPublishedTimestamp; /** * The hyperlink to the support information for the update. @@ -159,7 +159,7 @@ public WindowsUpdate setKbArticleIds(java.util.List kbArticleI * The last published timestamp of the update. * @return value or {@code null} for none */ - public String getLastPublishedTimestamp() { + public java.lang.String getLastPublishedTimestamp() { return lastPublishedTimestamp; } @@ -167,7 +167,7 @@ public String getLastPublishedTimestamp() { * The last published timestamp of the update. * @param lastPublishedTimestamp lastPublishedTimestamp or {@code null} for none */ - public WindowsUpdate setLastPublishedTimestamp(String lastPublishedTimestamp) { + public WindowsUpdate setLastPublishedTimestamp(java.lang.String lastPublishedTimestamp) { this.lastPublishedTimestamp = lastPublishedTimestamp; return this; } diff --git a/clients/google-api-services-ondemandscanning/v1/2.0.0/pom.xml b/clients/google-api-services-ondemandscanning/v1/2.0.0/pom.xml index 200d851f86e..13d39248ea6 100644 --- a/clients/google-api-services-ondemandscanning/v1/2.0.0/pom.xml +++ b/clients/google-api-services-ondemandscanning/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-ondemandscanning - v1-rev20260330-2.0.0 - On-Demand Scanning API v1-rev20260330-2.0.0 + v1-rev20260209-2.0.0 + On-Demand Scanning API v1-rev20260209-2.0.0 jar 2011 diff --git a/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/Parallelstore.java b/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/Parallelstore.java index a503507586b..896ff575400 100644 --- a/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/Parallelstore.java +++ b/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/Parallelstore.java @@ -1762,13 +1762,13 @@ public Patch setRequestId(java.lang.String requestId) { * not the full request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Mask of fields to update. Field mask is used to specify the fields to be overwritten in the Instance resource by the update. At least one path must be supplied in this field. The fields specified in the update_mask are relative to the resource, not the full request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -1778,7 +1778,7 @@ public String getUpdateMask() { * in this field. The fields specified in the update_mask are relative to the resource, * not the full request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/Instance.java b/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/Instance.java index 64aa7094aea..26228402255 100644 --- a/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/Instance.java +++ b/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/Instance.java @@ -49,7 +49,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Deprecated: The version of DAOS software running in the instance. @@ -150,7 +150,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. A list of IPv4 addresses used for client side configuration. @@ -192,7 +192,7 @@ public Instance setCapacityGib(java.lang.Long capacityGib) { * Output only. The time when the instance was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -200,7 +200,7 @@ public String getCreateTime() { * Output only. The time when the instance was created. * @param createTime createTime or {@code null} for none */ - public Instance setCreateTime(String createTime) { + public Instance setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -430,7 +430,7 @@ public Instance setState(java.lang.String state) { * Output only. The time when the instance was updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -438,7 +438,7 @@ public String getUpdateTime() { * Output only. The time when the instance was updated. * @param updateTime updateTime or {@code null} for none */ - public Instance setUpdateTime(String updateTime) { + public Instance setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/OperationMetadata.java b/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/OperationMetadata.java index 6f5f9a8d968..c27c28854d9 100644 --- a/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/OperationMetadata.java +++ b/clients/google-api-services-parallelstore/v1/2.0.0/com/google/api/services/parallelstore/v1/model/OperationMetadata.java @@ -41,14 +41,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -101,7 +101,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -109,7 +109,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -118,7 +118,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -126,7 +126,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/PaymentsResellerSubscription.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/PaymentsResellerSubscription.java index e2f3737d5d4..b57e7ed01ac 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/PaymentsResellerSubscription.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/PaymentsResellerSubscription.java @@ -2380,12 +2380,12 @@ public Patch setName(java.lang.String name) { * `product_payload.googleHomePayload.googleStructureId` */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. The list of fields to update. Only a limited set of fields can be updated. The allowed fields are the following: - `product_payload.googleHomePayload.googleStructureId` */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -2394,7 +2394,7 @@ public String getUpdateMask() { * The allowed fields are the following: - * `product_payload.googleHomePayload.googleStructureId` */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ExtendSubscriptionResponse.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ExtendSubscriptionResponse.java index 4557df6b3bc..5485185967f 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ExtendSubscriptionResponse.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ExtendSubscriptionResponse.java @@ -36,7 +36,7 @@ public final class ExtendSubscriptionResponse extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String cycleEndTime; + private java.lang.String cycleEndTime; /** * End of the free trial period, in ISO 8061 format. UTC timezone. Example, @@ -45,7 +45,7 @@ public final class ExtendSubscriptionResponse extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String freeTrialEndTime; + private java.lang.String freeTrialEndTime; /** * Output only. The time at which the subscription is expected to be renewed by Google - a new @@ -56,14 +56,14 @@ public final class ExtendSubscriptionResponse extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String renewalTime; + private java.lang.String renewalTime; /** * The time at which the subscription is expected to be extended, in ISO 8061 format. UTC * timezone. Example, "cycleEndTime":"2019-08-31T17:28:54.564Z" * @return value or {@code null} for none */ - public String getCycleEndTime() { + public java.lang.String getCycleEndTime() { return cycleEndTime; } @@ -72,7 +72,7 @@ public String getCycleEndTime() { * timezone. Example, "cycleEndTime":"2019-08-31T17:28:54.564Z" * @param cycleEndTime cycleEndTime or {@code null} for none */ - public ExtendSubscriptionResponse setCycleEndTime(String cycleEndTime) { + public ExtendSubscriptionResponse setCycleEndTime(java.lang.String cycleEndTime) { this.cycleEndTime = cycleEndTime; return this; } @@ -83,7 +83,7 @@ public ExtendSubscriptionResponse setCycleEndTime(String cycleEndTime) { * subscription creation time if no free trial period is offered to the partner. * @return value or {@code null} for none */ - public String getFreeTrialEndTime() { + public java.lang.String getFreeTrialEndTime() { return freeTrialEndTime; } @@ -93,7 +93,7 @@ public String getFreeTrialEndTime() { * subscription creation time if no free trial period is offered to the partner. * @param freeTrialEndTime freeTrialEndTime or {@code null} for none */ - public ExtendSubscriptionResponse setFreeTrialEndTime(String freeTrialEndTime) { + public ExtendSubscriptionResponse setFreeTrialEndTime(java.lang.String freeTrialEndTime) { this.freeTrialEndTime = freeTrialEndTime; return this; } @@ -106,7 +106,7 @@ public ExtendSubscriptionResponse setFreeTrialEndTime(String freeTrialEndTime) { * "2019-08-31T17:28:54.564Z" * @return value or {@code null} for none */ - public String getRenewalTime() { + public java.lang.String getRenewalTime() { return renewalTime; } @@ -118,7 +118,7 @@ public String getRenewalTime() { * "2019-08-31T17:28:54.564Z" * @param renewalTime renewalTime or {@code null} for none */ - public ExtendSubscriptionResponse setRenewalTime(String renewalTime) { + public ExtendSubscriptionResponse setRenewalTime(java.lang.String renewalTime) { this.renewalTime = renewalTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Promotion.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Promotion.java index 46fcb27b20a..b7f504289e2 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Promotion.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Promotion.java @@ -43,7 +43,7 @@ public final class Promotion extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Optional. Specifies the duration of the free trial of the subscription when promotion_type is @@ -90,7 +90,7 @@ public final class Promotion extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. Localized human readable name of the promotion. @@ -127,7 +127,7 @@ public Promotion setApplicableProducts(java.util.List applicab * If unset, the promotion is available indefinitely. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -136,7 +136,7 @@ public String getEndTime() { * If unset, the promotion is available indefinitely. * @param endTime endTime or {@code null} for none */ - public Promotion setEndTime(String endTime) { + public Promotion setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -239,7 +239,7 @@ public Promotion setRegionCodes(java.util.List regionCodes) { * in. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -248,7 +248,7 @@ public String getStartTime() { * in. * @param startTime startTime or {@code null} for none */ - public Promotion setStartTime(String startTime) { + public Promotion setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ServicePeriod.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ServicePeriod.java index e7ee76ab244..6d509ba5590 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ServicePeriod.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/ServicePeriod.java @@ -36,20 +36,20 @@ public final class ServicePeriod extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Required. The start time of the service period. Time is inclusive. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Optional. The end time of the service period. Time is exclusive. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -57,7 +57,7 @@ public String getEndTime() { * Optional. The end time of the service period. Time is exclusive. * @param endTime endTime or {@code null} for none */ - public ServicePeriod setEndTime(String endTime) { + public ServicePeriod setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -66,7 +66,7 @@ public ServicePeriod setEndTime(String endTime) { * Required. The start time of the service period. Time is inclusive. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -74,7 +74,7 @@ public String getStartTime() { * Required. The start time of the service period. Time is inclusive. * @param startTime startTime or {@code null} for none */ - public ServicePeriod setStartTime(String startTime) { + public ServicePeriod setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Subscription.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Subscription.java index 42e0880bf94..dea53bfecd5 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Subscription.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/Subscription.java @@ -47,7 +47,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time at which the subscription is expected to be extended, in ISO 8061 format. @@ -55,7 +55,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String cycleEndTime; + private java.lang.String cycleEndTime; /** * Output only. Indicates if the subscription is entitled to the end user. @@ -71,7 +71,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String freeTrialEndTime; + private java.lang.String freeTrialEndTime; /** * Required. The line items of the subscription. @@ -150,7 +150,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String purchaseTime; + private java.lang.String purchaseTime; /** * Output only. The place where partners should redirect the end-user to after creation. This @@ -170,7 +170,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String renewalTime; + private java.lang.String renewalTime; /** * Required. The location that the service is provided as indicated by the partner. @@ -194,7 +194,7 @@ public final class Subscription extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Details about the previous subscription that this new subscription @@ -228,7 +228,7 @@ public Subscription setCancellationDetails(SubscriptionCancellationDetails cance * Output only. System generated timestamp when the subscription is created. UTC timezone. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -236,7 +236,7 @@ public String getCreateTime() { * Output only. System generated timestamp when the subscription is created. UTC timezone. * @param createTime createTime or {@code null} for none */ - public Subscription setCreateTime(String createTime) { + public Subscription setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -246,7 +246,7 @@ public Subscription setCreateTime(String createTime) { * UTC timezone. For example: "2019-08-31T17:28:54.564Z" * @return value or {@code null} for none */ - public String getCycleEndTime() { + public java.lang.String getCycleEndTime() { return cycleEndTime; } @@ -255,7 +255,7 @@ public String getCycleEndTime() { * UTC timezone. For example: "2019-08-31T17:28:54.564Z" * @param cycleEndTime cycleEndTime or {@code null} for none */ - public Subscription setCycleEndTime(String cycleEndTime) { + public Subscription setCycleEndTime(java.lang.String cycleEndTime) { this.cycleEndTime = cycleEndTime; return this; } @@ -283,7 +283,7 @@ public Subscription setEndUserEntitled(java.lang.Boolean endUserEntitled) { * specified. * @return value or {@code null} for none */ - public String getFreeTrialEndTime() { + public java.lang.String getFreeTrialEndTime() { return freeTrialEndTime; } @@ -293,7 +293,7 @@ public String getFreeTrialEndTime() { * specified. * @param freeTrialEndTime freeTrialEndTime or {@code null} for none */ - public Subscription setFreeTrialEndTime(String freeTrialEndTime) { + public Subscription setFreeTrialEndTime(java.lang.String freeTrialEndTime) { this.freeTrialEndTime = freeTrialEndTime; return this; } @@ -468,7 +468,7 @@ public Subscription setPromotions(java.util.List promotions) { * selection). * @return value or {@code null} for none */ - public String getPurchaseTime() { + public java.lang.String getPurchaseTime() { return purchaseTime; } @@ -478,7 +478,7 @@ public String getPurchaseTime() { * selection). * @param purchaseTime purchaseTime or {@code null} for none */ - public Subscription setPurchaseTime(String purchaseTime) { + public Subscription setPurchaseTime(java.lang.String purchaseTime) { this.purchaseTime = purchaseTime; return this; } @@ -512,7 +512,7 @@ public Subscription setRedirectUri(java.lang.String redirectUri) { * "2019-08-31T17:28:54.564Z" * @return value or {@code null} for none */ - public String getRenewalTime() { + public java.lang.String getRenewalTime() { return renewalTime; } @@ -524,7 +524,7 @@ public String getRenewalTime() { * "2019-08-31T17:28:54.564Z" * @param renewalTime renewalTime or {@code null} for none */ - public Subscription setRenewalTime(String renewalTime) { + public Subscription setRenewalTime(java.lang.String renewalTime) { this.renewalTime = renewalTime; return this; } @@ -572,7 +572,7 @@ public Subscription setState(java.lang.String state) { * timezone. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -581,7 +581,7 @@ public String getUpdateTime() { * timezone. * @param updateTime updateTime or {@code null} for none */ - public Subscription setUpdateTime(String updateTime) { + public Subscription setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItem.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItem.java index 1c066844212..74e1e639817 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItem.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItem.java @@ -69,7 +69,7 @@ public final class SubscriptionLineItem extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lineItemFreeTrialEndTime; + private java.lang.String lineItemFreeTrialEndTime; /** * Output only. A unique index of the subscription line item. @@ -212,7 +212,7 @@ public SubscriptionLineItem setFiniteBillingCycleDetails(FiniteBillingCycleDetai * specified. * @return value or {@code null} for none */ - public String getLineItemFreeTrialEndTime() { + public java.lang.String getLineItemFreeTrialEndTime() { return lineItemFreeTrialEndTime; } @@ -223,7 +223,7 @@ public String getLineItemFreeTrialEndTime() { * specified. * @param lineItemFreeTrialEndTime lineItemFreeTrialEndTime or {@code null} for none */ - public SubscriptionLineItem setLineItemFreeTrialEndTime(String lineItemFreeTrialEndTime) { + public SubscriptionLineItem setLineItemFreeTrialEndTime(java.lang.String lineItemFreeTrialEndTime) { this.lineItemFreeTrialEndTime = lineItemFreeTrialEndTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItemBundleDetailsBundleElementDetails.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItemBundleDetailsBundleElementDetails.java index 96db807e4ac..1207aeb5b1b 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItemBundleDetailsBundleElementDetails.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/SubscriptionLineItemBundleDetailsBundleElementDetails.java @@ -43,7 +43,7 @@ public final class SubscriptionLineItemBundleDetailsBundleElementDetails extends * The value may be {@code null}. */ @com.google.api.client.util.Key - private String userAccountLinkedTime; + private java.lang.String userAccountLinkedTime; /** * Output only. Product resource name that identifies the bundle element. The format is @@ -68,7 +68,7 @@ public SubscriptionLineItemBundleDetailsBundleElementDetails setProduct(java.lan * Output only. The time when this product is linked to an end user. * @return value or {@code null} for none */ - public String getUserAccountLinkedTime() { + public java.lang.String getUserAccountLinkedTime() { return userAccountLinkedTime; } @@ -76,7 +76,7 @@ public String getUserAccountLinkedTime() { * Output only. The time when this product is linked to an end user. * @param userAccountLinkedTime userAccountLinkedTime or {@code null} for none */ - public SubscriptionLineItemBundleDetailsBundleElementDetails setUserAccountLinkedTime(String userAccountLinkedTime) { + public SubscriptionLineItemBundleDetailsBundleElementDetails setUserAccountLinkedTime(java.lang.String userAccountLinkedTime) { this.userAccountLinkedTime = userAccountLinkedTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/UserSession.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/UserSession.java index 90bd8b892a7..b9aec5cd72e 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/UserSession.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/UserSession.java @@ -42,7 +42,7 @@ public final class UserSession extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Output only. The encrypted token of the user session, including the information of the user's @@ -56,7 +56,7 @@ public final class UserSession extends com.google.api.client.json.GenericJson { * Output only. The time at which the user session expires. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -64,7 +64,7 @@ public String getExpireTime() { * Output only. The time at which the user session expires. * @param expireTime expireTime or {@code null} for none */ - public UserSession setExpireTime(String expireTime) { + public UserSession setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } diff --git a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/YoutubePayload.java b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/YoutubePayload.java index 96ef2ac7937..0917379d0ef 100644 --- a/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/YoutubePayload.java +++ b/clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/model/YoutubePayload.java @@ -35,7 +35,7 @@ public final class YoutubePayload extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String accessEndTime; + private java.lang.String accessEndTime; /** * The list of eligibility_ids which are applicable for the line item. @@ -55,7 +55,7 @@ public final class YoutubePayload extends com.google.api.client.json.GenericJson * Output only. The access expiration time for this line item. * @return value or {@code null} for none */ - public String getAccessEndTime() { + public java.lang.String getAccessEndTime() { return accessEndTime; } @@ -63,7 +63,7 @@ public String getAccessEndTime() { * Output only. The access expiration time for this line item. * @param accessEndTime accessEndTime or {@code null} for none */ - public YoutubePayload setAccessEndTime(String accessEndTime) { + public YoutubePayload setAccessEndTime(java.lang.String accessEndTime) { this.accessEndTime = accessEndTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/README.md b/clients/google-api-services-redis/v1/2.0.0/README.md index 88338418e74..8e5e6ae0196 100644 --- a/clients/google-api-services-redis/v1/2.0.0/README.md +++ b/clients/google-api-services-redis/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-redis - v1-rev20260406-2.0.0 + v1-rev20260309-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-redis:v1-rev20260406-2.0.0' + implementation 'com.google.apis:google-api-services-redis:v1-rev20260309-2.0.0' } ``` diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedis.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedis.java index 3fb1f2a3ea2..4485c182c0d 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedis.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedis.java @@ -466,14 +466,10 @@ public GetSharedRegionalCertificateAuthority set(String parameterName, Object va } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -497,15 +493,10 @@ public class List extends CloudRedisRequestThe typical use is:

*
        *   {@code CloudRedis redis = new CloudRedis(...);}
-       *   {@code CloudRedis.AclPolicies.List request = redis.aclPolicies().list(parameters ...)}
+       *   {@code CloudRedis.BackupCollections.List request = redis.backupCollections().list(parameters ...)}
        * 
* * @return the resource collection */ - public AclPolicies aclPolicies() { - return new AclPolicies(); + public BackupCollections backupCollections() { + return new BackupCollections(); } /** - * The "aclPolicies" collection of methods. + * The "backupCollections" collection of methods. */ - public class AclPolicies { + public class BackupCollections { /** - * Creates an ACL Policy. The creation is executed synchronously and the policy is available for use - * immediately after the RPC returns. + * Get a backup collection. * - * Create a request for the method "aclPolicies.create". + * Create a request for the method "backupCollections.get". * * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.AclPolicy} + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a Google Cloud region. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.redis.v1.model.AclPolicy content) throws java.io.IOException { - Create result = new Create(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Create extends CloudRedisRequest { + public class Get extends CloudRedisRequest { - private static final String REST_PATH = "v1/{+parent}/aclPolicies"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); /** - * Creates an ACL Policy. The creation is executed synchronously and the policy is available for - * use immediately after the RPC returns. + * Get a backup collection. * - * Create a request for the method "aclPolicies.create". + * Create a request for the method "backupCollections.get". * * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation.

{@link - * Create#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 parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.AclPolicy} + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a Google Cloud region. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.redis.v1.model.AclPolicy content) { - super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.AclPolicy.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.BackupCollection.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the cluster location using the form: - `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud - region. - */ - public java.lang.String getParent() { - return parent; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The logical name of the ACL Policy in the customer project with the following - * restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start - * with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. - * * Must be unique within the customer project / location + * Required. Redis backupCollection resource name using the form: `projects/{project_id}/l + * ocations/{location_id}/backupCollections/{backup_collection_id}` where `location_id` + * refers to a Google Cloud region. */ @com.google.api.client.util.Key - private java.lang.String aclPolicyId; + private java.lang.String name; - /** Required. The logical name of the ACL Policy in the customer project with the following - restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a - letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique - within the customer project / location + /** Required. Redis backupCollection resource name using the form: + `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` where + `location_id` refers to a Google Cloud region. */ - public java.lang.String getAclPolicyId() { - return aclPolicyId; + public java.lang.String getName() { + return name; } /** - * Required. The logical name of the ACL Policy in the customer project with the following - * restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start - * with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. - * * Must be unique within the customer project / location - */ - public Create setAclPolicyId(java.lang.String aclPolicyId) { - this.aclPolicyId = aclPolicyId; - return this; - } - - /** Optional. Idempotent request UUID. . */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. Idempotent request UUID. . + * Required. Redis backupCollection resource name using the form: `projects/{project_id}/l + * ocations/{location_id}/backupCollections/{backup_collection_id}` where `location_id` + * refers to a Google Cloud region. */ - public java.lang.String getRequestId() { - return requestId; - } - - /** Optional. Idempotent request UUID. . */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); + } + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a specific Acl Policy. This action will delete the Acl Policy and all the rules - * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions + * available to the project are queried, and the results are aggregated. * - * Create a request for the method "aclPolicies.delete". + * Create a request for the method "backupCollections.list". * * This request holds the parameters needed by the redis 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 name Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends CloudRedisRequest { + public class List extends CloudRedisRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/backupCollections"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deletes a specific Acl Policy. This action will delete the Acl Policy and all the rules - * associated with it. An ACL policy cannot be deleted if it is attached to a cluster. + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions + * available to the project are queried, and the results are aggregated. * - * Create a request for the method "aclPolicies.delete". + * Create a request for the method "backupCollections.list". * * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the 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 name Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListBackupCollectionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @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); } - /** - * Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. Redis ACL Policy resource name using the form: - `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` - refers to a GCP region. + /** Required. The resource name of the backupCollection location using the form: + `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud + region. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. + * Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. */ - public Delete setName(java.lang.String name) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } /** - * Optional. Etag of the ACL policy. If this is different from the server's etag, the - * request will fail with an ABORTED error. + * Optional. The maximum number of items to return. If not specified, a default value of + * 1000 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's `next_page_token` to + * determine if there are more clusters left to be queried. */ @com.google.api.client.util.Key - private java.lang.String etag; + private java.lang.Integer pageSize; - /** Optional. Etag of the ACL policy. If this is different from the server's etag, the request will - fail with an ABORTED error. + /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be + used by the service. Regardless of the page_size value, the response may include a partial list and + a caller should only rely on response's `next_page_token` to determine if there are more clusters + left to be queried. */ - public java.lang.String getEtag() { - return etag; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. Etag of the ACL policy. If this is different from the server's etag, the - * request will fail with an ABORTED error. + * Optional. The maximum number of items to return. If not specified, a default value of + * 1000 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's `next_page_token` to + * determine if there are more clusters left to be queried. */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** Optional. Idempotent request UUID. */ + /** + * Optional. The `next_page_token` value returned from a previous [ListBackupCollections] + * request, if any. + */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String pageToken; - /** Optional. Idempotent request UUID. + /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if + any. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getPageToken() { + return pageToken; } - /** Optional. Idempotent request UUID. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** + * Optional. The `next_page_token` value returned from a previous [ListBackupCollections] + * request, if any. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; 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); } } + /** - * Gets the details of a specific Redis Cluster ACL Policy. - * - * Create a request for the method "aclPolicies.get". + * An accessor for creating requests from the Backups collection. * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code CloudRedis redis = new CloudRedis(...);}
+         *   {@code CloudRedis.Backups.List request = redis.backups().list(parameters ...)}
+         * 
* - * @param name Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. - * @return the request + * @return the resource collection */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public Backups backups() { + return new Backups(); } - public class Get extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + /** + * The "backups" collection of methods. + */ + public class Backups { /** - * Gets the details of a specific Redis Cluster ACL Policy. + * Deletes a specific backup. * - * Create a request for the method "aclPolicies.get". + * Create a request for the method "backups.delete". * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. - * @since 1.13 + * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ + * backupCollections/{backup_collection_id}/backups/{backup_id}` + * @return the request */ - protected Get(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.AclPolicy.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Delete extends CloudRedisRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * Deletes a specific backup. + * + * Create a request for the method "backups.delete". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ + * backupCollections/{backup_collection_id}/backups/{backup_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); + } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** Required. Redis ACL Policy resource name using the form: - `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` - refers to a GCP region. - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. Redis ACL Policy resource name using the form: - * `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where - * `location_id` refers to a GCP region. - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + /** + * Required. Redis backup resource name using the form: `projects/{project_id}/locations + * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id} + /backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + public java.lang.String getName() { + return name; } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists all ACL Policies owned by a project in either the specified location (region) or all - * locations. The location should have the following format: * - * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), - * then all regions available to the project are queried, and the results are aggregated. - * - * Create a request for the method "aclPolicies.list". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + /** + * Required. Redis backup resource name using the form: `projects/{project_id}/locations + * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); + } + this.name = name; + return this; + } - public class List extends CloudRedisRequest { + /** Optional. Idempotent request UUID. */ + @com.google.api.client.util.Key + private java.lang.String requestId; - private static final String REST_PATH = "v1/{+parent}/aclPolicies"; + /** Optional. Idempotent request UUID. + */ + public java.lang.String getRequestId() { + return requestId; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** Optional. Idempotent request UUID. */ + 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 ACL Policies owned by a project in either the specified location (region) or all - * locations. The location should have the following format: * - * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` - * (wildcard), then all regions available to the project are queried, and the results are - * aggregated. + * Exports a specific backup to a customer target Cloud Storage URI. * - * Create a request for the method "aclPolicies.list". + * Create a request for the method "backups.export". * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link Export#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @since 1.13 + * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ + * backupCollections/{backup_collection_id}/backups/{backup_id}` + * @param content the {@link com.google.api.services.redis.v1.model.ExportBackupRequest} + * @return the request */ - protected List(java.lang.String parent) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListAclPoliciesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } + public Export export(java.lang.String name, com.google.api.services.redis.v1.model.ExportBackupRequest content) throws java.io.IOException { + Export result = new Export(name, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Export extends CloudRedisRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1/{+name}:export"; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + * Create a request for the method "backups.export". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link Export#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ + * backupCollections/{backup_collection_id}/backups/{backup_id}` + * @param content the {@link com.google.api.services.redis.v1.model.ExportBackupRequest} + * @since 1.13 + */ + protected Export(java.lang.String name, com.google.api.services.redis.v1.model.ExportBackupRequest content) { + super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Export set$Xgafv(java.lang.String $Xgafv) { + return (Export) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Export setAccessToken(java.lang.String accessToken) { + return (Export) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Export setAlt(java.lang.String alt) { + return (Export) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Export setCallback(java.lang.String callback) { + return (Export) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Export setFields(java.lang.String fields) { + return (Export) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Export setKey(java.lang.String key) { + return (Export) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Export setOauthToken(java.lang.String oauthToken) { + return (Export) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Export setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Export) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Export setQuotaUser(java.lang.String quotaUser) { + return (Export) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Export setUploadType(java.lang.String uploadType) { + return (Export) super.setUploadType(uploadType); + } - /** Required. The resource name of the cluster location using the form: - `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud - region. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Export setUploadProtocol(java.lang.String uploadProtocol) { + return (Export) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** + * Required. Redis backup resource name using the form: `projects/{project_id}/locations + * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id} + /backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + public java.lang.String getName() { + return name; } - this.parent = parent; - return this; - } - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's `next_page_token` to - * determine if there are more ACL policies left to be queried. The maximum value is 1000; - * values above 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * Required. Redis backup resource name using the form: `projects/{project_id}/locations + * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + public Export setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); + } + this.name = name; + return this; + } - /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's `next_page_token` to determine if there are more ACL - policies left to be queried. The maximum value is 1000; values above 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); + } } - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's `next_page_token` to - * determine if there are more ACL policies left to be queried. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * Gets the details of a specific backup. + * + * Create a request for the method "backups.get". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ + * backupCollections/{backup_collection_id}/backups/{backup_id}` + * @return the request */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * Optional. The `next_page_token` value returned from a previous `ListAclPolicies` - * request, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The `next_page_token` value returned from a previous `ListAclPolicies` request, if any. - */ - public java.lang.String getPageToken() { - return pageToken; - } + public class Get extends CloudRedisRequest { - /** - * Optional. The `next_page_token` value returned from a previous `ListAclPolicies` - * request, if any. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the ACL policy. The operation applies the updated ACL policy to all of the linked - * clusters. If Memorystore can apply the policy to all clusters, then the operation returns a - * SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual - * consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. - * Completed longrunning.Operation will contain the new ACL Policy object in the response field. - * - * Create a request for the method "aclPolicies.patch". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. Full resource path of the ACL policy. - * @param content the {@link com.google.api.services.redis.v1.model.AclPolicy} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.redis.v1.model.AclPolicy content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - public class Patch extends CloudRedisRequest { + /** + * Gets the details of a specific backup. + * + * Create a request for the method "backups.get". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ + * backupCollections/{backup_collection_id}/backups/{backup_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.Backup.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); + } + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Updates the ACL policy. The operation applies the updated ACL policy to all of the linked - * clusters. If Memorystore can apply the policy to all clusters, then the operation returns a - * SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual - * consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. - * Completed longrunning.Operation will contain the new ACL Policy object in the response field. - * - * Create a request for the method "aclPolicies.patch". - * - * This request holds the parameters needed by the the redis 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 name Identifier. Full resource path of the ACL policy. - * @param content the {@link com.google.api.services.redis.v1.model.AclPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.redis.v1.model.AclPolicy content) { - super(CloudRedis.this, "PATCH", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. Redis backup resource name using the form: `projects/{project_id}/locations + * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Identifier. Full resource path of the ACL policy. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. Full resource path of the ACL policy. - */ - public java.lang.String getName() { - return name; - } - - /** Identifier. Full resource path of the ACL policy. */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+$"); + /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id} + /backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + public java.lang.String getName() { + return name; } - this.name = name; - return this; - } - - /** Optional. Idempotent request UUID. */ - @com.google.api.client.util.Key - private java.lang.String requestId; - /** Optional. Idempotent request UUID. - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * Required. Redis backup resource name using the form: `projects/{project_id}/locations + * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); + } + this.name = name; + return this; + } - /** Optional. Idempotent request UUID. */ - 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); + } } - /** - * Optional. Mask of fields to be updated. At least one path must be supplied in this - * field. The elements of the repeated paths field may only include these fields from - * `AclPolicy`: * `rules` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Mask of fields to be updated. At least one path must be supplied in this field. The - elements of the repeated paths field may only include these fields from `AclPolicy`: * `rules` + * Lists all backups owned by a backup collection. + * + * Create a request for the method "backups.list". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @return the request */ - public String getUpdateMask() { - return updateMask; + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** - * Optional. Mask of fields to be updated. At least one path must be supplied in this - * field. The elements of the repeated paths field may only include these fields from - * `AclPolicy`: * `rules` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + public class List extends CloudRedisRequest { - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } + private static final String REST_PATH = "v1/{+parent}/backups"; - } - /** - * An accessor for creating requests from the BackupCollections collection. - * - *

The typical use is:

- *
-       *   {@code CloudRedis redis = new CloudRedis(...);}
-       *   {@code CloudRedis.BackupCollections.List request = redis.backupCollections().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public BackupCollections backupCollections() { - return new BackupCollections(); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); - /** - * The "backupCollections" collection of methods. - */ - public class BackupCollections { + /** + * Lists all backups owned by a backup collection. + * + * Create a request for the method "backups.list". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListBackupsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); + } + } - /** - * Get a backup collection. - * - * Create a request for the method "backupCollections.get". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. Redis backupCollection resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * where `location_id` refers to a Google Cloud region. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - public class Get extends CloudRedisRequest { + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * Get a backup collection. - * - * Create a request for the method "backupCollections.get". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis backupCollection resource name using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * where `location_id` refers to a Google Cloud region. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.BackupCollection.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Redis backupCollection resource name using the form: `projects/{project_id}/l - * ocations/{location_id}/backupCollections/{backup_collection_id}` where `location_id` - * refers to a Google Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis backupCollection resource name using the form: - `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` where - `location_id` refers to a Google Cloud region. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis backupCollection resource name using the form: `projects/{project_id}/l - * ocations/{location_id}/backupCollections/{backup_collection_id}` where `location_id` - * refers to a Google Cloud region. - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions - * available to the project are queried, and the results are aggregated. - * - * Create a request for the method "backupCollections.list". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the backupCollection location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+parent}/backupCollections"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Lists all backup collections owned by a consumer project in either the specified location - * (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions - * available to the project are queried, and the results are aggregated. - * - * Create a request for the method "backupCollections.list". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param parent Required. The resource name of the backupCollection location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListBackupCollectionsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the backupCollection location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the backupCollection location using the form: - `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud - region. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the backupCollection location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's `next_page_token` to - * determine if there are more clusters left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's `next_page_token` to determine if there are more clusters - left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's `next_page_token` to - * determine if there are more clusters left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. The `next_page_token` value returned from a previous [ListBackupCollections] - * request, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if - any. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. The `next_page_token` value returned from a previous [ListBackupCollections] - * request, if any. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Backups collection. - * - *

The typical use is:

- *
-         *   {@code CloudRedis redis = new CloudRedis(...);}
-         *   {@code CloudRedis.Backups.List request = redis.backups().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Backups backups() { - return new Backups(); - } - - /** - * The "backups" collection of methods. - */ - public class Backups { - - /** - * Deletes a specific backup. - * - * Create a request for the method "backups.delete". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ - * backupCollections/{backup_collection_id}/backups/{backup_id}` - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - - /** - * Deletes a specific backup. - * - * Create a request for the method "backups.delete". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ - * backupCollections/{backup_collection_id}/backups/{backup_id}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - } - } - - @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); - } - - /** - * Required. Redis backup resource name using the form: `projects/{project_id}/locations - * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id} - /backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis backup resource name using the form: `projects/{project_id}/locations - * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. Idempotent request UUID. */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. Idempotent request UUID. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** Optional. Idempotent request UUID. */ - 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); - } - } - /** - * Exports a specific backup to a customer target Cloud Storage URI. - * - * Create a request for the method "backups.export". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Export#execute()} method to invoke the remote operation. - * - * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ - * backupCollections/{backup_collection_id}/backups/{backup_id}` - * @param content the {@link com.google.api.services.redis.v1.model.ExportBackupRequest} - * @return the request - */ - public Export export(java.lang.String name, com.google.api.services.redis.v1.model.ExportBackupRequest content) throws java.io.IOException { - Export result = new Export(name, content); - initialize(result); - return result; - } - - public class Export extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}:export"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - - /** - * Exports a specific backup to a customer target Cloud Storage URI. - * - * Create a request for the method "backups.export". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Export#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ - * backupCollections/{backup_collection_id}/backups/{backup_id}` - * @param content the {@link com.google.api.services.redis.v1.model.ExportBackupRequest} - * @since 1.13 - */ - protected Export(java.lang.String name, com.google.api.services.redis.v1.model.ExportBackupRequest content) { - super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - } - } - - @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); - } - - @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); - } - - @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); - } - - @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); - } - - @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); - } - - @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); - } - - @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); - } - - @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); - } - - @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); - } - - @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); - } - - @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Redis backup resource name using the form: `projects/{project_id}/locations - * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id} - /backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis backup resource name using the form: `projects/{project_id}/locations - * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - public Export setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); - } - } - /** - * Gets the details of a specific backup. - * - * Create a request for the method "backups.get". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ - * backupCollections/{backup_collection_id}/backups/{backup_id}` - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - - /** - * Gets the details of a specific backup. - * - * Create a request for the method "backups.get". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id}/ - * backupCollections/{backup_collection_id}/backups/{backup_id}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.Backup.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Redis backup resource name using the form: `projects/{project_id}/locations - * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis backup resource name using the form: `projects/{project_id}/locations/{location_id} - /backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis backup resource name using the form: `projects/{project_id}/locations - * /{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists all backups owned by a backup collection. - * - * Create a request for the method "backups.list". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the backupCollection using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+parent}/backups"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); - - /** - * Lists all backups owned by a backup collection. - * - * Create a request for the method "backups.list". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param parent Required. The resource name of the backupCollection using the form: - * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListBackupsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the backupCollection using the form: `projects/{projec - * t_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the backupCollection using the form: - `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the backupCollection using the form: `projects/{projec - * t_id}/locations/{location_id}/backupCollections/{backup_collection_id}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's `next_page_token` - * to determine if there are more clusters left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's `next_page_token` to determine if there are more clusters - left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's `next_page_token` - * to determine if there are more clusters left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. The `next_page_token` value returned from a previous - * [ListBackupCollections] request, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if - any. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. The `next_page_token` value returned from a previous - * [ListBackupCollections] request, if any. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the Clusters collection. - * - *

The typical use is:

- *
-       *   {@code CloudRedis redis = new CloudRedis(...);}
-       *   {@code CloudRedis.Clusters.List request = redis.clusters().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Clusters clusters() { - return new Clusters(); - } - - /** - * The "clusters" collection of methods. - */ - public class Clusters { - - /** - * Adds a token auth user for a token based auth enabled cluster. - * - * Create a request for the method "clusters.addTokenAuthUser". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link AddTokenAuthUser#execute()} method to invoke the remote operation. - * - * @param cluster Required. The cluster resource that this token auth user will be added for. Format: - * projects/{project}/locations/{location}/clusters/{cluster} - * @param content the {@link com.google.api.services.redis.v1.model.AddTokenAuthUserRequest} - * @return the request - */ - public AddTokenAuthUser addTokenAuthUser(java.lang.String cluster, com.google.api.services.redis.v1.model.AddTokenAuthUserRequest content) throws java.io.IOException { - AddTokenAuthUser result = new AddTokenAuthUser(cluster, content); - initialize(result); - return result; - } - - public class AddTokenAuthUser extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+cluster}:addTokenAuthUser"; - - private final java.util.regex.Pattern CLUSTER_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - - /** - * Adds a token auth user for a token based auth enabled cluster. - * - * Create a request for the method "clusters.addTokenAuthUser". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link AddTokenAuthUser#execute()} method to invoke the remote operation. - *

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

- * - * @param cluster Required. The cluster resource that this token auth user will be added for. Format: - * projects/{project}/locations/{location}/clusters/{cluster} - * @param content the {@link com.google.api.services.redis.v1.model.AddTokenAuthUserRequest} - * @since 1.13 - */ - protected AddTokenAuthUser(java.lang.String cluster, com.google.api.services.redis.v1.model.AddTokenAuthUserRequest content) { - super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.cluster = com.google.api.client.util.Preconditions.checkNotNull(cluster, "Required parameter cluster must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CLUSTER_PATTERN.matcher(cluster).matches(), - "Parameter cluster must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - } - - @Override - public AddTokenAuthUser set$Xgafv(java.lang.String $Xgafv) { - return (AddTokenAuthUser) super.set$Xgafv($Xgafv); - } - - @Override - public AddTokenAuthUser setAccessToken(java.lang.String accessToken) { - return (AddTokenAuthUser) super.setAccessToken(accessToken); - } - - @Override - public AddTokenAuthUser setAlt(java.lang.String alt) { - return (AddTokenAuthUser) super.setAlt(alt); - } - - @Override - public AddTokenAuthUser setCallback(java.lang.String callback) { - return (AddTokenAuthUser) super.setCallback(callback); - } - - @Override - public AddTokenAuthUser setFields(java.lang.String fields) { - return (AddTokenAuthUser) super.setFields(fields); - } - - @Override - public AddTokenAuthUser setKey(java.lang.String key) { - return (AddTokenAuthUser) super.setKey(key); - } - - @Override - public AddTokenAuthUser setOauthToken(java.lang.String oauthToken) { - return (AddTokenAuthUser) super.setOauthToken(oauthToken); - } - - @Override - public AddTokenAuthUser setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddTokenAuthUser) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddTokenAuthUser setQuotaUser(java.lang.String quotaUser) { - return (AddTokenAuthUser) super.setQuotaUser(quotaUser); - } - - @Override - public AddTokenAuthUser setUploadType(java.lang.String uploadType) { - return (AddTokenAuthUser) super.setUploadType(uploadType); - } - - @Override - public AddTokenAuthUser setUploadProtocol(java.lang.String uploadProtocol) { - return (AddTokenAuthUser) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The cluster resource that this token auth user will be added for. Format: - * projects/{project}/locations/{location}/clusters/{cluster} - */ - @com.google.api.client.util.Key - private java.lang.String cluster; - - /** Required. The cluster resource that this token auth user will be added for. Format: - projects/{project}/locations/{location}/clusters/{cluster} - */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * Required. The cluster resource that this token auth user will be added for. Format: - * projects/{project}/locations/{location}/clusters/{cluster} - */ - public AddTokenAuthUser setCluster(java.lang.String cluster) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CLUSTER_PATTERN.matcher(cluster).matches(), - "Parameter cluster must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - this.cluster = cluster; - return this; - } - - @Override - public AddTokenAuthUser set(String parameterName, Object value) { - return (AddTokenAuthUser) super.set(parameterName, value); - } - } - /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. - * - * Create a request for the method "clusters.backup". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Backup#execute()} method to invoke the remote operation. - * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.BackupClusterRequest} - * @return the request - */ - public Backup backup(java.lang.String name, com.google.api.services.redis.v1.model.BackupClusterRequest content) throws java.io.IOException { - Backup result = new Backup(name, content); - initialize(result); - return result; - } - - public class Backup extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}:backup"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - - /** - * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection - * will be created at the backend, and this backup belongs to this collection. Both collection and - * backup will have a resource name. Backup will be executed for each shard. A replica (primary if - * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an - * ongoing backup or update operation. Be aware that during preview, if the cluster's internal - * software version is too old, critical update will be performed before actual backup. Once the - * internal software version is updated to the minimum version required by the backup feature, - * subsequent backups will not require critical update. After preview, there will be no critical - * update needed for backup. - * - * Create a request for the method "clusters.backup". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Backup#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.BackupClusterRequest} - * @since 1.13 - */ - protected Backup(java.lang.String name, com.google.api.services.redis.v1.model.BackupClusterRequest content) { - super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - } - - @Override - public Backup set$Xgafv(java.lang.String $Xgafv) { - return (Backup) super.set$Xgafv($Xgafv); - } - - @Override - public Backup setAccessToken(java.lang.String accessToken) { - return (Backup) super.setAccessToken(accessToken); - } - - @Override - public Backup setAlt(java.lang.String alt) { - return (Backup) super.setAlt(alt); - } - - @Override - public Backup setCallback(java.lang.String callback) { - return (Backup) super.setCallback(callback); - } - - @Override - public Backup setFields(java.lang.String fields) { - return (Backup) super.setFields(fields); - } - - @Override - public Backup setKey(java.lang.String key) { - return (Backup) super.setKey(key); - } - - @Override - public Backup setOauthToken(java.lang.String oauthToken) { - return (Backup) super.setOauthToken(oauthToken); - } - - @Override - public Backup setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Backup) super.setPrettyPrint(prettyPrint); - } - - @Override - public Backup setQuotaUser(java.lang.String quotaUser) { - return (Backup) super.setQuotaUser(quotaUser); - } - - @Override - public Backup setUploadType(java.lang.String uploadType) { - return (Backup) super.setUploadType(uploadType); - } - - @Override - public Backup setUploadProtocol(java.lang.String uploadProtocol) { - return (Backup) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis cluster resource name using the form: - `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to - a Google Cloud region. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. - */ - public Backup setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Backup set(String parameterName, Object value) { - return (Backup) super.set(parameterName, value); - } - } - /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. The returned - * operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. - * - * Create a request for the method "clusters.create". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.Cluster} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.redis.v1.model.Cluster content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+parent}/clusters"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a Redis cluster based on the specified properties. The creation is executed - * asynchronously and callers may check the returned operation to track its progress. Once the - * operation is completed the Redis cluster will be fully functional. The completed - * longrunning.Operation will contain the new cluster object in the response field. The returned - * operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. - * - * Create a request for the method "clusters.create". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

- * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.Cluster} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.redis.v1.model.Cluster content) { - super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the cluster location using the form: - `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud - region. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The logical name of the Redis cluster in the customer project with the - * following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * - * Must start with a letter. * Must be between 1-63 characters. * Must end with a number - * or a letter. * Must be unique within the customer project / location - */ - @com.google.api.client.util.Key - private java.lang.String clusterId; - - /** Required. The logical name of the Redis cluster in the customer project with the following - restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a - letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique - within the customer project / location - */ - public java.lang.String getClusterId() { - return clusterId; - } - - /** - * Required. The logical name of the Redis cluster in the customer project with the - * following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * - * Must start with a letter. * Must be between 1-63 characters. * Must end with a number - * or a letter. * Must be unique within the customer project / location - */ - public Create setClusterId(java.lang.String clusterId) { - this.clusterId = clusterId; - return this; - } - - /** Optional. Idempotent request UUID. */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. Idempotent request UUID. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** Optional. Idempotent request UUID. */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. - * - * Create a request for the method "clusters.delete". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - - /** - * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. - * - * Create a request for the method "clusters.delete". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - } - - @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); - } - - /** - * Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis cluster resource name using the form: - `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to - a Google Cloud region. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. Idempotent request UUID. */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. Idempotent request UUID. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** Optional. Idempotent request UUID. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the details of a specific Redis cluster. - * - * Create a request for the method "clusters.get". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - - /** - * Gets the details of a specific Redis cluster. - * - * Create a request for the method "clusters.get". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.Cluster.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis cluster resource name using the form: - `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to - a Google Cloud region. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Redis cluster resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the details of certificate authority information for Redis cluster. - * - * Create a request for the method "clusters.getCertificateAuthority". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link GetCertificateAuthority#execute()} method to invoke the remote - * operation. - * - * @param name Required. Redis cluster certificate authority resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` - * where `location_id` refers to a Google Cloud region. - * @return the request - */ - public GetCertificateAuthority getCertificateAuthority(java.lang.String name) throws java.io.IOException { - GetCertificateAuthority result = new GetCertificateAuthority(name); - initialize(result); - return result; - } - - public class GetCertificateAuthority extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority$"); - - /** - * Gets the details of certificate authority information for Redis cluster. - * - * Create a request for the method "clusters.getCertificateAuthority". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link GetCertificateAuthority#execute()} method to invoke the remote - * operation.

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

- * - * @param name Required. Redis cluster certificate authority resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` - * where `location_id` refers to a Google Cloud region. - * @since 1.13 - */ - protected GetCertificateAuthority(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.CertificateAuthority.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetCertificateAuthority set$Xgafv(java.lang.String $Xgafv) { - return (GetCertificateAuthority) super.set$Xgafv($Xgafv); - } - - @Override - public GetCertificateAuthority setAccessToken(java.lang.String accessToken) { - return (GetCertificateAuthority) super.setAccessToken(accessToken); - } - - @Override - public GetCertificateAuthority setAlt(java.lang.String alt) { - return (GetCertificateAuthority) super.setAlt(alt); - } - - @Override - public GetCertificateAuthority setCallback(java.lang.String callback) { - return (GetCertificateAuthority) super.setCallback(callback); - } - - @Override - public GetCertificateAuthority setFields(java.lang.String fields) { - return (GetCertificateAuthority) super.setFields(fields); - } - - @Override - public GetCertificateAuthority setKey(java.lang.String key) { - return (GetCertificateAuthority) super.setKey(key); - } - - @Override - public GetCertificateAuthority setOauthToken(java.lang.String oauthToken) { - return (GetCertificateAuthority) super.setOauthToken(oauthToken); - } - - @Override - public GetCertificateAuthority setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetCertificateAuthority) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetCertificateAuthority setQuotaUser(java.lang.String quotaUser) { - return (GetCertificateAuthority) super.setQuotaUser(quotaUser); - } - - @Override - public GetCertificateAuthority setUploadType(java.lang.String uploadType) { - return (GetCertificateAuthority) super.setUploadType(uploadType); - } - - @Override - public GetCertificateAuthority setUploadProtocol(java.lang.String uploadProtocol) { - return (GetCertificateAuthority) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Redis cluster certificate authority resource name using the form: `projects/{ - * project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where - * `location_id` refers to a Google Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Redis cluster certificate authority resource name using the form: - `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where - `location_id` refers to a Google Cloud region. - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The resource name of the backupCollection using the form: `projects/{projec + * t_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Required. Redis cluster certificate authority resource name using the form: `projects/{ - * project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where - * `location_id` refers to a Google Cloud region. - */ - public GetCertificateAuthority setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority$"); + /** Required. The resource name of the backupCollection using the form: + `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + */ + public java.lang.String getParent() { + return parent; } - this.name = name; - return this; - } - - @Override - public GetCertificateAuthority set(String parameterName, Object value) { - return (GetCertificateAuthority) super.set(parameterName, value); - } - } - /** - * Lists all Redis clusters owned by a project in either the specified location (region) or all - * locations. The location should have the following format: * - * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), - * then all regions available to the project are queried, and the results are aggregated. - * - * Create a request for the method "clusters.list". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+parent}/clusters"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - /** - * Lists all Redis clusters owned by a project in either the specified location (region) or all - * locations. The location should have the following format: * - * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` - * (wildcard), then all regions available to the project are queried, and the results are - * aggregated. - * - * Create a request for the method "clusters.list". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param parent Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListClustersResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** + * Required. The resource name of the backupCollection using the form: `projects/{projec + * t_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+$"); + } + this.parent = parent; + return this; } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - /** Required. The resource name of the cluster location using the form: - `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud - region. - */ - public java.lang.String getParent() { - return parent; - } + /** + * Optional. The maximum number of items to return. If not specified, a default value of + * 1000 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's `next_page_token` + * to determine if there are more clusters left to be queried. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * Required. The resource name of the cluster location using the form: - * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google - * Cloud region. - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be + used by the service. Regardless of the page_size value, the response may include a partial list and + a caller should only rely on response's `next_page_token` to determine if there are more clusters + left to be queried. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - this.parent = parent; - return this; - } - - /** - * The maximum number of items to return. If not specified, a default value of 1000 will - * be used by the service. Regardless of the page_size value, the response may include a - * partial list and a caller should only rely on response's `next_page_token` to determine - * if there are more clusters left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of items to return. If not specified, a default value of 1000 will be used by - the service. Regardless of the page_size value, the response may include a partial list and a - caller should only rely on response's `next_page_token` to determine if there are more clusters - left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - /** - * The maximum number of items to return. If not specified, a default value of 1000 will - * be used by the service. Regardless of the page_size value, the response may include a - * partial list and a caller should only rely on response's `next_page_token` to determine - * if there are more clusters left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Optional. The maximum number of items to return. If not specified, a default value of + * 1000 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's `next_page_token` + * to determine if there are more clusters left to be queried. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * The `next_page_token` value returned from a previous `ListClusters` request, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Optional. The `next_page_token` value returned from a previous + * [ListBackupCollections] request, if any. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The `next_page_token` value returned from a previous `ListClusters` request, if any. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** Optional. The `next_page_token` value returned from a previous [ListBackupCollections] request, if + any. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * The `next_page_token` value returned from a previous `ListClusters` request, if any. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * Optional. The `next_page_token` value returned from a previous + * [ListBackupCollections] request, if any. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } + } + } + /** + * An accessor for creating requests from the Clusters collection. + * + *

The typical use is:

+ *
+       *   {@code CloudRedis redis = new CloudRedis(...);}
+       *   {@code CloudRedis.Clusters.List request = redis.clusters().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Clusters clusters() { + return new Clusters(); + } + + /** + * The "clusters" collection of methods. + */ + public class Clusters { + /** - * Updates the metadata and configuration of a specific Redis cluster. Completed - * longrunning.Operation will contain the new cluster object in the response field. The returned - * operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. * - * Create a request for the method "clusters.patch". + * Create a request for the method "clusters.backup". * * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Backup#execute()} method to invoke the remote operation. * - * @param name Required. Identifier. Unique name of the resource in this scope including project and location using - * the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` - * @param content the {@link com.google.api.services.redis.v1.model.Cluster} + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @param content the {@link com.google.api.services.redis.v1.model.BackupClusterRequest} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.redis.v1.model.Cluster content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Backup backup(java.lang.String name, com.google.api.services.redis.v1.model.BackupClusterRequest content) throws java.io.IOException { + Backup result = new Backup(name, content); initialize(result); return result; } - public class Patch extends CloudRedisRequest { + public class Backup extends CloudRedisRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:backup"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); /** - * Updates the metadata and configuration of a specific Redis cluster. Completed - * longrunning.Operation will contain the new cluster object in the response field. The returned - * operation is automatically deleted after a few hours, so there is no need to call - * DeleteOperation. + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. * - * Create a request for the method "clusters.patch". + * Create a request for the method "clusters.backup". * * This request holds the parameters needed by the the redis 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 Backup#execute()} method to invoke the remote operation.

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

* - * @param name Required. Identifier. Unique name of the resource in this scope including project and location using - * the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` - * @param content the {@link com.google.api.services.redis.v1.model.Cluster} + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @param content the {@link com.google.api.services.redis.v1.model.BackupClusterRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.redis.v1.model.Cluster content) { - super(CloudRedis.this, "PATCH", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); + protected Backup(java.lang.String name, com.google.api.services.redis.v1.model.BackupClusterRequest content) { + super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -3936,81 +1829,82 @@ protected Patch(java.lang.String name, com.google.api.services.redis.v1.model.Cl } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Backup set$Xgafv(java.lang.String $Xgafv) { + return (Backup) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Backup setAccessToken(java.lang.String accessToken) { + return (Backup) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Backup setAlt(java.lang.String alt) { + return (Backup) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Backup setCallback(java.lang.String callback) { + return (Backup) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Backup setFields(java.lang.String fields) { + return (Backup) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Backup setKey(java.lang.String key) { + return (Backup) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Backup setOauthToken(java.lang.String oauthToken) { + return (Backup) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Backup setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Backup) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Backup setQuotaUser(java.lang.String quotaUser) { + return (Backup) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Backup setUploadType(java.lang.String uploadType) { + return (Backup) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Backup setUploadProtocol(java.lang.String uploadProtocol) { + return (Backup) super.setUploadProtocol(uploadProtocol); } /** - * Required. Identifier. Unique name of the resource in this scope including project and - * location using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + * Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Identifier. Unique name of the resource in this scope including project and location - using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + /** Required. Redis cluster resource name using the form: + `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to + a Google Cloud region. */ public java.lang.String getName() { return name; } /** - * Required. Identifier. Unique name of the resource in this scope including project and - * location using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + * Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. */ - public Patch setName(java.lang.String name) { + public Backup setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -4020,1507 +1914,1214 @@ public Patch setName(java.lang.String name) { return this; } - /** Optional. Idempotent request UUID. */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. Idempotent request UUID. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** Optional. Idempotent request UUID. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from Cluster: * - * `size_gb` * `replica_count` * `cluster_endpoints` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from Cluster: * `size_gb` * - `replica_count` * `cluster_endpoints` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from Cluster: * - * `size_gb` * `replica_count` * `cluster_endpoints` - */ - 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 Backup set(String parameterName, Object value) { + return (Backup) super.set(parameterName, value); } } /** - * Reschedules upcoming maintenance event. + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. The returned + * operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. * - * Create a request for the method "clusters.rescheduleClusterMaintenance". + * Create a request for the method "clusters.create". * * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. Redis Cluster instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest} + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @param content the {@link com.google.api.services.redis.v1.model.Cluster} * @return the request */ - public RescheduleClusterMaintenance rescheduleClusterMaintenance(java.lang.String name, com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest content) throws java.io.IOException { - RescheduleClusterMaintenance result = new RescheduleClusterMaintenance(name, content); + public Create create(java.lang.String parent, com.google.api.services.redis.v1.model.Cluster content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class RescheduleClusterMaintenance extends CloudRedisRequest { + public class Create extends CloudRedisRequest { - private static final String REST_PATH = "v1/{+name}:rescheduleClusterMaintenance"; + private static final String REST_PATH = "v1/{+parent}/clusters"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Reschedules upcoming maintenance event. + * Creates a Redis cluster based on the specified properties. The creation is executed + * asynchronously and callers may check the returned operation to track its progress. Once the + * operation is completed the Redis cluster will be fully functional. The completed + * longrunning.Operation will contain the new cluster object in the response field. The returned + * operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. * - * Create a request for the method "clusters.rescheduleClusterMaintenance". + * Create a request for the method "clusters.create". * * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param name Required. Redis Cluster instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` - * refers to a Google Cloud region. - * @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest} + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @param content the {@link com.google.api.services.redis.v1.model.Cluster} * @since 1.13 */ - protected RescheduleClusterMaintenance(java.lang.String name, com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest content) { + protected Create(java.lang.String parent, com.google.api.services.redis.v1.model.Cluster content) { super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public RescheduleClusterMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (RescheduleClusterMaintenance) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public RescheduleClusterMaintenance setAccessToken(java.lang.String accessToken) { - return (RescheduleClusterMaintenance) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public RescheduleClusterMaintenance setAlt(java.lang.String alt) { - return (RescheduleClusterMaintenance) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public RescheduleClusterMaintenance setCallback(java.lang.String callback) { - return (RescheduleClusterMaintenance) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public RescheduleClusterMaintenance setFields(java.lang.String fields) { - return (RescheduleClusterMaintenance) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public RescheduleClusterMaintenance setKey(java.lang.String key) { - return (RescheduleClusterMaintenance) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public RescheduleClusterMaintenance setOauthToken(java.lang.String oauthToken) { - return (RescheduleClusterMaintenance) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public RescheduleClusterMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RescheduleClusterMaintenance) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public RescheduleClusterMaintenance setQuotaUser(java.lang.String quotaUser) { - return (RescheduleClusterMaintenance) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public RescheduleClusterMaintenance setUploadType(java.lang.String uploadType) { - return (RescheduleClusterMaintenance) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public RescheduleClusterMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (RescheduleClusterMaintenance) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. Redis Cluster instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. + * Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. Redis Cluster instance resource name using the form: - `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to - a Google Cloud region. + /** Required. The resource name of the cluster location using the form: + `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud + region. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. Redis Cluster instance resource name using the form: - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where - * `location_id` refers to a Google Cloud region. + * Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. */ - public RescheduleClusterMaintenance setName(java.lang.String name) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - @Override - public RescheduleClusterMaintenance set(String parameterName, Object value) { - return (RescheduleClusterMaintenance) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the TokenAuthUsers collection. - * - *

The typical use is:

- *
-         *   {@code CloudRedis redis = new CloudRedis(...);}
-         *   {@code CloudRedis.TokenAuthUsers.List request = redis.tokenAuthUsers().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public TokenAuthUsers tokenAuthUsers() { - return new TokenAuthUsers(); - } + /** + * Required. The logical name of the Redis cluster in the customer project with the + * following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * + * Must start with a letter. * Must be between 1-63 characters. * Must end with a number + * or a letter. * Must be unique within the customer project / location + */ + @com.google.api.client.util.Key + private java.lang.String clusterId; - /** - * The "tokenAuthUsers" collection of methods. - */ - public class TokenAuthUsers { + /** Required. The logical name of the Redis cluster in the customer project with the following + restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a + letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique + within the customer project / location + */ + public java.lang.String getClusterId() { + return clusterId; + } /** - * Adds a auth token for a user of a token based auth enabled cluster. - * - * Create a request for the method "tokenAuthUsers.addAuthToken". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link AddAuthToken#execute()} method to invoke the remote operation. - * - * @param tokenAuthUser Required. The name of the token auth user resource that this auth token will be added for. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @param content the {@link com.google.api.services.redis.v1.model.AddAuthTokenRequest} - * @return the request + * Required. The logical name of the Redis cluster in the customer project with the + * following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * + * Must start with a letter. * Must be between 1-63 characters. * Must end with a number + * or a letter. * Must be unique within the customer project / location */ - public AddAuthToken addAuthToken(java.lang.String tokenAuthUser, com.google.api.services.redis.v1.model.AddAuthTokenRequest content) throws java.io.IOException { - AddAuthToken result = new AddAuthToken(tokenAuthUser, content); - initialize(result); - return result; + public Create setClusterId(java.lang.String clusterId) { + this.clusterId = clusterId; + return this; } - public class AddAuthToken extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+tokenAuthUser}:addAuthToken"; - - private final java.util.regex.Pattern TOKEN_AUTH_USER_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - - /** - * Adds a auth token for a user of a token based auth enabled cluster. - * - * Create a request for the method "tokenAuthUsers.addAuthToken". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link AddAuthToken#execute()} method to invoke the remote operation.

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

- * - * @param tokenAuthUser Required. The name of the token auth user resource that this auth token will be added for. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @param content the {@link com.google.api.services.redis.v1.model.AddAuthTokenRequest} - * @since 1.13 - */ - protected AddAuthToken(java.lang.String tokenAuthUser, com.google.api.services.redis.v1.model.AddAuthTokenRequest content) { - super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); - this.tokenAuthUser = com.google.api.client.util.Preconditions.checkNotNull(tokenAuthUser, "Required parameter tokenAuthUser must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TOKEN_AUTH_USER_PATTERN.matcher(tokenAuthUser).matches(), - "Parameter tokenAuthUser must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - } - - @Override - public AddAuthToken set$Xgafv(java.lang.String $Xgafv) { - return (AddAuthToken) super.set$Xgafv($Xgafv); - } - - @Override - public AddAuthToken setAccessToken(java.lang.String accessToken) { - return (AddAuthToken) super.setAccessToken(accessToken); - } - - @Override - public AddAuthToken setAlt(java.lang.String alt) { - return (AddAuthToken) super.setAlt(alt); - } - - @Override - public AddAuthToken setCallback(java.lang.String callback) { - return (AddAuthToken) super.setCallback(callback); - } - - @Override - public AddAuthToken setFields(java.lang.String fields) { - return (AddAuthToken) super.setFields(fields); - } - - @Override - public AddAuthToken setKey(java.lang.String key) { - return (AddAuthToken) super.setKey(key); - } - - @Override - public AddAuthToken setOauthToken(java.lang.String oauthToken) { - return (AddAuthToken) super.setOauthToken(oauthToken); - } - - @Override - public AddAuthToken setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAuthToken) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddAuthToken setQuotaUser(java.lang.String quotaUser) { - return (AddAuthToken) super.setQuotaUser(quotaUser); - } + /** Optional. Idempotent request UUID. */ + @com.google.api.client.util.Key + private java.lang.String requestId; - @Override - public AddAuthToken setUploadType(java.lang.String uploadType) { - return (AddAuthToken) super.setUploadType(uploadType); - } + /** Optional. Idempotent request UUID. + */ + public java.lang.String getRequestId() { + return requestId; + } - @Override - public AddAuthToken setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAuthToken) super.setUploadProtocol(uploadProtocol); - } + /** Optional. Idempotent request UUID. */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } - /** - * Required. The name of the token auth user resource that this auth token will be added - * for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUser - * s/{token_auth_user} - */ - @com.google.api.client.util.Key - private java.lang.String tokenAuthUser; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. + * + * Create a request for the method "clusters.delete". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** Required. The name of the token auth user resource that this auth token will be added for. Format: - projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - */ - public java.lang.String getTokenAuthUser() { - return tokenAuthUser; - } + public class Delete extends CloudRedisRequest { - /** - * Required. The name of the token auth user resource that this auth token will be added - * for. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUser - * s/{token_auth_user} - */ - public AddAuthToken setTokenAuthUser(java.lang.String tokenAuthUser) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TOKEN_AUTH_USER_PATTERN.matcher(tokenAuthUser).matches(), - "Parameter tokenAuthUser must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - this.tokenAuthUser = tokenAuthUser; - return this; - } + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - @Override - public AddAuthToken set(String parameterName, Object value) { - return (AddAuthToken) super.set(parameterName, value); - } - } /** - * Deletes a token auth user for a token based auth enabled cluster. + * Deletes a specific Redis cluster. Cluster stops serving and data is deleted. * - * Create a request for the method "tokenAuthUsers.delete". + * Create a request for the method "clusters.delete". * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the token auth user to delete. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @return the request + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - - /** - * Deletes a token auth user for a token based auth enabled cluster. - * - * Create a request for the method "tokenAuthUsers.delete". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The name of the token auth user to delete. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } + protected Delete(java.lang.String name) { + super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); } + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @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 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 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 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 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 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 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 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 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 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 setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of the token auth user to delete. Format: projects/{project}/locat - * ions/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Required. The name of the token auth user to delete. Format: - projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - */ - public java.lang.String getName() { - return name; - } + /** Required. Redis cluster resource name using the form: + `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to + a Google Cloud region. + */ + public java.lang.String getName() { + return name; + } - /** - * Required. The name of the token auth user to delete. Format: projects/{project}/locat - * ions/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - this.name = name; - return this; + /** + * Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); } + this.name = name; + return this; + } - /** - * Optional. If set to true, any child auth tokens of this user will also be deleted. - * Otherwise, the request will only work if the user has no auth tokens. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Optional. If set to true, any child auth tokens of this user will also be deleted. Otherwise, the - request will only work if the user has no auth tokens. - */ - public java.lang.Boolean getForce() { - return force; - } + /** Optional. Idempotent request UUID. */ + @com.google.api.client.util.Key + private java.lang.String requestId; - /** - * Optional. If set to true, any child auth tokens of this user will also be deleted. - * Otherwise, the request will only work if the user has no auth tokens. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } + /** Optional. Idempotent request UUID. + */ + public java.lang.String getRequestId() { + return requestId; + } - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first 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. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; + /** Optional. Idempotent request UUID. */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } - /** Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes after the first 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. The request ID must be 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the details of a specific Redis cluster. + * + * Create a request for the method "clusters.get". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** - * Optional. An optional request ID to identify requests. Specify a unique 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 server will guarantee that for at least 60 minutes - * after the first 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. The request ID must be 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 Get extends CloudRedisRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets a specific token auth user for a basic auth enabled cluster. + * Gets the details of a specific Redis cluster. * - * Create a request for the method "tokenAuthUsers.get". + * Create a request for the method "clusters.get". * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of token auth user for a token based auth enabled cluster. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @return the request + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.Cluster.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); + } } - public class Get extends CloudRedisRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Gets a specific token auth user for a basic auth enabled cluster. - * - * Create a request for the method "tokenAuthUsers.get". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The name of token auth user for a token based auth enabled cluster. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.TokenAuthUser.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. Redis cluster resource name using the form: + `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to + a Google Cloud region. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the details of certificate authority information for Redis cluster. + * + * Create a request for the method "clusters.getCertificateAuthority". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link GetCertificateAuthority#execute()} method to invoke the remote + * operation. + * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a Google Cloud region. + * @return the request + */ + public GetCertificateAuthority getCertificateAuthority(java.lang.String name) throws java.io.IOException { + GetCertificateAuthority result = new GetCertificateAuthority(name); + initialize(result); + return result; + } - /** - * Required. The name of token auth user for a token based auth enabled cluster. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth - * _user} - */ - @com.google.api.client.util.Key - private java.lang.String name; + public class GetCertificateAuthority extends CloudRedisRequest { - /** Required. The name of token auth user for a token based auth enabled cluster. Format: - projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+name}"; - /** - * Required. The name of token auth user for a token based auth enabled cluster. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth - * _user} - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** + * Gets the details of certificate authority information for Redis cluster. + * + * Create a request for the method "clusters.getCertificateAuthority". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link GetCertificateAuthority#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a Google Cloud region. + * @since 1.13 + */ + protected GetCertificateAuthority(java.lang.String name) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.CertificateAuthority.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority$"); } } - /** - * Lists all the token auth users for a token based auth enabled cluster. - * - * Create a request for the method "tokenAuthUsers.list". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource that this token based auth user will be listed for. Format: - * projects/{project}/locations/{location}/clusters/{cluster} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - public class List extends CloudRedisRequest { + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private static final String REST_PATH = "v1/{+parent}/tokenAuthUsers"; + @Override + public GetCertificateAuthority set$Xgafv(java.lang.String $Xgafv) { + return (GetCertificateAuthority) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); + @Override + public GetCertificateAuthority setAccessToken(java.lang.String accessToken) { + return (GetCertificateAuthority) super.setAccessToken(accessToken); + } - /** - * Lists all the token auth users for a token based auth enabled cluster. - * - * Create a request for the method "tokenAuthUsers.list". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param parent Required. The parent resource that this token based auth user will be listed for. Format: - * projects/{project}/locations/{location}/clusters/{cluster} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListTokenAuthUsersResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - } + @Override + public GetCertificateAuthority setAlt(java.lang.String alt) { + return (GetCertificateAuthority) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public GetCertificateAuthority setCallback(java.lang.String callback) { + return (GetCertificateAuthority) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public GetCertificateAuthority setFields(java.lang.String fields) { + return (GetCertificateAuthority) super.setFields(fields); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public GetCertificateAuthority setKey(java.lang.String key) { + return (GetCertificateAuthority) super.setKey(key); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public GetCertificateAuthority setOauthToken(java.lang.String oauthToken) { + return (GetCertificateAuthority) super.setOauthToken(oauthToken); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public GetCertificateAuthority setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetCertificateAuthority) super.setPrettyPrint(prettyPrint); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public GetCertificateAuthority setQuotaUser(java.lang.String quotaUser) { + return (GetCertificateAuthority) super.setQuotaUser(quotaUser); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public GetCertificateAuthority setUploadType(java.lang.String uploadType) { + return (GetCertificateAuthority) super.setUploadType(uploadType); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public GetCertificateAuthority setUploadProtocol(java.lang.String uploadProtocol) { + return (GetCertificateAuthority) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * Required. Redis cluster certificate authority resource name using the form: `projects/{ + * project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where + * `location_id` refers to a Google Cloud region. + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Required. Redis cluster certificate authority resource name using the form: + `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where + `location_id` refers to a Google Cloud region. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** + * Required. Redis cluster certificate authority resource name using the form: `projects/{ + * project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` where + * `location_id` refers to a Google Cloud region. + */ + public GetCertificateAuthority setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority$"); } + this.name = name; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public GetCertificateAuthority set(String parameterName, Object value) { + return (GetCertificateAuthority) super.set(parameterName, value); + } + } + /** + * Lists all Redis clusters owned by a project in either the specified location (region) or all + * locations. The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), + * then all regions available to the project are queried, and the results are aggregated. + * + * Create a request for the method "clusters.list". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + public class List extends CloudRedisRequest { - /** - * Required. The parent resource that this token based auth user will be listed for. - * Format: projects/{project}/locations/{location}/clusters/{cluster} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + private static final String REST_PATH = "v1/{+parent}/clusters"; - /** Required. The parent resource that this token based auth user will be listed for. Format: - projects/{project}/locations/{location}/clusters/{cluster} - */ - public java.lang.String getParent() { - return parent; - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - /** - * Required. The parent resource that this token based auth user will be listed for. - * Format: projects/{project}/locations/{location}/clusters/{cluster} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - } - this.parent = parent; - return this; + /** + * Lists all Redis clusters owned by a project in either the specified location (region) or all + * locations. The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` + * (wildcard), then all regions available to the project are queried, and the results are + * aggregated. + * + * Create a request for the method "clusters.list". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListClustersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + } - /** Optional. Expression for filtering results. */ - @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(); + } - /** Optional. Expression for filtering results. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Optional. Expression for filtering results. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** Optional. Sort results by a defined order. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** Optional. Sort results by a defined order. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** Optional. Sort results by a defined order. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's The maximum value - * is 1000; values above 1000 will be coerced to 1000. `next_page_token` to determine if - * there are more clusters left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Optional. The maximum number of items to return. If not specified, a default value of 1000 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's The maximum value is 1000; values above 1000 will be - coerced to 1000. `next_page_token` to determine if there are more clusters left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 1000 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's The maximum value - * is 1000; values above 1000 will be coerced to 1000. `next_page_token` to determine if - * there are more clusters left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] - * request, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] request, if - any. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] - * request, if any. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * An accessor for creating requests from the AuthTokens collection. - * - *

The typical use is:

- *
-           *   {@code CloudRedis redis = new CloudRedis(...);}
-           *   {@code CloudRedis.AuthTokens.List request = redis.authTokens().list(parameters ...)}
-           * 
- * - * @return the resource collection + * Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the cluster location using the form: + `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud + region. */ - public AuthTokens authTokens() { - return new AuthTokens(); + public java.lang.String getParent() { + return parent; } /** - * The "authTokens" collection of methods. + * Required. The resource name of the cluster location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google + * Cloud region. */ - public class AuthTokens { - - /** - * Removes a auth token for a user of a token based auth enabled instance. - * - * Create a request for the method "authTokens.delete". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the token auth user resource that this auth token will be deleted from. - * Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_a - * uth_user}/authTokens/{auth_token} - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - public class Delete extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+$"); - - /** - * Removes a auth token for a user of a token based auth enabled instance. - * - * Create a request for the method "authTokens.delete". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The name of the token auth user resource that this auth token will be deleted from. - * Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_a - * uth_user}/authTokens/{auth_token} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(CloudRedis.this, "DELETE", REST_PATH, null, com.google.api.services.redis.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+$"); - } - } - - @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); - } + /** + * The maximum number of items to return. If not specified, a default value of 1000 will + * be used by the service. Regardless of the page_size value, the response may include a + * partial list and a caller should only rely on response's `next_page_token` to determine + * if there are more clusters left to be queried. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** The maximum number of items to return. If not specified, a default value of 1000 will be used by + the service. Regardless of the page_size value, the response may include a partial list and a + caller should only rely on response's `next_page_token` to determine if there are more clusters + left to be queried. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** + * The maximum number of items to return. If not specified, a default value of 1000 will + * be used by the service. Regardless of the page_size value, the response may include a + * partial list and a caller should only rely on response's `next_page_token` to determine + * if there are more clusters left to be queried. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** The `next_page_token` value returned from a previous ListClusters request, if any. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** The `next_page_token` value returned from a previous ListClusters request, if any. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** The `next_page_token` value returned from a previous ListClusters request, if any. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the metadata and configuration of a specific Redis cluster. Completed + * longrunning.Operation will contain the new cluster object in the response field. The returned + * operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + * Create a request for the method "clusters.patch". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Identifier. Unique name of the resource in this scope including project and location using + * the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + * @param content the {@link com.google.api.services.redis.v1.model.Cluster} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.redis.v1.model.Cluster content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + public class Patch extends CloudRedisRequest { - /** - * Required. The name of the token auth user resource that this auth token will be - * deleted from. Format: projects/{project}/locations/{location}/clusters/{cluster}/to - * kenAuthUsers/{token_auth_user}/authTokens/{auth_token} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the token auth user resource that this auth token will be deleted from. - Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - /authTokens/{auth_token} - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+name}"; - /** - * Required. The name of the token auth user resource that this auth token will be - * deleted from. Format: projects/{project}/locations/{location}/clusters/{cluster}/to - * kenAuthUsers/{token_auth_user}/authTokens/{auth_token} - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a specific auth token for a specific token auth user. - * - * Create a request for the method "authTokens.get". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of auth token for a token based auth enabled cluster. Format: projects/{project}/ - * locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_ - * token} - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + /** + * Updates the metadata and configuration of a specific Redis cluster. Completed + * longrunning.Operation will contain the new cluster object in the response field. The returned + * operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + * Create a request for the method "clusters.patch". + * + * This request holds the parameters needed by the the redis 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 name Required. Identifier. Unique name of the resource in this scope including project and location using + * the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + * @param content the {@link com.google.api.services.redis.v1.model.Cluster} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.redis.v1.model.Cluster content) { + super(CloudRedis.this, "PATCH", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); } + } - public class Get extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+$"); - - /** - * Gets a specific auth token for a specific token auth user. - * - * Create a request for the method "authTokens.get". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. The name of auth token for a token based auth enabled cluster. Format: projects/{project}/ - * locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_ - * token} - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.AuthToken.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + 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); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of auth token for a token based auth enabled cluster. Format: pr - * ojects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth - * _user}/authTokens/{auth_token} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of auth token for a token based auth enabled cluster. Format: projects/{project} - /locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token} - */ - public java.lang.String getName() { - return name; - } + /** + * Required. Identifier. Unique name of the resource in this scope including project and + * location using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The name of auth token for a token based auth enabled cluster. Format: pr - * ojects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth - * _user}/authTokens/{auth_token} - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. Identifier. Unique name of the resource in this scope including project and location + using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists all the auth tokens for a specific token auth user. - * - * Create a request for the method "authTokens.list". - * - * This request holds the parameters needed by the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource that this auth token will be listed for. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + /** + * Required. Identifier. Unique name of the resource in this scope including project and + * location using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); } + this.name = name; + return this; + } - public class List extends CloudRedisRequest { - - private static final String REST_PATH = "v1/{+parent}/authTokens"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - - /** - * Lists all the auth tokens for a specific token auth user. - * - * Create a request for the method "authTokens.list". - * - * This request holds the parameters needed by the the redis server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param parent Required. The parent resource that this auth token will be listed for. Format: - * projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user - * } - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudRedis.this, "GET", REST_PATH, null, com.google.api.services.redis.v1.model.ListAuthTokensResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Optional. Idempotent request UUID. */ + @com.google.api.client.util.Key + private java.lang.String requestId; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** Optional. Idempotent request UUID. + */ + public java.lang.String getRequestId() { + return requestId; + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** Optional. Idempotent request UUID. */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * Required. Mask of fields to update. At least one path must be supplied in this field. + * The elements of the repeated paths field may only include these fields from Cluster: * + * `size_gb` * `replica_count` * `cluster_endpoints` + */ + @com.google.api.client.util.Key + private java.lang.String updateMask; - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements + of the repeated paths field may only include these fields from Cluster: * `size_gb` * + `replica_count` * `cluster_endpoints` + */ + public java.lang.String getUpdateMask() { + return updateMask; + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** + * Required. Mask of fields to update. At least one path must be supplied in this field. + * The elements of the repeated paths field may only include these fields from Cluster: * + * `size_gb` * `replica_count` * `cluster_endpoints` + */ + public Patch setUpdateMask(java.lang.String updateMask) { + this.updateMask = updateMask; + return this; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Reschedules upcoming maintenance event. + * + * Create a request for the method "clusters.rescheduleClusterMaintenance". + * + * This request holds the parameters needed by the redis server. After setting any optional + * parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote + * operation. + * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest} + * @return the request + */ + public RescheduleClusterMaintenance rescheduleClusterMaintenance(java.lang.String name, com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest content) throws java.io.IOException { + RescheduleClusterMaintenance result = new RescheduleClusterMaintenance(name, content); + initialize(result); + return result; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + public class RescheduleClusterMaintenance extends CloudRedisRequest { - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + private static final String REST_PATH = "v1/{+name}:rescheduleClusterMaintenance"; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** + * Reschedules upcoming maintenance event. + * + * Create a request for the method "clusters.rescheduleClusterMaintenance". + * + * This request holds the parameters needed by the the redis server. After setting any optional + * parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a Google Cloud region. + * @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest} + * @since 1.13 + */ + protected RescheduleClusterMaintenance(java.lang.String name, com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest content) { + super(CloudRedis.this, "POST", REST_PATH, content, com.google.api.services.redis.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); + } + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public RescheduleClusterMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (RescheduleClusterMaintenance) super.set$Xgafv($Xgafv); + } - /** - * Required. The parent resource that this auth token will be listed for. Format: proj - * ects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_u - * ser} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource that this auth token will be listed for. Format: - projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} - */ - public java.lang.String getParent() { - return parent; - } + @Override + public RescheduleClusterMaintenance setAccessToken(java.lang.String accessToken) { + return (RescheduleClusterMaintenance) super.setAccessToken(accessToken); + } - /** - * Required. The parent resource that this auth token will be listed for. Format: proj - * ects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_u - * ser} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/tokenAuthUsers/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public RescheduleClusterMaintenance setAlt(java.lang.String alt) { + return (RescheduleClusterMaintenance) super.setAlt(alt); + } - /** Optional. Expression for filtering results. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public RescheduleClusterMaintenance setCallback(java.lang.String callback) { + return (RescheduleClusterMaintenance) super.setCallback(callback); + } - /** Optional. Expression for filtering results. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public RescheduleClusterMaintenance setFields(java.lang.String fields) { + return (RescheduleClusterMaintenance) super.setFields(fields); + } - /** Optional. Expression for filtering results. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public RescheduleClusterMaintenance setKey(java.lang.String key) { + return (RescheduleClusterMaintenance) super.setKey(key); + } - /** Optional. Sort results by a defined order. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public RescheduleClusterMaintenance setOauthToken(java.lang.String oauthToken) { + return (RescheduleClusterMaintenance) super.setOauthToken(oauthToken); + } - /** Optional. Sort results by a defined order. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public RescheduleClusterMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RescheduleClusterMaintenance) super.setPrettyPrint(prettyPrint); + } - /** Optional. Sort results by a defined order. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public RescheduleClusterMaintenance setQuotaUser(java.lang.String quotaUser) { + return (RescheduleClusterMaintenance) super.setQuotaUser(quotaUser); + } - /** - * Optional. The maximum number of items to return. The maximum value is 1000; values - * above 1000 will be coerced to 1000. If not specified, a default value of 1000 will - * be used by the service. Regardless of the page_size value, the response may include - * a partial list and a caller should only rely on response's `next_page_token` to - * determine if there are more clusters left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. The maximum value is 1000; values above 1000 will - be coerced to 1000. If not specified, a default value of 1000 will be used by the service. - Regardless of the page_size value, the response may include a partial list and a caller should only - rely on response's `next_page_token` to determine if there are more clusters left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public RescheduleClusterMaintenance setUploadType(java.lang.String uploadType) { + return (RescheduleClusterMaintenance) super.setUploadType(uploadType); + } - /** - * Optional. The maximum number of items to return. The maximum value is 1000; values - * above 1000 will be coerced to 1000. If not specified, a default value of 1000 will - * be used by the service. Regardless of the page_size value, the response may include - * a partial list and a caller should only rely on response's `next_page_token` to - * determine if there are more clusters left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public RescheduleClusterMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (RescheduleClusterMaintenance) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] - * request, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] request, if - any. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. The `next_page_token` value returned from a previous [ListTokenAuthUsers] - * request, if any. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. Redis Cluster instance resource name using the form: + `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to + a Google Cloud region. + */ + public java.lang.String getName() { + return name; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** + * Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where + * `location_id` refers to a Google Cloud region. + */ + public RescheduleClusterMaintenance setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$"); } + this.name = name; + return this; + } + @Override + public RescheduleClusterMaintenance set(String parameterName, Object value) { + return (RescheduleClusterMaintenance) super.set(parameterName, value); } } + } /** * An accessor for creating requests from the Instances collection. @@ -6993,13 +4594,13 @@ public Patch setName(java.lang.String name) { * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -7008,7 +4609,7 @@ public String getUpdateMask() { * The elements of the repeated paths field may only include these fields from Instance: * * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedisScopes.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedisScopes.java index 227a69115af..880eb9408e9 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedisScopes.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/CloudRedisScopes.java @@ -26,12 +26,6 @@ public class CloudRedisScopes { /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** See your Google Cloud Memorystore for Redis data and the email address of your Google Account. */ - public static final String REDIS_READ_ONLY = "https://www.googleapis.com/auth/redis.read-only"; - - /** See, edit, configure, and delete your Google Cloud Memorystore for Redis data and see the email address for your Google Account. */ - public static final String REDIS_READ_WRITE = "https://www.googleapis.com/auth/redis.read-write"; - /** * Returns an unmodifiable set that contains all scopes declared by this class. * @@ -40,8 +34,6 @@ public class CloudRedisScopes { public static java.util.Set all() { java.util.Set set = new java.util.HashSet(); set.add(CLOUD_PLATFORM); - set.add(REDIS_READ_ONLY); - set.add(REDIS_READ_WRITE); return java.util.Collections.unmodifiableSet(set); } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AutomatedBackupConfig.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AutomatedBackupConfig.java index 6caa7769e56..dc717b099b2 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AutomatedBackupConfig.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/AutomatedBackupConfig.java @@ -50,7 +50,7 @@ public final class AutomatedBackupConfig extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String retention; + private java.lang.String retention; /** * Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored. @@ -91,7 +91,7 @@ public AutomatedBackupConfig setFixedFrequencySchedule(FixedFrequencySchedule fi * be between 1 day and 365 days. If not specified, the default value is 35 days. * @return value or {@code null} for none */ - public String getRetention() { + public java.lang.String getRetention() { return retention; } @@ -100,7 +100,7 @@ public String getRetention() { * be between 1 day and 365 days. If not specified, the default value is 35 days. * @param retention retention or {@code null} for none */ - public AutomatedBackupConfig setRetention(String retention) { + public AutomatedBackupConfig setRetention(java.lang.String retention) { this.retention = retention; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Backup.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Backup.java index b55fed6cb93..8cba6ddcd30 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Backup.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Backup.java @@ -63,7 +63,7 @@ public final class Backup extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Encryption information of the backup. @@ -84,7 +84,7 @@ public final class Backup extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Identifier. Full resource path of the backup. the last part of the name is the backup id with @@ -209,7 +209,7 @@ public Backup setClusterUid(java.lang.String clusterUid) { * Output only. The time when the backup was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -217,7 +217,7 @@ public String getCreateTime() { * Output only. The time when the backup was created. * @param createTime createTime or {@code null} for none */ - public Backup setCreateTime(String createTime) { + public Backup setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -260,7 +260,7 @@ public Backup setEngineVersion(java.lang.String engineVersion) { * Output only. The time when the backup will expire. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -268,7 +268,7 @@ public String getExpireTime() { * Output only. The time when the backup will expire. * @param expireTime expireTime or {@code null} for none */ - public Backup setExpireTime(String expireTime) { + public Backup setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupClusterRequest.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupClusterRequest.java index 1a597a01389..4a1917ba4c9 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupClusterRequest.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupClusterRequest.java @@ -17,7 +17,7 @@ package com.google.api.services.redis.v1.model; /** - * Request for `BackupCluster`. + * Request for [BackupCluster]. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Cloud Memorystore for Redis API. For a @@ -44,7 +44,7 @@ public final class BackupClusterRequest extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String ttl; + private java.lang.String ttl; /** * Optional. The id of the backup to be created. If not specified, the default value @@ -70,7 +70,7 @@ public BackupClusterRequest setBackupId(java.lang.String backupId) { * the default value is 100 years. * @return value or {@code null} for none */ - public String getTtl() { + public java.lang.String getTtl() { return ttl; } @@ -79,7 +79,7 @@ public String getTtl() { * the default value is 100 years. * @param ttl ttl or {@code null} for none */ - public BackupClusterRequest setTtl(String ttl) { + public BackupClusterRequest setTtl(java.lang.String ttl) { this.ttl = ttl; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupCollection.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupCollection.java index f07bc6022e7..5703a99c307 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupCollection.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupCollection.java @@ -50,7 +50,7 @@ public final class BackupCollection extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The KMS key used to encrypt the backups under this backup collection. @@ -64,7 +64,7 @@ public final class BackupCollection extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastBackupTime; + private java.lang.String lastBackupTime; /** * Identifier. Full resource path of the backup collection. @@ -134,7 +134,7 @@ public BackupCollection setClusterUid(java.lang.String clusterUid) { * Output only. The time when the backup collection was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -142,7 +142,7 @@ public String getCreateTime() { * Output only. The time when the backup collection was created. * @param createTime createTime or {@code null} for none */ - public BackupCollection setCreateTime(String createTime) { + public BackupCollection setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -168,7 +168,7 @@ public BackupCollection setKmsKey(java.lang.String kmsKey) { * Output only. The last time a backup was created in the backup collection. * @return value or {@code null} for none */ - public String getLastBackupTime() { + public java.lang.String getLastBackupTime() { return lastBackupTime; } @@ -176,7 +176,7 @@ public String getLastBackupTime() { * Output only. The last time a backup was created in the backup collection. * @param lastBackupTime lastBackupTime or {@code null} for none */ - public BackupCollection setLastBackupTime(String lastBackupTime) { + public BackupCollection setLastBackupTime(java.lang.String lastBackupTime) { this.lastBackupTime = lastBackupTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupDRMetadata.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupDRMetadata.java index 816a90a144e..0403a8b4c10 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupDRMetadata.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupDRMetadata.java @@ -64,7 +64,7 @@ public final class BackupDRMetadata extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Required. Database resource id. @@ -145,7 +145,7 @@ public BackupDRMetadata setFullResourceName(java.lang.String fullResourceName) { * Required. Last time backup configuration was refreshed. * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -153,7 +153,7 @@ public String getLastRefreshTime() { * Required. Last time backup configuration was refreshed. * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public BackupDRMetadata setLastRefreshTime(String lastRefreshTime) { + public BackupDRMetadata setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupFile.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupFile.java index c5573a4ab9a..cb6ba030f67 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupFile.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupFile.java @@ -35,7 +35,7 @@ public final class BackupFile extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. e.g: .rdb @@ -55,7 +55,7 @@ public final class BackupFile extends com.google.api.client.json.GenericJson { * Output only. The time when the backup file was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -63,7 +63,7 @@ public String getCreateTime() { * Output only. The time when the backup file was created. * @param createTime createTime or {@code null} for none */ - public BackupFile setCreateTime(String createTime) { + public BackupFile setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupRun.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupRun.java index c3a4252c8bf..d3519cb3945 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupRun.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/BackupRun.java @@ -35,7 +35,7 @@ public final class BackupRun extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Information about why the backup operation failed. This is only present if the run has the @@ -50,7 +50,7 @@ public final class BackupRun extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * The status of this run. REQUIRED @@ -63,7 +63,7 @@ public final class BackupRun extends com.google.api.client.json.GenericJson { * The time the backup operation completed. REQUIRED * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -71,7 +71,7 @@ public String getEndTime() { * The time the backup operation completed. REQUIRED * @param endTime endTime or {@code null} for none */ - public BackupRun setEndTime(String endTime) { + public BackupRun setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -99,7 +99,7 @@ public BackupRun setError(OperationError error) { * The time the backup operation started. REQUIRED * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -107,7 +107,7 @@ public String getStartTime() { * The time the backup operation started. REQUIRED * @param startTime startTime or {@code null} for none */ - public BackupRun setStartTime(String startTime) { + public BackupRun setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java index 503d7328863..54cb1f63418 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Cluster.java @@ -37,15 +37,6 @@ public final class Cluster extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String aclPolicy; - /** - * Optional. Output only. Indicates whether the ACL rules applied to the cluster are in sync with - * the latest ACL policy rules. This field is only applicable if the ACL policy is set for the - * cluster. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean aclPolicyInSync; - /** * Optional. Immutable. Deprecated, do not use. * The value may be {@code null}. @@ -105,7 +96,7 @@ public final class Cluster extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Cross cluster replication config. @@ -385,27 +376,6 @@ public Cluster setAclPolicy(java.lang.String aclPolicy) { return this; } - /** - * Optional. Output only. Indicates whether the ACL rules applied to the cluster are in sync with - * the latest ACL policy rules. This field is only applicable if the ACL policy is set for the - * cluster. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAclPolicyInSync() { - return aclPolicyInSync; - } - - /** - * Optional. Output only. Indicates whether the ACL rules applied to the cluster are in sync with - * the latest ACL policy rules. This field is only applicable if the ACL policy is set for the - * cluster. - * @param aclPolicyInSync aclPolicyInSync or {@code null} for none - */ - public Cluster setAclPolicyInSync(java.lang.Boolean aclPolicyInSync) { - this.aclPolicyInSync = aclPolicyInSync; - return this; - } - /** * Optional. Immutable. Deprecated, do not use. * @return value or {@code null} for none @@ -539,7 +509,7 @@ public Cluster setClusterEndpoints(java.util.List clusterEndpoi * Output only. The timestamp associated with the cluster creation request. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -547,7 +517,7 @@ public String getCreateTime() { * Output only. The timestamp associated with the cluster creation request. * @param createTime createTime or {@code null} for none */ - public Cluster setCreateTime(String createTime) { + public Cluster setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenancePolicy.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenancePolicy.java index 556cd0a0c7c..f1a27e711b5 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenancePolicy.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenancePolicy.java @@ -36,7 +36,7 @@ public final class ClusterMaintenancePolicy extends com.google.api.client.json.G * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was @@ -44,7 +44,7 @@ public final class ClusterMaintenancePolicy extends com.google.api.client.json.G * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. @@ -59,7 +59,7 @@ public final class ClusterMaintenancePolicy extends com.google.api.client.json.G * assigned. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -68,7 +68,7 @@ public String getCreateTime() { * assigned. * @param createTime createTime or {@code null} for none */ - public ClusterMaintenancePolicy setCreateTime(String createTime) { + public ClusterMaintenancePolicy setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -78,7 +78,7 @@ public ClusterMaintenancePolicy setCreateTime(String createTime) { * updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -87,7 +87,7 @@ public String getUpdateTime() { * updated. * @param updateTime updateTime or {@code null} for none */ - public ClusterMaintenancePolicy setUpdateTime(String updateTime) { + public ClusterMaintenancePolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenanceSchedule.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenanceSchedule.java index 677e94cc1db..1651097599d 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenanceSchedule.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ClusterMaintenanceSchedule.java @@ -35,20 +35,20 @@ public final class ClusterMaintenanceSchedule extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. The start time of any upcoming scheduled maintenance for this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The end time of any upcoming scheduled maintenance for this instance. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -56,7 +56,7 @@ public String getEndTime() { * Output only. The end time of any upcoming scheduled maintenance for this instance. * @param endTime endTime or {@code null} for none */ - public ClusterMaintenanceSchedule setEndTime(String endTime) { + public ClusterMaintenanceSchedule setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -65,7 +65,7 @@ public ClusterMaintenanceSchedule setEndTime(String endTime) { * Output only. The start time of any upcoming scheduled maintenance for this instance. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -73,7 +73,7 @@ public String getStartTime() { * Output only. The start time of any upcoming scheduled maintenance for this instance. * @param startTime startTime or {@code null} for none */ - public ClusterMaintenanceSchedule setStartTime(String startTime) { + public ClusterMaintenanceSchedule setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ConfigBasedSignalData.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ConfigBasedSignalData.java index 738b7648a6e..dc34885d00d 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ConfigBasedSignalData.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ConfigBasedSignalData.java @@ -43,7 +43,7 @@ public final class ConfigBasedSignalData extends com.google.api.client.json.Gene * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Database resource id. @@ -87,7 +87,7 @@ public ConfigBasedSignalData setFullResourceName(java.lang.String fullResourceNa * Required. Last time signal was refreshed * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -95,7 +95,7 @@ public String getLastRefreshTime() { * Required. Last time signal was refreshed * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public ConfigBasedSignalData setLastRefreshTime(String lastRefreshTime) { + public ConfigBasedSignalData setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/CrossClusterReplicationConfig.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/CrossClusterReplicationConfig.java index 72abb0f9078..587429a71a5 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/CrossClusterReplicationConfig.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/CrossClusterReplicationConfig.java @@ -71,7 +71,7 @@ public final class CrossClusterReplicationConfig extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Output only. The role of the cluster in cross cluster replication. @@ -161,7 +161,7 @@ public CrossClusterReplicationConfig setSecondaryClusters(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 Google Cloud Memorystore for Redis API. For a @@ -64,7 +64,7 @@ public final class DatabaseResourceMetadata extends com.google.api.client.json.G * The value may be {@code null}. */ @com.google.api.client.util.Key - private String creationTime; + private java.lang.String creationTime; /** * Current state of the instance. @@ -152,13 +152,6 @@ public final class DatabaseResourceMetadata extends com.google.api.client.json.G @com.google.api.client.util.Key private ResourceMaintenanceInfo maintenanceInfo; - /** - * Optional. The modes of the database resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List modes; - /** * Identifier for this resource's immediate parent/primary resource if the current resource is a * replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the @@ -228,7 +221,7 @@ public final class DatabaseResourceMetadata extends com.google.api.client.json.G * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updationTime; + private java.lang.String updationTime; /** * User-provided labels associated with the resource @@ -318,7 +311,7 @@ public DatabaseResourceMetadata setBackupdrConfiguration(BackupDRConfiguration b * partner service. * @return value or {@code null} for none */ - public String getCreationTime() { + public java.lang.String getCreationTime() { return creationTime; } @@ -327,7 +320,7 @@ public String getCreationTime() { * partner service. * @param creationTime creationTime or {@code null} for none */ - public DatabaseResourceMetadata setCreationTime(String creationTime) { + public DatabaseResourceMetadata setCreationTime(java.lang.String creationTime) { this.creationTime = creationTime; return this; } @@ -540,23 +533,6 @@ public DatabaseResourceMetadata setMaintenanceInfo(ResourceMaintenanceInfo maint return this; } - /** - * Optional. The modes of the database resource. - * @return value or {@code null} for none - */ - public java.util.List getModes() { - return modes; - } - - /** - * Optional. The modes of the database resource. - * @param modes modes or {@code null} for none - */ - public DatabaseResourceMetadata setModes(java.util.List modes) { - this.modes = modes; - return this; - } - /** * Identifier for this resource's immediate parent/primary resource if the current resource is a * replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the @@ -713,7 +689,7 @@ public DatabaseResourceMetadata setTagsSet(Tags tagsSet) { * The time at which the resource was updated and recorded at partner service. * @return value or {@code null} for none */ - public String getUpdationTime() { + public java.lang.String getUpdationTime() { return updationTime; } @@ -721,7 +697,7 @@ public String getUpdationTime() { * The time at which the resource was updated and recorded at partner service. * @param updationTime updationTime or {@code null} for none */ - public DatabaseResourceMetadata setUpdationTime(String updationTime) { + public DatabaseResourceMetadata setUpdationTime(java.lang.String updationTime) { this.updationTime = updationTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceRecommendationSignalData.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceRecommendationSignalData.java index 4c7474fe022..d3400e28eaa 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceRecommendationSignalData.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceRecommendationSignalData.java @@ -42,7 +42,7 @@ public final class DatabaseResourceRecommendationSignalData extends com.google.a * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Required. Recommendation state @@ -116,7 +116,7 @@ public DatabaseResourceRecommendationSignalData setAdditionalMetadata(java.util. * Required. last time recommendationw as refreshed * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -124,7 +124,7 @@ public String getLastRefreshTime() { * Required. last time recommendationw as refreshed * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public DatabaseResourceRecommendationSignalData setLastRefreshTime(String lastRefreshTime) { + public DatabaseResourceRecommendationSignalData setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceSignalData.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceSignalData.java index 2ad0939bdc4..2fd42886406 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceSignalData.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/DatabaseResourceSignalData.java @@ -51,7 +51,7 @@ public final class DatabaseResourceSignalData extends com.google.api.client.json * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastRefreshTime; + private java.lang.String lastRefreshTime; /** * Resource location. @@ -133,7 +133,7 @@ public DatabaseResourceSignalData setFullResourceName(java.lang.String fullResou * Required. Last time signal was refreshed * @return value or {@code null} for none */ - public String getLastRefreshTime() { + public java.lang.String getLastRefreshTime() { return lastRefreshTime; } @@ -141,7 +141,7 @@ public String getLastRefreshTime() { * Required. Last time signal was refreshed * @param lastRefreshTime lastRefreshTime or {@code null} for none */ - public DatabaseResourceSignalData setLastRefreshTime(String lastRefreshTime) { + public DatabaseResourceSignalData setLastRefreshTime(java.lang.String lastRefreshTime) { this.lastRefreshTime = lastRefreshTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/EncryptionInfo.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/EncryptionInfo.java index 2f2a646f8a0..c1e20b20b81 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/EncryptionInfo.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/EncryptionInfo.java @@ -57,7 +57,7 @@ public final class EncryptionInfo extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String lastUpdateTime; + private java.lang.String lastUpdateTime; /** * Output only. Type of encryption. @@ -116,7 +116,7 @@ public EncryptionInfo setKmsKeyVersions(java.util.List kmsKeyV * Output only. The most recent time when the encryption info was updated. * @return value or {@code null} for none */ - public String getLastUpdateTime() { + public java.lang.String getLastUpdateTime() { return lastUpdateTime; } @@ -124,7 +124,7 @@ public String getLastUpdateTime() { * Output only. The most recent time when the encryption info was updated. * @param lastUpdateTime lastUpdateTime or {@code null} for none */ - public EncryptionInfo setLastUpdateTime(String lastUpdateTime) { + public EncryptionInfo setLastUpdateTime(java.lang.String lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ExportBackupRequest.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ExportBackupRequest.java index e1c9c0df8cf..fc74ff14825 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ExportBackupRequest.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ExportBackupRequest.java @@ -17,7 +17,7 @@ package com.google.api.services.redis.v1.model; /** - * Request for `ExportBackup`. + * Request for [ExportBackup]. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Cloud Memorystore for Redis API. For a diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/GoogleCloudRedisV1OperationMetadata.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/GoogleCloudRedisV1OperationMetadata.java index b6b72ce8bce..196126ec85f 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/GoogleCloudRedisV1OperationMetadata.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/GoogleCloudRedisV1OperationMetadata.java @@ -49,14 +49,14 @@ public final class GoogleCloudRedisV1OperationMetadata extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * End timestamp. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Operation status details. @@ -117,7 +117,7 @@ public GoogleCloudRedisV1OperationMetadata setCancelRequested(java.lang.Boolean * Creation timestamp. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -125,7 +125,7 @@ public String getCreateTime() { * Creation timestamp. * @param createTime createTime or {@code null} for none */ - public GoogleCloudRedisV1OperationMetadata setCreateTime(String createTime) { + public GoogleCloudRedisV1OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -134,7 +134,7 @@ public GoogleCloudRedisV1OperationMetadata setCreateTime(String createTime) { * End timestamp. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -142,7 +142,7 @@ public String getEndTime() { * End timestamp. * @param endTime endTime or {@code null} for none */ - public GoogleCloudRedisV1OperationMetadata setEndTime(String endTime) { + public GoogleCloudRedisV1OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Instance.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Instance.java index 104a0511643..4299e5caeb2 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Instance.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/Instance.java @@ -77,7 +77,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The current zone where the Redis primary node is located. In basic tier, this will @@ -446,7 +446,7 @@ public Instance setConnectMode(java.lang.String connectMode) { * Output only. The time the instance was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -454,7 +454,7 @@ public String getCreateTime() { * Output only. The time the instance was created. * @param createTime createTime or {@code null} for none */ - public Instance setCreateTime(String createTime) { + public Instance setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupCollectionsResponse.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupCollectionsResponse.java index f7a42511662..ecd0a0d3c5f 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupCollectionsResponse.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupCollectionsResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.redis.v1.model; /** - * Response for `ListBackupCollections`. + * Response for [ListBackupCollections]. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Cloud Memorystore for Redis API. For a diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupsResponse.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupsResponse.java index 7afb92dca5a..a6d6e4f7cdb 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupsResponse.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListBackupsResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.redis.v1.model; /** - * Response for `ListBackups`. + * Response for [ListBackups]. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Cloud Memorystore for Redis API. For a diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListClustersResponse.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListClustersResponse.java index d724b303af0..d49be7c0ca8 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListClustersResponse.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ListClustersResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.redis.v1.model; /** - * Response for `ListClusters`. + * Response for ListClusters. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Cloud Memorystore for Redis API. For a diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenancePolicy.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenancePolicy.java index 8d3c868c30b..922a5de5f68 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenancePolicy.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenancePolicy.java @@ -35,7 +35,7 @@ public final class MaintenancePolicy extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT @@ -50,7 +50,7 @@ public final class MaintenancePolicy extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. @@ -64,7 +64,7 @@ public final class MaintenancePolicy extends com.google.api.client.json.GenericJ * Output only. The time when the policy was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -72,7 +72,7 @@ public String getCreateTime() { * Output only. The time when the policy was created. * @param createTime createTime or {@code null} for none */ - public MaintenancePolicy setCreateTime(String createTime) { + public MaintenancePolicy setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -100,7 +100,7 @@ public MaintenancePolicy setDescription(java.lang.String description) { * Output only. The time when the policy was last updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -108,7 +108,7 @@ public String getUpdateTime() { * Output only. The time when the policy was last updated. * @param updateTime updateTime or {@code null} for none */ - public MaintenancePolicy setUpdateTime(String updateTime) { + public MaintenancePolicy setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenanceSchedule.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenanceSchedule.java index 347e73e84a8..001c8a67409 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenanceSchedule.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/MaintenanceSchedule.java @@ -42,7 +42,7 @@ public final class MaintenanceSchedule extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. The deadline that the maintenance schedule start time can not go beyond, including @@ -50,14 +50,14 @@ public final class MaintenanceSchedule extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String scheduleDeadlineTime; + private java.lang.String scheduleDeadlineTime; /** * Output only. The start time of any upcoming scheduled maintenance for this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * If the scheduled maintenance can be rescheduled, default is true. @@ -80,7 +80,7 @@ public MaintenanceSchedule setCanReschedule(java.lang.Boolean canReschedule) { * Output only. The end time of any upcoming scheduled maintenance for this instance. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -88,7 +88,7 @@ public String getEndTime() { * Output only. The end time of any upcoming scheduled maintenance for this instance. * @param endTime endTime or {@code null} for none */ - public MaintenanceSchedule setEndTime(String endTime) { + public MaintenanceSchedule setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -98,7 +98,7 @@ public MaintenanceSchedule setEndTime(String endTime) { * reschedule. * @return value or {@code null} for none */ - public String getScheduleDeadlineTime() { + public java.lang.String getScheduleDeadlineTime() { return scheduleDeadlineTime; } @@ -107,7 +107,7 @@ public String getScheduleDeadlineTime() { * reschedule. * @param scheduleDeadlineTime scheduleDeadlineTime or {@code null} for none */ - public MaintenanceSchedule setScheduleDeadlineTime(String scheduleDeadlineTime) { + public MaintenanceSchedule setScheduleDeadlineTime(java.lang.String scheduleDeadlineTime) { this.scheduleDeadlineTime = scheduleDeadlineTime; return this; } @@ -116,7 +116,7 @@ public MaintenanceSchedule setScheduleDeadlineTime(String scheduleDeadlineTime) * Output only. The start time of any upcoming scheduled maintenance for this instance. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -124,7 +124,7 @@ public String getStartTime() { * Output only. The start time of any upcoming scheduled maintenance for this instance. * @param startTime startTime or {@code null} for none */ - public MaintenanceSchedule setStartTime(String startTime) { + public MaintenanceSchedule setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ObservabilityMetricData.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ObservabilityMetricData.java index e35c9fd00d5..14210e5143e 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ObservabilityMetricData.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/ObservabilityMetricData.java @@ -49,7 +49,7 @@ public final class ObservabilityMetricData extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String observationTime; + private java.lang.String observationTime; /** * Required. Database resource name associated with the signal. Resource name to follow CAIS @@ -104,7 +104,7 @@ public ObservabilityMetricData setMetricType(java.lang.String metricType) { * Required. The time the metric value was observed. * @return value or {@code null} for none */ - public String getObservationTime() { + public java.lang.String getObservationTime() { return observationTime; } @@ -112,7 +112,7 @@ public String getObservationTime() { * Required. The time the metric value was observed. * @param observationTime observationTime or {@code null} for none */ - public ObservabilityMetricData setObservationTime(String observationTime) { + public ObservabilityMetricData setObservationTime(java.lang.String observationTime) { this.observationTime = observationTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/OperationMetadata.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/OperationMetadata.java index 806affa0b5b..932b66b9fdf 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/OperationMetadata.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/OperationMetadata.java @@ -42,14 +42,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. Identifies whether the user has requested cancellation of the operation. @@ -102,7 +102,7 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) { * Output only. The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -110,7 +110,7 @@ public String getCreateTime() { * Output only. The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -119,7 +119,7 @@ public OperationMetadata setCreateTime(String createTime) { * Output only. The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -127,7 +127,7 @@ public String getEndTime() { * Output only. The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/PersistenceConfig.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/PersistenceConfig.java index dc04a9114bf..0b62b039c1c 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/PersistenceConfig.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/PersistenceConfig.java @@ -43,7 +43,7 @@ public final class PersistenceConfig extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String rdbNextSnapshotTime; + private java.lang.String rdbNextSnapshotTime; /** * Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from @@ -62,7 +62,7 @@ public final class PersistenceConfig extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String rdbSnapshotStartTime; + private java.lang.String rdbSnapshotStartTime; /** * Optional. Controls whether Persistence features are enabled. If not provided, the existing @@ -87,7 +87,7 @@ public PersistenceConfig setPersistenceMode(java.lang.String persistenceMode) { * Output only. The next time that a snapshot attempt is scheduled to occur. * @return value or {@code null} for none */ - public String getRdbNextSnapshotTime() { + public java.lang.String getRdbNextSnapshotTime() { return rdbNextSnapshotTime; } @@ -95,7 +95,7 @@ public String getRdbNextSnapshotTime() { * Output only. The next time that a snapshot attempt is scheduled to occur. * @param rdbNextSnapshotTime rdbNextSnapshotTime or {@code null} for none */ - public PersistenceConfig setRdbNextSnapshotTime(String rdbNextSnapshotTime) { + public PersistenceConfig setRdbNextSnapshotTime(java.lang.String rdbNextSnapshotTime) { this.rdbNextSnapshotTime = rdbNextSnapshotTime; return this; } @@ -130,7 +130,7 @@ public PersistenceConfig setRdbSnapshotPeriod(java.lang.String rdbSnapshotPeriod * snapshots will be aligned. If not provided, the current time will be used. * @return value or {@code null} for none */ - public String getRdbSnapshotStartTime() { + public java.lang.String getRdbSnapshotStartTime() { return rdbSnapshotStartTime; } @@ -139,7 +139,7 @@ public String getRdbSnapshotStartTime() { * snapshots will be aligned. If not provided, the current time will be used. * @param rdbSnapshotStartTime rdbSnapshotStartTime or {@code null} for none */ - public PersistenceConfig setRdbSnapshotStartTime(String rdbSnapshotStartTime) { + public PersistenceConfig setRdbSnapshotStartTime(java.lang.String rdbSnapshotStartTime) { this.rdbSnapshotStartTime = rdbSnapshotStartTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RDBConfig.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RDBConfig.java index 1de9fc4a19d..ffec5c73143 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RDBConfig.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RDBConfig.java @@ -43,7 +43,7 @@ public final class RDBConfig extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String rdbSnapshotStartTime; + private java.lang.String rdbSnapshotStartTime; /** * Optional. Period between RDB snapshots. @@ -67,7 +67,7 @@ public RDBConfig setRdbSnapshotPeriod(java.lang.String rdbSnapshotPeriod) { * will be aligned. If not provided, the current time will be used. * @return value or {@code null} for none */ - public String getRdbSnapshotStartTime() { + public java.lang.String getRdbSnapshotStartTime() { return rdbSnapshotStartTime; } @@ -76,7 +76,7 @@ public String getRdbSnapshotStartTime() { * will be aligned. If not provided, the current time will be used. * @param rdbSnapshotStartTime rdbSnapshotStartTime or {@code null} for none */ - public RDBConfig setRdbSnapshotStartTime(String rdbSnapshotStartTime) { + public RDBConfig setRdbSnapshotStartTime(java.lang.String rdbSnapshotStartTime) { this.rdbSnapshotStartTime = rdbSnapshotStartTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleClusterMaintenanceRequest.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleClusterMaintenanceRequest.java index 5b36bdd20e6..ab2c2be6ef9 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleClusterMaintenanceRequest.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleClusterMaintenanceRequest.java @@ -43,7 +43,7 @@ public final class RescheduleClusterMaintenanceRequest extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String scheduleTime; + private java.lang.String scheduleTime; /** * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. @@ -67,7 +67,7 @@ public RescheduleClusterMaintenanceRequest setRescheduleType(java.lang.String re * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. * @return value or {@code null} for none */ - public String getScheduleTime() { + public java.lang.String getScheduleTime() { return scheduleTime; } @@ -76,7 +76,7 @@ public String getScheduleTime() { * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. * @param scheduleTime scheduleTime or {@code null} for none */ - public RescheduleClusterMaintenanceRequest setScheduleTime(String scheduleTime) { + public RescheduleClusterMaintenanceRequest setScheduleTime(java.lang.String scheduleTime) { this.scheduleTime = scheduleTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleMaintenanceRequest.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleMaintenanceRequest.java index be818eb6eed..40936e264c5 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleMaintenanceRequest.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RescheduleMaintenanceRequest.java @@ -43,7 +43,7 @@ public final class RescheduleMaintenanceRequest extends com.google.api.client.js * The value may be {@code null}. */ @com.google.api.client.util.Key - private String scheduleTime; + private java.lang.String scheduleTime; /** * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. @@ -67,7 +67,7 @@ public RescheduleMaintenanceRequest setRescheduleType(java.lang.String reschedul * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. * @return value or {@code null} for none */ - public String getScheduleTime() { + public java.lang.String getScheduleTime() { return scheduleTime; } @@ -76,7 +76,7 @@ public String getScheduleTime() { * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. * @param scheduleTime scheduleTime or {@code null} for none */ - public RescheduleMaintenanceRequest setScheduleTime(String scheduleTime) { + public RescheduleMaintenanceRequest setScheduleTime(java.lang.String scheduleTime) { this.scheduleTime = scheduleTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RetentionSettings.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RetentionSettings.java index 64beaf62b97..94d7417ac5e 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RetentionSettings.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/RetentionSettings.java @@ -35,7 +35,7 @@ public final class RetentionSettings extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String durationBasedRetention; + private java.lang.String durationBasedRetention; /** * The value may be {@code null}. @@ -54,20 +54,20 @@ public final class RetentionSettings extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeBasedRetention; + private java.lang.String timeBasedRetention; /** * Timestamp based retention period i.e. 2024-05-01T00:00:00Z * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timestampBasedRetentionTime; + private java.lang.String timestampBasedRetentionTime; /** * Duration based retention period i.e. 172800 seconds (2 days) * @return value or {@code null} for none */ - public String getDurationBasedRetention() { + public java.lang.String getDurationBasedRetention() { return durationBasedRetention; } @@ -75,7 +75,7 @@ public String getDurationBasedRetention() { * Duration based retention period i.e. 172800 seconds (2 days) * @param durationBasedRetention durationBasedRetention or {@code null} for none */ - public RetentionSettings setDurationBasedRetention(String durationBasedRetention) { + public RetentionSettings setDurationBasedRetention(java.lang.String durationBasedRetention) { this.durationBasedRetention = durationBasedRetention; return this; } @@ -115,14 +115,14 @@ public RetentionSettings setRetentionUnit(java.lang.String retentionUnit) { /** * @return value or {@code null} for none */ - public String getTimeBasedRetention() { + public java.lang.String getTimeBasedRetention() { return timeBasedRetention; } /** * @param timeBasedRetention timeBasedRetention or {@code null} for none */ - public RetentionSettings setTimeBasedRetention(String timeBasedRetention) { + public RetentionSettings setTimeBasedRetention(java.lang.String timeBasedRetention) { this.timeBasedRetention = timeBasedRetention; return this; } @@ -131,7 +131,7 @@ public RetentionSettings setTimeBasedRetention(String timeBasedRetention) { * Timestamp based retention period i.e. 2024-05-01T00:00:00Z * @return value or {@code null} for none */ - public String getTimestampBasedRetentionTime() { + public java.lang.String getTimestampBasedRetentionTime() { return timestampBasedRetentionTime; } @@ -139,7 +139,7 @@ public String getTimestampBasedRetentionTime() { * Timestamp based retention period i.e. 2024-05-01T00:00:00Z * @param timestampBasedRetentionTime timestampBasedRetentionTime or {@code null} for none */ - public RetentionSettings setTimestampBasedRetentionTime(String timestampBasedRetentionTime) { + public RetentionSettings setTimestampBasedRetentionTime(java.lang.String timestampBasedRetentionTime) { this.timestampBasedRetentionTime = timestampBasedRetentionTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/TlsCertificate.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/TlsCertificate.java index e39b133f95f..99821265fee 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/TlsCertificate.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/TlsCertificate.java @@ -43,7 +43,7 @@ public final class TlsCertificate extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time when the certificate expires in [RFC @@ -51,7 +51,7 @@ public final class TlsCertificate extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String expireTime; + private java.lang.String expireTime; /** * Serial number, as extracted from the certificate. @@ -89,7 +89,7 @@ public TlsCertificate setCert(java.lang.String cert) { * 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -98,7 +98,7 @@ public String getCreateTime() { * 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. * @param createTime createTime or {@code null} for none */ - public TlsCertificate setCreateTime(String createTime) { + public TlsCertificate setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -108,7 +108,7 @@ public TlsCertificate setCreateTime(String createTime) { * 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. * @return value or {@code null} for none */ - public String getExpireTime() { + public java.lang.String getExpireTime() { return expireTime; } @@ -117,7 +117,7 @@ public String getExpireTime() { * 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. * @param expireTime expireTime or {@code null} for none */ - public TlsCertificate setExpireTime(String expireTime) { + public TlsCertificate setExpireTime(java.lang.String expireTime) { this.expireTime = expireTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/UpcomingMaintenance.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/UpcomingMaintenance.java index 34799929323..e906c64fa56 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/UpcomingMaintenance.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/UpcomingMaintenance.java @@ -36,20 +36,20 @@ public final class UpcomingMaintenance extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Optional. The start time of the upcoming maintenance. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Optional. The end time of the upcoming maintenance. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -57,7 +57,7 @@ public String getEndTime() { * Optional. The end time of the upcoming maintenance. * @param endTime endTime or {@code null} for none */ - public UpcomingMaintenance setEndTime(String endTime) { + public UpcomingMaintenance setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -66,7 +66,7 @@ public UpcomingMaintenance setEndTime(String endTime) { * Optional. The start time of the upcoming maintenance. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -74,7 +74,7 @@ public String getStartTime() { * Optional. The start time of the upcoming maintenance. * @param startTime startTime or {@code null} for none */ - public UpcomingMaintenance setStartTime(String startTime) { + public UpcomingMaintenance setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/WeeklyMaintenanceWindow.java b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/WeeklyMaintenanceWindow.java index 5730e8928aa..3720cfe9cb8 100644 --- a/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/WeeklyMaintenanceWindow.java +++ b/clients/google-api-services-redis/v1/2.0.0/com/google/api/services/redis/v1/model/WeeklyMaintenanceWindow.java @@ -43,7 +43,7 @@ public final class WeeklyMaintenanceWindow extends com.google.api.client.json.Ge * The value may be {@code null}. */ @com.google.api.client.util.Key - private String duration; + private java.lang.String duration; /** * Required. Start time of the window in UTC time. @@ -73,7 +73,7 @@ public WeeklyMaintenanceWindow setDay(java.lang.String day) { * Output only. Duration of the maintenance window. The current window is fixed at 1 hour. * @return value or {@code null} for none */ - public String getDuration() { + public java.lang.String getDuration() { return duration; } @@ -81,7 +81,7 @@ public String getDuration() { * Output only. Duration of the maintenance window. The current window is fixed at 1 hour. * @param duration duration or {@code null} for none */ - public WeeklyMaintenanceWindow setDuration(String duration) { + public WeeklyMaintenanceWindow setDuration(java.lang.String duration) { this.duration = duration; return this; } diff --git a/clients/google-api-services-redis/v1/2.0.0/pom.xml b/clients/google-api-services-redis/v1/2.0.0/pom.xml index 883ab12cf70..c1c40b89eb1 100644 --- a/clients/google-api-services-redis/v1/2.0.0/pom.xml +++ b/clients/google-api-services-redis/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-redis - v1-rev20260406-2.0.0 - Google Cloud Memorystore for Redis API v1-rev20260406-2.0.0 + v1-rev20260309-2.0.0 + Google Cloud Memorystore for Redis API v1-rev20260309-2.0.0 jar 2011 diff --git a/clients/google-api-services-run/v1/2.0.0/README.md b/clients/google-api-services-run/v1/2.0.0/README.md index bd036f65c0c..015b3292100 100644 --- a/clients/google-api-services-run/v1/2.0.0/README.md +++ b/clients/google-api-services-run/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-run - v1-rev20260403-2.0.0 + v1-rev20260306-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-run:v1-rev20260403-2.0.0' + implementation 'com.google.apis:google-api-services-run:v1-rev20260306-2.0.0' } ``` diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java index 7d090e00f73..07ca4b40259 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java @@ -3185,148 +3185,6 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * Replace an Instance. - * - * Create a request for the method "instances.replaceInstance". - * - * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link ReplaceInstance#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the Instance being replaced. Replace {namespace} with the project ID or - * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.Instance} - * @return the request - */ - public ReplaceInstance replaceInstance(java.lang.String name, com.google.api.services.run.v1.model.Instance content) throws java.io.IOException { - ReplaceInstance result = new ReplaceInstance(name, content); - initialize(result); - return result; - } - - public class ReplaceInstance extends CloudRunRequest { - - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/instances/[^/]+$"); - - /** - * Replace an Instance. - * - * Create a request for the method "instances.replaceInstance". - * - * This request holds the parameters needed by the the run server. After setting any optional - * parameters, call the {@link ReplaceInstance#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. The name of the Instance being replaced. Replace {namespace} with the project ID or - * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.Instance} - * @since 1.13 - */ - protected ReplaceInstance(java.lang.String name, com.google.api.services.run.v1.model.Instance content) { - super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.Instance.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/instances/[^/]+$"); - } - } - - @Override - public ReplaceInstance set$Xgafv(java.lang.String $Xgafv) { - return (ReplaceInstance) super.set$Xgafv($Xgafv); - } - - @Override - public ReplaceInstance setAccessToken(java.lang.String accessToken) { - return (ReplaceInstance) super.setAccessToken(accessToken); - } - - @Override - public ReplaceInstance setAlt(java.lang.String alt) { - return (ReplaceInstance) super.setAlt(alt); - } - - @Override - public ReplaceInstance setCallback(java.lang.String callback) { - return (ReplaceInstance) super.setCallback(callback); - } - - @Override - public ReplaceInstance setFields(java.lang.String fields) { - return (ReplaceInstance) super.setFields(fields); - } - - @Override - public ReplaceInstance setKey(java.lang.String key) { - return (ReplaceInstance) super.setKey(key); - } - - @Override - public ReplaceInstance setOauthToken(java.lang.String oauthToken) { - return (ReplaceInstance) super.setOauthToken(oauthToken); - } - - @Override - public ReplaceInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReplaceInstance) super.setPrettyPrint(prettyPrint); - } - - @Override - public ReplaceInstance setQuotaUser(java.lang.String quotaUser) { - return (ReplaceInstance) super.setQuotaUser(quotaUser); - } - - @Override - public ReplaceInstance setUploadType(java.lang.String uploadType) { - return (ReplaceInstance) super.setUploadType(uploadType); - } - - @Override - public ReplaceInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (ReplaceInstance) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Instance being replaced. Replace {namespace} with the project - * ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Instance being replaced. Replace {namespace} with the project ID or - number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Instance being replaced. Replace {namespace} with the project - * ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID - */ - public ReplaceInstance setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/instances/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public ReplaceInstance set(String parameterName, Object value) { - return (ReplaceInstance) super.set(parameterName, value); - } - } /** * Start an Instance which has been stopped. * @@ -8492,14 +8350,10 @@ public Locations locations() { public class Locations { /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -8523,15 +8377,10 @@ public class List extends CloudRunRequest genericArtifacts; - /** * Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion * of all build steps. If any objects fail to be pushed, the build is marked FAILURE. @@ -87,16 +79,6 @@ public final class GoogleDevtoolsCloudbuildV1Artifacts extends com.google.api.cl @com.google.api.client.util.Key private GoogleDevtoolsCloudbuildV1ArtifactObjects objects; - /** - * Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion - * of all build steps. OCI images in the specified paths will be uploaded to the specified - * Artifact Registry repository using the builder service account's credentials. If any images - * fail to be pushed, the build is marked FAILURE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List oci; - /** * A list of Python packages to be uploaded to Artifact Registry upon successful completion of all * build steps. The build service account credentials will be used to perform the upload. If any @@ -106,25 +88,6 @@ public final class GoogleDevtoolsCloudbuildV1Artifacts extends com.google.api.cl @com.google.api.client.util.Key private java.util.List pythonPackages; - /** - * Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful - * completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. - * @return value or {@code null} for none - */ - public java.util.List getGenericArtifacts() { - return genericArtifacts; - } - - /** - * Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful - * completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. - * @param genericArtifacts genericArtifacts or {@code null} for none - */ - public GoogleDevtoolsCloudbuildV1Artifacts setGenericArtifacts(java.util.List genericArtifacts) { - this.genericArtifacts = genericArtifacts; - return this; - } - /** * Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion * of all build steps. If any objects fail to be pushed, the build is marked FAILURE. @@ -238,29 +201,6 @@ public GoogleDevtoolsCloudbuildV1Artifacts setObjects(GoogleDevtoolsCloudbuildV1 return this; } - /** - * Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion - * of all build steps. OCI images in the specified paths will be uploaded to the specified - * Artifact Registry repository using the builder service account's credentials. If any images - * fail to be pushed, the build is marked FAILURE. - * @return value or {@code null} for none - */ - public java.util.List getOci() { - return oci; - } - - /** - * Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion - * of all build steps. OCI images in the specified paths will be uploaded to the specified - * Artifact Registry repository using the builder service account's credentials. If any images - * fail to be pushed, the build is marked FAILURE. - * @param oci oci or {@code null} for none - */ - public GoogleDevtoolsCloudbuildV1Artifacts setOci(java.util.List oci) { - this.oci = oci; - return this; - } - /** * A list of Python packages to be uploaded to Artifact Registry upon successful completion of all * build steps. The build service account credentials will be used to perform the upload. If any diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Build.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Build.java index bf8a78d3b59..43dc1e19e7e 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Build.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Build.java @@ -73,7 +73,7 @@ public final class GoogleDevtoolsCloudbuildV1Build extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Optional. Dependencies that the Cloud Build worker will fetch before executing user steps. @@ -95,7 +95,7 @@ public final class GoogleDevtoolsCloudbuildV1Build extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String finishTime; + private java.lang.String finishTime; /** * Optional. Configuration for git operations. @@ -167,7 +167,7 @@ public final class GoogleDevtoolsCloudbuildV1Build extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String queueTtl; + private java.lang.String queueTtl; /** * Output only. Results of the build. @@ -214,7 +214,7 @@ public final class GoogleDevtoolsCloudbuildV1Build extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. Status of the build. @@ -258,7 +258,7 @@ public final class GoogleDevtoolsCloudbuildV1Build extends com.google.api.client * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time @@ -353,7 +353,7 @@ public GoogleDevtoolsCloudbuildV1Build setBuildTriggerId(java.lang.String buildT * Output only. Time at which the request to create the build was received. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -361,7 +361,7 @@ public String getCreateTime() { * Output only. Time at which the request to create the build was received. * @param createTime createTime or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1Build setCreateTime(String createTime) { + public GoogleDevtoolsCloudbuildV1Build setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -405,7 +405,7 @@ public GoogleDevtoolsCloudbuildV1Build setFailureInfo(GoogleDevtoolsCloudbuildV1 * finish_time and start_time is the duration of the build's execution. * @return value or {@code null} for none */ - public String getFinishTime() { + public java.lang.String getFinishTime() { return finishTime; } @@ -414,7 +414,7 @@ public String getFinishTime() { * finish_time and start_time is the duration of the build's execution. * @param finishTime finishTime or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1Build setFinishTime(String finishTime) { + public GoogleDevtoolsCloudbuildV1Build setFinishTime(java.lang.String finishTime) { this.finishTime = finishTime; return this; } @@ -575,7 +575,7 @@ public GoogleDevtoolsCloudbuildV1Build setProjectId(java.lang.String projectId) * create_time. * @return value or {@code null} for none */ - public String getQueueTtl() { + public java.lang.String getQueueTtl() { return queueTtl; } @@ -585,7 +585,7 @@ public String getQueueTtl() { * create_time. * @param queueTtl queueTtl or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1Build setQueueTtl(String queueTtl) { + public GoogleDevtoolsCloudbuildV1Build setQueueTtl(java.lang.String queueTtl) { this.queueTtl = queueTtl; return this; } @@ -689,7 +689,7 @@ public GoogleDevtoolsCloudbuildV1Build setSourceProvenance(GoogleDevtoolsCloudbu * Output only. Time at which execution of the build was started. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -697,7 +697,7 @@ public String getStartTime() { * Output only. Time at which execution of the build was started. * @param startTime startTime or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1Build setStartTime(String startTime) { + public GoogleDevtoolsCloudbuildV1Build setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } @@ -793,7 +793,7 @@ public GoogleDevtoolsCloudbuildV1Build setTags(java.util.List * starts ticking from `startTime`. Default time is 60 minutes. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -803,7 +803,7 @@ public String getTimeout() { * starts ticking from `startTime`. Default time is 60 minutes. * @param timeout timeout or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1Build setTimeout(String timeout) { + public GoogleDevtoolsCloudbuildV1Build setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuildStep.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuildStep.java index 3c972b9f311..9976da5753b 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuildStep.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuildStep.java @@ -161,7 +161,7 @@ public final class GoogleDevtoolsCloudbuildV1BuildStep extends com.google.api.cl * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * Output only. Stores timing information for executing this build step. @@ -489,7 +489,7 @@ public GoogleDevtoolsCloudbuildV1BuildStep setStatus(java.lang.String status) { * be allowed to continue to run until either it completes or the build itself times out. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -498,7 +498,7 @@ public String getTimeout() { * be allowed to continue to run until either it completes or the build itself times out. * @param timeout timeout or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1BuildStep setTimeout(String timeout) { + public GoogleDevtoolsCloudbuildV1BuildStep setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuiltImage.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuiltImage.java index 847e30507a4..5aaff55efe8 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuiltImage.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1BuiltImage.java @@ -51,14 +51,6 @@ public final class GoogleDevtoolsCloudbuildV1BuiltImage extends com.google.api.c @com.google.api.client.util.Key private java.lang.String name; - /** - * Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will - * have an unspecified value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ociMediaType; - /** * Output only. Stores timing information for pushing the specified image. * The value may be {@code null}. @@ -119,25 +111,6 @@ public GoogleDevtoolsCloudbuildV1BuiltImage setName(java.lang.String name) { return this; } - /** - * Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will - * have an unspecified value. - * @return value or {@code null} for none - */ - public java.lang.String getOciMediaType() { - return ociMediaType; - } - - /** - * Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will - * have an unspecified value. - * @param ociMediaType ociMediaType or {@code null} for none - */ - public GoogleDevtoolsCloudbuildV1BuiltImage setOciMediaType(java.lang.String ociMediaType) { - this.ociMediaType = ociMediaType; - return this; - } - /** * Output only. Stores timing information for pushing the specified image. * @return value or {@code null} for none diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Dependency.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Dependency.java index a0203901d55..3e3403c44a9 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Dependency.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Dependency.java @@ -36,13 +36,6 @@ public final class GoogleDevtoolsCloudbuildV1Dependency extends com.google.api.c @com.google.api.client.util.Key private java.lang.Boolean empty; - /** - * Represents a generic artifact as a build dependency. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleDevtoolsCloudbuildV1GenericArtifactDependency genericArtifact; - /** * Represents a git repository as a build dependency. * The value may be {@code null}. @@ -67,23 +60,6 @@ public GoogleDevtoolsCloudbuildV1Dependency setEmpty(java.lang.Boolean empty) { return this; } - /** - * Represents a generic artifact as a build dependency. - * @return value or {@code null} for none - */ - public GoogleDevtoolsCloudbuildV1GenericArtifactDependency getGenericArtifact() { - return genericArtifact; - } - - /** - * Represents a generic artifact as a build dependency. - * @param genericArtifact genericArtifact or {@code null} for none - */ - public GoogleDevtoolsCloudbuildV1Dependency setGenericArtifact(GoogleDevtoolsCloudbuildV1GenericArtifactDependency genericArtifact) { - this.genericArtifact = genericArtifact; - return this; - } - /** * Represents a git repository as a build dependency. * @return value or {@code null} for none diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Results.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Results.java index f392c811dfe..5614cb7a059 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Results.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1Results.java @@ -61,13 +61,6 @@ public final class GoogleDevtoolsCloudbuildV1Results extends com.google.api.clie @com.google.api.client.util.Key private java.util.List buildStepOutputs; - /** - * Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List genericArtifacts; - /** * Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. * The value may be {@code null}. @@ -193,23 +186,6 @@ public GoogleDevtoolsCloudbuildV1Results setBuildStepOutputs(java.util.List getGenericArtifacts() { - return genericArtifacts; - } - - /** - * Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. - * @param genericArtifacts genericArtifacts or {@code null} for none - */ - public GoogleDevtoolsCloudbuildV1Results setGenericArtifacts(java.util.List genericArtifacts) { - this.genericArtifacts = genericArtifacts; - return this; - } - /** * Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. * @return value or {@code null} for none diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1TimeSpan.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1TimeSpan.java index 7c56884c35e..877bb98fd3b 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1TimeSpan.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleDevtoolsCloudbuildV1TimeSpan.java @@ -34,20 +34,20 @@ public final class GoogleDevtoolsCloudbuildV1TimeSpan extends com.google.api.cli * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Start of time span. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * End of time span. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -55,7 +55,7 @@ public String getEndTime() { * End of time span. * @param endTime endTime or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1TimeSpan setEndTime(String endTime) { + public GoogleDevtoolsCloudbuildV1TimeSpan setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -64,7 +64,7 @@ public GoogleDevtoolsCloudbuildV1TimeSpan setEndTime(String endTime) { * Start of time span. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -72,7 +72,7 @@ public String getStartTime() { * Start of time span. * @param startTime startTime or {@code null} for none */ - public GoogleDevtoolsCloudbuildV1TimeSpan setStartTime(String startTime) { + public GoogleDevtoolsCloudbuildV1TimeSpan setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleLongrunningWaitOperationRequest.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleLongrunningWaitOperationRequest.java index 65151a82198..fa7eb7e0c68 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleLongrunningWaitOperationRequest.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/GoogleLongrunningWaitOperationRequest.java @@ -36,7 +36,7 @@ public final class GoogleLongrunningWaitOperationRequest extends com.google.api. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * The maximum duration to wait before timing out. If left blank, the wait will be at most the @@ -44,7 +44,7 @@ public final class GoogleLongrunningWaitOperationRequest extends com.google.api. * the shorter one will be used. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -54,7 +54,7 @@ public String getTimeout() { * the shorter one will be used. * @param timeout timeout or {@code null} for none */ - public GoogleLongrunningWaitOperationRequest setTimeout(String timeout) { + public GoogleLongrunningWaitOperationRequest setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java index 0249cd3cfa5..a0d2f2eea58 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java @@ -64,7 +64,7 @@ public final class InstanceSpec extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.String timeout; /** * Optional. List of volumes that can be mounted by containers belonging to the Instance. @@ -134,7 +134,7 @@ public InstanceSpec setServiceAccountName(java.lang.String serviceAccountName) { * Optional. Duration the instance may be active before the system will shut it down. * @return value or {@code null} for none */ - public String getTimeout() { + public java.lang.String getTimeout() { return timeout; } @@ -142,7 +142,7 @@ public String getTimeout() { * Optional. Duration the instance may be active before the system will shut it down. * @param timeout timeout or {@code null} for none */ - public InstanceSpec setTimeout(String timeout) { + public InstanceSpec setTimeout(java.lang.String timeout) { this.timeout = timeout; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java index 42e4e17aefe..3c9fb594856 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java @@ -79,7 +79,7 @@ public final class ObjectMeta extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String creationTimestamp; + private java.lang.String creationTimestamp; /** * Not supported by Cloud Run @@ -94,7 +94,7 @@ public final class ObjectMeta extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deletionTimestamp; + private java.lang.String deletionTimestamp; /** * Not supported by Cloud Run @@ -273,7 +273,7 @@ public ObjectMeta setClusterName(java.lang.String clusterName) { * UTC timestamp representing the server time when this object was created. * @return value or {@code null} for none */ - public String getCreationTimestamp() { + public java.lang.String getCreationTimestamp() { return creationTimestamp; } @@ -281,7 +281,7 @@ public String getCreationTimestamp() { * UTC timestamp representing the server time when this object was created. * @param creationTimestamp creationTimestamp or {@code null} for none */ - public ObjectMeta setCreationTimestamp(String creationTimestamp) { + public ObjectMeta setCreationTimestamp(java.lang.String creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } @@ -308,7 +308,7 @@ public ObjectMeta setDeletionGracePeriodSeconds(java.lang.Integer deletionGraceP * set this field. Instead, they must call the corresponding Delete API. * @return value or {@code null} for none */ - public String getDeletionTimestamp() { + public java.lang.String getDeletionTimestamp() { return deletionTimestamp; } @@ -317,7 +317,7 @@ public String getDeletionTimestamp() { * set this field. Instead, they must call the corresponding Delete API. * @param deletionTimestamp deletionTimestamp or {@code null} for none */ - public ObjectMeta setDeletionTimestamp(String deletionTimestamp) { + public ObjectMeta setDeletionTimestamp(java.lang.String deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/SetIamPolicyRequest.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/SetIamPolicyRequest.java index 6398f5b3976..810640e381a 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/SetIamPolicyRequest.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/SetIamPolicyRequest.java @@ -45,7 +45,7 @@ public final class SetIamPolicyRequest extends com.google.api.client.json.Generi * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is @@ -74,7 +74,7 @@ public SetIamPolicyRequest setPolicy(Policy policy) { * "bindings, etag"` * @return value or {@code null} for none */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -84,7 +84,7 @@ public String getUpdateMask() { * "bindings, etag"` * @param updateMask updateMask or {@code null} for none */ - public SetIamPolicyRequest setUpdateMask(String updateMask) { + public SetIamPolicyRequest setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/TaskStatus.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/TaskStatus.java index 99e3023f7f0..841f4702f02 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/TaskStatus.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/TaskStatus.java @@ -36,7 +36,7 @@ public final class TaskStatus extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String completionTime; + private java.lang.String completionTime; /** * Optional. Conditions communicate information about ongoing/complete reconciliation processes @@ -97,7 +97,7 @@ public final class TaskStatus extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Optional. Represents time when the task was completed. It is not guaranteed to be set in @@ -105,7 +105,7 @@ public final class TaskStatus extends com.google.api.client.json.GenericJson { * UTC. * @return value or {@code null} for none */ - public String getCompletionTime() { + public java.lang.String getCompletionTime() { return completionTime; } @@ -115,7 +115,7 @@ public String getCompletionTime() { * UTC. * @param completionTime completionTime or {@code null} for none */ - public TaskStatus setCompletionTime(String completionTime) { + public TaskStatus setCompletionTime(java.lang.String completionTime) { this.completionTime = completionTime; return this; } @@ -236,7 +236,7 @@ public TaskStatus setRetried(java.lang.Integer retried) { * UTC. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -246,7 +246,7 @@ public String getStartTime() { * UTC. * @param startTime startTime or {@code null} for none */ - public TaskStatus setStartTime(String startTime) { + public TaskStatus setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/VolumeMount.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/VolumeMount.java index 2bfc0e52ec9..0ea89f50388 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/VolumeMount.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/VolumeMount.java @@ -53,7 +53,7 @@ public final class VolumeMount extends com.google.api.client.json.GenericJson { /** * Path within the volume from which the container's volume should be mounted. Defaults to "" - * (volume's root). This field is currently rejected in Secret volume mounts. + * (volume's root). This field is currently ignored for Secret volumes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -114,7 +114,7 @@ public VolumeMount setReadOnly(java.lang.Boolean readOnly) { /** * Path within the volume from which the container's volume should be mounted. Defaults to "" - * (volume's root). This field is currently rejected in Secret volume mounts. + * (volume's root). This field is currently ignored for Secret volumes. * @return value or {@code null} for none */ public java.lang.String getSubPath() { @@ -123,7 +123,7 @@ public java.lang.String getSubPath() { /** * Path within the volume from which the container's volume should be mounted. Defaults to "" - * (volume's root). This field is currently rejected in Secret volume mounts. + * (volume's root). This field is currently ignored for Secret volumes. * @param subPath subPath or {@code null} for none */ public VolumeMount setSubPath(java.lang.String subPath) { diff --git a/clients/google-api-services-run/v1/2.0.0/pom.xml b/clients/google-api-services-run/v1/2.0.0/pom.xml index 07e7c15b3cc..9e721998a50 100644 --- a/clients/google-api-services-run/v1/2.0.0/pom.xml +++ b/clients/google-api-services-run/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-run - v1-rev20260403-2.0.0 - Cloud Run Admin API v1-rev20260403-2.0.0 + v1-rev20260306-2.0.0 + Cloud Run Admin API v1-rev20260306-2.0.0 jar 2011 diff --git a/clients/google-api-services-servicenetworking/v1/2.0.0/README.md b/clients/google-api-services-servicenetworking/v1/2.0.0/README.md index 06741f7ad14..b968a8d2fde 100644 --- a/clients/google-api-services-servicenetworking/v1/2.0.0/README.md +++ b/clients/google-api-services-servicenetworking/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-servicenetworking - v1-rev20260406-2.0.0 + v1-rev20260223-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-servicenetworking:v1-rev20260406-2.0.0' + implementation 'com.google.apis:google-api-services-servicenetworking:v1-rev20260223-2.0.0' } ``` diff --git a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/ServiceNetworking.java b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/ServiceNetworking.java index 8411cfee535..435b0bc4ae8 100644 --- a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/ServiceNetworking.java +++ b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/ServiceNetworking.java @@ -2263,12 +2263,12 @@ public Patch setForce(java.lang.Boolean force) { * peering ranges. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** The update mask. If this is omitted, it defaults to "*". You can only update the listed peering ranges. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } @@ -2276,7 +2276,7 @@ public String getUpdateMask() { * The update mask. If this is omitted, it defaults to "*". You can only update the listed * peering ranges. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } diff --git a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/AddSubnetworkRequest.java b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/AddSubnetworkRequest.java index 8bd4b9d4a9b..dd7bc81049b 100644 --- a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/AddSubnetworkRequest.java +++ b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/AddSubnetworkRequest.java @@ -58,7 +58,7 @@ public final class AddSubnetworkRequest extends com.google.api.client.json.Gener * The value may be {@code null}. */ @com.google.api.client.util.Key - private String computeIdempotencyWindow; + private java.lang.String computeIdempotencyWindow; /** * Required. A resource that represents the service consumer, such as `projects/123456`. The @@ -270,7 +270,7 @@ public AddSubnetworkRequest setCheckServiceNetworkingUsePermission(java.lang.Boo * limit). * @return value or {@code null} for none */ - public String getComputeIdempotencyWindow() { + public java.lang.String getComputeIdempotencyWindow() { return computeIdempotencyWindow; } @@ -284,7 +284,7 @@ public String getComputeIdempotencyWindow() { * limit). * @param computeIdempotencyWindow computeIdempotencyWindow or {@code null} for none */ - public AddSubnetworkRequest setComputeIdempotencyWindow(String computeIdempotencyWindow) { + public AddSubnetworkRequest setComputeIdempotencyWindow(java.lang.String computeIdempotencyWindow) { this.computeIdempotencyWindow = computeIdempotencyWindow; return this; } diff --git a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/BackendRule.java b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/BackendRule.java index 9ab2c0ed625..3cce8936316 100644 --- a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/BackendRule.java +++ b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/BackendRule.java @@ -100,8 +100,7 @@ public final class BackendRule extends com.google.api.client.json.GenericJson { private java.util.Map overridesByRequestProtocol; /** - * Path translation specifies how to combine the backend address with the request path in order to - * produce the appropriate forwarding URL for the request. See PathTranslation for more details. + * no-lint * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -290,8 +289,7 @@ public BackendRule setOverridesByRequestProtocol(java.util.Map This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Service Networking API. For a detailed explanation diff --git a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/Service.java b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/Service.java index da2cf370a00..81351e301c7 100644 --- a/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/Service.java +++ b/clients/google-api-services-servicenetworking/v1/2.0.0/com/google/api/services/servicenetworking/v1/model/Service.java @@ -131,7 +131,12 @@ public final class Service extends com.google.api.client.json.GenericJson { /** * Configuration for network endpoints. If this is empty, then an endpoint with the same name as - * the service is automatically generated to service all defined APIs. + * the service is automatically generated to service all defined APIs. WARNING: Defining any + * entries in the `endpoints` list disables the automatic generation of default endpoint + * variations (e.g., `{service}.clients6.google.com`, `content-{service}.googleapis.com`, and mTLS + * variants like `{service}.mtls.googleapis.com`). To retain these default variations, you are + * required to explicitly include your main service endpoint (e.g., `myservice.googleapis.com`) in + * this list alongside any other custom endpoints (like REP, GFE, etc.). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -494,7 +499,12 @@ public Service setDocumentation(Documentation documentation) { /** * Configuration for network endpoints. If this is empty, then an endpoint with the same name as - * the service is automatically generated to service all defined APIs. + * the service is automatically generated to service all defined APIs. WARNING: Defining any + * entries in the `endpoints` list disables the automatic generation of default endpoint + * variations (e.g., `{service}.clients6.google.com`, `content-{service}.googleapis.com`, and mTLS + * variants like `{service}.mtls.googleapis.com`). To retain these default variations, you are + * required to explicitly include your main service endpoint (e.g., `myservice.googleapis.com`) in + * this list alongside any other custom endpoints (like REP, GFE, etc.). * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -503,7 +513,12 @@ public java.util.List getEndpoints() { /** * Configuration for network endpoints. If this is empty, then an endpoint with the same name as - * the service is automatically generated to service all defined APIs. + * the service is automatically generated to service all defined APIs. WARNING: Defining any + * entries in the `endpoints` list disables the automatic generation of default endpoint + * variations (e.g., `{service}.clients6.google.com`, `content-{service}.googleapis.com`, and mTLS + * variants like `{service}.mtls.googleapis.com`). To retain these default variations, you are + * required to explicitly include your main service endpoint (e.g., `myservice.googleapis.com`) in + * this list alongside any other custom endpoints (like REP, GFE, etc.). * @param endpoints endpoints or {@code null} for none */ public Service setEndpoints(java.util.List endpoints) { diff --git a/clients/google-api-services-servicenetworking/v1/2.0.0/pom.xml b/clients/google-api-services-servicenetworking/v1/2.0.0/pom.xml index 4d1ea589c34..236095aab73 100644 --- a/clients/google-api-services-servicenetworking/v1/2.0.0/pom.xml +++ b/clients/google-api-services-servicenetworking/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-servicenetworking - v1-rev20260406-2.0.0 - Service Networking API v1-rev20260406-2.0.0 + v1-rev20260223-2.0.0 + Service Networking API v1-rev20260223-2.0.0 jar 2011 diff --git a/clients/google-api-services-sts/v1/2.0.0/README.md b/clients/google-api-services-sts/v1/2.0.0/README.md index 734a4d2bdd5..62b59c3dc00 100644 --- a/clients/google-api-services-sts/v1/2.0.0/README.md +++ b/clients/google-api-services-sts/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-sts - v1-rev20260318-2.0.0 + v1-rev20260304-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-sts:v1-rev20260318-2.0.0' + implementation 'com.google.apis:google-api-services-sts:v1-rev20260304-2.0.0' } ``` diff --git a/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1ExchangeTokenRequest.java b/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1ExchangeTokenRequest.java index 8d91b50d6ff..70f1457dc84 100644 --- a/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1ExchangeTokenRequest.java +++ b/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1ExchangeTokenRequest.java @@ -92,16 +92,14 @@ public final class GoogleIdentityStsV1ExchangeTokenRequest extends com.google.ap * formatted according to section 4.2 of the [OIDC 1.0 Discovery * specification](https://openid.net/specs/openid-connect- * discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since - * the Unix epoch. This timestamp must be in the past and no more than 24 hours in the past, or - * the token will be rejected. Note that this implies the token is only acceptable within a time - * window of at most 24 hours. - `exp`: The expiration time, in seconds, since the Unix epoch. - * Shorter expiration times are more secure. If possible, we recommend setting an expiration time - * less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity - * pools, this must be a value specified in the allowed audiences for the workload identity pool - * provider, or one of the audiences allowed by default if no audiences were specified. See https: - * //cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.provider - * s#oidc. For workforce pools, this must match the client ID specified in the provider - * configuration. See + * the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix + * epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If + * possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity + * asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in + * the allowed audiences for the workload identity pool provider, or one of the audiences allowed + * by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest + * /v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must + * match the client ID specified in the provider configuration. See * https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. * Example header: ``` { "alg": "RS256", "kid": "us-east-11" } ``` Example payload: ``` { "iss": * "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": @@ -293,16 +291,14 @@ public GoogleIdentityStsV1ExchangeTokenRequest setScope(java.lang.String scope) * formatted according to section 4.2 of the [OIDC 1.0 Discovery * specification](https://openid.net/specs/openid-connect- * discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since - * the Unix epoch. This timestamp must be in the past and no more than 24 hours in the past, or - * the token will be rejected. Note that this implies the token is only acceptable within a time - * window of at most 24 hours. - `exp`: The expiration time, in seconds, since the Unix epoch. - * Shorter expiration times are more secure. If possible, we recommend setting an expiration time - * less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity - * pools, this must be a value specified in the allowed audiences for the workload identity pool - * provider, or one of the audiences allowed by default if no audiences were specified. See https: - * //cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.provider - * s#oidc. For workforce pools, this must match the client ID specified in the provider - * configuration. See + * the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix + * epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If + * possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity + * asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in + * the allowed audiences for the workload identity pool provider, or one of the audiences allowed + * by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest + * /v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must + * match the client ID specified in the provider configuration. See * https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. * Example header: ``` { "alg": "RS256", "kid": "us-east-11" } ``` Example payload: ``` { "iss": * "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": @@ -373,16 +369,14 @@ public java.lang.String getSubjectToken() { * formatted according to section 4.2 of the [OIDC 1.0 Discovery * specification](https://openid.net/specs/openid-connect- * discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since - * the Unix epoch. This timestamp must be in the past and no more than 24 hours in the past, or - * the token will be rejected. Note that this implies the token is only acceptable within a time - * window of at most 24 hours. - `exp`: The expiration time, in seconds, since the Unix epoch. - * Shorter expiration times are more secure. If possible, we recommend setting an expiration time - * less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity - * pools, this must be a value specified in the allowed audiences for the workload identity pool - * provider, or one of the audiences allowed by default if no audiences were specified. See https: - * //cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.provider - * s#oidc. For workforce pools, this must match the client ID specified in the provider - * configuration. See + * the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix + * epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If + * possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity + * asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in + * the allowed audiences for the workload identity pool provider, or one of the audiences allowed + * by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest + * /v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must + * match the client ID specified in the provider configuration. See * https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. * Example header: ``` { "alg": "RS256", "kid": "us-east-11" } ``` Example payload: ``` { "iss": * "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": diff --git a/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1Options.java b/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1Options.java index d1908df3144..3cb0040bf41 100644 --- a/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1Options.java +++ b/clients/google-api-services-sts/v1/2.0.0/com/google/api/services/sts/v1/model/GoogleIdentityStsV1Options.java @@ -42,8 +42,8 @@ public final class GoogleIdentityStsV1Options extends com.google.api.client.json private GoogleIdentityStsV1AccessBoundary accessBoundary; /** - * The unpadded, url-escaped, base64-encoded SHA-256 hash of the certificate's DER encoding. It - * must be 43 characters long. The resulting token will be bound to this value. + * The unpadded, base64url-encoded SHA-256 hash of the certificate's DER encoding and it must be + * 43 characters long. The resulting token will be bound to this value. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -81,8 +81,8 @@ public GoogleIdentityStsV1Options setAccessBoundary(GoogleIdentityStsV1AccessBou } /** - * The unpadded, url-escaped, base64-encoded SHA-256 hash of the certificate's DER encoding. It - * must be 43 characters long. The resulting token will be bound to this value. + * The unpadded, base64url-encoded SHA-256 hash of the certificate's DER encoding and it must be + * 43 characters long. The resulting token will be bound to this value. * @return value or {@code null} for none */ public java.lang.String getBindCertFingerprint() { @@ -90,8 +90,8 @@ public java.lang.String getBindCertFingerprint() { } /** - * The unpadded, url-escaped, base64-encoded SHA-256 hash of the certificate's DER encoding. It - * must be 43 characters long. The resulting token will be bound to this value. + * The unpadded, base64url-encoded SHA-256 hash of the certificate's DER encoding and it must be + * 43 characters long. The resulting token will be bound to this value. * @param bindCertFingerprint bindCertFingerprint or {@code null} for none */ public GoogleIdentityStsV1Options setBindCertFingerprint(java.lang.String bindCertFingerprint) { diff --git a/clients/google-api-services-sts/v1/2.0.0/pom.xml b/clients/google-api-services-sts/v1/2.0.0/pom.xml index 539a7a88b40..8786edec9f6 100644 --- a/clients/google-api-services-sts/v1/2.0.0/pom.xml +++ b/clients/google-api-services-sts/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-sts - v1-rev20260318-2.0.0 - Security Token Service API v1-rev20260318-2.0.0 + v1-rev20260304-2.0.0 + Security Token Service API v1-rev20260304-2.0.0 jar 2011 diff --git a/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Node.java b/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Node.java index 5c714a6f700..3d658a1cb07 100644 --- a/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Node.java +++ b/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Node.java @@ -60,7 +60,7 @@ public final class Node extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The user-supplied description of the TPU. Maximum of 512 characters. @@ -249,7 +249,7 @@ public Node setCidrBlock(java.lang.String cidrBlock) { * Output only. The time when the node was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -257,7 +257,7 @@ public String getCreateTime() { * Output only. The time when the node was created. * @param createTime createTime or {@code null} for none */ - public Node setCreateTime(String createTime) { + public Node setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/OperationMetadata.java b/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/OperationMetadata.java index cd3c7ca262b..2cb57ec892c 100644 --- a/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/OperationMetadata.java +++ b/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/OperationMetadata.java @@ -48,14 +48,14 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * The time the operation finished running. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Human-readable status of the operation, if any. @@ -116,7 +116,7 @@ public OperationMetadata setCancelRequested(java.lang.Boolean cancelRequested) { * The time the operation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -124,7 +124,7 @@ public String getCreateTime() { * The time the operation was created. * @param createTime createTime or {@code null} for none */ - public OperationMetadata setCreateTime(String createTime) { + public OperationMetadata setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -133,7 +133,7 @@ public OperationMetadata setCreateTime(String createTime) { * The time the operation finished running. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -141,7 +141,7 @@ public String getEndTime() { * The time the operation finished running. * @param endTime endTime or {@code null} for none */ - public OperationMetadata setEndTime(String endTime) { + public OperationMetadata setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } diff --git a/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Symptom.java b/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Symptom.java index 5c288d6e079..9ba77af922d 100644 --- a/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Symptom.java +++ b/clients/google-api-services-tpu/v1/2.0.0/com/google/api/services/tpu/v1/model/Symptom.java @@ -34,7 +34,7 @@ public final class Symptom extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Detailed information of the current Symptom. @@ -61,7 +61,7 @@ public final class Symptom extends com.google.api.client.json.GenericJson { * Timestamp when the Symptom is created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -69,7 +69,7 @@ public String getCreateTime() { * Timestamp when the Symptom is created. * @param createTime createTime or {@code null} for none */ - public Symptom setCreateTime(String createTime) { + public Symptom setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AdBreak.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AdBreak.java index 11420057f16..b3664330c16 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AdBreak.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AdBreak.java @@ -35,14 +35,14 @@ public final class AdBreak extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeOffset; + private java.lang.String startTimeOffset; /** * Start time in seconds for the ad break, relative to the output file timeline. The default is * `0s`. * @return value or {@code null} for none */ - public String getStartTimeOffset() { + public java.lang.String getStartTimeOffset() { return startTimeOffset; } @@ -51,7 +51,7 @@ public String getStartTimeOffset() { * `0s`. * @param startTimeOffset startTimeOffset or {@code null} for none */ - public AdBreak setStartTimeOffset(String startTimeOffset) { + public AdBreak setStartTimeOffset(java.lang.String startTimeOffset) { this.startTimeOffset = startTimeOffset; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationEnd.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationEnd.java index e968a60a30f..9659571a4f8 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationEnd.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationEnd.java @@ -35,13 +35,13 @@ public final class AnimationEnd extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeOffset; + private java.lang.String startTimeOffset; /** * The time to end overlay object, in seconds. Default: 0 * @return value or {@code null} for none */ - public String getStartTimeOffset() { + public java.lang.String getStartTimeOffset() { return startTimeOffset; } @@ -49,7 +49,7 @@ public String getStartTimeOffset() { * The time to end overlay object, in seconds. Default: 0 * @param startTimeOffset startTimeOffset or {@code null} for none */ - public AnimationEnd setStartTimeOffset(String startTimeOffset) { + public AnimationEnd setStartTimeOffset(java.lang.String startTimeOffset) { this.startTimeOffset = startTimeOffset; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationFade.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationFade.java index ed61b6f1360..c02e66e1357 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationFade.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationFade.java @@ -34,7 +34,7 @@ public final class AnimationFade extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeOffset; + private java.lang.String endTimeOffset; /** * Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. @@ -48,7 +48,7 @@ public final class AnimationFade extends com.google.api.client.json.GenericJson * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeOffset; + private java.lang.String startTimeOffset; /** * Normalized coordinates based on output video resolution. Valid values: `0.0`–`1.0`. `xy` is the @@ -64,7 +64,7 @@ public final class AnimationFade extends com.google.api.client.json.GenericJson * The time to end the fade animation, in seconds. Default: `start_time_offset` + 1s * @return value or {@code null} for none */ - public String getEndTimeOffset() { + public java.lang.String getEndTimeOffset() { return endTimeOffset; } @@ -72,7 +72,7 @@ public String getEndTimeOffset() { * The time to end the fade animation, in seconds. Default: `start_time_offset` + 1s * @param endTimeOffset endTimeOffset or {@code null} for none */ - public AnimationFade setEndTimeOffset(String endTimeOffset) { + public AnimationFade setEndTimeOffset(java.lang.String endTimeOffset) { this.endTimeOffset = endTimeOffset; return this; } @@ -98,7 +98,7 @@ public AnimationFade setFadeType(java.lang.String fadeType) { * The time to start the fade animation, in seconds. Default: 0 * @return value or {@code null} for none */ - public String getStartTimeOffset() { + public java.lang.String getStartTimeOffset() { return startTimeOffset; } @@ -106,7 +106,7 @@ public String getStartTimeOffset() { * The time to start the fade animation, in seconds. Default: 0 * @param startTimeOffset startTimeOffset or {@code null} for none */ - public AnimationFade setStartTimeOffset(String startTimeOffset) { + public AnimationFade setStartTimeOffset(java.lang.String startTimeOffset) { this.startTimeOffset = startTimeOffset; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationStatic.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationStatic.java index 87518911c4f..9adfb22e239 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationStatic.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/AnimationStatic.java @@ -34,7 +34,7 @@ public final class AnimationStatic extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeOffset; + private java.lang.String startTimeOffset; /** * Normalized coordinates based on output video resolution. Valid values: `0.0`–`1.0`. `xy` is the @@ -50,7 +50,7 @@ public final class AnimationStatic extends com.google.api.client.json.GenericJso * The time to start displaying the overlay object, in seconds. Default: 0 * @return value or {@code null} for none */ - public String getStartTimeOffset() { + public java.lang.String getStartTimeOffset() { return startTimeOffset; } @@ -58,7 +58,7 @@ public String getStartTimeOffset() { * The time to start displaying the overlay object, in seconds. Default: 0 * @param startTimeOffset startTimeOffset or {@code null} for none */ - public AnimationStatic setStartTimeOffset(String startTimeOffset) { + public AnimationStatic setStartTimeOffset(java.lang.String startTimeOffset) { this.startTimeOffset = startTimeOffset; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/EditAtom.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/EditAtom.java index 63b23f39755..2ba9a20c4b2 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/EditAtom.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/EditAtom.java @@ -35,7 +35,7 @@ public final class EditAtom extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeOffset; + private java.lang.String endTimeOffset; /** * List of Input.key values identifying files that should be used in this atom. The listed @@ -57,14 +57,14 @@ public final class EditAtom extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeOffset; + private java.lang.String startTimeOffset; /** * End time in seconds for the atom, relative to the input file timeline. When `end_time_offset` * is not specified, the `inputs` are used until the end of the atom. * @return value or {@code null} for none */ - public String getEndTimeOffset() { + public java.lang.String getEndTimeOffset() { return endTimeOffset; } @@ -73,7 +73,7 @@ public String getEndTimeOffset() { * is not specified, the `inputs` are used until the end of the atom. * @param endTimeOffset endTimeOffset or {@code null} for none */ - public EditAtom setEndTimeOffset(String endTimeOffset) { + public EditAtom setEndTimeOffset(java.lang.String endTimeOffset) { this.endTimeOffset = endTimeOffset; return this; } @@ -118,7 +118,7 @@ public EditAtom setKey(java.lang.String key) { * Start time in seconds for the atom, relative to the input file timeline. The default is `0s`. * @return value or {@code null} for none */ - public String getStartTimeOffset() { + public java.lang.String getStartTimeOffset() { return startTimeOffset; } @@ -126,7 +126,7 @@ public String getStartTimeOffset() { * Start time in seconds for the atom, relative to the input file timeline. The default is `0s`. * @param startTimeOffset startTimeOffset or {@code null} for none */ - public EditAtom setStartTimeOffset(String startTimeOffset) { + public EditAtom setStartTimeOffset(java.lang.String startTimeOffset) { this.startTimeOffset = startTimeOffset; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H264CodecSettings.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H264CodecSettings.java index cd1e6fe5872..26a1372451c 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H264CodecSettings.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H264CodecSettings.java @@ -115,7 +115,7 @@ public final class H264CodecSettings extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String gopDuration; + private java.lang.String gopDuration; /** * Select the GOP size based on the specified frame count. Must be greater than zero. @@ -422,7 +422,7 @@ public H264CodecSettings setFrameRateConversionStrategy(java.lang.String frameRa * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`. * @return value or {@code null} for none */ - public String getGopDuration() { + public java.lang.String getGopDuration() { return gopDuration; } @@ -432,7 +432,7 @@ public String getGopDuration() { * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`. * @param gopDuration gopDuration or {@code null} for none */ - public H264CodecSettings setGopDuration(String gopDuration) { + public H264CodecSettings setGopDuration(java.lang.String gopDuration) { this.gopDuration = gopDuration; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H265CodecSettings.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H265CodecSettings.java index 435c62b40bd..7b12a88bc4c 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H265CodecSettings.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/H265CodecSettings.java @@ -108,7 +108,7 @@ public final class H265CodecSettings extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String gopDuration; + private java.lang.String gopDuration; /** * Select the GOP size based on the specified frame count. Must be greater than zero. @@ -406,7 +406,7 @@ public H265CodecSettings setFrameRateConversionStrategy(java.lang.String frameRa * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`. * @return value or {@code null} for none */ - public String getGopDuration() { + public java.lang.String getGopDuration() { return gopDuration; } @@ -416,7 +416,7 @@ public String getGopDuration() { * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`. * @param gopDuration gopDuration or {@code null} for none */ - public H265CodecSettings setGopDuration(String gopDuration) { + public H265CodecSettings setGopDuration(java.lang.String gopDuration) { this.gopDuration = gopDuration; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Job.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Job.java index 38551dc5f73..095f4560834 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Job.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Job.java @@ -50,14 +50,14 @@ public final class Job extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. The time the transcoding finished. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * Output only. An error object that describes the reason for the failure. This property is always @@ -130,7 +130,7 @@ public final class Job extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * Output only. The current state of the job. @@ -198,7 +198,7 @@ public Job setConfig(JobConfig config) { * Output only. The time the job was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -206,7 +206,7 @@ public String getCreateTime() { * Output only. The time the job was created. * @param createTime createTime or {@code null} for none */ - public Job setCreateTime(String createTime) { + public Job setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -215,7 +215,7 @@ public Job setCreateTime(String createTime) { * Output only. The time the transcoding finished. * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } @@ -223,7 +223,7 @@ public String getEndTime() { * Output only. The time the transcoding finished. * @param endTime endTime or {@code null} for none */ - public Job setEndTime(String endTime) { + public Job setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -388,7 +388,7 @@ public Job setOutputUri(java.lang.String outputUri) { * Output only. The time the transcoding started. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -396,7 +396,7 @@ public String getStartTime() { * Output only. The time the transcoding started. * @param startTime startTime or {@code null} for none */ - public Job setStartTime(String startTime) { + public Job setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SegmentSettings.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SegmentSettings.java index 63d88ebfb03..ce7eee29fff 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SegmentSettings.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SegmentSettings.java @@ -43,7 +43,7 @@ public final class SegmentSettings extends com.google.api.client.json.GenericJso * The value may be {@code null}. */ @com.google.api.client.util.Key - private String segmentDuration; + private java.lang.String segmentDuration; /** * Required. Create an individual segment file. The default is `false`. @@ -68,7 +68,7 @@ public SegmentSettings setIndividualSegments(java.lang.Boolean individualSegment * by [`gopDuration`](#videostream). * @return value or {@code null} for none */ - public String getSegmentDuration() { + public java.lang.String getSegmentDuration() { return segmentDuration; } @@ -78,7 +78,7 @@ public String getSegmentDuration() { * by [`gopDuration`](#videostream). * @param segmentDuration segmentDuration or {@code null} for none */ - public SegmentSettings setSegmentDuration(String segmentDuration) { + public SegmentSettings setSegmentDuration(java.lang.String segmentDuration) { this.segmentDuration = segmentDuration; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SpriteSheet.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SpriteSheet.java index 391b47c4783..45a76164192 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SpriteSheet.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/SpriteSheet.java @@ -43,7 +43,7 @@ public final class SpriteSheet extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeOffset; + private java.lang.String endTimeOffset; /** * Required. File name prefix for the generated sprite sheets. Each sprite sheet has an @@ -66,7 +66,7 @@ public final class SpriteSheet extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String interval; + private java.lang.String interval; /** * The quality of the generated sprite sheet. Enter a value between 1 and 100, where 1 is the @@ -116,7 +116,7 @@ public final class SpriteSheet extends com.google.api.client.json.GenericJson { * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeOffset; + private java.lang.String startTimeOffset; /** * Total number of sprites. Create the specified number of sprites distributed evenly across the @@ -150,7 +150,7 @@ public SpriteSheet setColumnCount(java.lang.Integer columnCount) { * specified, the sprites are generated until the end of the output file. * @return value or {@code null} for none */ - public String getEndTimeOffset() { + public java.lang.String getEndTimeOffset() { return endTimeOffset; } @@ -159,7 +159,7 @@ public String getEndTimeOffset() { * specified, the sprites are generated until the end of the output file. * @param endTimeOffset endTimeOffset or {@code null} for none */ - public SpriteSheet setEndTimeOffset(String endTimeOffset) { + public SpriteSheet setEndTimeOffset(java.lang.String endTimeOffset) { this.endTimeOffset = endTimeOffset; return this; } @@ -206,7 +206,7 @@ public SpriteSheet setFormat(java.lang.String format) { * Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds. * @return value or {@code null} for none */ - public String getInterval() { + public java.lang.String getInterval() { return interval; } @@ -214,7 +214,7 @@ public String getInterval() { * Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds. * @param interval interval or {@code null} for none */ - public SpriteSheet setInterval(String interval) { + public SpriteSheet setInterval(java.lang.String interval) { this.interval = interval; return this; } @@ -320,7 +320,7 @@ public SpriteSheet setSpriteWidthPixels(java.lang.Integer spriteWidthPixels) { * pick. The default is `0s`. * @return value or {@code null} for none */ - public String getStartTimeOffset() { + public java.lang.String getStartTimeOffset() { return startTimeOffset; } @@ -329,7 +329,7 @@ public String getStartTimeOffset() { * pick. The default is `0s`. * @param startTimeOffset startTimeOffset or {@code null} for none */ - public SpriteSheet setStartTimeOffset(String startTimeOffset) { + public SpriteSheet setStartTimeOffset(java.lang.String startTimeOffset) { this.startTimeOffset = startTimeOffset; return this; } diff --git a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Vp9CodecSettings.java b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Vp9CodecSettings.java index 24008985a4f..57c4cf85b4e 100644 --- a/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Vp9CodecSettings.java +++ b/clients/google-api-services-transcoder/v1/2.0.0/com/google/api/services/transcoder/v1/model/Vp9CodecSettings.java @@ -67,7 +67,7 @@ public final class Vp9CodecSettings extends com.google.api.client.json.GenericJs * The value may be {@code null}. */ @com.google.api.client.util.Key - private String gopDuration; + private java.lang.String gopDuration; /** * Select the GOP size based on the specified frame count. Must be greater than zero. @@ -223,7 +223,7 @@ public Vp9CodecSettings setFrameRateConversionStrategy(java.lang.String frameRat * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`. * @return value or {@code null} for none */ - public String getGopDuration() { + public java.lang.String getGopDuration() { return gopDuration; } @@ -233,7 +233,7 @@ public String getGopDuration() { * [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`. * @param gopDuration gopDuration or {@code null} for none */ - public Vp9CodecSettings setGopDuration(String gopDuration) { + public Vp9CodecSettings setGopDuration(java.lang.String gopDuration) { this.gopDuration = gopDuration; return this; } diff --git a/clients/google-api-services-vpcaccess/v1/2.0.0/README.md b/clients/google-api-services-vpcaccess/v1/2.0.0/README.md index a274d29da90..f825825ec4d 100644 --- a/clients/google-api-services-vpcaccess/v1/2.0.0/README.md +++ b/clients/google-api-services-vpcaccess/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-vpcaccess - v1-rev20260322-2.0.0 + v1-rev20260218-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-vpcaccess:v1-rev20260322-2.0.0' + implementation 'com.google.apis:google-api-services-vpcaccess:v1-rev20260218-2.0.0' } ``` diff --git a/clients/google-api-services-vpcaccess/v1/2.0.0/com/google/api/services/vpcaccess/v1/ServerlessVPCAccess.java b/clients/google-api-services-vpcaccess/v1/2.0.0/com/google/api/services/vpcaccess/v1/ServerlessVPCAccess.java index 4698d6ee1c7..fabe0729d1e 100644 --- a/clients/google-api-services-vpcaccess/v1/2.0.0/com/google/api/services/vpcaccess/v1/ServerlessVPCAccess.java +++ b/clients/google-api-services-vpcaccess/v1/2.0.0/com/google/api/services/vpcaccess/v1/ServerlessVPCAccess.java @@ -174,14 +174,10 @@ public Locations locations() { public class Locations { /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -205,15 +201,10 @@ public class List extends ServerlessVPCAccessRequestcom.google.apis google-api-services-vpcaccess - v1-rev20260322-2.0.0 - Serverless VPC Access API v1-rev20260322-2.0.0 + v1-rev20260218-2.0.0 + Serverless VPC Access API v1-rev20260218-2.0.0 jar 2011 diff --git a/clients/google-api-services-workflows/v1/2.0.0/README.md b/clients/google-api-services-workflows/v1/2.0.0/README.md index 6b072df8957..7e8f06bd65c 100644 --- a/clients/google-api-services-workflows/v1/2.0.0/README.md +++ b/clients/google-api-services-workflows/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-workflows - v1-rev20260322-2.0.0 + v1-rev20260128-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-workflows:v1-rev20260322-2.0.0' + implementation 'com.google.apis:google-api-services-workflows:v1-rev20260128-2.0.0' } ``` diff --git a/clients/google-api-services-workflows/v1/2.0.0/com/google/api/services/workflows/v1/Workflows.java b/clients/google-api-services-workflows/v1/2.0.0/com/google/api/services/workflows/v1/Workflows.java index 3f1f3c17917..7779a1bc5cf 100644 --- a/clients/google-api-services-workflows/v1/2.0.0/com/google/api/services/workflows/v1/Workflows.java +++ b/clients/google-api-services-workflows/v1/2.0.0/com/google/api/services/workflows/v1/Workflows.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends WorkflowsRequest tags) { * field and is not tied to a specific revision. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -549,7 +549,7 @@ public String getUpdateTime() { * field and is not tied to a specific revision. * @param updateTime updateTime or {@code null} for none */ - public Workflow setUpdateTime(String updateTime) { + public Workflow setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-workflows/v1/2.0.0/pom.xml b/clients/google-api-services-workflows/v1/2.0.0/pom.xml index b19f05ba362..b6b5cb1f775 100644 --- a/clients/google-api-services-workflows/v1/2.0.0/pom.xml +++ b/clients/google-api-services-workflows/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-workflows - v1-rev20260322-2.0.0 - Workflows API v1-rev20260322-2.0.0 + v1-rev20260128-2.0.0 + Workflows API v1-rev20260128-2.0.0 jar 2011 diff --git a/clients/google-api-services-workstations/v1/2.0.0/README.md b/clients/google-api-services-workstations/v1/2.0.0/README.md index 43252792d40..9a2b9ee8f8f 100644 --- a/clients/google-api-services-workstations/v1/2.0.0/README.md +++ b/clients/google-api-services-workstations/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-workstations - v1-rev20260401-2.0.0 + v1-rev20260126-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-workstations:v1-rev20260401-2.0.0' + implementation 'com.google.apis:google-api-services-workstations:v1-rev20260126-2.0.0' } ``` diff --git a/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/CloudWorkstations.java b/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/CloudWorkstations.java index 969a968b858..e605b280987 100644 --- a/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/CloudWorkstations.java +++ b/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/CloudWorkstations.java @@ -312,14 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -343,15 +339,10 @@ public class List extends CloudWorkstationsRequest annota * Output only. Time when this workstation was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -188,7 +188,7 @@ public String getCreateTime() { * Output only. Time when this workstation was created. * @param createTime createTime or {@code null} for none */ - public Workstation setCreateTime(String createTime) { + public Workstation setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -197,7 +197,7 @@ public Workstation setCreateTime(String createTime) { * Output only. Time when this workstation was soft-deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -205,7 +205,7 @@ public String getDeleteTime() { * Output only. Time when this workstation was soft-deleted. * @param deleteTime deleteTime or {@code null} for none */ - public Workstation setDeleteTime(String deleteTime) { + public Workstation setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -403,7 +403,7 @@ public Workstation setSourceWorkstation(java.lang.String sourceWorkstation) { * the workstation's initial state. * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } @@ -412,7 +412,7 @@ public String getStartTime() { * the workstation's initial state. * @param startTime startTime or {@code null} for none */ - public Workstation setStartTime(String startTime) { + public Workstation setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } @@ -455,7 +455,7 @@ public Workstation setUid(java.lang.String uid) { * Output only. Time when this workstation was most recently updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -463,7 +463,7 @@ public String getUpdateTime() { * Output only. Time when this workstation was most recently updated. * @param updateTime updateTime or {@code null} for none */ - public Workstation setUpdateTime(String updateTime) { + public Workstation setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationCluster.java b/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationCluster.java index fc54cf57fa8..e261554e1bc 100644 --- a/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationCluster.java +++ b/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationCluster.java @@ -65,7 +65,7 @@ public final class WorkstationCluster extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Whether this workstation cluster is in degraded mode, in which case it may require @@ -81,7 +81,7 @@ public final class WorkstationCluster extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * Optional. Human-readable name for this workstation cluster. @@ -180,30 +180,7 @@ public final class WorkstationCluster extends com.google.api.client.json.Generic * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; - - /** - * Optional. Specifies the redirect URL for unauthorized requests received by workstation VMs in - * this cluster. Redirects to this endpoint will send a base64 encoded `state` query param - * containing the target workstation name and original request hostname. The endpoint is - * responsible for retrieving a token using `GenerateAccessToken` and redirecting back to the - * original hostname with the token. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String workstationAuthorizationUrl; - - /** - * Optional. Specifies the launch URL for workstations in this cluster. Requests sent to unstarted - * workstations will be redirected to this URL. Requests redirected to the launch endpoint will be - * sent with a `workstation` and `project` query parameter containing the full workstation - * resource name and project ID, respectively. The launch endpoint is responsible for starting the - * workstation, polling it until it reaches `STATE_RUNNING`, and then issuing a redirect to the - * workstation's host URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String workstationLaunchUrl; + private java.lang.String updateTime; /** * Optional. Client-specified annotations. @@ -264,7 +241,7 @@ public WorkstationCluster setControlPlaneIp(java.lang.String controlPlaneIp) { * Output only. Time when this workstation cluster was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -272,7 +249,7 @@ public String getCreateTime() { * Output only. Time when this workstation cluster was created. * @param createTime createTime or {@code null} for none */ - public WorkstationCluster setCreateTime(String createTime) { + public WorkstationCluster setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -302,7 +279,7 @@ public WorkstationCluster setDegraded(java.lang.Boolean degraded) { * Output only. Time when this workstation cluster was soft-deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -310,7 +287,7 @@ public String getDeleteTime() { * Output only. Time when this workstation cluster was soft-deleted. * @param deleteTime deleteTime or {@code null} for none */ - public WorkstationCluster setDeleteTime(String deleteTime) { + public WorkstationCluster setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -539,7 +516,7 @@ public WorkstationCluster setUid(java.lang.String uid) { * Output only. Time when this workstation cluster was most recently updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -547,63 +524,11 @@ public String getUpdateTime() { * Output only. Time when this workstation cluster was most recently updated. * @param updateTime updateTime or {@code null} for none */ - public WorkstationCluster setUpdateTime(String updateTime) { + public WorkstationCluster setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } - /** - * Optional. Specifies the redirect URL for unauthorized requests received by workstation VMs in - * this cluster. Redirects to this endpoint will send a base64 encoded `state` query param - * containing the target workstation name and original request hostname. The endpoint is - * responsible for retrieving a token using `GenerateAccessToken` and redirecting back to the - * original hostname with the token. - * @return value or {@code null} for none - */ - public java.lang.String getWorkstationAuthorizationUrl() { - return workstationAuthorizationUrl; - } - - /** - * Optional. Specifies the redirect URL for unauthorized requests received by workstation VMs in - * this cluster. Redirects to this endpoint will send a base64 encoded `state` query param - * containing the target workstation name and original request hostname. The endpoint is - * responsible for retrieving a token using `GenerateAccessToken` and redirecting back to the - * original hostname with the token. - * @param workstationAuthorizationUrl workstationAuthorizationUrl or {@code null} for none - */ - public WorkstationCluster setWorkstationAuthorizationUrl(java.lang.String workstationAuthorizationUrl) { - this.workstationAuthorizationUrl = workstationAuthorizationUrl; - return this; - } - - /** - * Optional. Specifies the launch URL for workstations in this cluster. Requests sent to unstarted - * workstations will be redirected to this URL. Requests redirected to the launch endpoint will be - * sent with a `workstation` and `project` query parameter containing the full workstation - * resource name and project ID, respectively. The launch endpoint is responsible for starting the - * workstation, polling it until it reaches `STATE_RUNNING`, and then issuing a redirect to the - * workstation's host URL. - * @return value or {@code null} for none - */ - public java.lang.String getWorkstationLaunchUrl() { - return workstationLaunchUrl; - } - - /** - * Optional. Specifies the launch URL for workstations in this cluster. Requests sent to unstarted - * workstations will be redirected to this URL. Requests redirected to the launch endpoint will be - * sent with a `workstation` and `project` query parameter containing the full workstation - * resource name and project ID, respectively. The launch endpoint is responsible for starting the - * workstation, polling it until it reaches `STATE_RUNNING`, and then issuing a redirect to the - * workstation's host URL. - * @param workstationLaunchUrl workstationLaunchUrl or {@code null} for none - */ - public WorkstationCluster setWorkstationLaunchUrl(java.lang.String workstationLaunchUrl) { - this.workstationLaunchUrl = workstationLaunchUrl; - return this; - } - @Override public WorkstationCluster set(String fieldName, Object value) { return (WorkstationCluster) super.set(fieldName, value); diff --git a/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationConfig.java b/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationConfig.java index 6f5d11afd91..d6b3dad43c7 100644 --- a/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationConfig.java +++ b/clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/WorkstationConfig.java @@ -83,7 +83,7 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String createTime; + private java.lang.String createTime; /** * Output only. Whether this workstation configuration is in degraded mode, in which case it may @@ -99,7 +99,7 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String deleteTime; + private java.lang.String deleteTime; /** * Optional. Disables support for plain TCP connections in the workstation. By default the service @@ -196,7 +196,7 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String idleTimeout; + private java.lang.String idleTimeout; /** * Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied @@ -274,21 +274,21 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ private java.util.List replicaZones; /** - * Optional. Number of seconds that a workstation can run until it is automatically shut down. - * This field applies to workstations in both STATE_RUNNING and STATE_SUSPENDED. We recommend that - * workstations be shut down daily to reduce costs and so that security updates can be applied - * upon restart. The idle_timeout and running_timeout fields are independent of each other. Note - * that the running_timeout field shuts down VMs after the specified time, regardless of whether - * or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` - * (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations - * using this configuration should never time out. If encryption_key is set, it must be greater - * than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that - * Cloud Workstations VMs created with this configuration have no maximum running time. This is - * strongly discouraged because you incur costs and will not pick up security updates. + * Optional. Number of seconds that a workstation can run until it is automatically shut down. We + * recommend that workstations be shut down daily to reduce costs and so that security updates can + * be applied upon restart. The idle_timeout and running_timeout fields are independent of each + * other. Note that the running_timeout field shuts down VMs after the specified time, regardless + * of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, + * `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that + * workstations using this configuration should never time out. If encryption_key is set, it must + * be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` + * indicates that Cloud Workstations VMs created with this configuration have no maximum running + * time. This is strongly discouraged because you incur costs and will not pick up security + * updates. * The value may be {@code null}. */ @com.google.api.client.util.Key - private String runningTimeout; + private java.lang.String runningTimeout; /** * Output only. A system-assigned unique identifier for this workstation configuration. @@ -302,7 +302,7 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String updateTime; + private java.lang.String updateTime; /** * Optional. A list of PortRanges specifying single ports or ranges of ports that are externally @@ -382,7 +382,7 @@ public WorkstationConfig setContainer(Container container) { * Output only. Time when this workstation configuration was created. * @return value or {@code null} for none */ - public String getCreateTime() { + public java.lang.String getCreateTime() { return createTime; } @@ -390,7 +390,7 @@ public String getCreateTime() { * Output only. Time when this workstation configuration was created. * @param createTime createTime or {@code null} for none */ - public WorkstationConfig setCreateTime(String createTime) { + public WorkstationConfig setCreateTime(java.lang.String createTime) { this.createTime = createTime; return this; } @@ -420,7 +420,7 @@ public WorkstationConfig setDegraded(java.lang.Boolean degraded) { * Output only. Time when this workstation configuration was soft-deleted. * @return value or {@code null} for none */ - public String getDeleteTime() { + public java.lang.String getDeleteTime() { return deleteTime; } @@ -428,7 +428,7 @@ public String getDeleteTime() { * Output only. Time when this workstation configuration was soft-deleted. * @param deleteTime deleteTime or {@code null} for none */ - public WorkstationConfig setDeleteTime(String deleteTime) { + public WorkstationConfig setDeleteTime(java.lang.String deleteTime) { this.deleteTime = deleteTime; return this; } @@ -624,7 +624,7 @@ public WorkstationConfig setHost(Host host) { * `"7200s"` (2 hours). The default is `"1200s"` (20 minutes). * @return value or {@code null} for none */ - public String getIdleTimeout() { + public java.lang.String getIdleTimeout() { return idleTimeout; } @@ -637,7 +637,7 @@ public String getIdleTimeout() { * `"7200s"` (2 hours). The default is `"1200s"` (20 minutes). * @param idleTimeout idleTimeout or {@code null} for none */ - public WorkstationConfig setIdleTimeout(String idleTimeout) { + public WorkstationConfig setIdleTimeout(java.lang.String idleTimeout) { this.idleTimeout = idleTimeout; return this; } @@ -790,38 +790,38 @@ public WorkstationConfig setReplicaZones(java.util.List replic } /** - * Optional. Number of seconds that a workstation can run until it is automatically shut down. - * This field applies to workstations in both STATE_RUNNING and STATE_SUSPENDED. We recommend that - * workstations be shut down daily to reduce costs and so that security updates can be applied - * upon restart. The idle_timeout and running_timeout fields are independent of each other. Note - * that the running_timeout field shuts down VMs after the specified time, regardless of whether - * or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` - * (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations - * using this configuration should never time out. If encryption_key is set, it must be greater - * than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that - * Cloud Workstations VMs created with this configuration have no maximum running time. This is - * strongly discouraged because you incur costs and will not pick up security updates. + * Optional. Number of seconds that a workstation can run until it is automatically shut down. We + * recommend that workstations be shut down daily to reduce costs and so that security updates can + * be applied upon restart. The idle_timeout and running_timeout fields are independent of each + * other. Note that the running_timeout field shuts down VMs after the specified time, regardless + * of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, + * `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that + * workstations using this configuration should never time out. If encryption_key is set, it must + * be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` + * indicates that Cloud Workstations VMs created with this configuration have no maximum running + * time. This is strongly discouraged because you incur costs and will not pick up security + * updates. * @return value or {@code null} for none */ - public String getRunningTimeout() { + public java.lang.String getRunningTimeout() { return runningTimeout; } /** - * Optional. Number of seconds that a workstation can run until it is automatically shut down. - * This field applies to workstations in both STATE_RUNNING and STATE_SUSPENDED. We recommend that - * workstations be shut down daily to reduce costs and so that security updates can be applied - * upon restart. The idle_timeout and running_timeout fields are independent of each other. Note - * that the running_timeout field shuts down VMs after the specified time, regardless of whether - * or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` - * (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations - * using this configuration should never time out. If encryption_key is set, it must be greater - * than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that - * Cloud Workstations VMs created with this configuration have no maximum running time. This is - * strongly discouraged because you incur costs and will not pick up security updates. + * Optional. Number of seconds that a workstation can run until it is automatically shut down. We + * recommend that workstations be shut down daily to reduce costs and so that security updates can + * be applied upon restart. The idle_timeout and running_timeout fields are independent of each + * other. Note that the running_timeout field shuts down VMs after the specified time, regardless + * of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, + * `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that + * workstations using this configuration should never time out. If encryption_key is set, it must + * be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` + * indicates that Cloud Workstations VMs created with this configuration have no maximum running + * time. This is strongly discouraged because you incur costs and will not pick up security + * updates. * @param runningTimeout runningTimeout or {@code null} for none */ - public WorkstationConfig setRunningTimeout(String runningTimeout) { + public WorkstationConfig setRunningTimeout(java.lang.String runningTimeout) { this.runningTimeout = runningTimeout; return this; } @@ -847,7 +847,7 @@ public WorkstationConfig setUid(java.lang.String uid) { * Output only. Time when this workstation configuration was most recently updated. * @return value or {@code null} for none */ - public String getUpdateTime() { + public java.lang.String getUpdateTime() { return updateTime; } @@ -855,7 +855,7 @@ public String getUpdateTime() { * Output only. Time when this workstation configuration was most recently updated. * @param updateTime updateTime or {@code null} for none */ - public WorkstationConfig setUpdateTime(String updateTime) { + public WorkstationConfig setUpdateTime(java.lang.String updateTime) { this.updateTime = updateTime; return this; } diff --git a/clients/google-api-services-workstations/v1/2.0.0/pom.xml b/clients/google-api-services-workstations/v1/2.0.0/pom.xml index f79870db45e..0123bbb3943 100644 --- a/clients/google-api-services-workstations/v1/2.0.0/pom.xml +++ b/clients/google-api-services-workstations/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-workstations - v1-rev20260401-2.0.0 - Cloud Workstations API v1-rev20260401-2.0.0 + v1-rev20260126-2.0.0 + Cloud Workstations API v1-rev20260126-2.0.0 jar 2011 From b9a93e1cac711a3133d2cf802fef098f01b0129e Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 15 Apr 2026 14:35:09 -0400 Subject: [PATCH 3/9] chore: add compute models to the demo validation branch --- .../alpha/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 7098 +- .../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 | 39 +- .../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/FutureResourcesRecommendation.java | 12 +- .../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 | 48 +- ...usFailoverProgressLastFailoverAttempt.java | 20 +- .../model/HaControllerStatusZoneStatus.java | 18 +- ...HaControllerStatusZoneStatusLastError.java | 20 +- .../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 | 26 +- ...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 | 18 +- .../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 | 18 +- .../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 | 26 +- .../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 + ...egionWaitForReplicationCatchUpRequest.java | 6 +- .../compute/model/ReliabilityRisk.java | 27 +- .../model/ReliabilityRisksListResponse.java | 15 +- .../compute/model/ReplicationDetails.java | 30 +- .../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 +- .../services/compute/model/RiskDetails.java | 12 +- .../model/RiskDetailsGlobalDnsInsight.java | 6 +- .../api/services/compute/model/Rollout.java | 86 +- .../services/compute/model/RolloutPlan.java | 39 +- ...loutPlanWaveOrchestrationOptionsDelay.java | 6 +- ...ValidationTimeBasedValidationMetadata.java | 6 +- .../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 | 18 +- .../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 +- .../compute/model/StructuredEntries.java | 6 +- .../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 +- .../WaitForReplicationCatchUpRequest.java | 6 +- .../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 +- .../beta/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 121264 ++++++++------- .../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 | 39 +- .../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/FutureResourcesRecommendation.java | 12 +- .../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 | 26 +- ...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 | 18 +- .../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 | 26 +- .../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 +- ...loutPlanWaveOrchestrationOptionsDelay.java | 6 +- ...ValidationTimeBasedValidationMetadata.java | 6 +- .../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 +- .../compute/model/StructuredEntries.java | 6 +- .../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 +- .../v1/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 45843 ++++-- .../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 +- 1480 files changed, 161509 insertions(+), 91156 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 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 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/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..463e29ca229 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: @@ -15054,16 +15054,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -15502,16 +15502,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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. * @@ -47173,16 +48021,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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; } @@ -67898,16 +68985,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; 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 @@ -90828,16 +92648,16 @@ public Patch setRequestId(java.lang.String requestId) { /** The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -95687,16 +97507,16 @@ public Patch setRequestId(java.lang.String requestId) { /** The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -102054,16 +103874,16 @@ public Update setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -108859,16 +110679,16 @@ public Patch setRequestId(java.lang.String requestId) { /** Indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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. * @@ -154892,16 +157090,16 @@ public Update setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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. @@ -157628,16 +160034,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 java.lang.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 java.lang.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(java.lang.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}"; - 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. + * 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; } @@ -225856,16 +230203,16 @@ public Update setRequestId(java.lang.String requestId) { /** Update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -227964,16 +232311,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; 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); + } + } } @@ -241092,16 +245913,16 @@ public Patch setRequestId(java.lang.String requestId) { /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -241294,16 +246115,16 @@ public PatchRule setPriority(java.lang.Integer priority) { /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { + public PatchRule setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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. * @@ -246210,16 +251397,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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..e8addbd4cb6 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 java.lang.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 java.lang.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(java.lang.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..2819525aa4a 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 java.lang.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 java.lang.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 java.lang.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(java.lang.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 java.lang.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(java.lang.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..431777b37ef --- /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 java.lang.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 java.lang.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(java.lang.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..ff52b1ffbb2 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. @@ -37,49 +36,49 @@ public final class FlexibleTimeRange extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeNotEarlierThan; + private java.lang.String endTimeNotEarlierThan; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeNotLaterThan; + private java.lang.String endTimeNotLaterThan; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maxDuration; + private java.lang.String maxDuration; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minDuration; + private java.lang.String minDuration; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeNotEarlierThan; + private java.lang.String startTimeNotEarlierThan; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeNotLaterThan; + private java.lang.String startTimeNotLaterThan; /** * @return value or {@code null} for none */ - public String getEndTimeNotEarlierThan() { + public java.lang.String getEndTimeNotEarlierThan() { return endTimeNotEarlierThan; } /** * @param endTimeNotEarlierThan endTimeNotEarlierThan or {@code null} for none */ - public FlexibleTimeRange setEndTimeNotEarlierThan(String endTimeNotEarlierThan) { + public FlexibleTimeRange setEndTimeNotEarlierThan(java.lang.String endTimeNotEarlierThan) { this.endTimeNotEarlierThan = endTimeNotEarlierThan; return this; } @@ -87,14 +86,14 @@ public FlexibleTimeRange setEndTimeNotEarlierThan(String endTimeNotEarlierThan) /** * @return value or {@code null} for none */ - public String getEndTimeNotLaterThan() { + public java.lang.String getEndTimeNotLaterThan() { return endTimeNotLaterThan; } /** * @param endTimeNotLaterThan endTimeNotLaterThan or {@code null} for none */ - public FlexibleTimeRange setEndTimeNotLaterThan(String endTimeNotLaterThan) { + public FlexibleTimeRange setEndTimeNotLaterThan(java.lang.String endTimeNotLaterThan) { this.endTimeNotLaterThan = endTimeNotLaterThan; return this; } @@ -102,14 +101,14 @@ public FlexibleTimeRange setEndTimeNotLaterThan(String endTimeNotLaterThan) { /** * @return value or {@code null} for none */ - public String getMaxDuration() { + public java.lang.String getMaxDuration() { return maxDuration; } /** * @param maxDuration maxDuration or {@code null} for none */ - public FlexibleTimeRange setMaxDuration(String maxDuration) { + public FlexibleTimeRange setMaxDuration(java.lang.String maxDuration) { this.maxDuration = maxDuration; return this; } @@ -117,14 +116,14 @@ public FlexibleTimeRange setMaxDuration(String maxDuration) { /** * @return value or {@code null} for none */ - public String getMinDuration() { + public java.lang.String getMinDuration() { return minDuration; } /** * @param minDuration minDuration or {@code null} for none */ - public FlexibleTimeRange setMinDuration(String minDuration) { + public FlexibleTimeRange setMinDuration(java.lang.String minDuration) { this.minDuration = minDuration; return this; } @@ -132,14 +131,14 @@ public FlexibleTimeRange setMinDuration(String minDuration) { /** * @return value or {@code null} for none */ - public String getStartTimeNotEarlierThan() { + public java.lang.String getStartTimeNotEarlierThan() { return startTimeNotEarlierThan; } /** * @param startTimeNotEarlierThan startTimeNotEarlierThan or {@code null} for none */ - public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierThan) { + public FlexibleTimeRange setStartTimeNotEarlierThan(java.lang.String startTimeNotEarlierThan) { this.startTimeNotEarlierThan = startTimeNotEarlierThan; return this; } @@ -147,14 +146,14 @@ public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierTh /** * @return value or {@code null} for none */ - public String getStartTimeNotLaterThan() { + public java.lang.String getStartTimeNotLaterThan() { return startTimeNotLaterThan; } /** * @param startTimeNotLaterThan startTimeNotLaterThan or {@code null} for none */ - public FlexibleTimeRange setStartTimeNotLaterThan(String startTimeNotLaterThan) { + public FlexibleTimeRange setStartTimeNotLaterThan(java.lang.String startTimeNotLaterThan) { this.startTimeNotLaterThan = startTimeNotLaterThan; return this; } 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/FutureResourcesRecommendation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java index 2ccacd327d1..e5fc3852f6d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java @@ -33,7 +33,7 @@ public final class FutureResourcesRecommendation extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means @@ -69,19 +69,19 @@ public final class FutureResourcesRecommendation extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } /** * @param endTime endTime or {@code null} for none */ - public FutureResourcesRecommendation setEndTime(String endTime) { + public FutureResourcesRecommendation setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -161,14 +161,14 @@ public FutureResourcesRecommendation setRecommendationType(java.lang.String reco /** * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } /** * @param startTime startTime or {@code null} for none */ - public FutureResourcesRecommendation setStartTime(String startTime) { + public FutureResourcesRecommendation setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } 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..30092fa5fb7 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,56 +30,56 @@ 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; + private java.lang.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; + private java.lang.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() { + public java.lang.String getFailoverCompleteTimestamp() { return failoverCompleteTimestamp; } /** - * [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) { + public HaControllerStatusFailoverProgress setFailoverCompleteTimestamp(java.lang.String failoverCompleteTimestamp) { this.failoverCompleteTimestamp = failoverCompleteTimestamp; return this; } /** - * [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,25 +96,25 @@ 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() { + public java.lang.String getFailoverTriggerTimestamp() { return failoverTriggerTimestamp; } /** - * [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) { + public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(java.lang.String failoverTriggerTimestamp) { this.failoverTriggerTimestamp = failoverTriggerTimestamp; return this; } /** - * [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..2df6426e053 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; + private java.lang.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,18 +61,18 @@ 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() { + public java.lang.String getTimestamp() { return timestamp; } /** - * [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) { + public HaControllerStatusFailoverProgressLastFailoverAttempt setTimestamp(java.lang.String timestamp) { this.timestamp = timestamp; return this; } @@ -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..6313f8d2c06 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; + private java.lang.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,18 +61,18 @@ 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() { + public java.lang.String getTimestamp() { return timestamp; } /** - * [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) { + public HaControllerStatusZoneStatusLastError setTimestamp(java.lang.String timestamp) { this.timestamp = timestamp; return this; } @@ -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..4d0cf93a4f2 --- /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 java.lang.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 java.lang.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(java.lang.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..739aaba9e77 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; + private java.lang.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,20 +62,20 @@ 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() { + public java.lang.String getTimestamp() { return timestamp; } /** - * [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) { + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setTimestamp(java.lang.String timestamp) { this.timestamp = timestamp; return this; } @@ -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..b5d20555afc --- /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 java.lang.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 java.lang.String getErrorTimestamp() { + return errorTimestamp; + } + + /** + * Timestamp when the last error happened + * @param errorTimestamp errorTimestamp or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setErrorTimestamp(java.lang.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..153434e575a 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,38 +30,38 @@ 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; + private java.lang.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() { + public java.lang.String getConsistencyMembershipResolutionTime() { return consistencyMembershipResolutionTime; } /** - * [Output Only] + * Output only. [Output Only] * @param consistencyMembershipResolutionTime consistencyMembershipResolutionTime or {@code null} for none */ - public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(String consistencyMembershipResolutionTime) { + public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(java.lang.String consistencyMembershipResolutionTime) { this.consistencyMembershipResolutionTime = consistencyMembershipResolutionTime; return this; } /** - * [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/RegionWaitForReplicationCatchUpRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionWaitForReplicationCatchUpRequest.java index bd834e7129f..8a248a7ac00 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionWaitForReplicationCatchUpRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionWaitForReplicationCatchUpRequest.java @@ -33,19 +33,19 @@ public final class RegionWaitForReplicationCatchUpRequest extends com.google.api * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maxWaitDuration; + private java.lang.String maxWaitDuration; /** * @return value or {@code null} for none */ - public String getMaxWaitDuration() { + public java.lang.String getMaxWaitDuration() { return maxWaitDuration; } /** * @param maxWaitDuration maxWaitDuration or {@code null} for none */ - public RegionWaitForReplicationCatchUpRequest setMaxWaitDuration(String maxWaitDuration) { + public RegionWaitForReplicationCatchUpRequest setMaxWaitDuration(java.lang.String maxWaitDuration) { this.maxWaitDuration = maxWaitDuration; return this; } 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..0824bca7bb5 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,42 +30,42 @@ 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; + private java.lang.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() { + public java.lang.String getLastReplicationTime() { return lastReplicationTime; } /** - * 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) { + public ReplicationDetails setLastReplicationTime(java.lang.String lastReplicationTime) { this.lastReplicationTime = lastReplicationTime; return this; } /** - * 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/RolloutPlanWaveOrchestrationOptionsDelay.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java index 148270883be..c8b05d04cfa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java @@ -46,7 +46,7 @@ public final class RolloutPlanWaveOrchestrationOptionsDelay extends com.google.a * The value may be {@code null}. */ @com.google.api.client.util.Key - private String duration; + private java.lang.String duration; /** * Optional. Controls whether the specified duration is to be added at the end of each batch, or @@ -89,7 +89,7 @@ public RolloutPlanWaveOrchestrationOptionsDelay setDelimiter(java.lang.String de * duration corresponds to no delay. * @return value or {@code null} for none */ - public String getDuration() { + public java.lang.String getDuration() { return duration; } @@ -98,7 +98,7 @@ public String getDuration() { * duration corresponds to no delay. * @param duration duration or {@code null} for none */ - public RolloutPlanWaveOrchestrationOptionsDelay setDuration(String duration) { + public RolloutPlanWaveOrchestrationOptionsDelay setDuration(java.lang.String duration) { this.duration = duration; return this; } diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java index 6bbdf15d273..31694593bb6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java @@ -35,14 +35,14 @@ public final class RolloutPlanWaveValidationTimeBasedValidationMetadata extends * The value may be {@code null}. */ @com.google.api.client.util.Key - private String waitDuration; + private java.lang.String waitDuration; /** * Optional. The duration that the system waits in between waves. This wait starts after all * changes in the wave are rolled out. * @return value or {@code null} for none */ - public String getWaitDuration() { + public java.lang.String getWaitDuration() { return waitDuration; } @@ -51,7 +51,7 @@ public String getWaitDuration() { * changes in the wave are rolled out. * @param waitDuration waitDuration or {@code null} for none */ - public RolloutPlanWaveValidationTimeBasedValidationMetadata setWaitDuration(String waitDuration) { + public RolloutPlanWaveValidationTimeBasedValidationMetadata setWaitDuration(java.lang.String waitDuration) { this.waitDuration = waitDuration; return this; } 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..ab6d3a7d14d 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,28 +30,28 @@ 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; + private java.lang.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() { + public java.lang.String getScheduledDeletionTime() { return 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. * @param scheduledDeletionTime scheduledDeletionTime or {@code null} for none */ - public SnapshotResourceStatus setScheduledDeletionTime(String scheduledDeletionTime) { + public SnapshotResourceStatus setScheduledDeletionTime(java.lang.String scheduledDeletionTime) { this.scheduledDeletionTime = scheduledDeletionTime; return this; } 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/StructuredEntries.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java index 27a7d679b59..e95ecb226cd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StructuredEntries.java @@ -35,14 +35,14 @@ public final class StructuredEntries extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map entries; + 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() { + public java.util.Map getEntries() { return entries; } @@ -51,7 +51,7 @@ public java.util.Map getEntries() { * google.protobuf.Struct. * @param entries entries or {@code null} for none */ - public StructuredEntries setEntries(java.util.Map entries) { + public StructuredEntries setEntries(java.util.Map entries) { this.entries = entries; return this; } 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/WaitForReplicationCatchUpRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WaitForReplicationCatchUpRequest.java index f9be5b35191..a3a345758bd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WaitForReplicationCatchUpRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WaitForReplicationCatchUpRequest.java @@ -33,19 +33,19 @@ public final class WaitForReplicationCatchUpRequest extends com.google.api.clien * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maxWaitDuration; + private java.lang.String maxWaitDuration; /** * @return value or {@code null} for none */ - public String getMaxWaitDuration() { + public java.lang.String getMaxWaitDuration() { return maxWaitDuration; } /** * @param maxWaitDuration maxWaitDuration or {@code null} for none */ - public WaitForReplicationCatchUpRequest setMaxWaitDuration(String maxWaitDuration) { + public WaitForReplicationCatchUpRequest setMaxWaitDuration(java.lang.String maxWaitDuration) { this.maxWaitDuration = maxWaitDuration; return this; } 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 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..0035ffba850 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: @@ -14884,16 +14884,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -15332,16 +15332,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 " + @@ -64121,16 +64370,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against 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 `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (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 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; 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 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; + } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this 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; - } + public class Get 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}/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`) [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 AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } + 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}"); /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Returns the specified InterconnectAttachmentGroup resource in the given scope. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `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 "interconnectAttachmentGroups.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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + 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}"); + } + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `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.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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 set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` 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 setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** Specifies a page token to use. Set `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 setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } - /** - * Specifies 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 setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial 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; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - For example, when partial success 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; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 java.lang.String updateMask; + + /** The list of fields to update. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(java.lang.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`. * - * 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. - *

    + * Create a request for the method "interconnectAttachments.aggregatedList". * - * @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} + * 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 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,419 +88809,90 @@ 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); - } - - @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. + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, @@ -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 `:`. - * - * 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. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for 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 java.lang.String updateMask; + + /** The list of fields to update. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(java.lang.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); + 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); - } - - @Override - public 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 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. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** 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; - } - - /** 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; - } + @com.google.api.client.util.Key + private java.lang.String filter; - @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; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - public class TestIamPermissions extends ComputeRequest { + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + 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 static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-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])?))"); + The `:*` 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 final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - /** - * 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}"); - } - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `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 set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } + If you want to use a regular expression, use 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 setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - 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); - } - - @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 { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{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 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.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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,83 +97779,447 @@ 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; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that 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.Integer 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 java.lang.Integer getOptionsRequestedPolicyVersion() { + return 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 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`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` @@ -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); - } - - @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); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @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 java.lang.String updateMask; + + /** Indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + 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."); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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,61 +105952,27 @@ 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; + private java.lang.Long maxResults; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if 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`) [default: 500] [minimum: 0] */ - 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; + public java.lang.Long getMaxResults() { + return maxResults; } /** @@ -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,61 +113793,27 @@ 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; + private java.lang.Long maxResults; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if 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`) [default: 500] [minimum: 0] */ - 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; + public java.lang.Long getMaxResults() { + return maxResults; } /** @@ -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,24 +115006,435 @@ 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; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } @@ -115052,60 +115449,287 @@ 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 " + - "[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; } - /** Requested IAM Policy version. */ + @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 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 UpdatePeering setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the network resource which the updated peering is belonging to. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource which the updated peering is belonging to. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource which the updated peering is belonging to. */ + public UpdatePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public UpdatePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) 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 NodeGroup resource 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 "nodeGroups.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 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. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} * @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 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}/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])?))"); @@ -115113,23 +115737,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 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 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. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} * @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 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()) { @@ -115143,67 +115771,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 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. */ @@ -115217,7 +115850,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 " + @@ -115238,7 +115871,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Insert 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 " + @@ -115248,19 +115881,24 @@ public Insert setZone(java.lang.String zone) { return this; } - /** Initial count of nodes in the node group. */ + /** Name of the NodeGroup resource. */ @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. */ - 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. */ + 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; } @@ -115308,74 +115946,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 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 a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. * - * Create a request for the method "nodeGroups.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. - * @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}/nodeGroups"; + 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])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. * - * Create a request for the method "nodeGroups.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. - * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.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 @@ -115389,63 +116023,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. */ @@ -115459,7 +116093,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 " + @@ -115469,27 +116103,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 @@ -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). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not 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 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 " + - "[a-z](?:[-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 = 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,11069 @@ 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. + /** 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 java.lang.String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public Patch setUpdateMask(java.lang.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 java.lang.String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(java.lang.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). */ - public AddAssociation setRequestId(java.lang.String requestId) { + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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.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. + * + * 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.securityPolicy = securityPolicy; + this.project = project; return this; } @@ -121421,150 +132836,184 @@ 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 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); + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success 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. */ + @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; } - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = 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; 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); } } /** - * 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; } @@ -124043,389 +135432,384 @@ 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 PatchRule setRequestId(java.lang.String requestId) { + public Delete 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); + 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; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned 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); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this 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 setOauthToken(java.lang.String oauthToken) { + return (Withdraw) 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 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`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return 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`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) 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 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. + @Override + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) 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 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")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + } - 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,7 +140365,7 @@ 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; } @@ -128771,169 +140375,641 @@ public GetXpnResources setOrderBy(java.lang.String orderBy) { * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies 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 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; + 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 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; + } - 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 for which to get health. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource for which to get health. */ - public java.lang.String 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 SetCloudArmorTier setRequestId(java.lang.String requestId) { - this.requestId = 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; 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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for 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 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."); - } + @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. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) 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 Announce setAlt(java.lang.String alt) { - return (Announce) 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 Announce setCallback(java.lang.String callback) { - return (Announce) 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 Announce setFields(java.lang.String fields) { - return (Announce) 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 Announce setKey(java.lang.String key) { - return (Announce) 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 Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) 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 Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); + 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; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + 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.String project; + + /** Project ID for this request. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetSecurityPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use 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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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 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); + } + + @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; } - @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 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; + * 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 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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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; } @@ -143771,16 +153707,16 @@ public Update setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; 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 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. */ @@ -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). - */ - public java.lang.String getRequestId() { - return requestId; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + * 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 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(), @@ -182670,94 +193698,613 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned 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 java.lang.String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public Patch setUpdateMask(java.lang.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; } - /** - * 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. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.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 java.lang.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(java.lang.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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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,13 +197247,13 @@ 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 "regionOperations.delete". + * 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 @@ -185183,13 +197261,260 @@ public class Delete extends ComputeRequest { * be called to initialize 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 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 "regionSslCertificates.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslCertificate Name of the SslCertificate resource to return. * @since 1.13 */ - protected 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}"); + 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.securityPolicy = securityPolicy; + this.region = region; 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); + 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. */ @@ -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; } @@ -197243,443 +209688,174 @@ public List setOrderBy(java.lang.String orderBy) { * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned 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; + private java.lang.String pageToken; - /** Name of the TargetHttpsProxy 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 getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getPageToken() { + return pageToken; } - /** 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 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.project = project; + this.parentName = parentName; return this; } - /** Name of the region scoping this request. */ + /** + * 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 region; + private java.lang.String reservationSlot; - /** Name of the region scoping this request. + /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getReservationSlot() { + return reservationSlot; } - /** 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 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 java.lang.String updateMask; + + /** The fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** The fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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); + 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 java.lang.String updateMask; + + /** Update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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}/aggregated/resourcePolicies"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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 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 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 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use 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 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; } @@ -211179,306 +223763,42 @@ 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. + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - 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; + 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 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; } - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + /** 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 " + @@ -215526,358 +227336,67 @@ public GetNatMappingInfo setProject(java.lang.String project) { 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; + + /** 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; } @@ -217906,505 +229208,244 @@ public ListRoutePolicies setFilter(java.lang.String filter) { next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in 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 `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned 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 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 java.lang.String updateMask; - /** - * The "securityPolicies" collection of methods. - */ - public class SecurityPolicies { + /** Indicates fields to be cleared as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public Patch setUpdateMask(java.lang.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 java.lang.String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(java.lang.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; @@ -226680,16 +237109,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -236887,16 +247316,16 @@ public Update setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -266919,16 +277348,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; 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..ff52b1ffbb2 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. @@ -37,49 +36,49 @@ public final class FlexibleTimeRange extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeNotEarlierThan; + private java.lang.String endTimeNotEarlierThan; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTimeNotLaterThan; + private java.lang.String endTimeNotLaterThan; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String maxDuration; + private java.lang.String maxDuration; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String minDuration; + private java.lang.String minDuration; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeNotEarlierThan; + private java.lang.String startTimeNotEarlierThan; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTimeNotLaterThan; + private java.lang.String startTimeNotLaterThan; /** * @return value or {@code null} for none */ - public String getEndTimeNotEarlierThan() { + public java.lang.String getEndTimeNotEarlierThan() { return endTimeNotEarlierThan; } /** * @param endTimeNotEarlierThan endTimeNotEarlierThan or {@code null} for none */ - public FlexibleTimeRange setEndTimeNotEarlierThan(String endTimeNotEarlierThan) { + public FlexibleTimeRange setEndTimeNotEarlierThan(java.lang.String endTimeNotEarlierThan) { this.endTimeNotEarlierThan = endTimeNotEarlierThan; return this; } @@ -87,14 +86,14 @@ public FlexibleTimeRange setEndTimeNotEarlierThan(String endTimeNotEarlierThan) /** * @return value or {@code null} for none */ - public String getEndTimeNotLaterThan() { + public java.lang.String getEndTimeNotLaterThan() { return endTimeNotLaterThan; } /** * @param endTimeNotLaterThan endTimeNotLaterThan or {@code null} for none */ - public FlexibleTimeRange setEndTimeNotLaterThan(String endTimeNotLaterThan) { + public FlexibleTimeRange setEndTimeNotLaterThan(java.lang.String endTimeNotLaterThan) { this.endTimeNotLaterThan = endTimeNotLaterThan; return this; } @@ -102,14 +101,14 @@ public FlexibleTimeRange setEndTimeNotLaterThan(String endTimeNotLaterThan) { /** * @return value or {@code null} for none */ - public String getMaxDuration() { + public java.lang.String getMaxDuration() { return maxDuration; } /** * @param maxDuration maxDuration or {@code null} for none */ - public FlexibleTimeRange setMaxDuration(String maxDuration) { + public FlexibleTimeRange setMaxDuration(java.lang.String maxDuration) { this.maxDuration = maxDuration; return this; } @@ -117,14 +116,14 @@ public FlexibleTimeRange setMaxDuration(String maxDuration) { /** * @return value or {@code null} for none */ - public String getMinDuration() { + public java.lang.String getMinDuration() { return minDuration; } /** * @param minDuration minDuration or {@code null} for none */ - public FlexibleTimeRange setMinDuration(String minDuration) { + public FlexibleTimeRange setMinDuration(java.lang.String minDuration) { this.minDuration = minDuration; return this; } @@ -132,14 +131,14 @@ public FlexibleTimeRange setMinDuration(String minDuration) { /** * @return value or {@code null} for none */ - public String getStartTimeNotEarlierThan() { + public java.lang.String getStartTimeNotEarlierThan() { return startTimeNotEarlierThan; } /** * @param startTimeNotEarlierThan startTimeNotEarlierThan or {@code null} for none */ - public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierThan) { + public FlexibleTimeRange setStartTimeNotEarlierThan(java.lang.String startTimeNotEarlierThan) { this.startTimeNotEarlierThan = startTimeNotEarlierThan; return this; } @@ -147,14 +146,14 @@ public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierTh /** * @return value or {@code null} for none */ - public String getStartTimeNotLaterThan() { + public java.lang.String getStartTimeNotLaterThan() { return startTimeNotLaterThan; } /** * @param startTimeNotLaterThan startTimeNotLaterThan or {@code null} for none */ - public FlexibleTimeRange setStartTimeNotLaterThan(String startTimeNotLaterThan) { + public FlexibleTimeRange setStartTimeNotLaterThan(java.lang.String startTimeNotLaterThan) { this.startTimeNotLaterThan = startTimeNotLaterThan; return this; } 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/FutureResourcesRecommendation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java index 2ccacd327d1..e5fc3852f6d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java @@ -33,7 +33,7 @@ public final class FutureResourcesRecommendation extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String endTime; + private java.lang.String endTime; /** * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means @@ -69,19 +69,19 @@ public final class FutureResourcesRecommendation extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private String startTime; + private java.lang.String startTime; /** * @return value or {@code null} for none */ - public String getEndTime() { + public java.lang.String getEndTime() { return endTime; } /** * @param endTime endTime or {@code null} for none */ - public FutureResourcesRecommendation setEndTime(String endTime) { + public FutureResourcesRecommendation setEndTime(java.lang.String endTime) { this.endTime = endTime; return this; } @@ -161,14 +161,14 @@ public FutureResourcesRecommendation setRecommendationType(java.lang.String reco /** * @return value or {@code null} for none */ - public String getStartTime() { + public java.lang.String getStartTime() { return startTime; } /** * @param startTime startTime or {@code null} for none */ - public FutureResourcesRecommendation setStartTime(String startTime) { + public FutureResourcesRecommendation setStartTime(java.lang.String startTime) { this.startTime = startTime; return this; } 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..4d0cf93a4f2 --- /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 java.lang.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 java.lang.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(java.lang.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..739aaba9e77 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; + private java.lang.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,20 +62,20 @@ 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() { + public java.lang.String getTimestamp() { return timestamp; } /** - * [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) { + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setTimestamp(java.lang.String timestamp) { this.timestamp = timestamp; return this; } @@ -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..b5d20555afc --- /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 java.lang.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 java.lang.String getErrorTimestamp() { + return errorTimestamp; + } + + /** + * Timestamp when the last error happened + * @param errorTimestamp errorTimestamp or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setErrorTimestamp(java.lang.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..153434e575a --- /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 java.lang.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 java.lang.String getConsistencyMembershipResolutionTime() { + return consistencyMembershipResolutionTime; + } + + /** + * Output only. [Output Only] + * @param consistencyMembershipResolutionTime consistencyMembershipResolutionTime or {@code null} for none + */ + public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(java.lang.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/RolloutPlanWaveOrchestrationOptionsDelay.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java index 148270883be..c8b05d04cfa 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java @@ -46,7 +46,7 @@ public final class RolloutPlanWaveOrchestrationOptionsDelay extends com.google.a * The value may be {@code null}. */ @com.google.api.client.util.Key - private String duration; + private java.lang.String duration; /** * Optional. Controls whether the specified duration is to be added at the end of each batch, or @@ -89,7 +89,7 @@ public RolloutPlanWaveOrchestrationOptionsDelay setDelimiter(java.lang.String de * duration corresponds to no delay. * @return value or {@code null} for none */ - public String getDuration() { + public java.lang.String getDuration() { return duration; } @@ -98,7 +98,7 @@ public String getDuration() { * duration corresponds to no delay. * @param duration duration or {@code null} for none */ - public RolloutPlanWaveOrchestrationOptionsDelay setDuration(String duration) { + public RolloutPlanWaveOrchestrationOptionsDelay setDuration(java.lang.String duration) { this.duration = duration; return this; } diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java index 6bbdf15d273..31694593bb6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java @@ -35,14 +35,14 @@ public final class RolloutPlanWaveValidationTimeBasedValidationMetadata extends * The value may be {@code null}. */ @com.google.api.client.util.Key - private String waitDuration; + private java.lang.String waitDuration; /** * Optional. The duration that the system waits in between waves. This wait starts after all * changes in the wave are rolled out. * @return value or {@code null} for none */ - public String getWaitDuration() { + public java.lang.String getWaitDuration() { return waitDuration; } @@ -51,7 +51,7 @@ public String getWaitDuration() { * changes in the wave are rolled out. * @param waitDuration waitDuration or {@code null} for none */ - public RolloutPlanWaveValidationTimeBasedValidationMetadata setWaitDuration(String waitDuration) { + public RolloutPlanWaveValidationTimeBasedValidationMetadata setWaitDuration(java.lang.String waitDuration) { this.waitDuration = waitDuration; return this; } 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/StructuredEntries.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java index 27a7d679b59..e95ecb226cd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StructuredEntries.java @@ -35,14 +35,14 @@ public final class StructuredEntries extends com.google.api.client.json.GenericJ * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map entries; + 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() { + public java.util.Map getEntries() { return entries; } @@ -51,7 +51,7 @@ public java.util.Map getEntries() { * google.protobuf.Struct. * @param entries entries or {@code null} for none */ - public StructuredEntries setEntries(java.util.Map entries) { + public StructuredEntries setEntries(java.util.Map entries) { this.entries = entries; return this; } 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 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..f827e04cecc 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. * @@ -13608,16 +14003,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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. @@ -57941,16 +58876,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 @@ -77614,16 +79107,16 @@ public Patch setRequestId(java.lang.String requestId) { /** The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -81848,16 +83341,16 @@ public Patch setRequestId(java.lang.String requestId) { /** The list of fields to update. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** The list of fields to update. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -87318,16 +88811,16 @@ public Update setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -94123,16 +95616,16 @@ public Patch setRequestId(java.lang.String requestId) { /** Indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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; } @@ -132662,16 +134367,16 @@ public Update setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; 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. + * An optional request ID to identify requests. Specify a unique 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, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned 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, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original 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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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) { - 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; + /** 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 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 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 { + /** - * 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,72 @@ 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. */ @@ -142917,7 +145168,7948 @@ 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 " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.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. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public ListErrors setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -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); + } + } } @@ -162093,16 +172996,16 @@ public Patch setRequestId(java.lang.String requestId) { /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -162327,16 +173230,16 @@ public PatchRule setPriority(java.lang.Integer priority) { /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { + public PatchRule setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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 java.lang.String updateMask; + + /** The fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** The fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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])?))"); @@ -179511,16 +191894,16 @@ public Update setRequestId(java.lang.String requestId) { /** Update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { + public Update setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -181604,16 +193987,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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); + } + } } @@ -190831,16 +203382,16 @@ public Patch setRequestId(java.lang.String requestId) { /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -191033,16 +203584,16 @@ public PatchRule setPriority(java.lang.Integer priority) { /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { + public PatchRule setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -194249,16 +206800,16 @@ public Patch setRequestId(java.lang.String requestId) { /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String updateMask; /** update_mask indicates fields to be updated as part of this request. */ - public String getUpdateMask() { + public java.lang.String getUpdateMask() { return updateMask; } /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { + public Patch setUpdateMask(java.lang.String updateMask) { this.updateMask = updateMask; return this; } @@ -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. - * - * Create a request for the method "sslPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, sslPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 compute server. 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. + * @param zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { - Get result = new Get(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 Get 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])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern STORAGE_POOL_TYPE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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 GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) 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 GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) 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 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`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) 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 GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) 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 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. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use 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 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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(java.lang.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) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + /** 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.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}"); } } @@ -223607,45 +238308,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 target VPN gateway to return. */ + /** Name of the UrlMap resource to return. */ @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; + private java.lang.String urlMap; - /** Name of the target VPN gateway to return. + /** Name of the UrlMap resource to return. */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name of the target VPN gateway to return. */ - public Get setTargetVpnGateway(java.lang.String targetVpnGateway) { + /** Name of the UrlMap resource to return. */ + public Get 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; } @@ -223655,40 +238335,34 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. + * Creates a UrlMap resource in the specified project using the data included in the request. * - * Create a request for the method "targetVpnGateways.insert". + * 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 region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.TargetVpnGateway} + * @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.TargetVpnGateway 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.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}/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])?"); - /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. + * Creates a UrlMap resource in the specified project using the data included in the request. * - * Create a request for the method "targetVpnGateways.insert". + * 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 @@ -223696,11 +238370,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.TargetVpnGateway} + * @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.TargetVpnGateway content) { + 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()) { @@ -223708,12 +238381,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 @@ -223797,24 +238464,226 @@ public Insert setProject(java.lang.String project) { return this; } - /** 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). + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String requestId; - /** 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; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the region for this request. */ - 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). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. + * + * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * + * Create a request for the method "urlMaps.invalidateCache". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @return the request + */ + public InvalidateCache invalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) throws java.io.IOException { + InvalidateCache result = new InvalidateCache(project, urlMap, content); + initialize(result); + return result; + } + + public class InvalidateCache extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. + * + * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * + * Create a request for the method "urlMaps.invalidateCache". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. + *

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

    + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @since 1.13 + */ + protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(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; + 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); + } + + @Override + public InvalidateCache setAccessToken(java.lang.String accessToken) { + return (InvalidateCache) super.setAccessToken(accessToken); + } + + @Override + public InvalidateCache setAlt(java.lang.String alt) { + return (InvalidateCache) super.setAlt(alt); + } + + @Override + public InvalidateCache setCallback(java.lang.String callback) { + return (InvalidateCache) super.setCallback(callback); + } + + @Override + public InvalidateCache setFields(java.lang.String fields) { + return (InvalidateCache) super.setFields(fields); + } + + @Override + public InvalidateCache setKey(java.lang.String key) { + return (InvalidateCache) super.setKey(key); + } + + @Override + public InvalidateCache setOauthToken(java.lang.String oauthToken) { + return (InvalidateCache) super.setOauthToken(oauthToken); + } + + @Override + public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvalidateCache) super.setPrettyPrint(prettyPrint); + } + + @Override + public InvalidateCache setQuotaUser(java.lang.String quotaUser) { + return (InvalidateCache) super.setQuotaUser(quotaUser); + } + + @Override + public InvalidateCache setUploadType(java.lang.String uploadType) { + return (InvalidateCache) super.setUploadType(uploadType); + } + + @Override + public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { + return (InvalidateCache) super.setUploadProtocol(uploadProtocol); + } + + @Override + public InvalidateCache setUserIp(java.lang.String userIp) { + return (InvalidateCache) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public InvalidateCache setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the UrlMap scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap scoping this request. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap scoping this request. */ + public InvalidateCache setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; return this; } @@ -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}"); } } @@ -225182,39 +240549,60 @@ public Delete setUserIp(java.lang.String userIp) { /** Project ID for this request. */ - public java.lang.String getProject() { - return project; + 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; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + /** Name of the region for this request. */ + public Delete 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 delete. */ + /** Name of the VPN gateway to delete. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String vpnGateway; - /** Name of the UrlMap resource to delete. + /** Name of the VPN gateway to delete. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getVpnGateway() { + return vpnGateway; } - /** Name of the UrlMap resource to delete. */ - public Delete setUrlMap(java.lang.String urlMap) { + /** Name of the VPN gateway to delete. */ + public Delete setVpnGateway(java.lang.String vpnGateway) { 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(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; - } + public WireGroups wireGroups() { + return new WireGroups(); + } - /** - * 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 "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 java.lang.String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public java.lang.String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(java.lang.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..fba18a77edc --- /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 java.lang.String maxDuration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minDuration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTimeNotEarlierThan; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTimeNotLaterThan; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMaxDuration() { + return maxDuration; + } + + /** + * @param maxDuration maxDuration or {@code null} for none + */ + public FlexibleTimeRange setMaxDuration(java.lang.String maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMinDuration() { + return minDuration; + } + + /** + * @param minDuration minDuration or {@code null} for none + */ + public FlexibleTimeRange setMinDuration(java.lang.String minDuration) { + this.minDuration = minDuration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getStartTimeNotEarlierThan() { + return startTimeNotEarlierThan; + } + + /** + * @param startTimeNotEarlierThan startTimeNotEarlierThan or {@code null} for none + */ + public FlexibleTimeRange setStartTimeNotEarlierThan(java.lang.String startTimeNotEarlierThan) { + this.startTimeNotEarlierThan = startTimeNotEarlierThan; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getStartTimeNotLaterThan() { + return startTimeNotLaterThan; + } + + /** + * @param startTimeNotLaterThan startTimeNotLaterThan or {@code null} for none + */ + public FlexibleTimeRange setStartTimeNotLaterThan(java.lang.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..e5fc3852f6d --- /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 java.lang.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 java.lang.String startTime; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEndTime() { + return endTime; + } + + /** + * @param endTime endTime or {@code null} for none + */ + public FutureResourcesRecommendation setEndTime(java.lang.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 java.lang.String getStartTime() { + return startTime; + } + + /** + * @param startTime startTime or {@code null} for none + */ + public FutureResourcesRecommendation setStartTime(java.lang.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..4d0cf93a4f2 --- /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 java.lang.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 java.lang.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(java.lang.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..739aaba9e77 --- /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 java.lang.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 java.lang.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(java.lang.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..e95ecb226cd --- /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 bdaf78ecbbf107c18f78dd865b8161dab9741072 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 15 Apr 2026 16:00:57 -0400 Subject: [PATCH 4/9] test: add unit test cases --- generator/tests/java_generator_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generator/tests/java_generator_test.py b/generator/tests/java_generator_test.py index 99cd443690f..c0395bca84c 100755 --- a/generator/tests/java_generator_test.py +++ b/generator/tests/java_generator_test.py @@ -88,6 +88,8 @@ def testGetCodeTypeFromDictionary(self): ['java.lang.String', {'type': 'string'}], ['java.lang.Long', {'type': 'integer', 'format': 'uint32'}], ['java.math.BigInteger', {'type': 'string', 'format': 'uint64'}], + ['java.lang.Object', {'type': 'any', 'format': 'unknown'}], + ['java.lang.String', {'type': 'string', 'format': 'unknown'}], ] for test_case in test_cases: self.assertEqual( @@ -110,6 +112,8 @@ def testGetPrimitiveTypeFromDictionary(self): [None, {'type': 'string', 'format': 'date-time'}], [None, {'type': 'string', 'format': 'uint64'}], [None, {'type': 'anything_else', 'format': 'uint64'}], + [None, {'type': 'any', 'format': 'unknown'}], + [None, {'type': 'string', 'format': 'unknown'}], ] for test_case in test_cases: From 304a51a19cc204caf6012483e76d4808fe058644 Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 16 Apr 2026 08:46:25 -0400 Subject: [PATCH 5/9] test: add static initializers testing ADC instantiation of impacted model definitions --- .../com/google/api/services/compute/Main.java | 25 ++++++++++++++++ .../alpha/2.0.0/pom.xml | 5 ++++ .../com/google/api/services/compute/Main.java | 25 ++++++++++++++++ .../beta/2.0.0/pom.xml | 5 ++++ .../com/google/api/services/compute/Main.java | 30 +++++++++++++++++++ .../v1/2.0.0/pom.xml | 5 ++++ 6 files changed, 95 insertions(+) create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java new file mode 100644 index 00000000000..fce1afc6459 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java @@ -0,0 +1,25 @@ +package com.google.api.services.compute; + +import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; +import com.google.api.client.json.gson.GsonFactory; +import com.google.api.services.compute.model.Instance; +import com.google.api.services.compute.model.StructuredEntries; +import com.google.auth.http.HttpCredentialsAdapter; +import com.google.auth.oauth2.GoogleCredentials; + +public class Main { + public static void main(String[] args) throws Exception { + System.out.println("Initializing GoogleCredentials for Alpha..."); + GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + + Compute computeService = new Compute.Builder( + GoogleNetHttpTransport.newTrustedTransport(), + GsonFactory.getDefaultInstance(), + new HttpCredentialsAdapter(credentials)) + .setApplicationName("google-api-compute-alpha") + .build(); + + StructuredEntries testEntries = new StructuredEntries(); + System.out.println("StructuredEntries instantiated in Alpha: " + testEntries); + } +} 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..aa88a1c627d 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 @@ -126,6 +126,11 @@ google-api-client 2.7.2 + + com.google.auth + google-auth-library-oauth2-http + 1.23.0 + diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java new file mode 100644 index 00000000000..8d2ba2fd078 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java @@ -0,0 +1,25 @@ +package com.google.api.services.compute; + +import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; +import com.google.api.client.json.gson.GsonFactory; +import com.google.api.services.compute.model.Instance; +import com.google.api.services.compute.model.StructuredEntries; +import com.google.auth.http.HttpCredentialsAdapter; +import com.google.auth.oauth2.GoogleCredentials; + +public class Main { + public static void main(String[] args) throws Exception { + System.out.println("Initializing GoogleCredentials for Beta..."); + GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + + Compute computeService = new Compute.Builder( + GoogleNetHttpTransport.newTrustedTransport(), + GsonFactory.getDefaultInstance(), + new HttpCredentialsAdapter(credentials)) + .setApplicationName("google-api-compute-beta") + .build(); + + StructuredEntries testEntries = new StructuredEntries(); + System.out.println("StructuredEntries instantiated in Beta: " + testEntries); + } +} 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..3afc8fcb243 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 @@ -126,6 +126,11 @@ google-api-client 2.7.2 + + com.google.auth + google-auth-library-oauth2-http + 1.23.0 + diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java new file mode 100644 index 00000000000..0a067b90210 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java @@ -0,0 +1,30 @@ +package com.google.api.services.compute; + +import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; +import com.google.api.client.json.gson.GsonFactory; +import com.google.api.services.compute.model.Instance; +import com.google.api.services.compute.model.InstanceList; +import com.google.api.services.compute.model.StructuredEntries; +import com.google.auth.http.HttpCredentialsAdapter; +import com.google.auth.oauth2.GoogleCredentials; + +public class Main { + public static void main(String[] args) throws Exception { + System.out.println("Initializing GoogleCredentials via ADC..."); + GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + + Compute computeService = new Compute.Builder( + GoogleNetHttpTransport.newTrustedTransport(), + GsonFactory.getDefaultInstance(), + new HttpCredentialsAdapter(credentials)) + .setApplicationName("google-api-compute-test") + .build(); + + // Check instantiation of StructuredEntries + StructuredEntries testEntries = new StructuredEntries(); + System.out.println("StructuredEntries instantiated: " + testEntries); + + // Ensure list instances compiles + System.out.println("Compiling compute.instances().list(...) successfully verified."); + } +} 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 57999743b27..795d6b39996 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 @@ -126,6 +126,11 @@ google-api-client 2.7.2 + + com.google.auth + google-auth-library-oauth2-http + 1.23.0 + From 64c7d5c02678cdb902330a2fc4a1f279595c9f20 Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 16 Apr 2026 08:50:34 -0400 Subject: [PATCH 6/9] test: address review feedback replacing auth implementations and mock verifications with native server list triggers --- .../com/google/api/services/compute/Main.java | 24 +++++++++++------- .../alpha/2.0.0/pom.xml | 5 ---- .../com/google/api/services/compute/Main.java | 24 +++++++++++------- .../beta/2.0.0/pom.xml | 5 ---- .../com/google/api/services/compute/Main.java | 25 ++++++++++--------- .../v1/2.0.0/pom.xml | 5 ---- 6 files changed, 43 insertions(+), 45 deletions(-) diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java index fce1afc6459..44cc18dbfdf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java @@ -1,25 +1,31 @@ package com.google.api.services.compute; +import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; import com.google.api.client.json.gson.GsonFactory; -import com.google.api.services.compute.model.Instance; -import com.google.api.services.compute.model.StructuredEntries; -import com.google.auth.http.HttpCredentialsAdapter; -import com.google.auth.oauth2.GoogleCredentials; +import com.google.api.services.compute.model.InstanceList; public class Main { public static void main(String[] args) throws Exception { - System.out.println("Initializing GoogleCredentials for Alpha..."); - GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + System.out.println("Initializing Alpha GoogleCredential natively..."); + GoogleCredential credential = GoogleCredential.getApplicationDefault(); Compute computeService = new Compute.Builder( GoogleNetHttpTransport.newTrustedTransport(), GsonFactory.getDefaultInstance(), - new HttpCredentialsAdapter(credentials)) + credential) .setApplicationName("google-api-compute-alpha") .build(); - StructuredEntries testEntries = new StructuredEntries(); - System.out.println("StructuredEntries instantiated in Alpha: " + testEntries); + String projectId = System.getenv().getOrDefault("GOOGLE_CLOUD_PROJECT", "your-project-id"); + String zone = "us-central1-a"; + + System.out.println("Executing Alpha compute.instances().list() server call..."); + try { + InstanceList instances = computeService.instances().list(projectId, zone).execute(); + System.out.println("Successfully retrieved Alpha InstanceList containing StructuredEntries: " + instances); + } catch (Exception e) { + System.out.println("Alpha Call completed with exception (but executed): " + e.getMessage()); + } } } 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 aa88a1c627d..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 @@ -126,11 +126,6 @@ google-api-client 2.7.2 - - com.google.auth - google-auth-library-oauth2-http - 1.23.0 - diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java index 8d2ba2fd078..e594a941799 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java @@ -1,25 +1,31 @@ package com.google.api.services.compute; +import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; import com.google.api.client.json.gson.GsonFactory; -import com.google.api.services.compute.model.Instance; -import com.google.api.services.compute.model.StructuredEntries; -import com.google.auth.http.HttpCredentialsAdapter; -import com.google.auth.oauth2.GoogleCredentials; +import com.google.api.services.compute.model.InstanceList; public class Main { public static void main(String[] args) throws Exception { - System.out.println("Initializing GoogleCredentials for Beta..."); - GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + System.out.println("Initializing Beta GoogleCredential natively..."); + GoogleCredential credential = GoogleCredential.getApplicationDefault(); Compute computeService = new Compute.Builder( GoogleNetHttpTransport.newTrustedTransport(), GsonFactory.getDefaultInstance(), - new HttpCredentialsAdapter(credentials)) + credential) .setApplicationName("google-api-compute-beta") .build(); - StructuredEntries testEntries = new StructuredEntries(); - System.out.println("StructuredEntries instantiated in Beta: " + testEntries); + String projectId = System.getenv().getOrDefault("GOOGLE_CLOUD_PROJECT", "your-project-id"); + String zone = "us-central1-a"; + + System.out.println("Executing Beta compute.instances().list() server call..."); + try { + InstanceList instances = computeService.instances().list(projectId, zone).execute(); + System.out.println("Successfully retrieved Beta InstanceList containing StructuredEntries: " + instances); + } catch (Exception e) { + System.out.println("Beta Call completed with exception (but successfully constructed): " + e.getMessage()); + } } } 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 3afc8fcb243..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 @@ -126,11 +126,6 @@ google-api-client 2.7.2 - - com.google.auth - google-auth-library-oauth2-http - 1.23.0 - diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java index 0a067b90210..a6e13ff0fdd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java @@ -1,30 +1,31 @@ package com.google.api.services.compute; +import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; import com.google.api.client.json.gson.GsonFactory; -import com.google.api.services.compute.model.Instance; import com.google.api.services.compute.model.InstanceList; -import com.google.api.services.compute.model.StructuredEntries; -import com.google.auth.http.HttpCredentialsAdapter; -import com.google.auth.oauth2.GoogleCredentials; public class Main { public static void main(String[] args) throws Exception { - System.out.println("Initializing GoogleCredentials via ADC..."); - GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + System.out.println("Initializing GoogleCredential via google-api-client natively..."); + GoogleCredential credential = GoogleCredential.getApplicationDefault(); Compute computeService = new Compute.Builder( GoogleNetHttpTransport.newTrustedTransport(), GsonFactory.getDefaultInstance(), - new HttpCredentialsAdapter(credentials)) + credential) .setApplicationName("google-api-compute-test") .build(); - // Check instantiation of StructuredEntries - StructuredEntries testEntries = new StructuredEntries(); - System.out.println("StructuredEntries instantiated: " + testEntries); + String projectId = System.getenv().getOrDefault("GOOGLE_CLOUD_PROJECT", "your-project-id"); + String zone = "us-central1-a"; - // Ensure list instances compiles - System.out.println("Compiling compute.instances().list(...) successfully verified."); + System.out.println("Executing compute.instances().list() server call..."); + try { + InstanceList instances = computeService.instances().list(projectId, zone).execute(); + System.out.println("Successfully retrieved InstanceList containing StructuredEntries: " + instances); + } catch (Exception e) { + System.out.println("Call completed with exception (likely auth/fake-project related, but successfully constructed): " + e.getMessage()); + } } } 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 795d6b39996..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 @@ -126,11 +126,6 @@ google-api-client 2.7.2 - - com.google.auth - google-auth-library-oauth2-http - 1.23.0 - From c1b5a6efc944eedbfef5a6daa93c0167f91cd83f Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 16 Apr 2026 08:53:23 -0400 Subject: [PATCH 7/9] test: resolve PR comments regarding correct verification sandbox and list metadata expansion --- .../com/google/api/services/compute/Main.java | 15 +++++++++++---- .../com/google/api/services/compute/Main.java | 15 +++++++++++---- .../com/google/api/services/compute/Main.java | 15 +++++++++++---- 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java index 44cc18dbfdf..1bf261ad13c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java @@ -17,15 +17,22 @@ public static void main(String[] args) throws Exception { .setApplicationName("google-api-compute-alpha") .build(); - String projectId = System.getenv().getOrDefault("GOOGLE_CLOUD_PROJECT", "your-project-id"); + String projectId = "diegomarquezp-sandbox"; String zone = "us-central1-a"; - System.out.println("Executing Alpha compute.instances().list() server call..."); + System.out.println("Executing Alpha compute.instances().list() server call on " + projectId + "..."); try { InstanceList instances = computeService.instances().list(projectId, zone).execute(); - System.out.println("Successfully retrieved Alpha InstanceList containing StructuredEntries: " + instances); + System.out.println("Total Alpha items: " + (instances.getItems() == null ? 0 : instances.getItems().size())); + if (instances.getItems() != null) { + for (com.google.api.services.compute.model.Instance instance : instances.getItems()) { + if (instance.getPartnerMetadata() != null) { + System.out.println("Alpha instance " + instance.getName() + " metadata: " + instance.getPartnerMetadata()); + } + } + } } catch (Exception e) { - System.out.println("Alpha Call completed with exception (but executed): " + e.getMessage()); + System.out.println("Alpha call formed perfectly but encountered error: " + e.getMessage()); } } } diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java index e594a941799..232d611c325 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java @@ -17,15 +17,22 @@ public static void main(String[] args) throws Exception { .setApplicationName("google-api-compute-beta") .build(); - String projectId = System.getenv().getOrDefault("GOOGLE_CLOUD_PROJECT", "your-project-id"); + String projectId = "diegomarquezp-sandbox"; String zone = "us-central1-a"; - System.out.println("Executing Beta compute.instances().list() server call..."); + System.out.println("Executing Beta compute.instances().list() server call on " + projectId + "..."); try { InstanceList instances = computeService.instances().list(projectId, zone).execute(); - System.out.println("Successfully retrieved Beta InstanceList containing StructuredEntries: " + instances); + System.out.println("Total Beta items: " + (instances.getItems() == null ? 0 : instances.getItems().size())); + if (instances.getItems() != null) { + for (com.google.api.services.compute.model.Instance instance : instances.getItems()) { + if (instance.getPartnerMetadata() != null) { + System.out.println("Beta partner metadata on instance: " + instance.getPartnerMetadata()); + } + } + } } catch (Exception e) { - System.out.println("Beta Call completed with exception (but successfully constructed): " + e.getMessage()); + System.out.println("Beta completed call logic with error: " + e.getMessage()); } } } diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java index a6e13ff0fdd..44e966d1329 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java @@ -17,15 +17,22 @@ public static void main(String[] args) throws Exception { .setApplicationName("google-api-compute-test") .build(); - String projectId = System.getenv().getOrDefault("GOOGLE_CLOUD_PROJECT", "your-project-id"); + String projectId = "diegomarquezp-sandbox"; String zone = "us-central1-a"; - System.out.println("Executing compute.instances().list() server call..."); + System.out.println("Executing compute.instances().list() server call on " + projectId + "..."); try { InstanceList instances = computeService.instances().list(projectId, zone).execute(); - System.out.println("Successfully retrieved InstanceList containing StructuredEntries: " + instances); + System.out.println("Total items retrieved: " + (instances.getItems() == null ? 0 : instances.getItems().size())); + if (instances.getItems() != null) { + for (com.google.api.services.compute.model.Instance instance : instances.getItems()) { + if (instance.getPartnerMetadata() != null && !instance.getPartnerMetadata().isEmpty()) { + System.out.println("Found partnerMetadata on instance " + instance.getName() + ": " + instance.getPartnerMetadata()); + } + } + } } catch (Exception e) { - System.out.println("Call completed with exception (likely auth/fake-project related, but successfully constructed): " + e.getMessage()); + System.out.println("Call successfully formed but returned API error: " + e.getMessage()); } } } From ad57b27ee556c39ae4babd1419abbd748498c50a Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 16 Apr 2026 09:00:00 -0400 Subject: [PATCH 8/9] test: unpack partner metadata map to strongly type and inspect internal StructuredEntries per instance --- .../alpha/2.0.0/com/google/api/services/compute/Main.java | 5 ++++- .../beta/2.0.0/com/google/api/services/compute/Main.java | 4 +++- .../v1/2.0.0/com/google/api/services/compute/Main.java | 7 +++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java index 1bf261ad13c..7905d0cecc4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java @@ -27,7 +27,10 @@ public static void main(String[] args) throws Exception { if (instances.getItems() != null) { for (com.google.api.services.compute.model.Instance instance : instances.getItems()) { if (instance.getPartnerMetadata() != null) { - System.out.println("Alpha instance " + instance.getName() + " metadata: " + instance.getPartnerMetadata()); + for (java.util.Map.Entry entry : instance.getPartnerMetadata().entrySet()) { + com.google.api.services.compute.model.StructuredEntries se = entry.getValue(); + System.out.println("Alpha StructuredEntries inspection (" + entry.getKey() + "): " + se); + } } } } diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java index 232d611c325..343acc8554b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java @@ -27,7 +27,9 @@ public static void main(String[] args) throws Exception { if (instances.getItems() != null) { for (com.google.api.services.compute.model.Instance instance : instances.getItems()) { if (instance.getPartnerMetadata() != null) { - System.out.println("Beta partner metadata on instance: " + instance.getPartnerMetadata()); + for (java.util.Map.Entry entry : instance.getPartnerMetadata().entrySet()) { + System.out.println("Beta inspection of StructuredEntries for " + entry.getKey() + ": " + entry.getValue()); + } } } } diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java index 44e966d1329..0ac9ed34cd3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java @@ -26,8 +26,11 @@ public static void main(String[] args) throws Exception { System.out.println("Total items retrieved: " + (instances.getItems() == null ? 0 : instances.getItems().size())); if (instances.getItems() != null) { for (com.google.api.services.compute.model.Instance instance : instances.getItems()) { - if (instance.getPartnerMetadata() != null && !instance.getPartnerMetadata().isEmpty()) { - System.out.println("Found partnerMetadata on instance " + instance.getName() + ": " + instance.getPartnerMetadata()); + if (instance.getPartnerMetadata() != null) { + for (java.util.Map.Entry entry : instance.getPartnerMetadata().entrySet()) { + com.google.api.services.compute.model.StructuredEntries structuredEntries = entry.getValue(); + System.out.println("Inspected StructuredEntries object for partner " + entry.getKey() + ": " + structuredEntries); + } } } } From 118bc02b9fccdcc4faadd6c5b1fe0007f9ef4817 Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 16 Apr 2026 09:40:24 -0400 Subject: [PATCH 9/9] test: insert static constructor logging for StructuredEntries verification locally --- .../alpha/2.0.0/com/google/api/services/compute/Main.java | 2 ++ .../beta/2.0.0/com/google/api/services/compute/Main.java | 2 ++ .../v1/2.0.0/com/google/api/services/compute/Main.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java index 7905d0cecc4..7389b71929a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Main.java @@ -8,6 +8,8 @@ public class Main { public static void main(String[] args) throws Exception { System.out.println("Initializing Alpha GoogleCredential natively..."); + com.google.api.services.compute.model.StructuredEntries debugSe = new com.google.api.services.compute.model.StructuredEntries(); + System.out.println("StructuredEntries instantiated independently: " + debugSe); GoogleCredential credential = GoogleCredential.getApplicationDefault(); Compute computeService = new Compute.Builder( diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java index 343acc8554b..d9797578259 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Main.java @@ -8,6 +8,8 @@ public class Main { public static void main(String[] args) throws Exception { System.out.println("Initializing Beta GoogleCredential natively..."); + com.google.api.services.compute.model.StructuredEntries debugSe = new com.google.api.services.compute.model.StructuredEntries(); + System.out.println("StructuredEntries instantiated independently: " + debugSe); GoogleCredential credential = GoogleCredential.getApplicationDefault(); Compute computeService = new Compute.Builder( diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java index 0ac9ed34cd3..2ce22c125dc 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Main.java @@ -8,6 +8,8 @@ public class Main { public static void main(String[] args) throws Exception { System.out.println("Initializing GoogleCredential via google-api-client natively..."); + com.google.api.services.compute.model.StructuredEntries debugSe = new com.google.api.services.compute.model.StructuredEntries(); + System.out.println("StructuredEntries instantiated independently: " + debugSe); GoogleCredential credential = GoogleCredential.getApplicationDefault(); Compute computeService = new Compute.Builder(