diff --git a/google-cloud-config_service-v1/.owlbot-manifest.json b/google-cloud-config_service-v1/.owlbot-manifest.json index a25dc7ae8cfd..ce16286f3612 100644 --- a/google-cloud-config_service-v1/.owlbot-manifest.json +++ b/google-cloud-config_service-v1/.owlbot-manifest.json @@ -47,16 +47,21 @@ "proto_docs/google/type/expr.rb", "snippets/Gemfile", "snippets/config/create_deployment.rb", + "snippets/config/create_deployment_group.rb", "snippets/config/create_preview.rb", "snippets/config/delete_deployment.rb", + "snippets/config/delete_deployment_group.rb", "snippets/config/delete_preview.rb", "snippets/config/delete_statefile.rb", + "snippets/config/deprovision_deployment_group.rb", "snippets/config/export_deployment_statefile.rb", "snippets/config/export_lock_info.rb", "snippets/config/export_preview_result.rb", "snippets/config/export_revision_statefile.rb", "snippets/config/get_auto_migration_config.rb", "snippets/config/get_deployment.rb", + "snippets/config/get_deployment_group.rb", + "snippets/config/get_deployment_group_revision.rb", "snippets/config/get_preview.rb", "snippets/config/get_resource.rb", "snippets/config/get_resource_change.rb", @@ -64,6 +69,8 @@ "snippets/config/get_revision.rb", "snippets/config/get_terraform_version.rb", "snippets/config/import_statefile.rb", + "snippets/config/list_deployment_group_revisions.rb", + "snippets/config/list_deployment_groups.rb", "snippets/config/list_deployments.rb", "snippets/config/list_previews.rb", "snippets/config/list_resource_changes.rb", @@ -72,9 +79,11 @@ "snippets/config/list_revisions.rb", "snippets/config/list_terraform_versions.rb", "snippets/config/lock_deployment.rb", + "snippets/config/provision_deployment_group.rb", "snippets/config/unlock_deployment.rb", "snippets/config/update_auto_migration_config.rb", "snippets/config/update_deployment.rb", + "snippets/config/update_deployment_group.rb", "snippets/snippet_metadata_google.cloud.config.v1.json", "test/google/cloud/config_service/v1/config_operations_test.rb", "test/google/cloud/config_service/v1/config_paths_test.rb", diff --git a/google-cloud-config_service-v1/gapic_metadata.json b/google-cloud-config_service-v1/gapic_metadata.json index 1da6107e797f..2b184b251893 100644 --- a/google-cloud-config_service-v1/gapic_metadata.json +++ b/google-cloud-config_service-v1/gapic_metadata.json @@ -154,6 +154,51 @@ "methods": [ "update_auto_migration_config" ] + }, + "GetDeploymentGroup": { + "methods": [ + "get_deployment_group" + ] + }, + "CreateDeploymentGroup": { + "methods": [ + "create_deployment_group" + ] + }, + "UpdateDeploymentGroup": { + "methods": [ + "update_deployment_group" + ] + }, + "DeleteDeploymentGroup": { + "methods": [ + "delete_deployment_group" + ] + }, + "ListDeploymentGroups": { + "methods": [ + "list_deployment_groups" + ] + }, + "ProvisionDeploymentGroup": { + "methods": [ + "provision_deployment_group" + ] + }, + "DeprovisionDeploymentGroup": { + "methods": [ + "deprovision_deployment_group" + ] + }, + "GetDeploymentGroupRevision": { + "methods": [ + "get_deployment_group_revision" + ] + }, + "ListDeploymentGroupRevisions": { + "methods": [ + "list_deployment_group_revisions" + ] } } } diff --git a/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_pb.rb b/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_pb.rb index bd17dfe35425..a8de605c81c0 100644 --- a/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_pb.rb +++ b/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_pb.rb @@ -17,7 +17,7 @@ require 'google/rpc/status_pb' -descriptor_data = "\n#google/cloud/config/v1/config.proto\x12\x16google.cloud.config.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xc9\x10\n\nDeployment\x12I\n\x13terraform_blueprint\x18\x06 \x01(\x0b\x32*.google.cloud.config.v1.TerraformBlueprintH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.config.v1.Deployment.LabelsEntryB\x03\xe0\x41\x01\x12<\n\x05state\x18\x05 \x01(\x0e\x32(.google.cloud.config.v1.Deployment.StateB\x03\xe0\x41\x03\x12\x1c\n\x0flatest_revision\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cstate_detail\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x45\n\nerror_code\x18\n \x01(\x0e\x32,.google.cloud.config.v1.Deployment.ErrorCodeB\x03\xe0\x41\x03\x12\x41\n\x0e\x64\x65lete_results\x18\x08 \x01(\x0b\x32$.google.cloud.config.v1.ApplyResultsB\x03\xe0\x41\x03\x12\x19\n\x0c\x64\x65lete_build\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65lete_logs\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12>\n\ttf_errors\x18\r \x03(\x0b\x32&.google.cloud.config.v1.TerraformErrorB\x03\xe0\x41\x03\x12\x17\n\nerror_logs\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12&\n\x14\x61rtifacts_gcs_bucket\x18\x0f \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12G\n\x0fservice_account\x18\x10 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccountH\x02\x88\x01\x01\x12&\n\x19import_existing_resources\x18\x11 \x01(\x08H\x03\x88\x01\x01\x12\x46\n\x0bworker_pool\x18\x13 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPoolH\x04\x88\x01\x01\x12\x45\n\nlock_state\x18\x14 \x01(\x0e\x32,.google.cloud.config.v1.Deployment.LockStateB\x03\xe0\x41\x03\x12\'\n\x15tf_version_constraint\x18\x15 \x01(\tB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x17\n\ntf_version\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x10quota_validation\x18\x17 \x01(\x0e\x32\'.google.cloud.config.v1.QuotaValidationB\x03\xe0\x41\x01\x12M\n\x0b\x61nnotations\x18\x18 \x03(\x0b\x32\x33.google.cloud.config.v1.Deployment.AnnotationsEntryB\x03\xe0\x41\x01\x12\x44\n\x0fprovider_config\x18\x19 \x01(\x0b\x32&.google.cloud.config.v1.ProviderConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"|\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tSUSPENDED\x10\x06\x12\x0b\n\x07\x44\x45LETED\x10\x07\"\x85\x02\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fREVISION_FAILED\x10\x01\x12!\n\x1d\x43LOUD_BUILD_PERMISSION_DENIED\x10\x03\x12\x1b\n\x17\x44\x45LETE_BUILD_API_FAILED\x10\x05\x12\x1b\n\x17\x44\x45LETE_BUILD_RUN_FAILED\x10\x06\x12%\n!BUCKET_CREATION_PERMISSION_DENIED\x10\x07\x12\x1a\n\x16\x42UCKET_CREATION_FAILED\x10\x08\x12\'\n#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\x10\n\"\x81\x01\n\tLockState\x12\x1a\n\x16LOCK_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06LOCKED\x10\x01\x12\x0c\n\x08UNLOCKED\x10\x02\x12\x0b\n\x07LOCKING\x10\x03\x12\r\n\tUNLOCKING\x10\x04\x12\x0f\n\x0bLOCK_FAILED\x10\x05\x12\x11\n\rUNLOCK_FAILED\x10\x06:g\xea\x41\x64\n config.googleapis.com/Deployment\x12@projects/{project}/locations/{location}/deployments/{deployment}B\x0b\n\tblueprintB\x17\n\x15_artifacts_gcs_bucketB\x12\n\x10_service_accountB\x1c\n\x1a_import_existing_resourcesB\x0e\n\x0c_worker_poolB\x18\n\x16_tf_version_constraint\"\xa4\x02\n\x12TerraformBlueprint\x12\x14\n\ngcs_source\x18\x01 \x01(\tH\x00\x12\x37\n\ngit_source\x18\x02 \x01(\x0b\x32!.google.cloud.config.v1.GitSourceH\x00\x12V\n\x0cinput_values\x18\x04 \x03(\x0b\x32;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\x03\xe0\x41\x01\x1a]\n\x10InputValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.config.v1.TerraformVariable:\x02\x38\x01\x42\x08\n\x06source\"E\n\x11TerraformVariable\x12\x30\n\x0binput_value\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x01\"\xcf\x01\n\x0c\x41pplyResults\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tartifacts\x18\x02 \x01(\t\x12\x42\n\x07outputs\x18\x03 \x03(\x0b\x32\x31.google.cloud.config.v1.ApplyResults.OutputsEntry\x1aW\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.config.v1.TerraformOutput:\x02\x38\x01\"K\n\x0fTerraformOutput\x12\x11\n\tsensitive\x18\x01 \x01(\x08\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\x9c\x01\n\x16ListDeploymentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x80\x01\n\x17ListDeploymentsResponse\x12\x37\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32\".google.cloud.config.v1.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x14GetDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\"\x99\x01\n\x14ListRevisionsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"z\n\x15ListRevisionsResponse\x12\x33\n\trevisions\x18\x01 \x03(\x0b\x32 .google.cloud.config.v1.Revision\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"J\n\x12GetRevisionRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Revision\"\xc6\x01\n\x17\x43reateDeploymentRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12;\n\ndeployment\x18\x03 \x01(\x0b\x32\".google.cloud.config.v1.DeploymentB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\x17UpdateDeploymentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12;\n\ndeployment\x18\x02 \x01(\x0b\x32\".google.cloud.config.v1.DeploymentB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x02\n\x17\x44\x65leteDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12X\n\rdelete_policy\x18\x04 \x01(\x0e\x32<.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicyB\x03\xe0\x41\x01\"F\n\x0c\x44\x65letePolicy\x12\x1d\n\x19\x44\x45LETE_POLICY_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\"\xc1\x03\n\x11OperationMetadata\x12W\n\x13\x64\x65ployment_metadata\x18\x08 \x01(\x0b\x32\x33.google.cloud.config.v1.DeploymentOperationMetadataB\x03\xe0\x41\x03H\x00\x12Q\n\x10preview_metadata\x18\t \x01(\x0b\x32\x30.google.cloud.config.v1.PreviewOperationMetadataB\x03\xe0\x41\x03H\x00\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\x13\n\x11resource_metadata\"\xf2\x0b\n\x08Revision\x12N\n\x13terraform_blueprint\x18\x06 \x01(\x0b\x32*.google.cloud.config.v1.TerraformBlueprintB\x03\xe0\x41\x03H\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\'.google.cloud.config.v1.Revision.ActionB\x03\xe0\x41\x03\x12:\n\x05state\x18\x05 \x01(\x0e\x32&.google.cloud.config.v1.Revision.StateB\x03\xe0\x41\x03\x12@\n\rapply_results\x18\x07 \x01(\x0b\x32$.google.cloud.config.v1.ApplyResultsB\x03\xe0\x41\x03\x12\x19\n\x0cstate_detail\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\nerror_code\x18\t \x01(\x0e\x32*.google.cloud.config.v1.Revision.ErrorCodeB\x03\xe0\x41\x03\x12\x12\n\x05\x62uild\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04logs\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12>\n\ttf_errors\x18\x0c \x03(\x0b\x32&.google.cloud.config.v1.TerraformErrorB\x03\xe0\x41\x03\x12\x17\n\nerror_logs\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x0fservice_account\x18\x0e \x01(\tB)\xe0\x41\x03\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12&\n\x19import_existing_resources\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12\x41\n\x0bworker_pool\x18\x11 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12\"\n\x15tf_version_constraint\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ntf_version\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12%\n\x18quota_validation_results\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x10quota_validation\x18\x14 \x01(\x0e\x32\'.google.cloud.config.v1.QuotaValidationB\x03\xe0\x41\x01\x12\x44\n\x0fprovider_config\x18\x15 \x01(\x0b\x32&.google.cloud.config.v1.ProviderConfigB\x03\xe0\x41\x03\"D\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41PPLYING\x10\x01\x12\x0b\n\x07\x41PPLIED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"\xc8\x01\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x43LOUD_BUILD_PERMISSION_DENIED\x10\x01\x12\x1a\n\x16\x41PPLY_BUILD_API_FAILED\x10\x04\x12\x1a\n\x16\x41PPLY_BUILD_RUN_FAILED\x10\x05\x12\x1b\n\x17QUOTA_VALIDATION_FAILED\x10\x07\x12\'\n#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\x10\x08:z\xea\x41w\n\x1e\x63onfig.googleapis.com/Revision\x12Uprojects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}B\x0b\n\tblueprint\"\x89\x01\n\x0eTerraformError\x12\x18\n\x10resource_address\x18\x01 \x01(\t\x12\x1a\n\x12http_response_code\x18\x02 \x01(\x05\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\x12&\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\"v\n\tGitSource\x12\x16\n\x04repo\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1b\n\tdirectory\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x15\n\x03ref\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x07\n\x05_repoB\x0c\n\n_directoryB\x06\n\x04_ref\"\x9f\x04\n\x1b\x44\x65ploymentOperationMetadata\x12P\n\x04step\x18\x01 \x01(\x0e\x32\x42.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep\x12;\n\rapply_results\x18\x02 \x01(\x0b\x32$.google.cloud.config.v1.ApplyResults\x12\x12\n\x05\x62uild\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04logs\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\xc9\x02\n\x0e\x44\x65ploymentStep\x12\x1f\n\x1b\x44\x45PLOYMENT_STEP_UNSPECIFIED\x10\x00\x12\x1c\n\x18PREPARING_STORAGE_BUCKET\x10\x01\x12\x19\n\x15\x44OWNLOADING_BLUEPRINT\x10\x02\x12\x13\n\x0fRUNNING_TF_INIT\x10\x03\x12\x13\n\x0fRUNNING_TF_PLAN\x10\x04\x12\x14\n\x10RUNNING_TF_APPLY\x10\x05\x12\x16\n\x12RUNNING_TF_DESTROY\x10\x06\x12\x17\n\x13RUNNING_TF_VALIDATE\x10\x07\x12\x18\n\x14UNLOCKING_DEPLOYMENT\x10\x08\x12\r\n\tSUCCEEDED\x10\t\x12\n\n\x06\x46\x41ILED\x10\n\x12\x19\n\x15VALIDATING_REPOSITORY\x10\x0b\x12\x1c\n\x18RUNNING_QUOTA_VALIDATION\x10\x0c\"\xd8\x05\n\x08Resource\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x0eterraform_info\x18\x02 \x01(\x0b\x32-.google.cloud.config.v1.ResourceTerraformInfoB\x03\xe0\x41\x03\x12H\n\ncai_assets\x18\x03 \x03(\x0b\x32/.google.cloud.config.v1.Resource.CaiAssetsEntryB\x03\xe0\x41\x03\x12<\n\x06intent\x18\x04 \x01(\x0e\x32\'.google.cloud.config.v1.Resource.IntentB\x03\xe0\x41\x03\x12:\n\x05state\x18\x05 \x01(\x0e\x32&.google.cloud.config.v1.Resource.StateB\x03\xe0\x41\x03\x1aY\n\x0e\x43\x61iAssetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.config.v1.ResourceCAIInfo:\x02\x38\x01\"a\n\x06Intent\x12\x16\n\x12INTENT_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0c\n\x08RECREATE\x10\x04\x12\r\n\tUNCHANGED\x10\x05\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PLANNED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0e\n\nRECONCILED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x90\x01\xea\x41\x8c\x01\n\x1e\x63onfig.googleapis.com/Resource\x12jprojects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}\"B\n\x15ResourceTerraformInfo\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\"-\n\x0fResourceCAIInfo\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\"J\n\x12GetResourceRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Resource\"\x97\x01\n\x14ListResourcesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Revision\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"z\n\x15ListResourcesResponse\x12\x33\n\tresources\x18\x01 \x03(\x0b\x32 .google.cloud.config.v1.Resource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"$\n\tStatefile\x12\x17\n\nsigned_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"p\n ExportDeploymentStatefileRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x12\n\x05\x64raft\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"X\n\x1e\x45xportRevisionStatefileRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Revision\"\x81\x01\n\x16ImportStatefileRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x14\n\x07lock_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x17\n\nskip_draft\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"f\n\x16\x44\x65leteStatefileRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x14\n\x07lock_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\"O\n\x15LockDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\"g\n\x17UnlockDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x14\n\x07lock_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\"O\n\x15\x45xportLockInfoRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\"\x8b\x01\n\x08LockInfo\x12\x0f\n\x07lock_id\x18\x01 \x01(\x03\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x0c\n\x04info\x18\x03 \x01(\t\x12\x0b\n\x03who\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe7\x0e\n\x07Preview\x12I\n\x13terraform_blueprint\x18\x06 \x01(\x0b\x32*.google.cloud.config.v1.TerraformBlueprintH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x06labels\x18\x03 \x03(\x0b\x32+.google.cloud.config.v1.Preview.LabelsEntryB\x03\xe0\x41\x01\x12\x39\n\x05state\x18\x04 \x01(\x0e\x32%.google.cloud.config.v1.Preview.StateB\x03\xe0\x41\x03\x12<\n\ndeployment\x18\x05 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n config.googleapis.com/Deployment\x12\x46\n\x0cpreview_mode\x18\x0f \x01(\x0e\x32+.google.cloud.config.v1.Preview.PreviewModeB\x03\xe0\x41\x01\x12\x42\n\x0fservice_account\x18\x07 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12&\n\x14\x61rtifacts_gcs_bucket\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x46\n\x0bworker_pool\x18\t \x01(\tB,\xe0\x41\x01\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPoolH\x02\x88\x01\x01\x12\x42\n\nerror_code\x18\n \x01(\x0e\x32).google.cloud.config.v1.Preview.ErrorCodeB\x03\xe0\x41\x03\x12-\n\x0c\x65rror_status\x18\x0b \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x12\n\x05\x62uild\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12>\n\ttf_errors\x18\r \x03(\x0b\x32&.google.cloud.config.v1.TerraformErrorB\x03\xe0\x41\x03\x12\x17\n\nerror_logs\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12H\n\x11preview_artifacts\x18\x10 \x01(\x0b\x32(.google.cloud.config.v1.PreviewArtifactsB\x03\xe0\x41\x03\x12\x11\n\x04logs\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ntf_version\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12\'\n\x15tf_version_constraint\x18\x13 \x01(\tB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12J\n\x0b\x61nnotations\x18\x14 \x03(\x0b\x32\x30.google.cloud.config.v1.Preview.AnnotationsEntryB\x03\xe0\x41\x01\x12\x44\n\x0fprovider_config\x18\x15 \x01(\x0b\x32&.google.cloud.config.v1.ProviderConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\x0c\n\x08\x41PPLYING\x10\x03\x12\t\n\x05STALE\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x44\x45LETED\x10\x07\"D\n\x0bPreviewMode\x12\x1c\n\x18PREVIEW_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\"\x96\x02\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x43LOUD_BUILD_PERMISSION_DENIED\x10\x01\x12%\n!BUCKET_CREATION_PERMISSION_DENIED\x10\x02\x12\x1a\n\x16\x42UCKET_CREATION_FAILED\x10\x03\x12\"\n\x1e\x44\x45PLOYMENT_LOCK_ACQUIRE_FAILED\x10\x04\x12\x1c\n\x18PREVIEW_BUILD_API_FAILED\x10\x05\x12\x1c\n\x18PREVIEW_BUILD_RUN_FAILED\x10\x06\x12\'\n#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\x10\x07:q\xea\x41n\n\x1d\x63onfig.googleapis.com/Preview\x12:projects/{project}/locations/{location}/previews/{preview}*\x08previews2\x07previewB\x0b\n\tblueprintB\x17\n\x15_artifacts_gcs_bucketB\x0e\n\x0c_worker_poolB\x18\n\x16_tf_version_constraint\"\xe4\x03\n\x18PreviewOperationMetadata\x12J\n\x04step\x18\x01 \x01(\x0e\x32<.google.cloud.config.v1.PreviewOperationMetadata.PreviewStep\x12\x43\n\x11preview_artifacts\x18\x02 \x01(\x0b\x32(.google.cloud.config.v1.PreviewArtifacts\x12\x11\n\x04logs\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x62uild\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\x8f\x02\n\x0bPreviewStep\x12\x1c\n\x18PREVIEW_STEP_UNSPECIFIED\x10\x00\x12\x1c\n\x18PREPARING_STORAGE_BUCKET\x10\x01\x12\x19\n\x15\x44OWNLOADING_BLUEPRINT\x10\x02\x12\x13\n\x0fRUNNING_TF_INIT\x10\x03\x12\x13\n\x0fRUNNING_TF_PLAN\x10\x04\x12\x17\n\x13\x46\x45TCHING_DEPLOYMENT\x10\x05\x12\x16\n\x12LOCKING_DEPLOYMENT\x10\x06\x12\x18\n\x14UNLOCKING_DEPLOYMENT\x10\x07\x12\r\n\tSUCCEEDED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\t\x12\x19\n\x15VALIDATING_REPOSITORY\x10\n\"@\n\x10PreviewArtifacts\x12\x14\n\x07\x63ontent\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tartifacts\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc2\x01\n\x14\x43reatePreviewRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\npreview_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x07preview\x18\x03 \x01(\x0b\x32\x1f.google.cloud.config.v1.PreviewB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"H\n\x11GetPreviewRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\"\xad\x01\n\x13ListPreviewsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x14ListPreviewsResponse\x12\x31\n\x08previews\x18\x01 \x03(\x0b\x32\x1f.google.cloud.config.v1.Preview\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"l\n\x14\x44\x65letePreviewRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"S\n\x1a\x45xportPreviewResultRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\"Y\n\x1b\x45xportPreviewResultResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32%.google.cloud.config.v1.PreviewResultB\x03\xe0\x41\x03\"M\n\rPreviewResult\x12\x1e\n\x11\x62inary_signed_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fjson_signed_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\"Z\n\x1aGetTerraformVersionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&config.googleapis.com/TerraformVersion\"\xb6\x01\n\x1cListTerraformVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n\x1dListTerraformVersionsResponse\x12\x44\n\x12terraform_versions\x18\x01 \x03(\x0b\x32(.google.cloud.config.v1.TerraformVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xad\x04\n\x10TerraformVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x42\n\x05state\x18\x02 \x01(\x0e\x32..google.cloud.config.v1.TerraformVersion.StateB\x03\xe0\x41\x03\x12\x35\n\x0csupport_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x0e\x64\x65precate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12;\n\robsolete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\x01\x88\x01\x01\"H\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nDEPRECATED\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03:\xa0\x01\xea\x41\x9c\x01\n&config.googleapis.com/TerraformVersion\x12Mprojects/{project}/locations/{location}/terraformVersions/{terraform_version}*\x11terraformVersions2\x10terraformVersionB\x11\n\x0f_deprecate_timeB\x10\n\x0e_obsolete_time\"\x8f\x01\n\x1bResourceChangeTerraformInfo\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rresource_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08provider\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x63tions\x18\x05 \x03(\tB\x03\xe0\x41\x03\"\x8f\x04\n\x0eResourceChange\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x0eterraform_info\x18\x02 \x01(\x0b\x32\x33.google.cloud.config.v1.ResourceChangeTerraformInfoB\x03\xe0\x41\x03\x12\x42\n\x06intent\x18\x03 \x01(\x0e\x32-.google.cloud.config.v1.ResourceChange.IntentB\x03\xe0\x41\x03\x12\x45\n\x10property_changes\x18\x04 \x03(\x0b\x32&.google.cloud.config.v1.PropertyChangeB\x03\xe0\x41\x03\"a\n\x06Intent\x12\x16\n\x12INTENT_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0c\n\x08RECREATE\x10\x04\x12\r\n\tUNCHANGED\x10\x05:\xa9\x01\xea\x41\xa5\x01\n$config.googleapis.com/ResourceChange\x12\\projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}*\x0fresourceChanges2\x0eresourceChange\"\xc5\x01\n\x0ePropertyChange\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16\x62\x65\x66ore_sensitive_paths\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12+\n\x06\x62\x65\x66ore\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\x12\"\n\x15\x61\x66ter_sensitive_paths\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12*\n\x05\x61\x66ter\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\"\xb0\x01\n\x1aListResourceChangesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8d\x01\n\x1bListResourceChangesResponse\x12@\n\x10resource_changes\x18\x01 \x03(\x0b\x32&.google.cloud.config.v1.ResourceChange\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x18GetResourceChangeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$config.googleapis.com/ResourceChange\"x\n\x1aResourceDriftTerraformInfo\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rresource_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08provider\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\xdf\x02\n\rResourceDrift\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x0eterraform_info\x18\x02 \x01(\x0b\x32\x32.google.cloud.config.v1.ResourceDriftTerraformInfoB\x03\xe0\x41\x03\x12\x43\n\x0fproperty_drifts\x18\x03 \x03(\x0b\x32%.google.cloud.config.v1.PropertyDriftB\x03\xe0\x41\x03:\xa4\x01\xea\x41\xa0\x01\n#config.googleapis.com/ResourceDrift\x12Zprojects/{project}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}*\x0eresourceDrifts2\rresourceDrift\"\xc4\x01\n\rPropertyDrift\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16\x62\x65\x66ore_sensitive_paths\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12+\n\x06\x62\x65\x66ore\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\x12\"\n\x15\x61\x66ter_sensitive_paths\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12*\n\x05\x61\x66ter\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\"\xaf\x01\n\x19ListResourceDriftsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8a\x01\n\x1aListResourceDriftsResponse\x12>\n\x0fresource_drifts\x18\x01 \x03(\x0b\x32%.google.cloud.config.v1.ResourceDrift\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"T\n\x17GetResourceDriftRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#config.googleapis.com/ResourceDrift\"\xc1\x01\n\x0eProviderConfig\x12T\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x35.google.cloud.config.v1.ProviderConfig.ProviderSourceB\x03\xe0\x41\x01H\x00\x88\x01\x01\"I\n\x0eProviderSource\x12\x1f\n\x1bPROVIDER_SOURCE_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_MAINTAINED\x10\x01\x42\x0e\n\x0c_source_type\"`\n\x1dGetAutoMigrationConfigRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)config.googleapis.com/AutoMigrationConfig\"\x9d\x02\n\x13\x41utoMigrationConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x16\x61uto_migration_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01:\x97\x01\xea\x41\x93\x01\n)config.googleapis.com/AutoMigrationConfig\x12;projects/{project}/locations/{location}/autoMigrationConfig*\x14\x61utoMigrationConfigs2\x13\x61utoMigrationConfig\"\xa9\x01\n UpdateAutoMigrationConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12O\n\x15\x61uto_migration_config\x18\x02 \x01(\x0b\x32+.google.cloud.config.v1.AutoMigrationConfigB\x03\xe0\x41\x02*N\n\x0fQuotaValidation\x12 \n\x1cQUOTA_VALIDATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x45NFORCED\x10\x02\x32\xb9-\n\x06\x43onfig\x12\xb4\x01\n\x0fListDeployments\x12..google.cloud.config.v1.ListDeploymentsRequest\x1a/.google.cloud.config.v1.ListDeploymentsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/deployments\x12\xa1\x01\n\rGetDeployment\x12,.google.cloud.config.v1.GetDeploymentRequest\x1a\".google.cloud.config.v1.Deployment\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/deployments/*}\x12\xec\x01\n\x10\x43reateDeployment\x12/.google.cloud.config.v1.CreateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x1fparent,deployment,deployment_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/deployments:\ndeployment\x12\xee\x01\n\x10UpdateDeployment\x12/.google.cloud.config.v1.UpdateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x16\x64\x65ployment,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{deployment.name=projects/*/locations/*/deployments/*}:\ndeployment\x12\xc4\x01\n\x10\x44\x65leteDeployment\x12/.google.cloud.config.v1.DeleteDeploymentRequest\x1a\x1d.google.longrunning.Operation\"`\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/deployments/*}\x12\xba\x01\n\rListRevisions\x12,.google.cloud.config.v1.ListRevisionsRequest\x1a-.google.cloud.config.v1.ListRevisionsResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/deployments/*}/revisions\x12\xa7\x01\n\x0bGetRevision\x12*.google.cloud.config.v1.GetRevisionRequest\x1a .google.cloud.config.v1.Revision\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/deployments/*/revisions/*}\x12\xb3\x01\n\x0bGetResource\x12*.google.cloud.config.v1.GetResourceRequest\x1a .google.cloud.config.v1.Resource\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/deployments/*/revisions/*/resources/*}\x12\xc6\x01\n\rListResources\x12,.google.cloud.config.v1.ListResourcesRequest\x1a-.google.cloud.config.v1.ListResourcesResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}/resources\x12\xc2\x01\n\x19\x45xportDeploymentStatefile\x12\x38.google.cloud.config.v1.ExportDeploymentStatefileRequest\x1a!.google.cloud.config.v1.Statefile\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*/deployments/*}:exportState:\x01*\x12\xca\x01\n\x17\x45xportRevisionStatefile\x12\x36.google.cloud.config.v1.ExportRevisionStatefileRequest\x1a!.google.cloud.config.v1.Statefile\"T\x82\xd3\xe4\x93\x02N\"I/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}:exportState:\x01*\x12\xbf\x01\n\x0fImportStatefile\x12..google.cloud.config.v1.ImportStatefileRequest\x1a!.google.cloud.config.v1.Statefile\"Y\xda\x41\x0eparent,lock_id\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*/deployments/*}:importState:\x01*\x12\xa8\x01\n\x0f\x44\x65leteStatefile\x12..google.cloud.config.v1.DeleteStatefileRequest\x1a\x16.google.protobuf.Empty\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\";/v1/{name=projects/*/locations/*/deployments/*}:deleteState:\x01*\x12\xc8\x01\n\x0eLockDeployment\x12-.google.cloud.config.v1.LockDeploymentRequest\x1a\x1d.google.longrunning.Operation\"h\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/deployments/*}:lock:\x01*\x12\xd6\x01\n\x10UnlockDeployment\x12/.google.cloud.config.v1.UnlockDeploymentRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x0cname,lock_id\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/deployments/*}:unlock:\x01*\x12\xac\x01\n\x0e\x45xportLockInfo\x12-.google.cloud.config.v1.ExportLockInfoRequest\x1a .google.cloud.config.v1.LockInfo\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/locations/*/deployments/*}:exportLock\x12\xcb\x01\n\rCreatePreview\x12,.google.cloud.config.v1.CreatePreviewRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41\x1c\n\x07Preview\x12\x11OperationMetadata\xda\x41\x0eparent,preview\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/previews:\x07preview\x12\x95\x01\n\nGetPreview\x12).google.cloud.config.v1.GetPreviewRequest\x1a\x1f.google.cloud.config.v1.Preview\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/previews/*}\x12\xa8\x01\n\x0cListPreviews\x12+.google.cloud.config.v1.ListPreviewsRequest\x1a,.google.cloud.config.v1.ListPreviewsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/previews\x12\xb8\x01\n\rDeletePreview\x12,.google.cloud.config.v1.DeletePreviewRequest\x1a\x1d.google.longrunning.Operation\"Z\xca\x41\x1c\n\x07Preview\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/previews/*}\x12\xc0\x01\n\x13\x45xportPreviewResult\x12\x32.google.cloud.config.v1.ExportPreviewResultRequest\x1a\x33.google.cloud.config.v1.ExportPreviewResultResponse\"@\x82\xd3\xe4\x93\x02:\"5/v1/{parent=projects/*/locations/*/previews/*}:export:\x01*\x12\xcc\x01\n\x15ListTerraformVersions\x12\x34.google.cloud.config.v1.ListTerraformVersionsRequest\x1a\x35.google.cloud.config.v1.ListTerraformVersionsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}/terraformVersions\x12\xb9\x01\n\x13GetTerraformVersion\x12\x32.google.cloud.config.v1.GetTerraformVersionRequest\x1a(.google.cloud.config.v1.TerraformVersion\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/terraformVersions/*}\x12\xcf\x01\n\x13ListResourceChanges\x12\x32.google.cloud.config.v1.ListResourceChangesRequest\x1a\x33.google.cloud.config.v1.ListResourceChangesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/previews/*}/resourceChanges\x12\xbc\x01\n\x11GetResourceChange\x12\x30.google.cloud.config.v1.GetResourceChangeRequest\x1a&.google.cloud.config.v1.ResourceChange\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/previews/*/resourceChanges/*}\x12\xcb\x01\n\x12ListResourceDrifts\x12\x31.google.cloud.config.v1.ListResourceDriftsRequest\x1a\x32.google.cloud.config.v1.ListResourceDriftsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/previews/*}/resourceDrifts\x12\xb8\x01\n\x10GetResourceDrift\x12/.google.cloud.config.v1.GetResourceDriftRequest\x1a%.google.cloud.config.v1.ResourceDrift\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/previews/*/resourceDrifts/*}\x12\xc2\x01\n\x16GetAutoMigrationConfig\x12\x35.google.cloud.config.v1.GetAutoMigrationConfigRequest\x1a+.google.cloud.config.v1.AutoMigrationConfig\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/autoMigrationConfig}\x12\xb0\x02\n\x19UpdateAutoMigrationConfig\x12\x38.google.cloud.config.v1.UpdateAutoMigrationConfigRequest\x1a\x1d.google.longrunning.Operation\"\xb9\x01\xca\x41(\n\x13\x41utoMigrationConfig\x12\x11OperationMetadata\xda\x41!auto_migration_config,update_mask\x82\xd3\xe4\x93\x02\x64\x32K/v1/{auto_migration_config.name=projects/*/locations/*/autoMigrationConfig}:\x15\x61uto_migration_config\x1aI\xca\x41\x15\x63onfig.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfc\x02\n\x1a\x63om.google.cloud.config.v1B\x0b\x43onfigProtoP\x01Z2cloud.google.com/go/config/apiv1/configpb;configpb\xaa\x02\x16Google.Cloud.Config.V1\xca\x02\x16Google\\Cloud\\Config\\V1\xea\x02 Google::Cloud::ConfigService::V1\xea\x41Y\n!iam.googleapis.com/ServiceAccount\x12\x34projects/{project}/serviceAccounts/{service_account}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}b\x06proto3" +descriptor_data = "\n#google/cloud/config/v1/config.proto\x12\x16google.cloud.config.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xc9\x10\n\nDeployment\x12I\n\x13terraform_blueprint\x18\x06 \x01(\x0b\x32*.google.cloud.config.v1.TerraformBlueprintH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.config.v1.Deployment.LabelsEntryB\x03\xe0\x41\x01\x12<\n\x05state\x18\x05 \x01(\x0e\x32(.google.cloud.config.v1.Deployment.StateB\x03\xe0\x41\x03\x12\x1c\n\x0flatest_revision\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cstate_detail\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x45\n\nerror_code\x18\n \x01(\x0e\x32,.google.cloud.config.v1.Deployment.ErrorCodeB\x03\xe0\x41\x03\x12\x41\n\x0e\x64\x65lete_results\x18\x08 \x01(\x0b\x32$.google.cloud.config.v1.ApplyResultsB\x03\xe0\x41\x03\x12\x19\n\x0c\x64\x65lete_build\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65lete_logs\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12>\n\ttf_errors\x18\r \x03(\x0b\x32&.google.cloud.config.v1.TerraformErrorB\x03\xe0\x41\x03\x12\x17\n\nerror_logs\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12&\n\x14\x61rtifacts_gcs_bucket\x18\x0f \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12G\n\x0fservice_account\x18\x10 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccountH\x02\x88\x01\x01\x12&\n\x19import_existing_resources\x18\x11 \x01(\x08H\x03\x88\x01\x01\x12\x46\n\x0bworker_pool\x18\x13 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPoolH\x04\x88\x01\x01\x12\x45\n\nlock_state\x18\x14 \x01(\x0e\x32,.google.cloud.config.v1.Deployment.LockStateB\x03\xe0\x41\x03\x12\'\n\x15tf_version_constraint\x18\x15 \x01(\tB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x17\n\ntf_version\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x10quota_validation\x18\x17 \x01(\x0e\x32\'.google.cloud.config.v1.QuotaValidationB\x03\xe0\x41\x01\x12M\n\x0b\x61nnotations\x18\x18 \x03(\x0b\x32\x33.google.cloud.config.v1.Deployment.AnnotationsEntryB\x03\xe0\x41\x01\x12\x44\n\x0fprovider_config\x18\x19 \x01(\x0b\x32&.google.cloud.config.v1.ProviderConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"|\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tSUSPENDED\x10\x06\x12\x0b\n\x07\x44\x45LETED\x10\x07\"\x85\x02\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fREVISION_FAILED\x10\x01\x12!\n\x1d\x43LOUD_BUILD_PERMISSION_DENIED\x10\x03\x12\x1b\n\x17\x44\x45LETE_BUILD_API_FAILED\x10\x05\x12\x1b\n\x17\x44\x45LETE_BUILD_RUN_FAILED\x10\x06\x12%\n!BUCKET_CREATION_PERMISSION_DENIED\x10\x07\x12\x1a\n\x16\x42UCKET_CREATION_FAILED\x10\x08\x12\'\n#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\x10\n\"\x81\x01\n\tLockState\x12\x1a\n\x16LOCK_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06LOCKED\x10\x01\x12\x0c\n\x08UNLOCKED\x10\x02\x12\x0b\n\x07LOCKING\x10\x03\x12\r\n\tUNLOCKING\x10\x04\x12\x0f\n\x0bLOCK_FAILED\x10\x05\x12\x11\n\rUNLOCK_FAILED\x10\x06:g\xea\x41\x64\n config.googleapis.com/Deployment\x12@projects/{project}/locations/{location}/deployments/{deployment}B\x0b\n\tblueprintB\x17\n\x15_artifacts_gcs_bucketB\x12\n\x10_service_accountB\x1c\n\x1a_import_existing_resourcesB\x0e\n\x0c_worker_poolB\x18\n\x16_tf_version_constraint\"\xe6\x03\n\x12TerraformBlueprint\x12\x14\n\ngcs_source\x18\x01 \x01(\tH\x00\x12\x37\n\ngit_source\x18\x02 \x01(\x0b\x32!.google.cloud.config.v1.GitSourceH\x00\x12V\n\x0cinput_values\x18\x04 \x03(\x0b\x32;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\x03\xe0\x41\x01\x12\\\n\x0f\x65xternal_values\x18\x05 \x03(\x0b\x32>.google.cloud.config.v1.TerraformBlueprint.ExternalValuesEntryB\x03\xe0\x41\x01\x1a]\n\x10InputValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.config.v1.TerraformVariable:\x02\x38\x01\x1a\x62\n\x13\x45xternalValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.config.v1.ExternalValueSource:\x02\x38\x01\x42\x08\n\x06source\"E\n\x11TerraformVariable\x12\x30\n\x0binput_value\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x01\"f\n\x13\x45xternalValueSource\x12\x45\n\x11\x64\x65ployment_source\x18\x01 \x01(\x0b\x32(.google.cloud.config.v1.DeploymentSourceH\x00\x42\x08\n\x06source\"j\n\x10\x44\x65ploymentSource\x12<\n\ndeployment\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x18\n\x0boutput_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xcf\x01\n\x0c\x41pplyResults\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tartifacts\x18\x02 \x01(\t\x12\x42\n\x07outputs\x18\x03 \x03(\x0b\x32\x31.google.cloud.config.v1.ApplyResults.OutputsEntry\x1aW\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.config.v1.TerraformOutput:\x02\x38\x01\"K\n\x0fTerraformOutput\x12\x11\n\tsensitive\x18\x01 \x01(\x08\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\x9c\x01\n\x16ListDeploymentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x80\x01\n\x17ListDeploymentsResponse\x12\x37\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32\".google.cloud.config.v1.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x14GetDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\"\x99\x01\n\x14ListRevisionsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"z\n\x15ListRevisionsResponse\x12\x33\n\trevisions\x18\x01 \x03(\x0b\x32 .google.cloud.config.v1.Revision\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"J\n\x12GetRevisionRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Revision\"\xc6\x01\n\x17\x43reateDeploymentRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12;\n\ndeployment\x18\x03 \x01(\x0b\x32\".google.cloud.config.v1.DeploymentB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xe4\x01\n\x1c\x43reateDeploymentGroupRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12 \n\x13\x64\x65ployment_group_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x10\x64\x65ployment_group\x18\x03 \x01(\x0b\x32\'.google.cloud.config.v1.DeploymentGroupB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xbd\x01\n\x1cUpdateDeploymentGroupRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x10\x64\x65ployment_group\x18\x02 \x01(\x0b\x32\'.google.cloud.config.v1.DeploymentGroupB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xc0\x03\n\x1c\x44\x65leteDeploymentGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%config.googleapis.com/DeploymentGroup\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12x\n\x1b\x64\x65ployment_reference_policy\x18\x04 \x01(\x0e\x32N.google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicyB\x03\xe0\x41\x01\"\xb3\x01\n\x19\x44\x65ploymentReferencePolicy\x12+\n\'DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED\x10\x00\x12 \n\x1c\x46\x41IL_IF_ANY_REFERENCES_EXIST\x10\x01\x12%\n!FAIL_IF_METADATA_REFERENCES_EXIST\x10\x02\x12 \n\x1cIGNORE_DEPLOYMENT_REFERENCES\x10\x03\"\xa5\x01\n\x17UpdateDeploymentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12;\n\ndeployment\x18\x02 \x01(\x0b\x32\".google.cloud.config.v1.DeploymentB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x02\n\x17\x44\x65leteDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12X\n\rdelete_policy\x18\x04 \x01(\x0e\x32<.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicyB\x03\xe0\x41\x01\"F\n\x0c\x44\x65letePolicy\x12\x1d\n\x19\x44\x45LETE_POLICY_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\"\xb8\x04\n\x11OperationMetadata\x12W\n\x13\x64\x65ployment_metadata\x18\x08 \x01(\x0b\x32\x33.google.cloud.config.v1.DeploymentOperationMetadataB\x03\xe0\x41\x03H\x00\x12Q\n\x10preview_metadata\x18\t \x01(\x0b\x32\x30.google.cloud.config.v1.PreviewOperationMetadataB\x03\xe0\x41\x03H\x00\x12u\n#provision_deployment_group_metadata\x18\n \x01(\x0b\x32\x41.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadataB\x03\xe0\x41\x03H\x00\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\x13\n\x11resource_metadata\"\xf2\x0b\n\x08Revision\x12N\n\x13terraform_blueprint\x18\x06 \x01(\x0b\x32*.google.cloud.config.v1.TerraformBlueprintB\x03\xe0\x41\x03H\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\'.google.cloud.config.v1.Revision.ActionB\x03\xe0\x41\x03\x12:\n\x05state\x18\x05 \x01(\x0e\x32&.google.cloud.config.v1.Revision.StateB\x03\xe0\x41\x03\x12@\n\rapply_results\x18\x07 \x01(\x0b\x32$.google.cloud.config.v1.ApplyResultsB\x03\xe0\x41\x03\x12\x19\n\x0cstate_detail\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\nerror_code\x18\t \x01(\x0e\x32*.google.cloud.config.v1.Revision.ErrorCodeB\x03\xe0\x41\x03\x12\x12\n\x05\x62uild\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04logs\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12>\n\ttf_errors\x18\x0c \x03(\x0b\x32&.google.cloud.config.v1.TerraformErrorB\x03\xe0\x41\x03\x12\x17\n\nerror_logs\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x0fservice_account\x18\x0e \x01(\tB)\xe0\x41\x03\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12&\n\x19import_existing_resources\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12\x41\n\x0bworker_pool\x18\x11 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12\"\n\x15tf_version_constraint\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ntf_version\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12%\n\x18quota_validation_results\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x10quota_validation\x18\x14 \x01(\x0e\x32\'.google.cloud.config.v1.QuotaValidationB\x03\xe0\x41\x01\x12\x44\n\x0fprovider_config\x18\x15 \x01(\x0b\x32&.google.cloud.config.v1.ProviderConfigB\x03\xe0\x41\x03\"D\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41PPLYING\x10\x01\x12\x0b\n\x07\x41PPLIED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"\xc8\x01\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x43LOUD_BUILD_PERMISSION_DENIED\x10\x01\x12\x1a\n\x16\x41PPLY_BUILD_API_FAILED\x10\x04\x12\x1a\n\x16\x41PPLY_BUILD_RUN_FAILED\x10\x05\x12\x1b\n\x17QUOTA_VALIDATION_FAILED\x10\x07\x12\'\n#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\x10\x08:z\xea\x41w\n\x1e\x63onfig.googleapis.com/Revision\x12Uprojects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}B\x0b\n\tblueprint\"\x89\x01\n\x0eTerraformError\x12\x18\n\x10resource_address\x18\x01 \x01(\t\x12\x1a\n\x12http_response_code\x18\x02 \x01(\x05\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\x12&\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\"v\n\tGitSource\x12\x16\n\x04repo\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1b\n\tdirectory\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x15\n\x03ref\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x02\x88\x01\x01\x42\x07\n\x05_repoB\x0c\n\n_directoryB\x06\n\x04_ref\"\x9f\x04\n\x1b\x44\x65ploymentOperationMetadata\x12P\n\x04step\x18\x01 \x01(\x0e\x32\x42.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep\x12;\n\rapply_results\x18\x02 \x01(\x0b\x32$.google.cloud.config.v1.ApplyResults\x12\x12\n\x05\x62uild\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04logs\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\xc9\x02\n\x0e\x44\x65ploymentStep\x12\x1f\n\x1b\x44\x45PLOYMENT_STEP_UNSPECIFIED\x10\x00\x12\x1c\n\x18PREPARING_STORAGE_BUCKET\x10\x01\x12\x19\n\x15\x44OWNLOADING_BLUEPRINT\x10\x02\x12\x13\n\x0fRUNNING_TF_INIT\x10\x03\x12\x13\n\x0fRUNNING_TF_PLAN\x10\x04\x12\x14\n\x10RUNNING_TF_APPLY\x10\x05\x12\x16\n\x12RUNNING_TF_DESTROY\x10\x06\x12\x17\n\x13RUNNING_TF_VALIDATE\x10\x07\x12\x18\n\x14UNLOCKING_DEPLOYMENT\x10\x08\x12\r\n\tSUCCEEDED\x10\t\x12\n\n\x06\x46\x41ILED\x10\n\x12\x19\n\x15VALIDATING_REPOSITORY\x10\x0b\x12\x1c\n\x18RUNNING_QUOTA_VALIDATION\x10\x0c\"\xd8\x05\n\x08Resource\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x0eterraform_info\x18\x02 \x01(\x0b\x32-.google.cloud.config.v1.ResourceTerraformInfoB\x03\xe0\x41\x03\x12H\n\ncai_assets\x18\x03 \x03(\x0b\x32/.google.cloud.config.v1.Resource.CaiAssetsEntryB\x03\xe0\x41\x03\x12<\n\x06intent\x18\x04 \x01(\x0e\x32\'.google.cloud.config.v1.Resource.IntentB\x03\xe0\x41\x03\x12:\n\x05state\x18\x05 \x01(\x0e\x32&.google.cloud.config.v1.Resource.StateB\x03\xe0\x41\x03\x1aY\n\x0e\x43\x61iAssetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.config.v1.ResourceCAIInfo:\x02\x38\x01\"a\n\x06Intent\x12\x16\n\x12INTENT_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0c\n\x08RECREATE\x10\x04\x12\r\n\tUNCHANGED\x10\x05\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PLANNED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0e\n\nRECONCILED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x90\x01\xea\x41\x8c\x01\n\x1e\x63onfig.googleapis.com/Resource\x12jprojects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}\"B\n\x15ResourceTerraformInfo\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\"-\n\x0fResourceCAIInfo\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\"J\n\x12GetResourceRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Resource\"\x97\x01\n\x14ListResourcesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Revision\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"z\n\x15ListResourcesResponse\x12\x33\n\tresources\x18\x01 \x03(\x0b\x32 .google.cloud.config.v1.Resource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"$\n\tStatefile\x12\x17\n\nsigned_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"p\n ExportDeploymentStatefileRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x12\n\x05\x64raft\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"X\n\x1e\x45xportRevisionStatefileRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63onfig.googleapis.com/Revision\"\x81\x01\n\x16ImportStatefileRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x14\n\x07lock_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x17\n\nskip_draft\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"f\n\x16\x44\x65leteStatefileRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x14\n\x07lock_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\"O\n\x15LockDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\"g\n\x17UnlockDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\x12\x14\n\x07lock_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\"O\n\x15\x45xportLockInfoRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n config.googleapis.com/Deployment\"\x8b\x01\n\x08LockInfo\x12\x0f\n\x07lock_id\x18\x01 \x01(\x03\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x0c\n\x04info\x18\x03 \x01(\t\x12\x0b\n\x03who\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe7\x0e\n\x07Preview\x12I\n\x13terraform_blueprint\x18\x06 \x01(\x0b\x32*.google.cloud.config.v1.TerraformBlueprintH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x06labels\x18\x03 \x03(\x0b\x32+.google.cloud.config.v1.Preview.LabelsEntryB\x03\xe0\x41\x01\x12\x39\n\x05state\x18\x04 \x01(\x0e\x32%.google.cloud.config.v1.Preview.StateB\x03\xe0\x41\x03\x12<\n\ndeployment\x18\x05 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n config.googleapis.com/Deployment\x12\x46\n\x0cpreview_mode\x18\x0f \x01(\x0e\x32+.google.cloud.config.v1.Preview.PreviewModeB\x03\xe0\x41\x01\x12\x42\n\x0fservice_account\x18\x07 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iam.googleapis.com/ServiceAccount\x12&\n\x14\x61rtifacts_gcs_bucket\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x46\n\x0bworker_pool\x18\t \x01(\tB,\xe0\x41\x01\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPoolH\x02\x88\x01\x01\x12\x42\n\nerror_code\x18\n \x01(\x0e\x32).google.cloud.config.v1.Preview.ErrorCodeB\x03\xe0\x41\x03\x12-\n\x0c\x65rror_status\x18\x0b \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x12\n\x05\x62uild\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12>\n\ttf_errors\x18\r \x03(\x0b\x32&.google.cloud.config.v1.TerraformErrorB\x03\xe0\x41\x03\x12\x17\n\nerror_logs\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12H\n\x11preview_artifacts\x18\x10 \x01(\x0b\x32(.google.cloud.config.v1.PreviewArtifactsB\x03\xe0\x41\x03\x12\x11\n\x04logs\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ntf_version\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12\'\n\x15tf_version_constraint\x18\x13 \x01(\tB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12J\n\x0b\x61nnotations\x18\x14 \x03(\x0b\x32\x30.google.cloud.config.v1.Preview.AnnotationsEntryB\x03\xe0\x41\x01\x12\x44\n\x0fprovider_config\x18\x15 \x01(\x0b\x32&.google.cloud.config.v1.ProviderConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\x0c\n\x08\x41PPLYING\x10\x03\x12\t\n\x05STALE\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x44\x45LETED\x10\x07\"D\n\x0bPreviewMode\x12\x1c\n\x18PREVIEW_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\"\x96\x02\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x43LOUD_BUILD_PERMISSION_DENIED\x10\x01\x12%\n!BUCKET_CREATION_PERMISSION_DENIED\x10\x02\x12\x1a\n\x16\x42UCKET_CREATION_FAILED\x10\x03\x12\"\n\x1e\x44\x45PLOYMENT_LOCK_ACQUIRE_FAILED\x10\x04\x12\x1c\n\x18PREVIEW_BUILD_API_FAILED\x10\x05\x12\x1c\n\x18PREVIEW_BUILD_RUN_FAILED\x10\x06\x12\'\n#EXTERNAL_VALUE_SOURCE_IMPORT_FAILED\x10\x07:q\xea\x41n\n\x1d\x63onfig.googleapis.com/Preview\x12:projects/{project}/locations/{location}/previews/{preview}*\x08previews2\x07previewB\x0b\n\tblueprintB\x17\n\x15_artifacts_gcs_bucketB\x0e\n\x0c_worker_poolB\x18\n\x16_tf_version_constraint\"\xe4\x03\n\x18PreviewOperationMetadata\x12J\n\x04step\x18\x01 \x01(\x0e\x32<.google.cloud.config.v1.PreviewOperationMetadata.PreviewStep\x12\x43\n\x11preview_artifacts\x18\x02 \x01(\x0b\x32(.google.cloud.config.v1.PreviewArtifacts\x12\x11\n\x04logs\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x62uild\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\x8f\x02\n\x0bPreviewStep\x12\x1c\n\x18PREVIEW_STEP_UNSPECIFIED\x10\x00\x12\x1c\n\x18PREPARING_STORAGE_BUCKET\x10\x01\x12\x19\n\x15\x44OWNLOADING_BLUEPRINT\x10\x02\x12\x13\n\x0fRUNNING_TF_INIT\x10\x03\x12\x13\n\x0fRUNNING_TF_PLAN\x10\x04\x12\x17\n\x13\x46\x45TCHING_DEPLOYMENT\x10\x05\x12\x16\n\x12LOCKING_DEPLOYMENT\x10\x06\x12\x18\n\x14UNLOCKING_DEPLOYMENT\x10\x07\x12\r\n\tSUCCEEDED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\t\x12\x19\n\x15VALIDATING_REPOSITORY\x10\n\"@\n\x10PreviewArtifacts\x12\x14\n\x07\x63ontent\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tartifacts\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc2\x01\n\x14\x43reatePreviewRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\npreview_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x07preview\x18\x03 \x01(\x0b\x32\x1f.google.cloud.config.v1.PreviewB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"H\n\x11GetPreviewRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\"\xad\x01\n\x13ListPreviewsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x14ListPreviewsResponse\x12\x31\n\x08previews\x18\x01 \x03(\x0b\x32\x1f.google.cloud.config.v1.Preview\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"l\n\x14\x44\x65letePreviewRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"S\n\x1a\x45xportPreviewResultRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\"Y\n\x1b\x45xportPreviewResultResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32%.google.cloud.config.v1.PreviewResultB\x03\xe0\x41\x03\"M\n\rPreviewResult\x12\x1e\n\x11\x62inary_signed_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fjson_signed_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\"Z\n\x1aGetTerraformVersionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&config.googleapis.com/TerraformVersion\"\xb6\x01\n\x1cListTerraformVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n\x1dListTerraformVersionsResponse\x12\x44\n\x12terraform_versions\x18\x01 \x03(\x0b\x32(.google.cloud.config.v1.TerraformVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xad\x04\n\x10TerraformVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x42\n\x05state\x18\x02 \x01(\x0e\x32..google.cloud.config.v1.TerraformVersion.StateB\x03\xe0\x41\x03\x12\x35\n\x0csupport_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x0e\x64\x65precate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12;\n\robsolete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\x01\x88\x01\x01\"H\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nDEPRECATED\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03:\xa0\x01\xea\x41\x9c\x01\n&config.googleapis.com/TerraformVersion\x12Mprojects/{project}/locations/{location}/terraformVersions/{terraform_version}*\x11terraformVersions2\x10terraformVersionB\x11\n\x0f_deprecate_timeB\x10\n\x0e_obsolete_time\"\x8f\x01\n\x1bResourceChangeTerraformInfo\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rresource_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08provider\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x63tions\x18\x05 \x03(\tB\x03\xe0\x41\x03\"\x8f\x04\n\x0eResourceChange\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x0eterraform_info\x18\x02 \x01(\x0b\x32\x33.google.cloud.config.v1.ResourceChangeTerraformInfoB\x03\xe0\x41\x03\x12\x42\n\x06intent\x18\x03 \x01(\x0e\x32-.google.cloud.config.v1.ResourceChange.IntentB\x03\xe0\x41\x03\x12\x45\n\x10property_changes\x18\x04 \x03(\x0b\x32&.google.cloud.config.v1.PropertyChangeB\x03\xe0\x41\x03\"a\n\x06Intent\x12\x16\n\x12INTENT_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0c\n\x08RECREATE\x10\x04\x12\r\n\tUNCHANGED\x10\x05:\xa9\x01\xea\x41\xa5\x01\n$config.googleapis.com/ResourceChange\x12\\projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}*\x0fresourceChanges2\x0eresourceChange\"\xc5\x01\n\x0ePropertyChange\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16\x62\x65\x66ore_sensitive_paths\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12+\n\x06\x62\x65\x66ore\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\x12\"\n\x15\x61\x66ter_sensitive_paths\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12*\n\x05\x61\x66ter\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\"\xb0\x01\n\x1aListResourceChangesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8d\x01\n\x1bListResourceChangesResponse\x12@\n\x10resource_changes\x18\x01 \x03(\x0b\x32&.google.cloud.config.v1.ResourceChange\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x18GetResourceChangeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$config.googleapis.com/ResourceChange\"x\n\x1aResourceDriftTerraformInfo\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rresource_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08provider\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\xdf\x02\n\rResourceDrift\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x0eterraform_info\x18\x02 \x01(\x0b\x32\x32.google.cloud.config.v1.ResourceDriftTerraformInfoB\x03\xe0\x41\x03\x12\x43\n\x0fproperty_drifts\x18\x03 \x03(\x0b\x32%.google.cloud.config.v1.PropertyDriftB\x03\xe0\x41\x03:\xa4\x01\xea\x41\xa0\x01\n#config.googleapis.com/ResourceDrift\x12Zprojects/{project}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}*\x0eresourceDrifts2\rresourceDrift\"\xc4\x01\n\rPropertyDrift\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16\x62\x65\x66ore_sensitive_paths\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12+\n\x06\x62\x65\x66ore\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\x12\"\n\x15\x61\x66ter_sensitive_paths\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12*\n\x05\x61\x66ter\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\"\xaf\x01\n\x19ListResourceDriftsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63onfig.googleapis.com/Preview\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8a\x01\n\x1aListResourceDriftsResponse\x12>\n\x0fresource_drifts\x18\x01 \x03(\x0b\x32%.google.cloud.config.v1.ResourceDrift\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"T\n\x17GetResourceDriftRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#config.googleapis.com/ResourceDrift\"\xc1\x01\n\x0eProviderConfig\x12T\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x35.google.cloud.config.v1.ProviderConfig.ProviderSourceB\x03\xe0\x41\x01H\x00\x88\x01\x01\"I\n\x0eProviderSource\x12\x1f\n\x1bPROVIDER_SOURCE_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_MAINTAINED\x10\x01\x42\x0e\n\x0c_source_type\"`\n\x1dGetAutoMigrationConfigRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)config.googleapis.com/AutoMigrationConfig\"\x9d\x02\n\x13\x41utoMigrationConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x16\x61uto_migration_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01:\x97\x01\xea\x41\x93\x01\n)config.googleapis.com/AutoMigrationConfig\x12;projects/{project}/locations/{location}/autoMigrationConfig*\x14\x61utoMigrationConfigs2\x13\x61utoMigrationConfig\"\xa9\x01\n UpdateAutoMigrationConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12O\n\x15\x61uto_migration_config\x18\x02 \x01(\x0b\x32+.google.cloud.config.v1.AutoMigrationConfigB\x03\xe0\x41\x02\"\xc8\t\n\x0f\x44\x65ploymentGroup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12H\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.config.v1.DeploymentGroup.LabelsEntryB\x03\xe0\x41\x01\x12R\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32\x38.google.cloud.config.v1.DeploymentGroup.AnnotationsEntryB\x03\xe0\x41\x01\x12\x41\n\x05state\x18\x06 \x01(\x0e\x32-.google.cloud.config.v1.DeploymentGroup.StateB\x03\xe0\x41\x03\x12\x1e\n\x11state_description\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12@\n\x10\x64\x65ployment_units\x18\x08 \x03(\x0b\x32&.google.cloud.config.v1.DeploymentUnit\x12Z\n\x12provisioning_state\x18\t \x01(\x0e\x32\x39.google.cloud.config.v1.DeploymentGroup.ProvisioningStateB\x03\xe0\x41\x03\x12+\n\x1eprovisioning_state_description\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x33\n\x12provisioning_error\x18\x0b \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"|\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tSUSPENDED\x10\x06\x12\x0b\n\x07\x44\x45LETED\x10\x07\"\xb5\x01\n\x11ProvisioningState\x12\"\n\x1ePROVISIONING_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0f\n\x0bPROVISIONED\x10\x02\x12\x17\n\x13\x46\x41ILED_TO_PROVISION\x10\x03\x12\x12\n\x0e\x44\x45PROVISIONING\x10\x04\x12\x11\n\rDEPROVISIONED\x10\x05\x12\x19\n\x15\x46\x41ILED_TO_DEPROVISION\x10\x06:\x9b\x01\xea\x41\x97\x01\n%config.googleapis.com/DeploymentGroup\x12Kprojects/{project}/locations/{location}/deploymentGroups/{deployment_group}*\x10\x64\x65ploymentGroups2\x0f\x64\x65ploymentGroup\"\x89\x01\n\x0e\x44\x65ploymentUnit\x12\n\n\x02id\x18\x01 \x01(\t\x12\x41\n\ndeployment\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n config.googleapis.com/DeploymentH\x00\x88\x01\x01\x12\x19\n\x0c\x64\x65pendencies\x18\x03 \x03(\tB\x03\xe0\x41\x02\x42\r\n\x0b_deployment\"i\n\x0e\x44\x65ploymentSpec\x12\x1a\n\rdeployment_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\ndeployment\x18\x02 \x01(\x0b\x32\".google.cloud.config.v1.DeploymentB\x03\xe0\x41\x02\"X\n\x19GetDeploymentGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%config.googleapis.com/DeploymentGroup\"\xb5\x01\n\x1bListDeploymentGroupsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n\x1cListDeploymentGroupsResponse\x12\x42\n\x11\x64\x65ployment_groups\x18\x01 \x03(\x0b\x32\'.google.cloud.config.v1.DeploymentGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xab\x02\n\x1fProvisionDeploymentGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%config.googleapis.com/DeploymentGroup\x12k\n\x10\x64\x65ployment_specs\x18\x03 \x03(\x0b\x32L.google.cloud.config.v1.ProvisionDeploymentGroupRequest.DeploymentSpecsEntryB\x03\xe0\x41\x01\x1a^\n\x14\x44\x65ploymentSpecsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.cloud.config.v1.DeploymentSpec:\x02\x38\x01\"\xce\x01\n!DeprovisionDeploymentGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%config.googleapis.com/DeploymentGroup\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12X\n\rdelete_policy\x18\x03 \x01(\x0e\x32<.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicyB\x03\xe0\x41\x01\"\xdb\x01\n\x1a\x44\x65ploymentOperationSummary\x12`\n\x0f\x64\x65ployment_step\x18\x01 \x01(\x0e\x32\x42.google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStepB\x03\xe0\x41\x03\x12\x1a\n\x05\x62uild\x18\x02 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x11\n\x04logs\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x63ontent\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tartifacts\x18\x05 \x01(\tB\x03\xe0\x41\x03\"\xf6\x05\n\x16\x44\x65ploymentUnitProgress\x12\x14\n\x07unit_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12<\n\ndeployment\x18\x02 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n config.googleapis.com/Deployment\x12H\n\x05state\x18\x03 \x01(\x0e\x32\x34.google.cloud.config.v1.DeploymentUnitProgress.StateB\x03\xe0\x41\x03\x12\x1e\n\x11state_description\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12]\n\x1c\x64\x65ployment_operation_summary\x18\x05 \x01(\x0b\x32\x32.google.cloud.config.v1.DeploymentOperationSummaryB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12J\n\x06intent\x18\x07 \x01(\x0e\x32\x35.google.cloud.config.v1.DeploymentUnitProgress.IntentB\x03\xe0\x41\x03\"\xac\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x17\n\x13\x41PPLYING_DEPLOYMENT\x10\x02\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\x17\n\x13\x44\x45LETING_DEPLOYMENT\x10\x08\x12\x19\n\x15PREVIEWING_DEPLOYMENT\x10\t\"\x9b\x01\n\x06Intent\x12\x16\n\x12INTENT_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43REATE_DEPLOYMENT\x10\x01\x12\x15\n\x11UPDATE_DEPLOYMENT\x10\x02\x12\x15\n\x11\x44\x45LETE_DEPLOYMENT\x10\x03\x12\x17\n\x13RECREATE_DEPLOYMENT\x10\x04\x12\x0c\n\x08\x43LEAN_UP\x10\x05\x12\r\n\tUNCHANGED\x10\x06\"\xb4\x04\n)ProvisionDeploymentGroupOperationMetadata\x12q\n\x04step\x18\x01 \x01(\x0e\x32^.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStepB\x03\xe0\x41\x03\x12W\n\x1a\x64\x65ployment_unit_progresses\x18\x02 \x03(\x0b\x32..google.cloud.config.v1.DeploymentUnitProgressB\x03\xe0\x41\x03\"\xba\x02\n\x1cProvisionDeploymentGroupStep\x12/\n+PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED\x10\x00\x12\x1f\n\x1bVALIDATING_DEPLOYMENT_GROUP\x10\x01\x12/\n+ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP\x10\x02\x12!\n\x1dPROVISIONING_DEPLOYMENT_UNITS\x10\x03\x12\x34\n0DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12#\n\x1f\x44\x45PROVISIONING_DEPLOYMENT_UNITS\x10\x07\"\x8b\x03\n\x17\x44\x65ploymentGroupRevision\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12>\n\x08snapshot\x18\x02 \x01(\x0b\x32\'.google.cloud.config.v1.DeploymentGroupB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0f\x61lternative_ids\x18\x04 \x03(\tB\x03\xe0\x41\x03:\xc8\x01\xea\x41\xc4\x01\n-config.googleapis.com/DeploymentGroupRevision\x12`projects/{project}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}*\x18\x64\x65ploymentGroupRevisions2\x17\x64\x65ploymentGroupRevision\"h\n!GetDeploymentGroupRevisionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-config.googleapis.com/DeploymentGroupRevision\"\x95\x01\n#ListDeploymentGroupRevisionsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%config.googleapis.com/DeploymentGroup\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xae\x01\n$ListDeploymentGroupRevisionsResponse\x12S\n\x1a\x64\x65ployment_group_revisions\x18\x01 \x03(\x0b\x32/.google.cloud.config.v1.DeploymentGroupRevision\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06*N\n\x0fQuotaValidation\x12 \n\x1cQUOTA_VALIDATION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x45NFORCED\x10\x02\x32\xf0=\n\x06\x43onfig\x12\xb4\x01\n\x0fListDeployments\x12..google.cloud.config.v1.ListDeploymentsRequest\x1a/.google.cloud.config.v1.ListDeploymentsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/deployments\x12\xa1\x01\n\rGetDeployment\x12,.google.cloud.config.v1.GetDeploymentRequest\x1a\".google.cloud.config.v1.Deployment\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/deployments/*}\x12\xec\x01\n\x10\x43reateDeployment\x12/.google.cloud.config.v1.CreateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x1fparent,deployment,deployment_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/deployments:\ndeployment\x12\xee\x01\n\x10UpdateDeployment\x12/.google.cloud.config.v1.UpdateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x16\x64\x65ployment,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{deployment.name=projects/*/locations/*/deployments/*}:\ndeployment\x12\xc4\x01\n\x10\x44\x65leteDeployment\x12/.google.cloud.config.v1.DeleteDeploymentRequest\x1a\x1d.google.longrunning.Operation\"`\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/deployments/*}\x12\xba\x01\n\rListRevisions\x12,.google.cloud.config.v1.ListRevisionsRequest\x1a-.google.cloud.config.v1.ListRevisionsResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/deployments/*}/revisions\x12\xa7\x01\n\x0bGetRevision\x12*.google.cloud.config.v1.GetRevisionRequest\x1a .google.cloud.config.v1.Revision\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/deployments/*/revisions/*}\x12\xb3\x01\n\x0bGetResource\x12*.google.cloud.config.v1.GetResourceRequest\x1a .google.cloud.config.v1.Resource\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/deployments/*/revisions/*/resources/*}\x12\xc6\x01\n\rListResources\x12,.google.cloud.config.v1.ListResourcesRequest\x1a-.google.cloud.config.v1.ListResourcesResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}/resources\x12\xc2\x01\n\x19\x45xportDeploymentStatefile\x12\x38.google.cloud.config.v1.ExportDeploymentStatefileRequest\x1a!.google.cloud.config.v1.Statefile\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*/deployments/*}:exportState:\x01*\x12\xca\x01\n\x17\x45xportRevisionStatefile\x12\x36.google.cloud.config.v1.ExportRevisionStatefileRequest\x1a!.google.cloud.config.v1.Statefile\"T\x82\xd3\xe4\x93\x02N\"I/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}:exportState:\x01*\x12\xbf\x01\n\x0fImportStatefile\x12..google.cloud.config.v1.ImportStatefileRequest\x1a!.google.cloud.config.v1.Statefile\"Y\xda\x41\x0eparent,lock_id\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*/deployments/*}:importState:\x01*\x12\xa8\x01\n\x0f\x44\x65leteStatefile\x12..google.cloud.config.v1.DeleteStatefileRequest\x1a\x16.google.protobuf.Empty\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\";/v1/{name=projects/*/locations/*/deployments/*}:deleteState:\x01*\x12\xc8\x01\n\x0eLockDeployment\x12-.google.cloud.config.v1.LockDeploymentRequest\x1a\x1d.google.longrunning.Operation\"h\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/deployments/*}:lock:\x01*\x12\xd6\x01\n\x10UnlockDeployment\x12/.google.cloud.config.v1.UnlockDeploymentRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1f\n\nDeployment\x12\x11OperationMetadata\xda\x41\x0cname,lock_id\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/deployments/*}:unlock:\x01*\x12\xac\x01\n\x0e\x45xportLockInfo\x12-.google.cloud.config.v1.ExportLockInfoRequest\x1a .google.cloud.config.v1.LockInfo\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/locations/*/deployments/*}:exportLock\x12\xcb\x01\n\rCreatePreview\x12,.google.cloud.config.v1.CreatePreviewRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41\x1c\n\x07Preview\x12\x11OperationMetadata\xda\x41\x0eparent,preview\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/previews:\x07preview\x12\x95\x01\n\nGetPreview\x12).google.cloud.config.v1.GetPreviewRequest\x1a\x1f.google.cloud.config.v1.Preview\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/previews/*}\x12\xa8\x01\n\x0cListPreviews\x12+.google.cloud.config.v1.ListPreviewsRequest\x1a,.google.cloud.config.v1.ListPreviewsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/previews\x12\xb8\x01\n\rDeletePreview\x12,.google.cloud.config.v1.DeletePreviewRequest\x1a\x1d.google.longrunning.Operation\"Z\xca\x41\x1c\n\x07Preview\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/previews/*}\x12\xc0\x01\n\x13\x45xportPreviewResult\x12\x32.google.cloud.config.v1.ExportPreviewResultRequest\x1a\x33.google.cloud.config.v1.ExportPreviewResultResponse\"@\x82\xd3\xe4\x93\x02:\"5/v1/{parent=projects/*/locations/*/previews/*}:export:\x01*\x12\xcc\x01\n\x15ListTerraformVersions\x12\x34.google.cloud.config.v1.ListTerraformVersionsRequest\x1a\x35.google.cloud.config.v1.ListTerraformVersionsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}/terraformVersions\x12\xb9\x01\n\x13GetTerraformVersion\x12\x32.google.cloud.config.v1.GetTerraformVersionRequest\x1a(.google.cloud.config.v1.TerraformVersion\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/terraformVersions/*}\x12\xcf\x01\n\x13ListResourceChanges\x12\x32.google.cloud.config.v1.ListResourceChangesRequest\x1a\x33.google.cloud.config.v1.ListResourceChangesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/previews/*}/resourceChanges\x12\xbc\x01\n\x11GetResourceChange\x12\x30.google.cloud.config.v1.GetResourceChangeRequest\x1a&.google.cloud.config.v1.ResourceChange\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/previews/*/resourceChanges/*}\x12\xcb\x01\n\x12ListResourceDrifts\x12\x31.google.cloud.config.v1.ListResourceDriftsRequest\x1a\x32.google.cloud.config.v1.ListResourceDriftsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/previews/*}/resourceDrifts\x12\xb8\x01\n\x10GetResourceDrift\x12/.google.cloud.config.v1.GetResourceDriftRequest\x1a%.google.cloud.config.v1.ResourceDrift\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/previews/*/resourceDrifts/*}\x12\xc2\x01\n\x16GetAutoMigrationConfig\x12\x35.google.cloud.config.v1.GetAutoMigrationConfigRequest\x1a+.google.cloud.config.v1.AutoMigrationConfig\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/autoMigrationConfig}\x12\xb0\x02\n\x19UpdateAutoMigrationConfig\x12\x38.google.cloud.config.v1.UpdateAutoMigrationConfigRequest\x1a\x1d.google.longrunning.Operation\"\xb9\x01\xca\x41(\n\x13\x41utoMigrationConfig\x12\x11OperationMetadata\xda\x41!auto_migration_config,update_mask\x82\xd3\xe4\x93\x02\x64\x32K/v1/{auto_migration_config.name=projects/*/locations/*/autoMigrationConfig}:\x15\x61uto_migration_config\x12\xb5\x01\n\x12GetDeploymentGroup\x12\x31.google.cloud.config.v1.GetDeploymentGroupRequest\x1a\'.google.cloud.config.v1.DeploymentGroup\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/deploymentGroups/*}\x12\x92\x02\n\x15\x43reateDeploymentGroup\x12\x34.google.cloud.config.v1.CreateDeploymentGroupRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41$\n\x0f\x44\x65ploymentGroup\x12\x11OperationMetadata\xda\x41+parent,deployment_group,deployment_group_id\x82\xd3\xe4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/deploymentGroups:\x10\x64\x65ployment_group\x12\x94\x02\n\x15UpdateDeploymentGroup\x12\x34.google.cloud.config.v1.UpdateDeploymentGroupRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\xca\x41$\n\x0f\x44\x65ploymentGroup\x12\x11OperationMetadata\xda\x41\x1c\x64\x65ployment_group,update_mask\x82\xd3\xe4\x93\x02Y2E/v1/{deployment_group.name=projects/*/locations/*/deploymentGroups/*}:\x10\x64\x65ployment_group\x12\xd8\x01\n\x15\x44\x65leteDeploymentGroup\x12\x34.google.cloud.config.v1.DeleteDeploymentGroupRequest\x1a\x1d.google.longrunning.Operation\"j\xca\x41$\n\x0f\x44\x65ploymentGroup\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/deploymentGroups/*}\x12\xc8\x01\n\x14ListDeploymentGroups\x12\x33.google.cloud.config.v1.ListDeploymentGroupsRequest\x1a\x34.google.cloud.config.v1.ListDeploymentGroupsResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*}/deploymentGroups\x12\xeb\x01\n\x18ProvisionDeploymentGroup\x12\x37.google.cloud.config.v1.ProvisionDeploymentGroupRequest\x1a\x1d.google.longrunning.Operation\"w\xca\x41$\n\x0f\x44\x65ploymentGroup\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\">/v1/{name=projects/*/locations/*/deploymentGroups/*}:provision:\x01*\x12\xf1\x01\n\x1a\x44\x65provisionDeploymentGroup\x12\x39.google.cloud.config.v1.DeprovisionDeploymentGroupRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41$\n\x0f\x44\x65ploymentGroup\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/deploymentGroups/*}:deprovision:\x01*\x12\xd9\x01\n\x1aGetDeploymentGroupRevision\x12\x39.google.cloud.config.v1.GetDeploymentGroupRevisionRequest\x1a/.google.cloud.config.v1.DeploymentGroupRevision\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/deploymentGroups/*/revisions/*}\x12\xec\x01\n\x1cListDeploymentGroupRevisions\x12;.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest\x1a<.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*/deploymentGroups/*}/revisions\x1aI\xca\x41\x15\x63onfig.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfc\x02\n\x1a\x63om.google.cloud.config.v1B\x0b\x43onfigProtoP\x01Z2cloud.google.com/go/config/apiv1/configpb;configpb\xaa\x02\x16Google.Cloud.Config.V1\xca\x02\x16Google\\Cloud\\Config\\V1\xea\x02 Google::Cloud::ConfigService::V1\xea\x41Y\n!iam.googleapis.com/ServiceAccount\x12\x34projects/{project}/serviceAccounts/{service_account}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -32,6 +32,8 @@ module V1 Deployment::LockState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.Deployment.LockState").enummodule TerraformBlueprint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.TerraformBlueprint").msgclass TerraformVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.TerraformVariable").msgclass + ExternalValueSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ExternalValueSource").msgclass + DeploymentSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentSource").msgclass ApplyResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ApplyResults").msgclass TerraformOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.TerraformOutput").msgclass ListDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ListDeploymentsRequest").msgclass @@ -41,6 +43,10 @@ module V1 ListRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ListRevisionsResponse").msgclass GetRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.GetRevisionRequest").msgclass CreateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.CreateDeploymentRequest").msgclass + CreateDeploymentGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.CreateDeploymentGroupRequest").msgclass + UpdateDeploymentGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.UpdateDeploymentGroupRequest").msgclass + DeleteDeploymentGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeleteDeploymentGroupRequest").msgclass + DeleteDeploymentGroupRequest::DeploymentReferencePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy").enummodule UpdateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.UpdateDeploymentRequest").msgclass DeleteDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeleteDeploymentRequest").msgclass DeleteDeploymentRequest::DeletePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy").enummodule @@ -108,6 +114,26 @@ module V1 GetAutoMigrationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.GetAutoMigrationConfigRequest").msgclass AutoMigrationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.AutoMigrationConfig").msgclass UpdateAutoMigrationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.UpdateAutoMigrationConfigRequest").msgclass + DeploymentGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentGroup").msgclass + DeploymentGroup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentGroup.State").enummodule + DeploymentGroup::ProvisioningState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentGroup.ProvisioningState").enummodule + DeploymentUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentUnit").msgclass + DeploymentSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentSpec").msgclass + GetDeploymentGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.GetDeploymentGroupRequest").msgclass + ListDeploymentGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ListDeploymentGroupsRequest").msgclass + ListDeploymentGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ListDeploymentGroupsResponse").msgclass + ProvisionDeploymentGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ProvisionDeploymentGroupRequest").msgclass + DeprovisionDeploymentGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeprovisionDeploymentGroupRequest").msgclass + DeploymentOperationSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentOperationSummary").msgclass + DeploymentUnitProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentUnitProgress").msgclass + DeploymentUnitProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentUnitProgress.State").enummodule + DeploymentUnitProgress::Intent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentUnitProgress.Intent").enummodule + ProvisionDeploymentGroupOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata").msgclass + ProvisionDeploymentGroupOperationMetadata::ProvisionDeploymentGroupStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep").enummodule + DeploymentGroupRevision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.DeploymentGroupRevision").msgclass + GetDeploymentGroupRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.GetDeploymentGroupRevisionRequest").msgclass + ListDeploymentGroupRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ListDeploymentGroupRevisionsRequest").msgclass + ListDeploymentGroupRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.ListDeploymentGroupRevisionsResponse").msgclass QuotaValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.config.v1.QuotaValidation").enummodule end end diff --git a/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_services_pb.rb b/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_services_pb.rb index 872dc2e254d7..984265c0bca9 100644 --- a/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_services_pb.rb +++ b/google-cloud-config_service-v1/lib/google/cloud/config/v1/config_services_pb.rb @@ -98,6 +98,47 @@ class Service rpc :GetAutoMigrationConfig, ::Google::Cloud::ConfigService::V1::GetAutoMigrationConfigRequest, ::Google::Cloud::ConfigService::V1::AutoMigrationConfig # Updates the AutoMigrationConfig for a given project and location. rpc :UpdateAutoMigrationConfig, ::Google::Cloud::ConfigService::V1::UpdateAutoMigrationConfigRequest, ::Google::Longrunning::Operation + # Get a DeploymentGroup for a given project and location. + rpc :GetDeploymentGroup, ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest, ::Google::Cloud::ConfigService::V1::DeploymentGroup + # Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + # The newly created DeploymentGroup will be in the `CREATING` state + # and can be retrieved via Get and List calls. + rpc :CreateDeploymentGroup, ::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest, ::Google::Longrunning::Operation + # Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + rpc :UpdateDeploymentGroup, ::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest, ::Google::Longrunning::Operation + # Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] + rpc :DeleteDeploymentGroup, ::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest, ::Google::Longrunning::Operation + # List DeploymentGroups for a given project and location. + rpc :ListDeploymentGroups, ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest, ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse + # Provisions a deployment group. + # + # NOTE: As a first step of this operation, Infra Manager will + # automatically delete any Deployments that were part of the + # *last successful* + # [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] + # but are *no longer* included in the *current* + # [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., + # following an `UpdateDeploymentGroup` call), along with their actuated + # resources. + rpc :ProvisionDeploymentGroup, ::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest, ::Google::Longrunning::Operation + # Deprovisions a deployment group. + # + # NOTE: As a first step of this operation, Infra Manager will + # automatically delete any Deployments that were part of the + # *last successful* + # [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] + # but are *no longer* included in the *current* + # [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., + # following an `UpdateDeploymentGroup` call), along with their actuated + # resources. + rpc :DeprovisionDeploymentGroup, ::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest, ::Google::Longrunning::Operation + # Gets details about a + # [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]. + rpc :GetDeploymentGroupRevision, ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest, ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision + # Lists + # [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s + # in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]. + rpc :ListDeploymentGroupRevisions, ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest, ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse end Stub = Service.rpc_stub_class diff --git a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/client.rb b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/client.rb index 92433923325e..9f6174b38449 100644 --- a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/client.rb +++ b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/client.rb @@ -3161,6 +3161,993 @@ def update_auto_migration_config request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Get a DeploymentGroup for a given project and location. + # + # @overload get_deployment_group(request, options = nil) + # Pass arguments to `get_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_deployment_group(name: nil) + # Pass arguments to `get_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group to retrieve. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new + # + # # Call the get_deployment_group method. + # result = client.get_deployment_group request + # + # # The returned object is of type Google::Cloud::ConfigService::V1::DeploymentGroup. + # p result + # + def get_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_deployment_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :get_deployment_group, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} + # The newly created DeploymentGroup will be in the `CREATING` state + # and can be retrieved via Get and List calls. + # + # @overload create_deployment_group(request, options = nil) + # Pass arguments to `create_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_deployment_group(parent: nil, deployment_group_id: nil, deployment_group: nil, request_id: nil) + # Pass arguments to `create_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent in whose context the Deployment Group is created. The + # parent value is in the format: 'projects/\\{project_id}/locations/\\{location}' + # @param deployment_group_id [::String] + # Required. The deployment group ID. + # @param deployment_group [::Google::Cloud::ConfigService::V1::DeploymentGroup, ::Hash] + # Required. [Deployment Group][] resource to create + # @param request_id [::String] + # 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new + # + # # Call the create_deployment_group method. + # result = client.create_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_deployment_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :create_deployment_group, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} + # + # @overload update_deployment_group(request, options = nil) + # Pass arguments to `update_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_deployment_group(update_mask: nil, deployment_group: nil, request_id: nil) + # Pass arguments to `update_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Field mask used to specify the fields to be overwritten in the + # Deployment Group 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. + # @param deployment_group [::Google::Cloud::ConfigService::V1::DeploymentGroup, ::Hash] + # Required. {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} to + # update. + # + # The deployment group's `name` field is used to identify the resource to be + # updated. Format: + # `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}` + # @param request_id [::String] + # 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new + # + # # Call the update_deployment_group method. + # result = client.update_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.deployment_group&.name + header_params["deployment_group.name"] = request.deployment_group.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_deployment_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :update_deployment_group, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} + # + # @overload delete_deployment_group(request, options = nil) + # Pass arguments to `delete_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_deployment_group(name: nil, request_id: nil, force: nil, deployment_reference_policy: nil) + # Pass arguments to `delete_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of DeploymentGroup in the format + # projects/\\{project_id}/locations/\\{location_id}/deploymentGroups/\\{deploymentGroup} + # @param request_id [::String] + # 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). + # @param force [::Boolean] + # Optional. If set to true, any revisions for this deployment group will also + # be deleted. (Otherwise, the request will only work if the deployment group + # has no revisions.) + # @param deployment_reference_policy [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest::DeploymentReferencePolicy] + # Optional. Policy on how to handle referenced deployments when deleting the + # DeploymentGroup. + # If unspecified, the default behavior is to fail the deletion if any + # deployments currently referenced in the `deployment_units` of the + # DeploymentGroup or in the latest revision are not deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new + # + # # Call the delete_deployment_group method. + # result = client.delete_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_deployment_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :delete_deployment_group, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DeploymentGroups for a given project and location. + # + # @overload list_deployment_groups(request, options = nil) + # Pass arguments to `list_deployment_groups` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_deployment_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of deployment groups. + # Format: 'projects/\\{project_id}/locations/\\{location}'. + # @param page_size [::Integer] + # Optional. When requesting a page of resources, 'page_size' specifies number + # of resources to return. If unspecified, at most 500 will be returned. The + # maximum value is 1000. + # @param page_token [::String] + # Optional. Token returned by previous call to 'ListDeploymentGroups' which + # specifies the position in the list from where to continue listing the + # deployment groups. + # @param filter [::String] + # Optional. Lists the DeploymentGroups that match the filter expression. A + # filter expression filters the deployment groups listed in the response. The + # expression must be of the form '\\{field} \\{operator} \\{value}' where + # operators: '<', '>', + # '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + # operator which is roughly synonymous with equality). \\{field} can refer to a + # proto or JSON field, or a synthetic field. Field names can be camelCase or + # snake_case. + # + # Examples: + # - Filter by name: + # name = "projects/foo/locations/us-central1/deploymentGroups/bar" + # + # - Filter by labels: + # - Resources that have a key called 'foo' + # labels.foo:* + # - Resources that have a key called 'foo' whose value is 'bar' + # labels.foo = bar + # + # - Filter by state: + # - DeploymentGroups in CREATING state. + # state=CREATING + # @param order_by [::String] + # Optional. Field to use to sort the list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new + # + # # Call the list_deployment_groups method. + # result = client.list_deployment_groups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::ConfigService::V1::DeploymentGroup. + # p item + # end + # + def list_deployment_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_deployment_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_deployment_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_deployment_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :list_deployment_groups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @config_stub, :list_deployment_groups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Provisions a deployment group. + # + # NOTE: As a first step of this operation, Infra Manager will + # automatically delete any Deployments that were part of the + # *last successful* + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision} + # but are *no longer* included in the *current* + # {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} definition (e.g., + # following an `UpdateDeploymentGroup` call), along with their actuated + # resources. + # + # @overload provision_deployment_group(request, options = nil) + # Pass arguments to `provision_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload provision_deployment_group(name: nil, deployment_specs: nil) + # Pass arguments to `provision_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group to provision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @param deployment_specs [::Hash{::String => ::Google::Cloud::ConfigService::V1::DeploymentSpec, ::Hash}] + # Optional. The deployment specs of the deployment units to be created within + # the same project and location of the deployment group. The key is the unit + # ID, and the value is the `DeploymentSpec`. Provisioning will fail if a + # `deployment_spec` has a `deployment_id` that matches an existing deployment + # in the same project and location. If an existing deployment was part of the + # last successful revision but is no longer in the current DeploymentGroup's + # `deployment_units`, it will be recreated if included in `deployment_specs`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new + # + # # Call the provision_deployment_group method. + # result = client.provision_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def provision_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.provision_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.provision_deployment_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.provision_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :provision_deployment_group, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprovisions a deployment group. + # + # NOTE: As a first step of this operation, Infra Manager will + # automatically delete any Deployments that were part of the + # *last successful* + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision} + # but are *no longer* included in the *current* + # {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} definition (e.g., + # following an `UpdateDeploymentGroup` call), along with their actuated + # resources. + # + # @overload deprovision_deployment_group(request, options = nil) + # Pass arguments to `deprovision_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload deprovision_deployment_group(name: nil, force: nil, delete_policy: nil) + # Pass arguments to `deprovision_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group to deprovision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @param force [::Boolean] + # Optional. If set to true, this option is propagated to the deletion of each + # deployment in the group. This corresponds to the 'force' field + # in DeleteDeploymentRequest. + # @param delete_policy [::Google::Cloud::ConfigService::V1::DeleteDeploymentRequest::DeletePolicy] + # Optional. Policy on how resources within each deployment should be handled + # during deletion. This policy is applied globally to the deletion of all + # deployments in this group. This corresponds to the 'delete_policy' field + # in DeleteDeploymentRequest. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new + # + # # Call the deprovision_deployment_group method. + # result = client.deprovision_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def deprovision_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.deprovision_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.deprovision_deployment_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.deprovision_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :deprovision_deployment_group, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details about a + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision}. + # + # @overload get_deployment_group_revision(request, options = nil) + # Pass arguments to `get_deployment_group_revision` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_deployment_group_revision(name: nil) + # Pass arguments to `get_deployment_group_revision` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group revision to retrieve. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}/revisions/\\{revision}'. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::ConfigService::V1::DeploymentGroupRevision] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroupRevision] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new + # + # # Call the get_deployment_group_revision method. + # result = client.get_deployment_group_revision request + # + # # The returned object is of type Google::Cloud::ConfigService::V1::DeploymentGroupRevision. + # p result + # + def get_deployment_group_revision request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_deployment_group_revision.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_deployment_group_revision.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_deployment_group_revision.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :get_deployment_group_revision, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision}s + # in a given {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup}. + # + # @overload list_deployment_group_revisions(request, options = nil) + # Pass arguments to `list_deployment_group_revisions` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_deployment_group_revisions(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_deployment_group_revisions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of deployment group + # revisions. Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @param page_size [::Integer] + # Optional. When requesting a page of resources, 'page_size' specifies number + # of resources to return. If unspecified, a sensible default will be used by + # the server. The maximum value is 1000; values above 1000 will be coerced to + # 1000. + # @param page_token [::String] + # Optional. Token returned by previous call to 'ListDeploymentGroupRevisions' + # which specifies the position in the list from where to continue listing the + # deployment group revisions. All other parameters provided to + # `ListDeploymentGroupRevisions` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroupRevision>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroupRevision>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new + # + # # Call the list_deployment_group_revisions method. + # result = client.list_deployment_group_revisions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision. + # p item + # end + # + def list_deployment_group_revisions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_deployment_group_revisions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_deployment_group_revisions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_deployment_group_revisions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.call_rpc :list_deployment_group_revisions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @config_stub, :list_deployment_group_revisions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the Config API. # @@ -3489,6 +4476,51 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :update_auto_migration_config + ## + # RPC-specific configuration for `get_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :get_deployment_group + ## + # RPC-specific configuration for `create_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :create_deployment_group + ## + # RPC-specific configuration for `update_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :update_deployment_group + ## + # RPC-specific configuration for `delete_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_deployment_group + ## + # RPC-specific configuration for `list_deployment_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_deployment_groups + ## + # RPC-specific configuration for `provision_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :provision_deployment_group + ## + # RPC-specific configuration for `deprovision_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :deprovision_deployment_group + ## + # RPC-specific configuration for `get_deployment_group_revision` + # @return [::Gapic::Config::Method] + # + attr_reader :get_deployment_group_revision + ## + # RPC-specific configuration for `list_deployment_group_revisions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_deployment_group_revisions # @private def initialize parent_rpcs = nil @@ -3550,6 +4582,24 @@ def initialize parent_rpcs = nil @get_auto_migration_config = ::Gapic::Config::Method.new get_auto_migration_config_config update_auto_migration_config_config = parent_rpcs.update_auto_migration_config if parent_rpcs.respond_to? :update_auto_migration_config @update_auto_migration_config = ::Gapic::Config::Method.new update_auto_migration_config_config + get_deployment_group_config = parent_rpcs.get_deployment_group if parent_rpcs.respond_to? :get_deployment_group + @get_deployment_group = ::Gapic::Config::Method.new get_deployment_group_config + create_deployment_group_config = parent_rpcs.create_deployment_group if parent_rpcs.respond_to? :create_deployment_group + @create_deployment_group = ::Gapic::Config::Method.new create_deployment_group_config + update_deployment_group_config = parent_rpcs.update_deployment_group if parent_rpcs.respond_to? :update_deployment_group + @update_deployment_group = ::Gapic::Config::Method.new update_deployment_group_config + delete_deployment_group_config = parent_rpcs.delete_deployment_group if parent_rpcs.respond_to? :delete_deployment_group + @delete_deployment_group = ::Gapic::Config::Method.new delete_deployment_group_config + list_deployment_groups_config = parent_rpcs.list_deployment_groups if parent_rpcs.respond_to? :list_deployment_groups + @list_deployment_groups = ::Gapic::Config::Method.new list_deployment_groups_config + provision_deployment_group_config = parent_rpcs.provision_deployment_group if parent_rpcs.respond_to? :provision_deployment_group + @provision_deployment_group = ::Gapic::Config::Method.new provision_deployment_group_config + deprovision_deployment_group_config = parent_rpcs.deprovision_deployment_group if parent_rpcs.respond_to? :deprovision_deployment_group + @deprovision_deployment_group = ::Gapic::Config::Method.new deprovision_deployment_group_config + get_deployment_group_revision_config = parent_rpcs.get_deployment_group_revision if parent_rpcs.respond_to? :get_deployment_group_revision + @get_deployment_group_revision = ::Gapic::Config::Method.new get_deployment_group_revision_config + list_deployment_group_revisions_config = parent_rpcs.list_deployment_group_revisions if parent_rpcs.respond_to? :list_deployment_group_revisions + @list_deployment_group_revisions = ::Gapic::Config::Method.new list_deployment_group_revisions_config yield self if block_given? end diff --git a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/paths.rb b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/paths.rb index 9ec9cfa37b88..d242283374ea 100644 --- a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/paths.rb +++ b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/paths.rb @@ -60,6 +60,46 @@ def deployment_path project:, location:, deployment: "projects/#{project}/locations/#{location}/deployments/#{deployment}" end + ## + # Create a fully-qualified DeploymentGroup resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/deploymentGroups/{deployment_group}` + # + # @param project [String] + # @param location [String] + # @param deployment_group [String] + # + # @return [::String] + def deployment_group_path project:, location:, deployment_group: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/deploymentGroups/#{deployment_group}" + end + + ## + # Create a fully-qualified DeploymentGroupRevision resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}` + # + # @param project [String] + # @param location [String] + # @param deployment_group [String] + # @param revision [String] + # + # @return [::String] + def deployment_group_revision_path project:, location:, deployment_group:, revision: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "deployment_group cannot contain /" if deployment_group.to_s.include? "/" + + "projects/#{project}/locations/#{location}/deploymentGroups/#{deployment_group}/revisions/#{revision}" + end + ## # Create a fully-qualified Location resource string. # diff --git a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/client.rb b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/client.rb index 3ca44f675e84..2f730c3aa6a7 100644 --- a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/client.rb +++ b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/client.rb @@ -2953,6 +2953,930 @@ def update_auto_migration_config request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Get a DeploymentGroup for a given project and location. + # + # @overload get_deployment_group(request, options = nil) + # Pass arguments to `get_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_deployment_group(name: nil) + # Pass arguments to `get_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group to retrieve. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new + # + # # Call the get_deployment_group method. + # result = client.get_deployment_group request + # + # # The returned object is of type Google::Cloud::ConfigService::V1::DeploymentGroup. + # p result + # + def get_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_deployment_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.get_deployment_group request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} + # The newly created DeploymentGroup will be in the `CREATING` state + # and can be retrieved via Get and List calls. + # + # @overload create_deployment_group(request, options = nil) + # Pass arguments to `create_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_deployment_group(parent: nil, deployment_group_id: nil, deployment_group: nil, request_id: nil) + # Pass arguments to `create_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent in whose context the Deployment Group is created. The + # parent value is in the format: 'projects/\\{project_id}/locations/\\{location}' + # @param deployment_group_id [::String] + # Required. The deployment group ID. + # @param deployment_group [::Google::Cloud::ConfigService::V1::DeploymentGroup, ::Hash] + # Required. [Deployment Group][] resource to create + # @param request_id [::String] + # 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new + # + # # Call the create_deployment_group method. + # result = client.create_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_deployment_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.create_deployment_group request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} + # + # @overload update_deployment_group(request, options = nil) + # Pass arguments to `update_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_deployment_group(update_mask: nil, deployment_group: nil, request_id: nil) + # Pass arguments to `update_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Field mask used to specify the fields to be overwritten in the + # Deployment Group 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. + # @param deployment_group [::Google::Cloud::ConfigService::V1::DeploymentGroup, ::Hash] + # Required. {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} to + # update. + # + # The deployment group's `name` field is used to identify the resource to be + # updated. Format: + # `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}` + # @param request_id [::String] + # 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new + # + # # Call the update_deployment_group method. + # result = client.update_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_deployment_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.update_deployment_group request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} + # + # @overload delete_deployment_group(request, options = nil) + # Pass arguments to `delete_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_deployment_group(name: nil, request_id: nil, force: nil, deployment_reference_policy: nil) + # Pass arguments to `delete_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of DeploymentGroup in the format + # projects/\\{project_id}/locations/\\{location_id}/deploymentGroups/\\{deploymentGroup} + # @param request_id [::String] + # 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). + # @param force [::Boolean] + # Optional. If set to true, any revisions for this deployment group will also + # be deleted. (Otherwise, the request will only work if the deployment group + # has no revisions.) + # @param deployment_reference_policy [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest::DeploymentReferencePolicy] + # Optional. Policy on how to handle referenced deployments when deleting the + # DeploymentGroup. + # If unspecified, the default behavior is to fail the deletion if any + # deployments currently referenced in the `deployment_units` of the + # DeploymentGroup or in the latest revision are not deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new + # + # # Call the delete_deployment_group method. + # result = client.delete_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_deployment_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.delete_deployment_group request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DeploymentGroups for a given project and location. + # + # @overload list_deployment_groups(request, options = nil) + # Pass arguments to `list_deployment_groups` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_deployment_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of deployment groups. + # Format: 'projects/\\{project_id}/locations/\\{location}'. + # @param page_size [::Integer] + # Optional. When requesting a page of resources, 'page_size' specifies number + # of resources to return. If unspecified, at most 500 will be returned. The + # maximum value is 1000. + # @param page_token [::String] + # Optional. Token returned by previous call to 'ListDeploymentGroups' which + # specifies the position in the list from where to continue listing the + # deployment groups. + # @param filter [::String] + # Optional. Lists the DeploymentGroups that match the filter expression. A + # filter expression filters the deployment groups listed in the response. The + # expression must be of the form '\\{field} \\{operator} \\{value}' where + # operators: '<', '>', + # '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + # operator which is roughly synonymous with equality). \\{field} can refer to a + # proto or JSON field, or a synthetic field. Field names can be camelCase or + # snake_case. + # + # Examples: + # - Filter by name: + # name = "projects/foo/locations/us-central1/deploymentGroups/bar" + # + # - Filter by labels: + # - Resources that have a key called 'foo' + # labels.foo:* + # - Resources that have a key called 'foo' whose value is 'bar' + # labels.foo = bar + # + # - Filter by state: + # - DeploymentGroups in CREATING state. + # state=CREATING + # @param order_by [::String] + # Optional. Field to use to sort the list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroup>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroup>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new + # + # # Call the list_deployment_groups method. + # result = client.list_deployment_groups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::ConfigService::V1::DeploymentGroup. + # p item + # end + # + def list_deployment_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_deployment_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_deployment_groups.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_deployment_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.list_deployment_groups request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @config_stub, :list_deployment_groups, "deployment_groups", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Provisions a deployment group. + # + # NOTE: As a first step of this operation, Infra Manager will + # automatically delete any Deployments that were part of the + # *last successful* + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision} + # but are *no longer* included in the *current* + # {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} definition (e.g., + # following an `UpdateDeploymentGroup` call), along with their actuated + # resources. + # + # @overload provision_deployment_group(request, options = nil) + # Pass arguments to `provision_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload provision_deployment_group(name: nil, deployment_specs: nil) + # Pass arguments to `provision_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group to provision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @param deployment_specs [::Hash{::String => ::Google::Cloud::ConfigService::V1::DeploymentSpec, ::Hash}] + # Optional. The deployment specs of the deployment units to be created within + # the same project and location of the deployment group. The key is the unit + # ID, and the value is the `DeploymentSpec`. Provisioning will fail if a + # `deployment_spec` has a `deployment_id` that matches an existing deployment + # in the same project and location. If an existing deployment was part of the + # last successful revision but is no longer in the current DeploymentGroup's + # `deployment_units`, it will be recreated if included in `deployment_specs`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new + # + # # Call the provision_deployment_group method. + # result = client.provision_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def provision_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.provision_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.provision_deployment_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.provision_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.provision_deployment_group request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprovisions a deployment group. + # + # NOTE: As a first step of this operation, Infra Manager will + # automatically delete any Deployments that were part of the + # *last successful* + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision} + # but are *no longer* included in the *current* + # {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} definition (e.g., + # following an `UpdateDeploymentGroup` call), along with their actuated + # resources. + # + # @overload deprovision_deployment_group(request, options = nil) + # Pass arguments to `deprovision_deployment_group` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload deprovision_deployment_group(name: nil, force: nil, delete_policy: nil) + # Pass arguments to `deprovision_deployment_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group to deprovision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @param force [::Boolean] + # Optional. If set to true, this option is propagated to the deletion of each + # deployment in the group. This corresponds to the 'force' field + # in DeleteDeploymentRequest. + # @param delete_policy [::Google::Cloud::ConfigService::V1::DeleteDeploymentRequest::DeletePolicy] + # Optional. Policy on how resources within each deployment should be handled + # during deletion. This policy is applied globally to the deletion of all + # deployments in this group. This corresponds to the 'delete_policy' field + # in DeleteDeploymentRequest. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new + # + # # Call the deprovision_deployment_group method. + # result = client.deprovision_deployment_group request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def deprovision_deployment_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.deprovision_deployment_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.deprovision_deployment_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.deprovision_deployment_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.deprovision_deployment_group request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details about a + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision}. + # + # @overload get_deployment_group_revision(request, options = nil) + # Pass arguments to `get_deployment_group_revision` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_deployment_group_revision(name: nil) + # Pass arguments to `get_deployment_group_revision` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the deployment group revision to retrieve. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}/revisions/\\{revision}'. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::ConfigService::V1::DeploymentGroupRevision] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroupRevision] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new + # + # # Call the get_deployment_group_revision method. + # result = client.get_deployment_group_revision request + # + # # The returned object is of type Google::Cloud::ConfigService::V1::DeploymentGroupRevision. + # p result + # + def get_deployment_group_revision request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_deployment_group_revision.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_deployment_group_revision.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_deployment_group_revision.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.get_deployment_group_revision request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists + # {::Google::Cloud::ConfigService::V1::DeploymentGroupRevision DeploymentGroupRevision}s + # in a given {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup}. + # + # @overload list_deployment_group_revisions(request, options = nil) + # Pass arguments to `list_deployment_group_revisions` via a request object, either of type + # {::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_deployment_group_revisions(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_deployment_group_revisions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of deployment group + # revisions. Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @param page_size [::Integer] + # Optional. When requesting a page of resources, 'page_size' specifies number + # of resources to return. If unspecified, a sensible default will be used by + # the server. The maximum value is 1000; values above 1000 will be coerced to + # 1000. + # @param page_token [::String] + # Optional. Token returned by previous call to 'ListDeploymentGroupRevisions' + # which specifies the position in the list from where to continue listing the + # deployment group revisions. All other parameters provided to + # `ListDeploymentGroupRevisions` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroupRevision>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ConfigService::V1::DeploymentGroupRevision>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/config_service/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new + # + # # Call the list_deployment_group_revisions method. + # result = client.list_deployment_group_revisions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision. + # p item + # end + # + def list_deployment_group_revisions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_deployment_group_revisions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::ConfigService::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_deployment_group_revisions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_deployment_group_revisions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @config_stub.list_deployment_group_revisions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @config_stub, :list_deployment_group_revisions, "deployment_group_revisions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the Config REST API. # @@ -3251,6 +4175,51 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :update_auto_migration_config + ## + # RPC-specific configuration for `get_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :get_deployment_group + ## + # RPC-specific configuration for `create_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :create_deployment_group + ## + # RPC-specific configuration for `update_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :update_deployment_group + ## + # RPC-specific configuration for `delete_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_deployment_group + ## + # RPC-specific configuration for `list_deployment_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_deployment_groups + ## + # RPC-specific configuration for `provision_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :provision_deployment_group + ## + # RPC-specific configuration for `deprovision_deployment_group` + # @return [::Gapic::Config::Method] + # + attr_reader :deprovision_deployment_group + ## + # RPC-specific configuration for `get_deployment_group_revision` + # @return [::Gapic::Config::Method] + # + attr_reader :get_deployment_group_revision + ## + # RPC-specific configuration for `list_deployment_group_revisions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_deployment_group_revisions # @private def initialize parent_rpcs = nil @@ -3312,6 +4281,24 @@ def initialize parent_rpcs = nil @get_auto_migration_config = ::Gapic::Config::Method.new get_auto_migration_config_config update_auto_migration_config_config = parent_rpcs.update_auto_migration_config if parent_rpcs.respond_to? :update_auto_migration_config @update_auto_migration_config = ::Gapic::Config::Method.new update_auto_migration_config_config + get_deployment_group_config = parent_rpcs.get_deployment_group if parent_rpcs.respond_to? :get_deployment_group + @get_deployment_group = ::Gapic::Config::Method.new get_deployment_group_config + create_deployment_group_config = parent_rpcs.create_deployment_group if parent_rpcs.respond_to? :create_deployment_group + @create_deployment_group = ::Gapic::Config::Method.new create_deployment_group_config + update_deployment_group_config = parent_rpcs.update_deployment_group if parent_rpcs.respond_to? :update_deployment_group + @update_deployment_group = ::Gapic::Config::Method.new update_deployment_group_config + delete_deployment_group_config = parent_rpcs.delete_deployment_group if parent_rpcs.respond_to? :delete_deployment_group + @delete_deployment_group = ::Gapic::Config::Method.new delete_deployment_group_config + list_deployment_groups_config = parent_rpcs.list_deployment_groups if parent_rpcs.respond_to? :list_deployment_groups + @list_deployment_groups = ::Gapic::Config::Method.new list_deployment_groups_config + provision_deployment_group_config = parent_rpcs.provision_deployment_group if parent_rpcs.respond_to? :provision_deployment_group + @provision_deployment_group = ::Gapic::Config::Method.new provision_deployment_group_config + deprovision_deployment_group_config = parent_rpcs.deprovision_deployment_group if parent_rpcs.respond_to? :deprovision_deployment_group + @deprovision_deployment_group = ::Gapic::Config::Method.new deprovision_deployment_group_config + get_deployment_group_revision_config = parent_rpcs.get_deployment_group_revision if parent_rpcs.respond_to? :get_deployment_group_revision + @get_deployment_group_revision = ::Gapic::Config::Method.new get_deployment_group_revision_config + list_deployment_group_revisions_config = parent_rpcs.list_deployment_group_revisions if parent_rpcs.respond_to? :list_deployment_group_revisions + @list_deployment_group_revisions = ::Gapic::Config::Method.new list_deployment_group_revisions_config yield self if block_given? end diff --git a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/service_stub.rb b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/service_stub.rb index 91542b09cd11..f939d346e22e 100644 --- a/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/service_stub.rb +++ b/google-cloud-config_service-v1/lib/google/cloud/config_service/v1/config/rest/service_stub.rb @@ -1233,6 +1233,366 @@ def update_auto_migration_config request_pb, options = nil end end + ## + # Baseline implementation for the get_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # A result object deserialized from the server's reply + def get_deployment_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_deployment_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_deployment_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::ConfigService::V1::DeploymentGroup.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_deployment_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_deployment_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_deployment_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def update_deployment_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_deployment_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_deployment_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_deployment_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_deployment_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_deployment_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_deployment_groups REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse] + # A result object deserialized from the server's reply + def list_deployment_groups request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_deployment_groups_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_deployment_groups", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the provision_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def provision_deployment_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_provision_deployment_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "provision_deployment_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the deprovision_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def deprovision_deployment_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_deprovision_deployment_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "deprovision_deployment_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_deployment_group_revision REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::ConfigService::V1::DeploymentGroupRevision] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroupRevision] + # A result object deserialized from the server's reply + def get_deployment_group_revision request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_deployment_group_revision_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_deployment_group_revision", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_deployment_group_revisions REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse] + # A result object deserialized from the server's reply + def list_deployment_group_revisions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_deployment_group_revisions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_deployment_group_revisions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -1852,6 +2212,199 @@ def self.transcode_update_auto_migration_config_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the get_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_deployment_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_deployment_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/deploymentGroups", + body: "deployment_group", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_deployment_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{deployment_group.name}", + body: "deployment_group", + matches: [ + ["deployment_group.name", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_deployment_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_deployment_groups REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_deployment_groups_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/deploymentGroups", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the provision_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_provision_deployment_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:provision", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the deprovision_deployment_group REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_deprovision_deployment_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deprovision", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_deployment_group_revision REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_deployment_group_revision_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/revisions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_deployment_group_revisions REST call + # + # @param request_pb [::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_deployment_group_revisions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/revisions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/deploymentGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-config_service-v1/proto_docs/google/api/client.rb b/google-cloud-config_service-v1/proto_docs/google/api/client.rb index 97193034f37c..f20af9485bd9 100644 --- a/google-cloud-config_service-v1/proto_docs/google/api/client.rb +++ b/google-cloud-config_service-v1/proto_docs/google/api/client.rb @@ -31,6 +31,8 @@ module Api # @!attribute [rw] selective_gapic_generation # @return [::Google::Api::SelectiveGapicGeneration] # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. class CommonLanguageSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -441,6 +443,8 @@ class LongRunning # This message is used to configure the generation of a subset of the RPCs in # a service for client libraries. + # + # Note: This feature should not be used in most cases. # @!attribute [rw] methods # @return [::Array<::String>] # An allowlist of the fully qualified names of RPCs that should be included diff --git a/google-cloud-config_service-v1/proto_docs/google/cloud/config/v1/config.rb b/google-cloud-config_service-v1/proto_docs/google/cloud/config/v1/config.rb index c16472354889..0baaaa6e3753 100644 --- a/google-cloud-config_service-v1/proto_docs/google/cloud/config/v1/config.rb +++ b/google-cloud-config_service-v1/proto_docs/google/cloud/config/v1/config.rb @@ -255,6 +255,10 @@ module LockState # @!attribute [rw] input_values # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::TerraformVariable}] # Optional. Input variable values for the Terraform blueprint. + # @!attribute [rw] external_values + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::ExternalValueSource}] + # Optional. Map of input variable names in this blueprint to configurations + # for importing values from external sources. class TerraformBlueprint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -267,6 +271,15 @@ class InputValuesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::ConfigService::V1::ExternalValueSource] + class ExternalValuesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end # A Terraform input variable. @@ -278,6 +291,31 @@ class TerraformVariable extend ::Google::Protobuf::MessageExts::ClassMethods end + # Configuration for a source of an external value. + # @!attribute [rw] deployment_source + # @return [::Google::Cloud::ConfigService::V1::DeploymentSource] + # A source from a Deployment. + class ExternalValueSource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for a value sourced from a Deployment. + # @!attribute [rw] deployment + # @return [::String] + # Required. The resource name of the source Deployment to import the output + # from. Format: + # projects/\\{project}/locations/\\{location}/deployments/\\{deployment} The source + # deployment must be in the same project and location. + # @!attribute [rw] output_name + # @return [::String] + # Required. The name of the output variable in the source deployment's latest + # successfully applied revision. + class DeploymentSource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Outputs and artifacts from applying a deployment. # @!attribute [rw] content # @return [::String] @@ -490,6 +528,134 @@ class CreateDeploymentRequest extend ::Google::Protobuf::MessageExts::ClassMethods end + # A request to create a deployment group + # @!attribute [rw] parent + # @return [::String] + # Required. The parent in whose context the Deployment Group is created. The + # parent value is in the format: 'projects/\\{project_id}/locations/\\{location}' + # @!attribute [rw] deployment_group_id + # @return [::String] + # Required. The deployment group ID. + # @!attribute [rw] deployment_group + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # Required. [Deployment Group][] resource to create + # @!attribute [rw] request_id + # @return [::String] + # 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). + class CreateDeploymentGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A request message for updating a deployment group + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Field mask used to specify the fields to be overwritten in the + # Deployment Group 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. + # @!attribute [rw] deployment_group + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # Required. {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} to + # update. + # + # The deployment group's `name` field is used to identify the resource to be + # updated. Format: + # `projects/{project}/locations/{location}/deploymentGroups/{deployment_group_id}` + # @!attribute [rw] request_id + # @return [::String] + # 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). + class UpdateDeploymentGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for Delete DeploymentGroup + # @!attribute [rw] name + # @return [::String] + # Required. The name of DeploymentGroup in the format + # projects/\\{project_id}/locations/\\{location_id}/deploymentGroups/\\{deploymentGroup} + # @!attribute [rw] request_id + # @return [::String] + # 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). + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, any revisions for this deployment group will also + # be deleted. (Otherwise, the request will only work if the deployment group + # has no revisions.) + # @!attribute [rw] deployment_reference_policy + # @return [::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest::DeploymentReferencePolicy] + # Optional. Policy on how to handle referenced deployments when deleting the + # DeploymentGroup. + # If unspecified, the default behavior is to fail the deletion if any + # deployments currently referenced in the `deployment_units` of the + # DeploymentGroup or in the latest revision are not deleted. + class DeleteDeploymentGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Policy on how to handle referenced deployments when deleting the + # DeploymentGroup. + module DeploymentReferencePolicy + # The default behavior. If unspecified, the system will act as if + # `FAIL_IF_ANY_REFERENCES_EXIST` is specified. + DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED = 0 + + # Fail the deletion if any deployments currently referenced in the + # `deployment_units` of the DeploymentGroup or in the latest revision + # are not deleted. + FAIL_IF_ANY_REFERENCES_EXIST = 1 + + # Fail the deletion only if any deployments currently referenced in the + # `deployment_units` of the DeploymentGroup are not deleted. + # The deletion will proceed even if the deployments in the latest revision + # of the DeploymentGroup are not deleted. + FAIL_IF_METADATA_REFERENCES_EXIST = 2 + + # Ignore any deployments currently referenced in the + # `deployment_units` of the DeploymentGroup or in the latest revision. + IGNORE_DEPLOYMENT_REFERENCES = 3 + end + end + # @!attribute [rw] update_mask # @return [::Google::Protobuf::FieldMask] # Optional. Field mask used to specify the fields to be overwritten in the @@ -576,12 +742,17 @@ module DeletePolicy # @return [::Google::Cloud::ConfigService::V1::DeploymentOperationMetadata] # Output only. Metadata about the deployment operation state. # - # Note: The following fields are mutually exclusive: `deployment_metadata`, `preview_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `deployment_metadata`, `preview_metadata`, `provision_deployment_group_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] preview_metadata # @return [::Google::Cloud::ConfigService::V1::PreviewOperationMetadata] # Output only. Metadata about the preview operation state. # - # Note: The following fields are mutually exclusive: `preview_metadata`, `deployment_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `preview_metadata`, `deployment_metadata`, `provision_deployment_group_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] provision_deployment_group_metadata + # @return [::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupOperationMetadata] + # Output only. Metadata about ProvisionDeploymentGroup operation state. + # + # Note: The following fields are mutually exclusive: `provision_deployment_group_metadata`, `deployment_metadata`, `preview_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] # Output only. Time when the operation was created. @@ -2009,6 +2180,510 @@ class UpdateAutoMigrationConfigRequest extend ::Google::Protobuf::MessageExts::ClassMethods end + # A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like + # structure. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the deployment group. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when the deployment group was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when the deployment group was last updated. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. User-defined metadata for the deployment group. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Arbitrary key-value metadata storage e.g. to help client tools + # identify deployment group during automation. See + # https://google.aip.dev/148#annotations for details on format and size + # limitations. + # @!attribute [r] state + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup::State] + # Output only. Current state of the deployment group. + # @!attribute [r] state_description + # @return [::String] + # Output only. Additional information regarding the current state. + # @!attribute [rw] deployment_units + # @return [::Array<::Google::Cloud::ConfigService::V1::DeploymentUnit>] + # The deployment units of the deployment group in a DAG like structure. + # When a deployment group is being provisioned, the deployment units are + # deployed in a DAG order. + # The provided units must be in a DAG order, otherwise an error will be + # returned. + # @!attribute [r] provisioning_state + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup::ProvisioningState] + # Output only. The provisioning state of the deployment group. + # @!attribute [r] provisioning_state_description + # @return [::String] + # Output only. Additional information regarding the current provisioning + # state. + # @!attribute [r] provisioning_error + # @return [::Google::Rpc::Status] + # Output only. The error status of the deployment group provisioning or + # deprovisioning. + class DeploymentGroup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of a deployment group. + module State + # The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0 + + # The deployment group is being created. + CREATING = 1 + + # The deployment group is healthy. + ACTIVE = 2 + + # The deployment group is being updated. + UPDATING = 3 + + # The deployment group is being deleted. + DELETING = 4 + + # The deployment group has encountered an unexpected error. + FAILED = 5 + + # The deployment group is no longer being actively reconciled. + # This may be the result of recovering the project after deletion. + SUSPENDED = 6 + + # The deployment group has been deleted. + DELETED = 7 + end + + # Possible provisioning states of a deployment group. + module ProvisioningState + # Unspecified provisioning state. + PROVISIONING_STATE_UNSPECIFIED = 0 + + # The deployment group is being provisioned. + PROVISIONING = 1 + + # The deployment group is provisioned. + PROVISIONED = 2 + + # The deployment group failed to be provisioned. + FAILED_TO_PROVISION = 3 + + # The deployment group is being deprovisioned. + DEPROVISIONING = 4 + + # The deployment group is deprovisioned. + DEPROVISIONED = 5 + + # The deployment group failed to be deprovisioned. + FAILED_TO_DEPROVISION = 6 + end + end + + # A DeploymentUnit is a container for a deployment and its dependencies. + # An existing deployment can be provided directly in the unit, or the unit + # can act as a placeholder to define the DAG, with the deployment specs + # supplied in a `provisionDeploymentRequest`. + # @!attribute [rw] id + # @return [::String] + # The id of the deployment unit. Must be unique within the deployment group. + # @!attribute [rw] deployment + # @return [::String] + # Optional. The name of the deployment to be provisioned. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deployments/\\{deployment}'. + # @!attribute [rw] dependencies + # @return [::Array<::String>] + # Required. The IDs of the deployment units within the deployment group that + # this unit depends on. + class DeploymentUnit + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Spec for a deployment to be created. + # @!attribute [rw] deployment_id + # @return [::String] + # Required. The id of the deployment to be created which doesn't include the + # project id and location. + # @!attribute [rw] deployment + # @return [::Google::Cloud::ConfigService::V1::Deployment] + # Required. The deployment to be created. + class DeploymentSpec + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for the GetDeploymentGroup method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the deployment group to retrieve. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + class GetDeploymentGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for the ListDeploymentGroups method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of deployment groups. + # Format: 'projects/\\{project_id}/locations/\\{location}'. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. When requesting a page of resources, 'page_size' specifies number + # of resources to return. If unspecified, at most 500 will be returned. The + # maximum value is 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Token returned by previous call to 'ListDeploymentGroups' which + # specifies the position in the list from where to continue listing the + # deployment groups. + # @!attribute [rw] filter + # @return [::String] + # Optional. Lists the DeploymentGroups that match the filter expression. A + # filter expression filters the deployment groups listed in the response. The + # expression must be of the form '\\{field} \\{operator} \\{value}' where + # operators: '<', '>', + # '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS + # operator which is roughly synonymous with equality). \\{field} can refer to a + # proto or JSON field, or a synthetic field. Field names can be camelCase or + # snake_case. + # + # Examples: + # - Filter by name: + # name = "projects/foo/locations/us-central1/deploymentGroups/bar" + # + # - Filter by labels: + # - Resources that have a key called 'foo' + # labels.foo:* + # - Resources that have a key called 'foo' whose value is 'bar' + # labels.foo = bar + # + # - Filter by state: + # - DeploymentGroups in CREATING state. + # state=CREATING + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to use to sort the list. + class ListDeploymentGroupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for the ListDeploymentGroups method. + # @!attribute [rw] deployment_groups + # @return [::Array<::Google::Cloud::ConfigService::V1::DeploymentGroup>] + # The deployment groups from the specified collection. + # @!attribute [rw] next_page_token + # @return [::String] + # Token to be supplied to the next ListDeploymentGroups request via + # `page_token` to obtain the next set of results. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListDeploymentGroupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for the ProvisionDeploymentGroup method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the deployment group to provision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @!attribute [rw] deployment_specs + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::DeploymentSpec}] + # Optional. The deployment specs of the deployment units to be created within + # the same project and location of the deployment group. The key is the unit + # ID, and the value is the `DeploymentSpec`. Provisioning will fail if a + # `deployment_spec` has a `deployment_id` that matches an existing deployment + # in the same project and location. If an existing deployment was part of the + # last successful revision but is no longer in the current DeploymentGroup's + # `deployment_units`, it will be recreated if included in `deployment_specs`. + class ProvisionDeploymentGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::ConfigService::V1::DeploymentSpec] + class DeploymentSpecsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The request message for the DeprovisionDeploymentGroup method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the deployment group to deprovision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, this option is propagated to the deletion of each + # deployment in the group. This corresponds to the 'force' field + # in DeleteDeploymentRequest. + # @!attribute [rw] delete_policy + # @return [::Google::Cloud::ConfigService::V1::DeleteDeploymentRequest::DeletePolicy] + # Optional. Policy on how resources within each deployment should be handled + # during deletion. This policy is applied globally to the deletion of all + # deployments in this group. This corresponds to the 'delete_policy' field + # in DeleteDeploymentRequest. + class DeprovisionDeploymentGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The summary of the deployment operation. + # @!attribute [r] deployment_step + # @return [::Google::Cloud::ConfigService::V1::DeploymentOperationMetadata::DeploymentStep] + # Output only. The current step the deployment operation is running. + # @!attribute [r] build + # @return [::String] + # Output only. Cloud Build instance UUID associated with this operation. + # @!attribute [r] logs + # @return [::String] + # Output only. Location of Deployment operations logs in + # `gs://{bucket}/{object}` format. + # @!attribute [r] content + # @return [::String] + # Output only. Location of Deployment operations content in + # `gs://{bucket}/{object}` format. + # @!attribute [r] artifacts + # @return [::String] + # Output only. Location of Deployment operations artifacts in + # `gs://{bucket}/{object}` format. + class DeploymentOperationSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The progress of a deployment unit provisioning or deprovisioning. + # @!attribute [r] unit_id + # @return [::String] + # Output only. The unit id of the deployment unit to be provisioned. + # @!attribute [r] deployment + # @return [::String] + # Output only. The name of the deployment to be provisioned. + # Format: + # 'projects/\\{project}/locations/\\{location}/deployments/\\{deployment}'. + # @!attribute [r] state + # @return [::Google::Cloud::ConfigService::V1::DeploymentUnitProgress::State] + # Output only. The current step of the deployment unit provisioning. + # @!attribute [r] state_description + # @return [::String] + # Output only. Additional information regarding the current state. + # @!attribute [r] deployment_operation_summary + # @return [::Google::Cloud::ConfigService::V1::DeploymentOperationSummary] + # Output only. The summary of the deployment operation. + # @!attribute [r] error + # @return [::Google::Rpc::Status] + # Output only. Holds the error status of the deployment unit provisioning. + # @!attribute [r] intent + # @return [::Google::Cloud::ConfigService::V1::DeploymentUnitProgress::Intent] + # Output only. The intent of the deployment unit. + class DeploymentUnitProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The possible steps a deployment unit provisioning may be running. + module State + # The default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The deployment unit is queued for deployment creation or update. + QUEUED = 1 + + # The underlying deployment of the unit is being created or updated. + APPLYING_DEPLOYMENT = 2 + + # The underlying deployment operation of the unit has succeeded. + SUCCEEDED = 4 + + # The underlying deployment operation of the unit has failed. + FAILED = 5 + + # The deployment unit was aborted, likely due to failures in other + # dependent deployment units. + ABORTED = 6 + + # The deployment unit was skipped because there were no changes to apply. + SKIPPED = 7 + + # The deployment is being deleted. + DELETING_DEPLOYMENT = 8 + + # The deployment is being previewed. + PREVIEWING_DEPLOYMENT = 9 + end + + # The possible intents of a deployment unit. + module Intent + # Unspecified intent. + INTENT_UNSPECIFIED = 0 + + # Create deployment in the unit from the deployment spec. + CREATE_DEPLOYMENT = 1 + + # Update deployment in the unit. + UPDATE_DEPLOYMENT = 2 + + # Delete deployment in the unit. + DELETE_DEPLOYMENT = 3 + + # Recreate deployment in the unit. + RECREATE_DEPLOYMENT = 4 + + # Delete deployment in latest successful revision while no longer + # referenced in any deployment unit in the current deployment group. + CLEAN_UP = 5 + + # Expected to be unchanged. + UNCHANGED = 6 + end + end + + # Operation metadata for `ProvisionDeploymentGroup` and + # `DeprovisionDeploymentGroup` long-running operations. + # @!attribute [r] step + # @return [::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupOperationMetadata::ProvisionDeploymentGroupStep] + # Output only. The current step of the deployment group operation. + # @!attribute [r] deployment_unit_progresses + # @return [::Array<::Google::Cloud::ConfigService::V1::DeploymentUnitProgress>] + # Output only. Progress information for each deployment unit within the + # operation. + class ProvisionDeploymentGroupOperationMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible steps during a deployment group provisioning or deprovisioning + # operation. + module ProvisionDeploymentGroupStep + # Unspecified step. + PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED = 0 + + # Validating the deployment group. + VALIDATING_DEPLOYMENT_GROUP = 1 + + # Locking the deployments to the deployment group for atomic actuation. + ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP = 2 + + # Provisioning the deployment units. + PROVISIONING_DEPLOYMENT_UNITS = 3 + + # Unlocking the deployments from the deployment group after actuation. + DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP = 4 + + # The operation has succeeded. + SUCCEEDED = 5 + + # The operation has failed. + FAILED = 6 + + # Deprovisioning the deployment units. + DEPROVISIONING_DEPLOYMENT_UNITS = 7 + end + end + + # A DeploymentGroupRevision represents a snapshot of a + # {::Google::Cloud::ConfigService::V1::DeploymentGroup DeploymentGroup} at a given point in + # time, created when a DeploymentGroup is provisioned or deprovisioned. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the deployment group revision. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}/revisions/\\{revision}'. + # @!attribute [r] snapshot + # @return [::Google::Cloud::ConfigService::V1::DeploymentGroup] + # Output only. The snapshot of the deployment group at this revision. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when the deployment group revision was created. + # @!attribute [r] alternative_ids + # @return [::Array<::String>] + # Output only. The alternative IDs of the deployment group revision. + class DeploymentGroupRevision + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for the GetDeploymentGroupRevision method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the deployment group revision to retrieve. + # Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}/revisions/\\{revision}'. + class GetDeploymentGroupRevisionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for the ListDeploymentGroupRevisions method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of deployment group + # revisions. Format: + # 'projects/\\{project_id}/locations/\\{location}/deploymentGroups/\\{deployment_group}'. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. When requesting a page of resources, 'page_size' specifies number + # of resources to return. If unspecified, a sensible default will be used by + # the server. The maximum value is 1000; values above 1000 will be coerced to + # 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Token returned by previous call to 'ListDeploymentGroupRevisions' + # which specifies the position in the list from where to continue listing the + # deployment group revisions. All other parameters provided to + # `ListDeploymentGroupRevisions` must match the call that provided the page + # token. + class ListDeploymentGroupRevisionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for the ListDeploymentGroupRevisions method. + # @!attribute [rw] deployment_group_revisions + # @return [::Array<::Google::Cloud::ConfigService::V1::DeploymentGroupRevision>] + # The deployment group revisions from the specified collection. + # @!attribute [rw] next_page_token + # @return [::String] + # Token to be supplied to the next ListDeploymentGroupRevisions request via + # `page_token` to obtain the next set of results. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Locations that could not be reached. + class ListDeploymentGroupRevisionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Enum values to control quota checks for resources in terraform # configuration files. module QuotaValidation diff --git a/google-cloud-config_service-v1/snippets/config/create_deployment_group.rb b/google-cloud-config_service-v1/snippets/config/create_deployment_group.rb new file mode 100644 index 000000000000..6e84a8289e6b --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/create_deployment_group.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_CreateDeploymentGroup_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the create_deployment_group call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#create_deployment_group. +# +def create_deployment_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new + + # Call the create_deployment_group method. + result = client.create_deployment_group request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END inframanager_v1_generated_Config_CreateDeploymentGroup_sync] diff --git a/google-cloud-config_service-v1/snippets/config/delete_deployment_group.rb b/google-cloud-config_service-v1/snippets/config/delete_deployment_group.rb new file mode 100644 index 000000000000..cf1dd64363bc --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/delete_deployment_group.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_DeleteDeploymentGroup_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the delete_deployment_group call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#delete_deployment_group. +# +def delete_deployment_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new + + # Call the delete_deployment_group method. + result = client.delete_deployment_group request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END inframanager_v1_generated_Config_DeleteDeploymentGroup_sync] diff --git a/google-cloud-config_service-v1/snippets/config/deprovision_deployment_group.rb b/google-cloud-config_service-v1/snippets/config/deprovision_deployment_group.rb new file mode 100644 index 000000000000..14250386a2d4 --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/deprovision_deployment_group.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_DeprovisionDeploymentGroup_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the deprovision_deployment_group call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#deprovision_deployment_group. +# +def deprovision_deployment_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new + + # Call the deprovision_deployment_group method. + result = client.deprovision_deployment_group request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END inframanager_v1_generated_Config_DeprovisionDeploymentGroup_sync] diff --git a/google-cloud-config_service-v1/snippets/config/get_deployment_group.rb b/google-cloud-config_service-v1/snippets/config/get_deployment_group.rb new file mode 100644 index 000000000000..34a8d2d567cf --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/get_deployment_group.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_GetDeploymentGroup_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the get_deployment_group call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#get_deployment_group. +# +def get_deployment_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new + + # Call the get_deployment_group method. + result = client.get_deployment_group request + + # The returned object is of type Google::Cloud::ConfigService::V1::DeploymentGroup. + p result +end +# [END inframanager_v1_generated_Config_GetDeploymentGroup_sync] diff --git a/google-cloud-config_service-v1/snippets/config/get_deployment_group_revision.rb b/google-cloud-config_service-v1/snippets/config/get_deployment_group_revision.rb new file mode 100644 index 000000000000..43b4bb6f8648 --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/get_deployment_group_revision.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_GetDeploymentGroupRevision_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the get_deployment_group_revision call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#get_deployment_group_revision. +# +def get_deployment_group_revision + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new + + # Call the get_deployment_group_revision method. + result = client.get_deployment_group_revision request + + # The returned object is of type Google::Cloud::ConfigService::V1::DeploymentGroupRevision. + p result +end +# [END inframanager_v1_generated_Config_GetDeploymentGroupRevision_sync] diff --git a/google-cloud-config_service-v1/snippets/config/list_deployment_group_revisions.rb b/google-cloud-config_service-v1/snippets/config/list_deployment_group_revisions.rb new file mode 100644 index 000000000000..50f5dcc36724 --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/list_deployment_group_revisions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_ListDeploymentGroupRevisions_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the list_deployment_group_revisions call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#list_deployment_group_revisions. +# +def list_deployment_group_revisions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new + + # Call the list_deployment_group_revisions method. + result = client.list_deployment_group_revisions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision. + p item + end +end +# [END inframanager_v1_generated_Config_ListDeploymentGroupRevisions_sync] diff --git a/google-cloud-config_service-v1/snippets/config/list_deployment_groups.rb b/google-cloud-config_service-v1/snippets/config/list_deployment_groups.rb new file mode 100644 index 000000000000..d982c47caea4 --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/list_deployment_groups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_ListDeploymentGroups_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the list_deployment_groups call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#list_deployment_groups. +# +def list_deployment_groups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new + + # Call the list_deployment_groups method. + result = client.list_deployment_groups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::ConfigService::V1::DeploymentGroup. + p item + end +end +# [END inframanager_v1_generated_Config_ListDeploymentGroups_sync] diff --git a/google-cloud-config_service-v1/snippets/config/provision_deployment_group.rb b/google-cloud-config_service-v1/snippets/config/provision_deployment_group.rb new file mode 100644 index 000000000000..e22959e13d9e --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/provision_deployment_group.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_ProvisionDeploymentGroup_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the provision_deployment_group call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#provision_deployment_group. +# +def provision_deployment_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new + + # Call the provision_deployment_group method. + result = client.provision_deployment_group request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END inframanager_v1_generated_Config_ProvisionDeploymentGroup_sync] diff --git a/google-cloud-config_service-v1/snippets/config/update_deployment_group.rb b/google-cloud-config_service-v1/snippets/config/update_deployment_group.rb new file mode 100644 index 000000000000..d55f905b2519 --- /dev/null +++ b/google-cloud-config_service-v1/snippets/config/update_deployment_group.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START inframanager_v1_generated_Config_UpdateDeploymentGroup_sync] +require "google/cloud/config_service/v1" + +## +# Snippet for the update_deployment_group call in the Config service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::ConfigService::V1::Config::Client#update_deployment_group. +# +def update_deployment_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::ConfigService::V1::Config::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new + + # Call the update_deployment_group method. + result = client.update_deployment_group request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END inframanager_v1_generated_Config_UpdateDeploymentGroup_sync] diff --git a/google-cloud-config_service-v1/snippets/snippet_metadata_google.cloud.config.v1.json b/google-cloud-config_service-v1/snippets/snippet_metadata_google.cloud.config.v1.json index 7fa32374998e..2e4b9889e385 100644 --- a/google-cloud-config_service-v1/snippets/snippet_metadata_google.cloud.config.v1.json +++ b/google-cloud-config_service-v1/snippets/snippet_metadata_google.cloud.config.v1.json @@ -1170,6 +1170,366 @@ "type": "FULL" } ] + }, + { + "region_tag": "inframanager_v1_generated_Config_GetDeploymentGroup_sync", + "title": "Snippet for the get_deployment_group call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#get_deployment_group.", + "file": "config/get_deployment_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_deployment_group", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#get_deployment_group", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::ConfigService::V1::DeploymentGroup", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "GetDeploymentGroup", + "full_name": "google.cloud.config.v1.Config.GetDeploymentGroup", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_CreateDeploymentGroup_sync", + "title": "Snippet for the create_deployment_group call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#create_deployment_group.", + "file": "config/create_deployment_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_deployment_group", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#create_deployment_group", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "CreateDeploymentGroup", + "full_name": "google.cloud.config.v1.Config.CreateDeploymentGroup", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_UpdateDeploymentGroup_sync", + "title": "Snippet for the update_deployment_group call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#update_deployment_group.", + "file": "config/update_deployment_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_deployment_group", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#update_deployment_group", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "UpdateDeploymentGroup", + "full_name": "google.cloud.config.v1.Config.UpdateDeploymentGroup", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_DeleteDeploymentGroup_sync", + "title": "Snippet for the delete_deployment_group call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#delete_deployment_group.", + "file": "config/delete_deployment_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_deployment_group", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#delete_deployment_group", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "DeleteDeploymentGroup", + "full_name": "google.cloud.config.v1.Config.DeleteDeploymentGroup", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_ListDeploymentGroups_sync", + "title": "Snippet for the list_deployment_groups call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#list_deployment_groups.", + "file": "config/list_deployment_groups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_deployment_groups", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#list_deployment_groups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "ListDeploymentGroups", + "full_name": "google.cloud.config.v1.Config.ListDeploymentGroups", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_ProvisionDeploymentGroup_sync", + "title": "Snippet for the provision_deployment_group call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#provision_deployment_group.", + "file": "config/provision_deployment_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "provision_deployment_group", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#provision_deployment_group", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "ProvisionDeploymentGroup", + "full_name": "google.cloud.config.v1.Config.ProvisionDeploymentGroup", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_DeprovisionDeploymentGroup_sync", + "title": "Snippet for the deprovision_deployment_group call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#deprovision_deployment_group.", + "file": "config/deprovision_deployment_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "deprovision_deployment_group", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#deprovision_deployment_group", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "DeprovisionDeploymentGroup", + "full_name": "google.cloud.config.v1.Config.DeprovisionDeploymentGroup", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_GetDeploymentGroupRevision_sync", + "title": "Snippet for the get_deployment_group_revision call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#get_deployment_group_revision.", + "file": "config/get_deployment_group_revision.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_deployment_group_revision", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#get_deployment_group_revision", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::ConfigService::V1::DeploymentGroupRevision", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "GetDeploymentGroupRevision", + "full_name": "google.cloud.config.v1.Config.GetDeploymentGroupRevision", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "inframanager_v1_generated_Config_ListDeploymentGroupRevisions_sync", + "title": "Snippet for the list_deployment_group_revisions call in the Config service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::ConfigService::V1::Config::Client#list_deployment_group_revisions.", + "file": "config/list_deployment_group_revisions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_deployment_group_revisions", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client#list_deployment_group_revisions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse", + "client": { + "short_name": "Config::Client", + "full_name": "::Google::Cloud::ConfigService::V1::Config::Client" + }, + "method": { + "short_name": "ListDeploymentGroupRevisions", + "full_name": "google.cloud.config.v1.Config.ListDeploymentGroupRevisions", + "service": { + "short_name": "Config", + "full_name": "google.cloud.config.v1.Config" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] } ] } \ No newline at end of file diff --git a/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_paths_test.rb b/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_paths_test.rb index abcdf1ac13e6..d43cdb185c33 100644 --- a/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_paths_test.rb +++ b/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_paths_test.rb @@ -65,6 +65,30 @@ def test_deployment_path end end + def test_deployment_group_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.deployment_group_path project: "value0", location: "value1", deployment_group: "value2" + assert_equal "projects/value0/locations/value1/deploymentGroups/value2", path + end + end + + def test_deployment_group_revision_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.deployment_group_revision_path project: "value0", location: "value1", deployment_group: "value2", revision: "value3" + assert_equal "projects/value0/locations/value1/deploymentGroups/value2/revisions/value3", path + end + end + def test_location_path grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure ::Gapic::ServiceStub.stub :new, DummyStub.new do diff --git a/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_rest_test.rb b/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_rest_test.rb index 73f103554e45..13eb92f9dfd8 100644 --- a/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_rest_test.rb +++ b/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_rest_test.rb @@ -1690,6 +1690,509 @@ def test_update_auto_migration_config end end + def test_get_deployment_group + # Create test objects. + client_result = ::Google::Cloud::ConfigService::V1::DeploymentGroup.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_deployment_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_get_deployment_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_deployment_group({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_deployment_group name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_deployment_group ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_deployment_group({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_deployment_group(::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_deployment_group_client_stub.call_count + end + end + end + + def test_create_deployment_group + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + deployment_group_id = "hello world" + deployment_group = {} + request_id = "hello world" + + create_deployment_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_create_deployment_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_deployment_group({ parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_deployment_group parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_deployment_group ::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new(parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_deployment_group({ parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_deployment_group(::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new(parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_deployment_group_client_stub.call_count + end + end + end + + def test_update_deployment_group + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + deployment_group = {} + request_id = "hello world" + + update_deployment_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_update_deployment_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_deployment_group({ update_mask: update_mask, deployment_group: deployment_group, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_deployment_group update_mask: update_mask, deployment_group: deployment_group, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_deployment_group ::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new(update_mask: update_mask, deployment_group: deployment_group, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_deployment_group({ update_mask: update_mask, deployment_group: deployment_group, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_deployment_group(::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new(update_mask: update_mask, deployment_group: deployment_group, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_deployment_group_client_stub.call_count + end + end + end + + def test_delete_deployment_group + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + force = true + deployment_reference_policy = :DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED + + delete_deployment_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_delete_deployment_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_deployment_group({ name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_deployment_group name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_deployment_group ::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new(name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_deployment_group({ name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_deployment_group(::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new(name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_deployment_group_client_stub.call_count + end + end + end + + def test_list_deployment_groups + # Create test objects. + client_result = ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_deployment_groups_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_list_deployment_groups_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_deployment_groups_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_deployment_groups({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_deployment_groups parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_deployment_groups ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_deployment_groups({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_deployment_groups(::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_deployment_groups_client_stub.call_count + end + end + end + + def test_provision_deployment_group + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + deployment_specs = {} + + provision_deployment_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_provision_deployment_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, provision_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.provision_deployment_group({ name: name, deployment_specs: deployment_specs }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.provision_deployment_group name: name, deployment_specs: deployment_specs do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.provision_deployment_group ::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new(name: name, deployment_specs: deployment_specs) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.provision_deployment_group({ name: name, deployment_specs: deployment_specs }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.provision_deployment_group(::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new(name: name, deployment_specs: deployment_specs), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, provision_deployment_group_client_stub.call_count + end + end + end + + def test_deprovision_deployment_group + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + delete_policy = :DELETE_POLICY_UNSPECIFIED + + deprovision_deployment_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_deprovision_deployment_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, deprovision_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.deprovision_deployment_group({ name: name, force: force, delete_policy: delete_policy }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.deprovision_deployment_group name: name, force: force, delete_policy: delete_policy do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.deprovision_deployment_group ::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new(name: name, force: force, delete_policy: delete_policy) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.deprovision_deployment_group({ name: name, force: force, delete_policy: delete_policy }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.deprovision_deployment_group(::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new(name: name, force: force, delete_policy: delete_policy), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, deprovision_deployment_group_client_stub.call_count + end + end + end + + def test_get_deployment_group_revision + # Create test objects. + client_result = ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_deployment_group_revision_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_get_deployment_group_revision_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_deployment_group_revision_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_deployment_group_revision({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_deployment_group_revision name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_deployment_group_revision ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_deployment_group_revision({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_deployment_group_revision(::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_deployment_group_revision_client_stub.call_count + end + end + end + + def test_list_deployment_group_revisions + # Create test objects. + client_result = ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_deployment_group_revisions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::ConfigService::V1::Config::Rest::ServiceStub.stub :transcode_list_deployment_group_revisions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_deployment_group_revisions_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_deployment_group_revisions({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_deployment_group_revisions parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_deployment_group_revisions ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_deployment_group_revisions({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_deployment_group_revisions(::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_deployment_group_revisions_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_test.rb b/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_test.rb index 2912e3f77cc7..4fec8c517d40 100644 --- a/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_test.rb +++ b/google-cloud-config_service-v1/test/google/cloud/config_service/v1/config_test.rb @@ -1912,6 +1912,597 @@ def test_update_auto_migration_config end end + def test_get_deployment_group + # Create GRPC objects. + grpc_response = ::Google::Cloud::ConfigService::V1::DeploymentGroup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_deployment_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_deployment_group, name + assert_kind_of ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_deployment_group({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_deployment_group name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_deployment_group ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_deployment_group({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_deployment_group(::Google::Cloud::ConfigService::V1::GetDeploymentGroupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_deployment_group_client_stub.call_rpc_count + end + end + + def test_create_deployment_group + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + deployment_group_id = "hello world" + deployment_group = {} + request_id = "hello world" + + create_deployment_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_deployment_group, name + assert_kind_of ::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["deployment_group_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::ConfigService::V1::DeploymentGroup), request["deployment_group"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_deployment_group({ parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_deployment_group parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_deployment_group ::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new(parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_deployment_group({ parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_deployment_group(::Google::Cloud::ConfigService::V1::CreateDeploymentGroupRequest.new(parent: parent, deployment_group_id: deployment_group_id, deployment_group: deployment_group, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_deployment_group_client_stub.call_rpc_count + end + end + + def test_update_deployment_group + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + deployment_group = {} + request_id = "hello world" + + update_deployment_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_deployment_group, name + assert_kind_of ::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::ConfigService::V1::DeploymentGroup), request["deployment_group"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_deployment_group({ update_mask: update_mask, deployment_group: deployment_group, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_deployment_group update_mask: update_mask, deployment_group: deployment_group, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_deployment_group ::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new(update_mask: update_mask, deployment_group: deployment_group, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_deployment_group({ update_mask: update_mask, deployment_group: deployment_group, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_deployment_group(::Google::Cloud::ConfigService::V1::UpdateDeploymentGroupRequest.new(update_mask: update_mask, deployment_group: deployment_group, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_deployment_group_client_stub.call_rpc_count + end + end + + def test_delete_deployment_group + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + force = true + deployment_reference_policy = :DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED + + delete_deployment_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_deployment_group, name + assert_kind_of ::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + assert_equal true, request["force"] + assert_equal :DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED, request["deployment_reference_policy"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_deployment_group({ name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_deployment_group name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_deployment_group ::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new(name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_deployment_group({ name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_deployment_group(::Google::Cloud::ConfigService::V1::DeleteDeploymentGroupRequest.new(name: name, request_id: request_id, force: force, deployment_reference_policy: deployment_reference_policy), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_deployment_group_client_stub.call_rpc_count + end + end + + def test_list_deployment_groups + # Create GRPC objects. + grpc_response = ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_deployment_groups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_deployment_groups, name + assert_kind_of ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_deployment_groups_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_deployment_groups({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_deployment_groups parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_deployment_groups ::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_deployment_groups({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_deployment_groups(::Google::Cloud::ConfigService::V1::ListDeploymentGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_deployment_groups_client_stub.call_rpc_count + end + end + + def test_provision_deployment_group + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + deployment_specs = {} + + provision_deployment_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :provision_deployment_group, name + assert_kind_of ::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest, request + assert_equal "hello world", request["name"] + assert_equal({}, request["deployment_specs"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, provision_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.provision_deployment_group({ name: name, deployment_specs: deployment_specs }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.provision_deployment_group name: name, deployment_specs: deployment_specs do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.provision_deployment_group ::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new(name: name, deployment_specs: deployment_specs) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.provision_deployment_group({ name: name, deployment_specs: deployment_specs }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.provision_deployment_group(::Google::Cloud::ConfigService::V1::ProvisionDeploymentGroupRequest.new(name: name, deployment_specs: deployment_specs), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, provision_deployment_group_client_stub.call_rpc_count + end + end + + def test_deprovision_deployment_group + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + delete_policy = :DELETE_POLICY_UNSPECIFIED + + deprovision_deployment_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :deprovision_deployment_group, name + assert_kind_of ::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + assert_equal :DELETE_POLICY_UNSPECIFIED, request["delete_policy"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, deprovision_deployment_group_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.deprovision_deployment_group({ name: name, force: force, delete_policy: delete_policy }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.deprovision_deployment_group name: name, force: force, delete_policy: delete_policy do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.deprovision_deployment_group ::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new(name: name, force: force, delete_policy: delete_policy) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.deprovision_deployment_group({ name: name, force: force, delete_policy: delete_policy }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.deprovision_deployment_group(::Google::Cloud::ConfigService::V1::DeprovisionDeploymentGroupRequest.new(name: name, force: force, delete_policy: delete_policy), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, deprovision_deployment_group_client_stub.call_rpc_count + end + end + + def test_get_deployment_group_revision + # Create GRPC objects. + grpc_response = ::Google::Cloud::ConfigService::V1::DeploymentGroupRevision.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_deployment_group_revision_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_deployment_group_revision, name + assert_kind_of ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_deployment_group_revision_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_deployment_group_revision({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_deployment_group_revision name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_deployment_group_revision ::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_deployment_group_revision({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_deployment_group_revision(::Google::Cloud::ConfigService::V1::GetDeploymentGroupRevisionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_deployment_group_revision_client_stub.call_rpc_count + end + end + + def test_list_deployment_group_revisions + # Create GRPC objects. + grpc_response = ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_deployment_group_revisions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_deployment_group_revisions, name + assert_kind_of ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_deployment_group_revisions_client_stub do + # Create client + client = ::Google::Cloud::ConfigService::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_deployment_group_revisions({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_deployment_group_revisions parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_deployment_group_revisions ::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_deployment_group_revisions({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_deployment_group_revisions(::Google::Cloud::ConfigService::V1::ListDeploymentGroupRevisionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_deployment_group_revisions_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure