Class: Google::Apis::ConfigV1::ConfigService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::ConfigV1::ConfigService
- Defined in:
- lib/google/apis/config_v1/service.rb
Overview
Infrastructure Manager API
Creates and manages Google Cloud Platform resources and infrastructure.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://config.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_deployment(parent, deployment_object = nil, deployment_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Creates a Deployment.
-
#create_project_location_preview(parent, preview_object = nil, preview_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Creates a Preview.
-
#delete_project_location_deployment(name, delete_policy: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Deletes a Deployment.
-
#delete_project_location_deployment_state(name, delete_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Empty
Deletes Terraform state file in a given deployment.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Empty
Deletes a long-running operation.
-
#delete_project_location_preview(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Deletes a Preview.
-
#export_preview_result(parent, export_preview_result_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ExportPreviewResultResponse
Export Preview results.
-
#export_project_location_deployment_lock(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::LockInfo
Exports the lock info on a locked deployment.
-
#export_project_location_deployment_revision_state(parent, export_revision_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Statefile
Exports Terraform state file from a given revision.
-
#export_project_location_deployment_state(parent, export_deployment_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Statefile
Exports Terraform state file from a given deployment.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Location
Gets information about a location.
-
#get_project_location_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Deployment
Gets details about a Deployment.
-
#get_project_location_deployment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_deployment_revision(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Revision
Gets details about a Revision.
-
#get_project_location_deployment_revision_resource(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Resource
Gets details about a Resource deployed by Infra Manager.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_preview(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Preview
Gets details about a Preview.
-
#get_project_location_terraform_version(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::TerraformVersion
Gets details about a TerraformVersion.
-
#import_project_location_deployment_state(parent, import_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Statefile
Imports Terraform state file in a given deployment.
-
#initialize ⇒ ConfigService
constructor
A new instance of ConfigService.
-
#list_project_location_deployment_revision_resources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListResourcesResponse
Lists Resources in a given revision.
-
#list_project_location_deployment_revisions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListRevisionsResponse
Lists Revisions of a deployment.
-
#list_project_location_deployments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListDeploymentsResponse
Lists Deployments in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_previews(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListPreviewsResponse
Lists Previews in a given project and location.
-
#list_project_location_terraform_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListTerraformVersionsResponse
Lists TerraformVersions in a given project and location.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#lock_deployment(name, lock_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Locks a deployment.
-
#patch_project_location_deployment(name, deployment_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Updates a Deployment.
-
#set_deployment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Policy
Sets the access control policy on the specified resource.
-
#test_deployment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#unlock_deployment(name, unlock_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Unlocks a locked deployment.
Constructor Details
#initialize ⇒ ConfigService
Returns a new instance of ConfigService.
47 48 49 50 51 52 |
# File 'lib/google/apis/config_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-config_v1', client_version: Google::Apis::ConfigV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/config_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/config_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
929 930 931 932 933 934 935 936 937 938 939 |
# File 'lib/google/apis/config_v1/service.rb', line 929 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::ConfigV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::ConfigV1::Empty::Representation command.response_class = Google::Apis::ConfigV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_deployment(parent, deployment_object = nil, deployment_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Creates a Deployment.
162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/google/apis/config_v1/service.rb', line 162 def create_project_location_deployment(parent, deployment_object = nil, deployment_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/deployments', ) command.request_representation = Google::Apis::ConfigV1::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['parent'] = parent unless parent.nil? command.query['deploymentId'] = deployment_id unless deployment_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_preview(parent, preview_object = nil, preview_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Creates a Preview.
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/google/apis/config_v1/service.rb', line 1080 def create_project_location_preview(parent, preview_object = nil, preview_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/previews', ) command.request_representation = Google::Apis::ConfigV1::Preview::Representation command.request_object = preview_object command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['parent'] = parent unless parent.nil? command.query['previewId'] = preview_id unless preview_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_deployment(name, delete_policy: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Deletes a Deployment.
215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/google/apis/config_v1/service.rb', line 215 def delete_project_location_deployment(name, delete_policy: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['name'] = name unless name.nil? command.query['deletePolicy'] = delete_policy unless delete_policy.nil? command.query['force'] = force unless force.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_deployment_state(name, delete_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Empty
Deletes Terraform state file in a given deployment.
250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/google/apis/config_v1/service.rb', line 250 def delete_project_location_deployment_state(name, delete_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:deleteState', ) command.request_representation = Google::Apis::ConfigV1::DeleteStatefileRequest::Representation command.request_object = delete_statefile_request_object command.response_representation = Google::Apis::ConfigV1::Empty::Representation command.response_class = Google::Apis::ConfigV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED
.
964 965 966 967 968 969 970 971 972 |
# File 'lib/google/apis/config_v1/service.rb', line 964 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Empty::Representation command.response_class = Google::Apis::ConfigV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_preview(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Deletes a Preview.
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'lib/google/apis/config_v1/service.rb', line 1126 def delete_project_location_preview(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_preview_result(parent, export_preview_result_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ExportPreviewResultResponse
Export Preview results.
1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'lib/google/apis/config_v1/service.rb', line 1159 def export_preview_result(parent, export_preview_result_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:export', ) command.request_representation = Google::Apis::ConfigV1::ExportPreviewResultRequest::Representation command.request_object = export_preview_result_request_object command.response_representation = Google::Apis::ConfigV1::ExportPreviewResultResponse::Representation command.response_class = Google::Apis::ConfigV1::ExportPreviewResultResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_deployment_lock(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::LockInfo
Exports the lock info on a locked deployment.
283 284 285 286 287 288 289 290 291 |
# File 'lib/google/apis/config_v1/service.rb', line 283 def export_project_location_deployment_lock(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:exportLock', ) command.response_representation = Google::Apis::ConfigV1::LockInfo::Representation command.response_class = Google::Apis::ConfigV1::LockInfo command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_deployment_revision_state(parent, export_revision_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Statefile
Exports Terraform state file from a given revision.
715 716 717 718 719 720 721 722 723 724 725 |
# File 'lib/google/apis/config_v1/service.rb', line 715 def export_project_location_deployment_revision_state(parent, export_revision_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:exportState', ) command.request_representation = Google::Apis::ConfigV1::ExportRevisionStatefileRequest::Representation command.request_object = export_revision_statefile_request_object command.response_representation = Google::Apis::ConfigV1::Statefile::Representation command.response_class = Google::Apis::ConfigV1::Statefile command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_deployment_state(parent, export_deployment_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Statefile
Exports Terraform state file from a given deployment.
316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/google/apis/config_v1/service.rb', line 316 def export_project_location_deployment_state(parent, export_deployment_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:exportState', ) command.request_representation = Google::Apis::ConfigV1::ExportDeploymentStatefileRequest::Representation command.request_object = export_deployment_statefile_request_object command.response_representation = Google::Apis::ConfigV1::Statefile::Representation command.response_class = Google::Apis::ConfigV1::Statefile command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Location
Gets information about a location.
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/config_v1/service.rb', line 74 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Location::Representation command.response_class = Google::Apis::ConfigV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Deployment
Gets details about a Deployment.
349 350 351 352 353 354 355 356 357 |
# File 'lib/google/apis/config_v1/service.rb', line 349 def get_project_location_deployment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Deployment::Representation command.response_class = Google::Apis::ConfigV1::Deployment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_deployment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
393 394 395 396 397 398 399 400 401 402 |
# File 'lib/google/apis/config_v1/service.rb', line 393 def get_project_location_deployment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::ConfigV1::Policy::Representation command.response_class = Google::Apis::ConfigV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_deployment_revision(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Revision
Gets details about a Revision.
748 749 750 751 752 753 754 755 756 |
# File 'lib/google/apis/config_v1/service.rb', line 748 def get_project_location_deployment_revision(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Revision::Representation command.response_class = Google::Apis::ConfigV1::Revision command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_deployment_revision_resource(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Resource
Gets details about a Resource deployed by Infra Manager.
837 838 839 840 841 842 843 844 845 |
# File 'lib/google/apis/config_v1/service.rb', line 837 def get_project_location_deployment_revision_resource(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Resource::Representation command.response_class = Google::Apis::ConfigV1::Resource command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
995 996 997 998 999 1000 1001 1002 1003 |
# File 'lib/google/apis/config_v1/service.rb', line 995 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_preview(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Preview
Gets details about a Preview.
1192 1193 1194 1195 1196 1197 1198 1199 1200 |
# File 'lib/google/apis/config_v1/service.rb', line 1192 def get_project_location_preview(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::Preview::Representation command.response_class = Google::Apis::ConfigV1::Preview command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_terraform_version(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::TerraformVersion
Gets details about a TerraformVersion.
1278 1279 1280 1281 1282 1283 1284 1285 1286 |
# File 'lib/google/apis/config_v1/service.rb', line 1278 def get_project_location_terraform_version(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ConfigV1::TerraformVersion::Representation command.response_class = Google::Apis::ConfigV1::TerraformVersion command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_project_location_deployment_state(parent, import_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Statefile
Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/google/apis/config_v1/service.rb', line 428 def import_project_location_deployment_state(parent, import_statefile_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:importState', ) command.request_representation = Google::Apis::ConfigV1::ImportStatefileRequest::Representation command.request_object = import_statefile_request_object command.response_representation = Google::Apis::ConfigV1::Statefile::Representation command.response_class = Google::Apis::ConfigV1::Statefile command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_deployment_revision_resources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListResourcesResponse
Lists Resources in a given revision.
887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/google/apis/config_v1/service.rb', line 887 def list_project_location_deployment_revision_resources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/resources', ) command.response_representation = Google::Apis::ConfigV1::ListResourcesResponse::Representation command.response_class = Google::Apis::ConfigV1::ListResourcesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_deployment_revisions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListRevisionsResponse
Lists Revisions of a deployment.
801 802 803 804 805 806 807 808 809 810 811 812 813 |
# File 'lib/google/apis/config_v1/service.rb', line 801 def list_project_location_deployment_revisions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/revisions', ) command.response_representation = Google::Apis::ConfigV1::ListRevisionsResponse::Representation command.response_class = Google::Apis::ConfigV1::ListRevisionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_deployments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListDeploymentsResponse
Lists Deployments in a given project and location.
481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/google/apis/config_v1/service.rb', line 481 def list_project_location_deployments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/deployments', ) command.response_representation = Google::Apis::ConfigV1::ListDeploymentsResponse::Representation command.response_class = Google::Apis::ConfigV1::ListDeploymentsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 |
# File 'lib/google/apis/config_v1/service.rb', line 1032 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::ConfigV1::ListOperationsResponse::Representation command.response_class = Google::Apis::ConfigV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_previews(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListPreviewsResponse
Lists Previews in a given project and location.
1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/google/apis/config_v1/service.rb', line 1243 def list_project_location_previews(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/previews', ) command.response_representation = Google::Apis::ConfigV1::ListPreviewsResponse::Representation command.response_class = Google::Apis::ConfigV1::ListPreviewsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_terraform_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListTerraformVersionsResponse
Lists TerraformVersions in a given project and location.
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 |
# File 'lib/google/apis/config_v1/service.rb', line 1326 def list_project_location_terraform_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/terraformVersions', ) command.response_representation = Google::Apis::ConfigV1::ListTerraformVersionsResponse::Representation command.response_class = Google::Apis::ConfigV1::ListTerraformVersionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::ListLocationsResponse
Lists information about the supported locations for this service.
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/google/apis/config_v1/service.rb', line 114 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::ConfigV1::ListLocationsResponse::Representation command.response_class = Google::Apis::ConfigV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#lock_deployment(name, lock_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Locks a deployment.
517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/google/apis/config_v1/service.rb', line 517 def lock_deployment(name, lock_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:lock', ) command.request_representation = Google::Apis::ConfigV1::LockDeploymentRequest::Representation command.request_object = lock_deployment_request_object command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_deployment(name, deployment_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Updates a Deployment.
568 569 570 571 572 573 574 575 576 577 578 579 580 |
# File 'lib/google/apis/config_v1/service.rb', line 568 def patch_project_location_deployment(name, deployment_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ConfigV1::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_deployment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
607 608 609 610 611 612 613 614 615 616 617 |
# File 'lib/google/apis/config_v1/service.rb', line 607 def set_deployment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::ConfigV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ConfigV1::Policy::Representation command.response_class = Google::Apis::ConfigV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_deployment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/google/apis/config_v1/service.rb', line 646 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::ConfigV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::ConfigV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ConfigV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#unlock_deployment(name, unlock_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConfigV1::Operation
Unlocks a locked deployment.
680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/google/apis/config_v1/service.rb', line 680 def unlock_deployment(name, unlock_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:unlock', ) command.request_representation = Google::Apis::ConfigV1::UnlockDeploymentRequest::Representation command.request_object = unlock_deployment_request_object command.response_representation = Google::Apis::ConfigV1::Operation::Representation command.response_class = Google::Apis::ConfigV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |