google-api-client 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
- data/.kokoro/build.bat +8 -0
- data/.kokoro/build.sh +36 -0
- data/.kokoro/common.cfg +22 -0
- data/.kokoro/continuous/common.cfg +20 -0
- data/.kokoro/continuous/linux.cfg +15 -0
- data/.kokoro/continuous/osx.cfg +3 -0
- data/.kokoro/continuous/windows.cfg +3 -0
- data/.kokoro/osx.sh +35 -0
- data/.kokoro/presubmit/common.cfg +19 -0
- data/.kokoro/presubmit/linux.cfg +14 -0
- data/.kokoro/presubmit/osx.cfg +3 -0
- data/.kokoro/presubmit/windows.cfg +3 -0
- data/.kokoro/trampoline.sh +24 -0
- data/.kokoro/windows.sh +32 -0
- data/CHANGELOG.md +83 -0
- data/Gemfile +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +87 -29
- data/generated/google/apis/bigquery_v2/representations.rb +21 -0
- data/generated/google/apis/bigquery_v2/service.rb +7 -9
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/classes.rb +14 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
- data/generated/google/apis/cloudiot_v1/service.rb +172 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +107 -0
- data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
- data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +9 -0
- data/generated/google/apis/composer_v1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +938 -117
- data/generated/google/apis/compute_alpha/representations.rb +310 -2
- data/generated/google/apis/compute_alpha/service.rb +1203 -245
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1175 -219
- data/generated/google/apis/compute_beta/representations.rb +375 -2
- data/generated/google/apis/compute_beta/service.rb +907 -139
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1485 -143
- data/generated/google/apis/compute_v1/representations.rb +503 -0
- data/generated/google/apis/compute_v1/service.rb +1375 -85
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +99 -6
- data/generated/google/apis/container_v1/representations.rb +39 -0
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +3 -3
- data/generated/google/apis/container_v1beta1/classes.rb +162 -9
- data/generated/google/apis/container_v1beta1/representations.rb +80 -0
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +40 -32
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2/service.rb +3 -3
- data/generated/google/apis/content_v2_1.rb +35 -0
- data/generated/google/apis/content_v2_1/classes.rb +9104 -0
- data/generated/google/apis/content_v2_1/representations.rb +3967 -0
- data/generated/google/apis/content_v2_1/service.rb +3463 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -1
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
- data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
- data/generated/google/apis/dialogflow_v2/service.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -4
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
- data/generated/google/apis/dns_v1beta2/service.rb +246 -0
- data/generated/google/apis/drive_v2.rb +3 -3
- data/generated/google/apis/drive_v3.rb +3 -3
- data/generated/google/apis/driveactivity_v2.rb +37 -0
- data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
- data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
- data/generated/google/apis/driveactivity_v2/service.rb +89 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +2225 -520
- data/generated/google/apis/firestore_v1/representations.rb +800 -33
- data/generated/google/apis/firestore_v1/service.rb +526 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -2
- data/generated/google/apis/fitness_v1/service.rb +7 -3
- data/generated/google/apis/games_management_v1management.rb +1 -4
- data/generated/google/apis/games_v1.rb +1 -4
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/iap_v1.rb +34 -0
- data/generated/google/apis/iap_v1/classes.rb +308 -0
- data/generated/google/apis/iap_v1/representations.rb +126 -0
- data/generated/google/apis/iap_v1/service.rb +725 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +8 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +6 -6
- data/generated/google/apis/jobs_v3/service.rb +8 -8
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
- data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -7
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +0 -365
- data/generated/google/apis/pagespeedonline_v5.rb +32 -0
- data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -12
- data/generated/google/apis/pubsub_v1/representations.rb +15 -0
- data/generated/google/apis/pubsub_v1/service.rb +26 -18
- data/generated/google/apis/redis_v1.rb +2 -3
- data/generated/google/apis/redis_v1/service.rb +1 -2
- data/generated/google/apis/redis_v1beta1.rb +2 -3
- data/generated/google/apis/redis_v1beta1/service.rb +1 -2
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/script_v1.rb +24 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +187 -2
- data/generated/google/apis/slides_v1/representations.rb +67 -0
- data/generated/google/apis/slides_v1/service.rb +4 -3
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +58 -10
- data/generated/google/apis/speech_v1/representations.rb +29 -1
- data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
- data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
- data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +54 -0
- data/generated/google/apis/storage_v1/representations.rb +31 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -19
- data/generated/google/apis/testing_v1/representations.rb +20 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +78 -7
- data/generated/google/apis/vault_v1/representations.rb +34 -1
- data/generated/google/apis/vault_v1/service.rb +141 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +33 -0
- data/generated/google/apis/vision_v1/representations.rb +16 -0
- data/generated/google/apis/vision_v1/service.rb +2 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +1 -1
- data/lib/google/api_client/auth/installed_app.rb +17 -2
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/apis/core/download.rb +2 -2
- data/lib/google/apis/errors.rb +9 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +46 -17
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
- data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
- data/generated/google/apis/dfareporting_v3_0.rb +0 -40
- data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
- data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
- data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -1562,7 +1562,7 @@ module Google
|
|
1562
1562
|
end
|
1563
1563
|
|
1564
1564
|
# Returns the specified BackendService resource. Gets a list of available
|
1565
|
-
# backend services
|
1565
|
+
# backend services.
|
1566
1566
|
# @param [String] project
|
1567
1567
|
# Project ID for this request.
|
1568
1568
|
# @param [String] backend_service
|
@@ -2325,6 +2325,46 @@ module Google
|
|
2325
2325
|
execute_or_queue_command(command, &block)
|
2326
2326
|
end
|
2327
2327
|
|
2328
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
2329
|
+
# or resource exists.
|
2330
|
+
# @param [String] project
|
2331
|
+
# Project ID for this request.
|
2332
|
+
# @param [String] zone
|
2333
|
+
# The name of the zone for this request.
|
2334
|
+
# @param [String] resource
|
2335
|
+
# Name or id of the resource for this request.
|
2336
|
+
# @param [String] fields
|
2337
|
+
# Selector specifying which fields to include in a partial response.
|
2338
|
+
# @param [String] quota_user
|
2339
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2340
|
+
# characters.
|
2341
|
+
# @param [String] user_ip
|
2342
|
+
# Deprecated. Please use quotaUser instead.
|
2343
|
+
# @param [Google::Apis::RequestOptions] options
|
2344
|
+
# Request-specific options
|
2345
|
+
#
|
2346
|
+
# @yield [result, err] Result & error if block supplied
|
2347
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
2348
|
+
# @yieldparam err [StandardError] error object if request failed
|
2349
|
+
#
|
2350
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
2351
|
+
#
|
2352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2355
|
+
def get_disk_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2356
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options)
|
2357
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
2358
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
2359
|
+
command.params['project'] = project unless project.nil?
|
2360
|
+
command.params['zone'] = zone unless zone.nil?
|
2361
|
+
command.params['resource'] = resource unless resource.nil?
|
2362
|
+
command.query['fields'] = fields unless fields.nil?
|
2363
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2364
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2365
|
+
execute_or_queue_command(command, &block)
|
2366
|
+
end
|
2367
|
+
|
2328
2368
|
# Creates a persistent disk in the specified project using the data in the
|
2329
2369
|
# request. You can create a disk with a sourceImage, a sourceSnapshot, or create
|
2330
2370
|
# an empty 500 GB data disk by omitting all properties. You can also create a
|
@@ -2511,6 +2551,49 @@ module Google
|
|
2511
2551
|
execute_or_queue_command(command, &block)
|
2512
2552
|
end
|
2513
2553
|
|
2554
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2555
|
+
# existing policy.
|
2556
|
+
# @param [String] project
|
2557
|
+
# Project ID for this request.
|
2558
|
+
# @param [String] zone
|
2559
|
+
# The name of the zone for this request.
|
2560
|
+
# @param [String] resource
|
2561
|
+
# Name or id of the resource for this request.
|
2562
|
+
# @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object
|
2563
|
+
# @param [String] fields
|
2564
|
+
# Selector specifying which fields to include in a partial response.
|
2565
|
+
# @param [String] quota_user
|
2566
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2567
|
+
# characters.
|
2568
|
+
# @param [String] user_ip
|
2569
|
+
# Deprecated. Please use quotaUser instead.
|
2570
|
+
# @param [Google::Apis::RequestOptions] options
|
2571
|
+
# Request-specific options
|
2572
|
+
#
|
2573
|
+
# @yield [result, err] Result & error if block supplied
|
2574
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
2575
|
+
# @yieldparam err [StandardError] error object if request failed
|
2576
|
+
#
|
2577
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
2578
|
+
#
|
2579
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2580
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2581
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2582
|
+
def set_disk_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2583
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setIamPolicy', options)
|
2584
|
+
command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation
|
2585
|
+
command.request_object = zone_set_policy_request_object
|
2586
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
2587
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
2588
|
+
command.params['project'] = project unless project.nil?
|
2589
|
+
command.params['zone'] = zone unless zone.nil?
|
2590
|
+
command.params['resource'] = resource unless resource.nil?
|
2591
|
+
command.query['fields'] = fields unless fields.nil?
|
2592
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2593
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2594
|
+
execute_or_queue_command(command, &block)
|
2595
|
+
end
|
2596
|
+
|
2514
2597
|
# Sets the labels on a disk. To learn more about labels, read the Labeling
|
2515
2598
|
# Resources documentation.
|
2516
2599
|
# @param [String] project
|
@@ -2518,7 +2601,7 @@ module Google
|
|
2518
2601
|
# @param [String] zone
|
2519
2602
|
# The name of the zone for this request.
|
2520
2603
|
# @param [String] resource
|
2521
|
-
# Name of the resource for this request.
|
2604
|
+
# Name or id of the resource for this request.
|
2522
2605
|
# @param [Google::Apis::ComputeV1::ZoneSetLabelsRequest] zone_set_labels_request_object
|
2523
2606
|
# @param [String] request_id
|
2524
2607
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -2566,6 +2649,48 @@ module Google
|
|
2566
2649
|
execute_or_queue_command(command, &block)
|
2567
2650
|
end
|
2568
2651
|
|
2652
|
+
# Returns permissions that a caller has on the specified resource.
|
2653
|
+
# @param [String] project
|
2654
|
+
# Project ID for this request.
|
2655
|
+
# @param [String] zone
|
2656
|
+
# The name of the zone for this request.
|
2657
|
+
# @param [String] resource
|
2658
|
+
# Name or id of the resource for this request.
|
2659
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
2660
|
+
# @param [String] fields
|
2661
|
+
# Selector specifying which fields to include in a partial response.
|
2662
|
+
# @param [String] quota_user
|
2663
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2664
|
+
# characters.
|
2665
|
+
# @param [String] user_ip
|
2666
|
+
# Deprecated. Please use quotaUser instead.
|
2667
|
+
# @param [Google::Apis::RequestOptions] options
|
2668
|
+
# Request-specific options
|
2669
|
+
#
|
2670
|
+
# @yield [result, err] Result & error if block supplied
|
2671
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
2672
|
+
# @yieldparam err [StandardError] error object if request failed
|
2673
|
+
#
|
2674
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
2675
|
+
#
|
2676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2679
|
+
def test_disk_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2680
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/testIamPermissions', options)
|
2681
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
2682
|
+
command.request_object = test_permissions_request_object
|
2683
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
2684
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
2685
|
+
command.params['project'] = project unless project.nil?
|
2686
|
+
command.params['zone'] = zone unless zone.nil?
|
2687
|
+
command.params['resource'] = resource unless resource.nil?
|
2688
|
+
command.query['fields'] = fields unless fields.nil?
|
2689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2690
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2691
|
+
execute_or_queue_command(command, &block)
|
2692
|
+
end
|
2693
|
+
|
2569
2694
|
# Deletes the specified firewall.
|
2570
2695
|
# @param [String] project
|
2571
2696
|
# Project ID for this request.
|
@@ -5000,6 +5125,43 @@ module Google
|
|
5000
5125
|
execute_or_queue_command(command, &block)
|
5001
5126
|
end
|
5002
5127
|
|
5128
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
5129
|
+
# or resource exists.
|
5130
|
+
# @param [String] project
|
5131
|
+
# Project ID for this request.
|
5132
|
+
# @param [String] resource
|
5133
|
+
# Name or id of the resource for this request.
|
5134
|
+
# @param [String] fields
|
5135
|
+
# Selector specifying which fields to include in a partial response.
|
5136
|
+
# @param [String] quota_user
|
5137
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5138
|
+
# characters.
|
5139
|
+
# @param [String] user_ip
|
5140
|
+
# Deprecated. Please use quotaUser instead.
|
5141
|
+
# @param [Google::Apis::RequestOptions] options
|
5142
|
+
# Request-specific options
|
5143
|
+
#
|
5144
|
+
# @yield [result, err] Result & error if block supplied
|
5145
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
5146
|
+
# @yieldparam err [StandardError] error object if request failed
|
5147
|
+
#
|
5148
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
5149
|
+
#
|
5150
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5151
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5152
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5153
|
+
def get_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5154
|
+
command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options)
|
5155
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
5156
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
5157
|
+
command.params['project'] = project unless project.nil?
|
5158
|
+
command.params['resource'] = resource unless resource.nil?
|
5159
|
+
command.query['fields'] = fields unless fields.nil?
|
5160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5161
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5162
|
+
execute_or_queue_command(command, &block)
|
5163
|
+
end
|
5164
|
+
|
5003
5165
|
# Creates an image in the specified project using the data included in the
|
5004
5166
|
# request.
|
5005
5167
|
# @param [String] project
|
@@ -5128,12 +5290,52 @@ module Google
|
|
5128
5290
|
execute_or_queue_command(command, &block)
|
5129
5291
|
end
|
5130
5292
|
|
5293
|
+
# Sets the access control policy on the specified resource. Replaces any
|
5294
|
+
# existing policy.
|
5295
|
+
# @param [String] project
|
5296
|
+
# Project ID for this request.
|
5297
|
+
# @param [String] resource
|
5298
|
+
# Name or id of the resource for this request.
|
5299
|
+
# @param [Google::Apis::ComputeV1::GlobalSetPolicyRequest] global_set_policy_request_object
|
5300
|
+
# @param [String] fields
|
5301
|
+
# Selector specifying which fields to include in a partial response.
|
5302
|
+
# @param [String] quota_user
|
5303
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5304
|
+
# characters.
|
5305
|
+
# @param [String] user_ip
|
5306
|
+
# Deprecated. Please use quotaUser instead.
|
5307
|
+
# @param [Google::Apis::RequestOptions] options
|
5308
|
+
# Request-specific options
|
5309
|
+
#
|
5310
|
+
# @yield [result, err] Result & error if block supplied
|
5311
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
5312
|
+
# @yieldparam err [StandardError] error object if request failed
|
5313
|
+
#
|
5314
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
5315
|
+
#
|
5316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5319
|
+
def set_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5320
|
+
command = make_simple_command(:post, '{project}/global/images/{resource}/setIamPolicy', options)
|
5321
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetPolicyRequest::Representation
|
5322
|
+
command.request_object = global_set_policy_request_object
|
5323
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
5324
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
5325
|
+
command.params['project'] = project unless project.nil?
|
5326
|
+
command.params['resource'] = resource unless resource.nil?
|
5327
|
+
command.query['fields'] = fields unless fields.nil?
|
5328
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5329
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5330
|
+
execute_or_queue_command(command, &block)
|
5331
|
+
end
|
5332
|
+
|
5131
5333
|
# Sets the labels on an image. To learn more about labels, read the Labeling
|
5132
5334
|
# Resources documentation.
|
5133
5335
|
# @param [String] project
|
5134
5336
|
# Project ID for this request.
|
5135
5337
|
# @param [String] resource
|
5136
|
-
# Name of the resource for this request.
|
5338
|
+
# Name or id of the resource for this request.
|
5137
5339
|
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
5138
5340
|
# @param [String] fields
|
5139
5341
|
# Selector specifying which fields to include in a partial response.
|
@@ -5168,14 +5370,53 @@ module Google
|
|
5168
5370
|
execute_or_queue_command(command, &block)
|
5169
5371
|
end
|
5170
5372
|
|
5171
|
-
#
|
5172
|
-
#
|
5173
|
-
#
|
5174
|
-
#
|
5175
|
-
#
|
5176
|
-
#
|
5177
|
-
#
|
5178
|
-
#
|
5373
|
+
# Returns permissions that a caller has on the specified resource.
|
5374
|
+
# @param [String] project
|
5375
|
+
# Project ID for this request.
|
5376
|
+
# @param [String] resource
|
5377
|
+
# Name or id of the resource for this request.
|
5378
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
5379
|
+
# @param [String] fields
|
5380
|
+
# Selector specifying which fields to include in a partial response.
|
5381
|
+
# @param [String] quota_user
|
5382
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5383
|
+
# characters.
|
5384
|
+
# @param [String] user_ip
|
5385
|
+
# Deprecated. Please use quotaUser instead.
|
5386
|
+
# @param [Google::Apis::RequestOptions] options
|
5387
|
+
# Request-specific options
|
5388
|
+
#
|
5389
|
+
# @yield [result, err] Result & error if block supplied
|
5390
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
5391
|
+
# @yieldparam err [StandardError] error object if request failed
|
5392
|
+
#
|
5393
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
5394
|
+
#
|
5395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5398
|
+
def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5399
|
+
command = make_simple_command(:post, '{project}/global/images/{resource}/testIamPermissions', options)
|
5400
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
5401
|
+
command.request_object = test_permissions_request_object
|
5402
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
5403
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
5404
|
+
command.params['project'] = project unless project.nil?
|
5405
|
+
command.params['resource'] = resource unless resource.nil?
|
5406
|
+
command.query['fields'] = fields unless fields.nil?
|
5407
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5408
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5409
|
+
execute_or_queue_command(command, &block)
|
5410
|
+
end
|
5411
|
+
|
5412
|
+
# Flags the specified instances to be removed from the managed instance group.
|
5413
|
+
# Abandoning an instance does not delete the instance, but it does remove the
|
5414
|
+
# instance from any target pools that are applied by the managed instance group.
|
5415
|
+
# This method reduces the targetSize of the managed instance group by the number
|
5416
|
+
# of instances that you abandon. This operation is marked as DONE when the
|
5417
|
+
# action is scheduled even if the instances have not yet been removed from the
|
5418
|
+
# group. You must separately verify the status of the abandoning action with the
|
5419
|
+
# listmanagedinstances method.
|
5179
5420
|
# If the group is part of a backend service that has enabled connection draining,
|
5180
5421
|
# it can take up to 60 seconds after the connection draining duration has
|
5181
5422
|
# elapsed before the VM instance is removed or deleted.
|
@@ -5357,9 +5598,9 @@ module Google
|
|
5357
5598
|
execute_or_queue_command(command, &block)
|
5358
5599
|
end
|
5359
5600
|
|
5360
|
-
#
|
5361
|
-
#
|
5362
|
-
#
|
5601
|
+
# Flags the specified instances in the managed instance group for immediate
|
5602
|
+
# deletion. The instances are also removed from any target pools of which they
|
5603
|
+
# were a member. This method reduces the targetSize of the managed instance
|
5363
5604
|
# group by the number of instances that you delete. This operation is marked as
|
5364
5605
|
# DONE when the action is scheduled even if the instances are still being
|
5365
5606
|
# deleted. You must separately verify the status of the deleting action with the
|
@@ -5462,11 +5703,11 @@ module Google
|
|
5462
5703
|
end
|
5463
5704
|
|
5464
5705
|
# Creates a managed instance group using the information that you specify in the
|
5465
|
-
# request. After the group is created,
|
5466
|
-
#
|
5467
|
-
#
|
5468
|
-
#
|
5469
|
-
#
|
5706
|
+
# request. After the group is created, instances in the group are created using
|
5707
|
+
# the specified instance template. This operation is marked as DONE when the
|
5708
|
+
# group is created even if the instances in the group have not yet been created.
|
5709
|
+
# You must separately verify the status of the individual instances with the
|
5710
|
+
# listmanagedinstances method.
|
5470
5711
|
# A managed instance group can have up to 1000 VM instances per group. Please
|
5471
5712
|
# contact Cloud Support if you need an increase in this limit.
|
5472
5713
|
# @param [String] project
|
@@ -5675,12 +5916,71 @@ module Google
|
|
5675
5916
|
execute_or_queue_command(command, &block)
|
5676
5917
|
end
|
5677
5918
|
|
5678
|
-
#
|
5679
|
-
#
|
5680
|
-
#
|
5681
|
-
#
|
5682
|
-
#
|
5683
|
-
#
|
5919
|
+
# Updates a managed instance group using the information that you specify in the
|
5920
|
+
# request. This operation is marked as DONE when the group is patched even if
|
5921
|
+
# the instances in the group are still in the process of being patched. You must
|
5922
|
+
# separately verify the status of the individual instances with the
|
5923
|
+
# listManagedInstances method. This method supports PATCH semantics and uses the
|
5924
|
+
# JSON merge patch format and processing rules.
|
5925
|
+
# @param [String] project
|
5926
|
+
# Project ID for this request.
|
5927
|
+
# @param [String] zone
|
5928
|
+
# The name of the zone where you want to create the managed instance group.
|
5929
|
+
# @param [String] instance_group_manager
|
5930
|
+
# The name of the instance group manager.
|
5931
|
+
# @param [Google::Apis::ComputeV1::InstanceGroupManager] instance_group_manager_object
|
5932
|
+
# @param [String] request_id
|
5933
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5934
|
+
# that if you must retry your request, the server will know to ignore the
|
5935
|
+
# request if it has already been completed.
|
5936
|
+
# For example, consider a situation where you make an initial request and the
|
5937
|
+
# request times out. If you make the request again with the same request ID, the
|
5938
|
+
# server can check if original operation with the same request ID was received,
|
5939
|
+
# and if so, will ignore the second request. This prevents clients from
|
5940
|
+
# accidentally creating duplicate commitments.
|
5941
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5942
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5943
|
+
# @param [String] fields
|
5944
|
+
# Selector specifying which fields to include in a partial response.
|
5945
|
+
# @param [String] quota_user
|
5946
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5947
|
+
# characters.
|
5948
|
+
# @param [String] user_ip
|
5949
|
+
# Deprecated. Please use quotaUser instead.
|
5950
|
+
# @param [Google::Apis::RequestOptions] options
|
5951
|
+
# Request-specific options
|
5952
|
+
#
|
5953
|
+
# @yield [result, err] Result & error if block supplied
|
5954
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
5955
|
+
# @yieldparam err [StandardError] error object if request failed
|
5956
|
+
#
|
5957
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
5958
|
+
#
|
5959
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5960
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5961
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5962
|
+
def patch_instance_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5963
|
+
command = make_simple_command(:patch, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
|
5964
|
+
command.request_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation
|
5965
|
+
command.request_object = instance_group_manager_object
|
5966
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
5967
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
5968
|
+
command.params['project'] = project unless project.nil?
|
5969
|
+
command.params['zone'] = zone unless zone.nil?
|
5970
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
5971
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5972
|
+
command.query['fields'] = fields unless fields.nil?
|
5973
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5974
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5975
|
+
execute_or_queue_command(command, &block)
|
5976
|
+
end
|
5977
|
+
|
5978
|
+
# Flags the specified instances in the managed instance group to be immediately
|
5979
|
+
# recreated. The instances are deleted and recreated using the current instance
|
5980
|
+
# template for the managed instance group. This operation is marked as DONE when
|
5981
|
+
# the flag is set even if the instances have not yet been recreated. You must
|
5982
|
+
# separately verify the status of the recreating action with the
|
5983
|
+
# listmanagedinstances method.
|
5684
5984
|
# If the group is part of a backend service that has enabled connection draining,
|
5685
5985
|
# it can take up to 60 seconds after the connection draining duration has
|
5686
5986
|
# elapsed before the VM instance is removed or deleted.
|
@@ -5744,6 +6044,13 @@ module Google
|
|
5744
6044
|
# the resize actions are scheduled even if the group has not yet added or
|
5745
6045
|
# deleted any instances. You must separately verify the status of the creating
|
5746
6046
|
# or deleting actions with the listmanagedinstances method.
|
6047
|
+
# When resizing down, the instance group arbitrarily chooses the order in which
|
6048
|
+
# VMs are deleted. The group takes into account some VM attributes when making
|
6049
|
+
# the selection including:
|
6050
|
+
# + The status of the VM instance. + The health of the VM instance. + The
|
6051
|
+
# instance template version the VM is based on. + For regional managed instance
|
6052
|
+
# groups, the location of the VM instance.
|
6053
|
+
# This list is subject to change.
|
5747
6054
|
# If the group is part of a backend service that has enabled connection draining,
|
5748
6055
|
# it can take up to 60 seconds after the connection draining duration has
|
5749
6056
|
# elapsed before the VM instance is removed or deleted.
|
@@ -6544,7 +6851,44 @@ module Google
|
|
6544
6851
|
execute_or_queue_command(command, &block)
|
6545
6852
|
end
|
6546
6853
|
|
6547
|
-
#
|
6854
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
6855
|
+
# or resource exists.
|
6856
|
+
# @param [String] project
|
6857
|
+
# Project ID for this request.
|
6858
|
+
# @param [String] resource
|
6859
|
+
# Name or id of the resource for this request.
|
6860
|
+
# @param [String] fields
|
6861
|
+
# Selector specifying which fields to include in a partial response.
|
6862
|
+
# @param [String] quota_user
|
6863
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6864
|
+
# characters.
|
6865
|
+
# @param [String] user_ip
|
6866
|
+
# Deprecated. Please use quotaUser instead.
|
6867
|
+
# @param [Google::Apis::RequestOptions] options
|
6868
|
+
# Request-specific options
|
6869
|
+
#
|
6870
|
+
# @yield [result, err] Result & error if block supplied
|
6871
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
6872
|
+
# @yieldparam err [StandardError] error object if request failed
|
6873
|
+
#
|
6874
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
6875
|
+
#
|
6876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6879
|
+
def get_instance_template_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6880
|
+
command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options)
|
6881
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
6882
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
6883
|
+
command.params['project'] = project unless project.nil?
|
6884
|
+
command.params['resource'] = resource unless resource.nil?
|
6885
|
+
command.query['fields'] = fields unless fields.nil?
|
6886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6887
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6888
|
+
execute_or_queue_command(command, &block)
|
6889
|
+
end
|
6890
|
+
|
6891
|
+
# Creates an instance template in the specified project using the data that is
|
6548
6892
|
# included in the request. If you are creating a new template to update an
|
6549
6893
|
# existing instance group, your new instance template must use the same network
|
6550
6894
|
# or, if applicable, the same subnetwork as the original template.
|
@@ -6667,6 +7011,85 @@ module Google
|
|
6667
7011
|
execute_or_queue_command(command, &block)
|
6668
7012
|
end
|
6669
7013
|
|
7014
|
+
# Sets the access control policy on the specified resource. Replaces any
|
7015
|
+
# existing policy.
|
7016
|
+
# @param [String] project
|
7017
|
+
# Project ID for this request.
|
7018
|
+
# @param [String] resource
|
7019
|
+
# Name or id of the resource for this request.
|
7020
|
+
# @param [Google::Apis::ComputeV1::GlobalSetPolicyRequest] global_set_policy_request_object
|
7021
|
+
# @param [String] fields
|
7022
|
+
# Selector specifying which fields to include in a partial response.
|
7023
|
+
# @param [String] quota_user
|
7024
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
7025
|
+
# characters.
|
7026
|
+
# @param [String] user_ip
|
7027
|
+
# Deprecated. Please use quotaUser instead.
|
7028
|
+
# @param [Google::Apis::RequestOptions] options
|
7029
|
+
# Request-specific options
|
7030
|
+
#
|
7031
|
+
# @yield [result, err] Result & error if block supplied
|
7032
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
7033
|
+
# @yieldparam err [StandardError] error object if request failed
|
7034
|
+
#
|
7035
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
7036
|
+
#
|
7037
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7038
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7039
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7040
|
+
def set_instance_template_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
7041
|
+
command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/setIamPolicy', options)
|
7042
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetPolicyRequest::Representation
|
7043
|
+
command.request_object = global_set_policy_request_object
|
7044
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
7045
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
7046
|
+
command.params['project'] = project unless project.nil?
|
7047
|
+
command.params['resource'] = resource unless resource.nil?
|
7048
|
+
command.query['fields'] = fields unless fields.nil?
|
7049
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7050
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
7051
|
+
execute_or_queue_command(command, &block)
|
7052
|
+
end
|
7053
|
+
|
7054
|
+
# Returns permissions that a caller has on the specified resource.
|
7055
|
+
# @param [String] project
|
7056
|
+
# Project ID for this request.
|
7057
|
+
# @param [String] resource
|
7058
|
+
# Name or id of the resource for this request.
|
7059
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
7060
|
+
# @param [String] fields
|
7061
|
+
# Selector specifying which fields to include in a partial response.
|
7062
|
+
# @param [String] quota_user
|
7063
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
7064
|
+
# characters.
|
7065
|
+
# @param [String] user_ip
|
7066
|
+
# Deprecated. Please use quotaUser instead.
|
7067
|
+
# @param [Google::Apis::RequestOptions] options
|
7068
|
+
# Request-specific options
|
7069
|
+
#
|
7070
|
+
# @yield [result, err] Result & error if block supplied
|
7071
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
7072
|
+
# @yieldparam err [StandardError] error object if request failed
|
7073
|
+
#
|
7074
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
7075
|
+
#
|
7076
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7077
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7078
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7079
|
+
def test_instance_template_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
7080
|
+
command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/testIamPermissions', options)
|
7081
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
7082
|
+
command.request_object = test_permissions_request_object
|
7083
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
7084
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
7085
|
+
command.params['project'] = project unless project.nil?
|
7086
|
+
command.params['resource'] = resource unless resource.nil?
|
7087
|
+
command.query['fields'] = fields unless fields.nil?
|
7088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7089
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
7090
|
+
execute_or_queue_command(command, &block)
|
7091
|
+
end
|
7092
|
+
|
6670
7093
|
# Adds an access config to an instance's network interface.
|
6671
7094
|
# @param [String] project
|
6672
7095
|
# Project ID for this request.
|
@@ -6972,9 +7395,10 @@ module Google
|
|
6972
7395
|
# @param [String] zone
|
6973
7396
|
# The name of the zone for this request.
|
6974
7397
|
# @param [String] instance
|
6975
|
-
# Instance name.
|
7398
|
+
# Instance name for this request.
|
6976
7399
|
# @param [String] device_name
|
6977
|
-
#
|
7400
|
+
# The device name of the disk to detach. Make a get() request on the instance to
|
7401
|
+
# view currently attached disks and device names.
|
6978
7402
|
# @param [String] request_id
|
6979
7403
|
# An optional request ID to identify requests. Specify a unique request ID so
|
6980
7404
|
# that if you must retry your request, the server will know to ignore the
|
@@ -7060,6 +7484,46 @@ module Google
|
|
7060
7484
|
execute_or_queue_command(command, &block)
|
7061
7485
|
end
|
7062
7486
|
|
7487
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
7488
|
+
# or resource exists.
|
7489
|
+
# @param [String] project
|
7490
|
+
# Project ID for this request.
|
7491
|
+
# @param [String] zone
|
7492
|
+
# The name of the zone for this request.
|
7493
|
+
# @param [String] resource
|
7494
|
+
# Name or id of the resource for this request.
|
7495
|
+
# @param [String] fields
|
7496
|
+
# Selector specifying which fields to include in a partial response.
|
7497
|
+
# @param [String] quota_user
|
7498
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
7499
|
+
# characters.
|
7500
|
+
# @param [String] user_ip
|
7501
|
+
# Deprecated. Please use quotaUser instead.
|
7502
|
+
# @param [Google::Apis::RequestOptions] options
|
7503
|
+
# Request-specific options
|
7504
|
+
#
|
7505
|
+
# @yield [result, err] Result & error if block supplied
|
7506
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
7507
|
+
# @yieldparam err [StandardError] error object if request failed
|
7508
|
+
#
|
7509
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
7510
|
+
#
|
7511
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7512
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7513
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7514
|
+
def get_instance_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
7515
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options)
|
7516
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
7517
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
7518
|
+
command.params['project'] = project unless project.nil?
|
7519
|
+
command.params['zone'] = zone unless zone.nil?
|
7520
|
+
command.params['resource'] = resource unless resource.nil?
|
7521
|
+
command.query['fields'] = fields unless fields.nil?
|
7522
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7523
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
7524
|
+
execute_or_queue_command(command, &block)
|
7525
|
+
end
|
7526
|
+
|
7063
7527
|
# Returns the last 1 MB of serial port output from the specified instance.
|
7064
7528
|
# @param [String] project
|
7065
7529
|
# Project ID for this request.
|
@@ -7244,7 +7708,7 @@ module Google
|
|
7244
7708
|
end
|
7245
7709
|
|
7246
7710
|
# Retrieves the list of referrers to instances contained within the specified
|
7247
|
-
# zone.
|
7711
|
+
# zone. For more information, read Viewing Referrers to VM Instances.
|
7248
7712
|
# @param [String] project
|
7249
7713
|
# Project ID for this request.
|
7250
7714
|
# @param [String] zone
|
@@ -7380,7 +7844,7 @@ module Google
|
|
7380
7844
|
# @param [String] zone
|
7381
7845
|
# The name of the zone for this request.
|
7382
7846
|
# @param [String] resource
|
7383
|
-
# Name of the resource for this request.
|
7847
|
+
# Name or id of the resource for this request.
|
7384
7848
|
# @param [Boolean] deletion_protection
|
7385
7849
|
# Whether the resource should be protected against deletion.
|
7386
7850
|
# @param [String] request_id
|
@@ -7434,11 +7898,12 @@ module Google
|
|
7434
7898
|
# @param [String] zone
|
7435
7899
|
# The name of the zone for this request.
|
7436
7900
|
# @param [String] instance
|
7437
|
-
# The instance name.
|
7901
|
+
# The instance name for this request.
|
7438
7902
|
# @param [Boolean] auto_delete
|
7439
7903
|
# Whether to auto-delete the disk when the instance is deleted.
|
7440
7904
|
# @param [String] device_name
|
7441
|
-
# The device name of the disk to modify.
|
7905
|
+
# The device name of the disk to modify. Make a get() request on the instance to
|
7906
|
+
# view currently attached disks and device names.
|
7442
7907
|
# @param [String] request_id
|
7443
7908
|
# An optional request ID to identify requests. Specify a unique request ID so
|
7444
7909
|
# that if you must retry your request, the server will know to ignore the
|
@@ -7485,6 +7950,49 @@ module Google
|
|
7485
7950
|
execute_or_queue_command(command, &block)
|
7486
7951
|
end
|
7487
7952
|
|
7953
|
+
# Sets the access control policy on the specified resource. Replaces any
|
7954
|
+
# existing policy.
|
7955
|
+
# @param [String] project
|
7956
|
+
# Project ID for this request.
|
7957
|
+
# @param [String] zone
|
7958
|
+
# The name of the zone for this request.
|
7959
|
+
# @param [String] resource
|
7960
|
+
# Name or id of the resource for this request.
|
7961
|
+
# @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object
|
7962
|
+
# @param [String] fields
|
7963
|
+
# Selector specifying which fields to include in a partial response.
|
7964
|
+
# @param [String] quota_user
|
7965
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
7966
|
+
# characters.
|
7967
|
+
# @param [String] user_ip
|
7968
|
+
# Deprecated. Please use quotaUser instead.
|
7969
|
+
# @param [Google::Apis::RequestOptions] options
|
7970
|
+
# Request-specific options
|
7971
|
+
#
|
7972
|
+
# @yield [result, err] Result & error if block supplied
|
7973
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
7974
|
+
# @yieldparam err [StandardError] error object if request failed
|
7975
|
+
#
|
7976
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
7977
|
+
#
|
7978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7981
|
+
def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
7982
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
|
7983
|
+
command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation
|
7984
|
+
command.request_object = zone_set_policy_request_object
|
7985
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
7986
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
7987
|
+
command.params['project'] = project unless project.nil?
|
7988
|
+
command.params['zone'] = zone unless zone.nil?
|
7989
|
+
command.params['resource'] = resource unless resource.nil?
|
7990
|
+
command.query['fields'] = fields unless fields.nil?
|
7991
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7992
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
7993
|
+
execute_or_queue_command(command, &block)
|
7994
|
+
end
|
7995
|
+
|
7488
7996
|
# Sets labels on an instance. To learn more about labels, read the Labeling
|
7489
7997
|
# Resources documentation.
|
7490
7998
|
# @param [String] project
|
@@ -7766,7 +8274,7 @@ module Google
|
|
7766
8274
|
# @param [String] zone
|
7767
8275
|
# The name of the zone for this request.
|
7768
8276
|
# @param [String] instance
|
7769
|
-
# Instance name.
|
8277
|
+
# Instance name for this request.
|
7770
8278
|
# @param [Google::Apis::ComputeV1::Scheduling] scheduling_object
|
7771
8279
|
# @param [String] request_id
|
7772
8280
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -7869,7 +8377,8 @@ module Google
|
|
7869
8377
|
execute_or_queue_command(command, &block)
|
7870
8378
|
end
|
7871
8379
|
|
7872
|
-
# Sets tags for the specified instance to the data included in the
|
8380
|
+
# Sets network tags for the specified instance to the data included in the
|
8381
|
+
# request.
|
7873
8382
|
# @param [String] project
|
7874
8383
|
# Project ID for this request.
|
7875
8384
|
# @param [String] zone
|
@@ -8124,6 +8633,48 @@ module Google
|
|
8124
8633
|
execute_or_queue_command(command, &block)
|
8125
8634
|
end
|
8126
8635
|
|
8636
|
+
# Returns permissions that a caller has on the specified resource.
|
8637
|
+
# @param [String] project
|
8638
|
+
# Project ID for this request.
|
8639
|
+
# @param [String] zone
|
8640
|
+
# The name of the zone for this request.
|
8641
|
+
# @param [String] resource
|
8642
|
+
# Name or id of the resource for this request.
|
8643
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
8644
|
+
# @param [String] fields
|
8645
|
+
# Selector specifying which fields to include in a partial response.
|
8646
|
+
# @param [String] quota_user
|
8647
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
8648
|
+
# characters.
|
8649
|
+
# @param [String] user_ip
|
8650
|
+
# Deprecated. Please use quotaUser instead.
|
8651
|
+
# @param [Google::Apis::RequestOptions] options
|
8652
|
+
# Request-specific options
|
8653
|
+
#
|
8654
|
+
# @yield [result, err] Result & error if block supplied
|
8655
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
8656
|
+
# @yieldparam err [StandardError] error object if request failed
|
8657
|
+
#
|
8658
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
8659
|
+
#
|
8660
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8661
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8662
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8663
|
+
def test_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
8664
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/testIamPermissions', options)
|
8665
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
8666
|
+
command.request_object = test_permissions_request_object
|
8667
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
8668
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
8669
|
+
command.params['project'] = project unless project.nil?
|
8670
|
+
command.params['zone'] = zone unless zone.nil?
|
8671
|
+
command.params['resource'] = resource unless resource.nil?
|
8672
|
+
command.query['fields'] = fields unless fields.nil?
|
8673
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8674
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
8675
|
+
execute_or_queue_command(command, &block)
|
8676
|
+
end
|
8677
|
+
|
8127
8678
|
# Updates the specified access config from an instance's network interface with
|
8128
8679
|
# the data included in the request. This method supports PATCH semantics and
|
8129
8680
|
# uses the JSON merge patch format and processing rules.
|
@@ -8778,6 +9329,42 @@ module Google
|
|
8778
9329
|
execute_or_queue_command(command, &block)
|
8779
9330
|
end
|
8780
9331
|
|
9332
|
+
# Returns the interconnectDiagnostics for the specified interconnect.
|
9333
|
+
# @param [String] project
|
9334
|
+
# Project ID for this request.
|
9335
|
+
# @param [String] interconnect
|
9336
|
+
# Name of the interconnect resource to query.
|
9337
|
+
# @param [String] fields
|
9338
|
+
# Selector specifying which fields to include in a partial response.
|
9339
|
+
# @param [String] quota_user
|
9340
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
9341
|
+
# characters.
|
9342
|
+
# @param [String] user_ip
|
9343
|
+
# Deprecated. Please use quotaUser instead.
|
9344
|
+
# @param [Google::Apis::RequestOptions] options
|
9345
|
+
# Request-specific options
|
9346
|
+
#
|
9347
|
+
# @yield [result, err] Result & error if block supplied
|
9348
|
+
# @yieldparam result [Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse] parsed result object
|
9349
|
+
# @yieldparam err [StandardError] error object if request failed
|
9350
|
+
#
|
9351
|
+
# @return [Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse]
|
9352
|
+
#
|
9353
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9354
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9355
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9356
|
+
def get_interconnect_diagnostics(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9357
|
+
command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}/getDiagnostics', options)
|
9358
|
+
command.response_representation = Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse::Representation
|
9359
|
+
command.response_class = Google::Apis::ComputeV1::InterconnectsGetDiagnosticsResponse
|
9360
|
+
command.params['project'] = project unless project.nil?
|
9361
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
9362
|
+
command.query['fields'] = fields unless fields.nil?
|
9363
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9364
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9365
|
+
execute_or_queue_command(command, &block)
|
9366
|
+
end
|
9367
|
+
|
8781
9368
|
# Creates a Interconnect in the specified project using the data included in the
|
8782
9369
|
# request.
|
8783
9370
|
# @param [String] project
|
@@ -8992,7 +9579,7 @@ module Google
|
|
8992
9579
|
# @param [String] project
|
8993
9580
|
# Project ID for this request.
|
8994
9581
|
# @param [String] resource
|
8995
|
-
# Name of the resource for this request.
|
9582
|
+
# Name or id of the resource for this request.
|
8996
9583
|
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
8997
9584
|
# @param [String] fields
|
8998
9585
|
# Selector specifying which fields to include in a partial response.
|
@@ -9111,6 +9698,43 @@ module Google
|
|
9111
9698
|
execute_or_queue_command(command, &block)
|
9112
9699
|
end
|
9113
9700
|
|
9701
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
9702
|
+
# or resource exists.
|
9703
|
+
# @param [String] project
|
9704
|
+
# Project ID for this request.
|
9705
|
+
# @param [String] resource
|
9706
|
+
# Name or id of the resource for this request.
|
9707
|
+
# @param [String] fields
|
9708
|
+
# Selector specifying which fields to include in a partial response.
|
9709
|
+
# @param [String] quota_user
|
9710
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
9711
|
+
# characters.
|
9712
|
+
# @param [String] user_ip
|
9713
|
+
# Deprecated. Please use quotaUser instead.
|
9714
|
+
# @param [Google::Apis::RequestOptions] options
|
9715
|
+
# Request-specific options
|
9716
|
+
#
|
9717
|
+
# @yield [result, err] Result & error if block supplied
|
9718
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
9719
|
+
# @yieldparam err [StandardError] error object if request failed
|
9720
|
+
#
|
9721
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
9722
|
+
#
|
9723
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9724
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9725
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9726
|
+
def get_license_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9727
|
+
command = make_simple_command(:get, '{project}/global/licenses/{resource}/getIamPolicy', options)
|
9728
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
9729
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
9730
|
+
command.params['project'] = project unless project.nil?
|
9731
|
+
command.params['resource'] = resource unless resource.nil?
|
9732
|
+
command.query['fields'] = fields unless fields.nil?
|
9733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9734
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9735
|
+
execute_or_queue_command(command, &block)
|
9736
|
+
end
|
9737
|
+
|
9114
9738
|
# Create a License resource in the specified project.
|
9115
9739
|
# @param [String] project
|
9116
9740
|
# Project ID for this request.
|
@@ -9234,12 +9858,13 @@ module Google
|
|
9234
9858
|
execute_or_queue_command(command, &block)
|
9235
9859
|
end
|
9236
9860
|
|
9237
|
-
#
|
9861
|
+
# Sets the access control policy on the specified resource. Replaces any
|
9862
|
+
# existing policy.
|
9238
9863
|
# @param [String] project
|
9239
9864
|
# Project ID for this request.
|
9240
9865
|
# @param [String] resource
|
9241
|
-
# Name of the resource for this request.
|
9242
|
-
# @param [Google::Apis::ComputeV1::
|
9866
|
+
# Name or id of the resource for this request.
|
9867
|
+
# @param [Google::Apis::ComputeV1::GlobalSetPolicyRequest] global_set_policy_request_object
|
9243
9868
|
# @param [String] fields
|
9244
9869
|
# Selector specifying which fields to include in a partial response.
|
9245
9870
|
# @param [String] quota_user
|
@@ -9251,10 +9876,49 @@ module Google
|
|
9251
9876
|
# Request-specific options
|
9252
9877
|
#
|
9253
9878
|
# @yield [result, err] Result & error if block supplied
|
9254
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
9879
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
9255
9880
|
# @yieldparam err [StandardError] error object if request failed
|
9256
9881
|
#
|
9257
|
-
# @return [Google::Apis::ComputeV1::
|
9882
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
9883
|
+
#
|
9884
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9885
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9886
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9887
|
+
def set_license_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9888
|
+
command = make_simple_command(:post, '{project}/global/licenses/{resource}/setIamPolicy', options)
|
9889
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetPolicyRequest::Representation
|
9890
|
+
command.request_object = global_set_policy_request_object
|
9891
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
9892
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
9893
|
+
command.params['project'] = project unless project.nil?
|
9894
|
+
command.params['resource'] = resource unless resource.nil?
|
9895
|
+
command.query['fields'] = fields unless fields.nil?
|
9896
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9897
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9898
|
+
execute_or_queue_command(command, &block)
|
9899
|
+
end
|
9900
|
+
|
9901
|
+
# Returns permissions that a caller has on the specified resource.
|
9902
|
+
# @param [String] project
|
9903
|
+
# Project ID for this request.
|
9904
|
+
# @param [String] resource
|
9905
|
+
# Name or id of the resource for this request.
|
9906
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
9907
|
+
# @param [String] fields
|
9908
|
+
# Selector specifying which fields to include in a partial response.
|
9909
|
+
# @param [String] quota_user
|
9910
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
9911
|
+
# characters.
|
9912
|
+
# @param [String] user_ip
|
9913
|
+
# Deprecated. Please use quotaUser instead.
|
9914
|
+
# @param [Google::Apis::RequestOptions] options
|
9915
|
+
# Request-specific options
|
9916
|
+
#
|
9917
|
+
# @yield [result, err] Result & error if block supplied
|
9918
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
9919
|
+
# @yieldparam err [StandardError] error object if request failed
|
9920
|
+
#
|
9921
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
9258
9922
|
#
|
9259
9923
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9260
9924
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -9871,7 +10535,7 @@ module Google
|
|
9871
10535
|
# @param [String] zone
|
9872
10536
|
# The name of the zone for this request.
|
9873
10537
|
# @param [String] node_group
|
9874
|
-
# Name of the NodeGroup resource
|
10538
|
+
# Name of the NodeGroup resource.
|
9875
10539
|
# @param [Google::Apis::ComputeV1::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_object
|
9876
10540
|
# @param [String] request_id
|
9877
10541
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -10137,6 +10801,46 @@ module Google
|
|
10137
10801
|
execute_or_queue_command(command, &block)
|
10138
10802
|
end
|
10139
10803
|
|
10804
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
10805
|
+
# or resource exists.
|
10806
|
+
# @param [String] project
|
10807
|
+
# Project ID for this request.
|
10808
|
+
# @param [String] zone
|
10809
|
+
# The name of the zone for this request.
|
10810
|
+
# @param [String] resource
|
10811
|
+
# Name or id of the resource for this request.
|
10812
|
+
# @param [String] fields
|
10813
|
+
# Selector specifying which fields to include in a partial response.
|
10814
|
+
# @param [String] quota_user
|
10815
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10816
|
+
# characters.
|
10817
|
+
# @param [String] user_ip
|
10818
|
+
# Deprecated. Please use quotaUser instead.
|
10819
|
+
# @param [Google::Apis::RequestOptions] options
|
10820
|
+
# Request-specific options
|
10821
|
+
#
|
10822
|
+
# @yield [result, err] Result & error if block supplied
|
10823
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
10824
|
+
# @yieldparam err [StandardError] error object if request failed
|
10825
|
+
#
|
10826
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
10827
|
+
#
|
10828
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10829
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10830
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10831
|
+
def get_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10832
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options)
|
10833
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
10834
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
10835
|
+
command.params['project'] = project unless project.nil?
|
10836
|
+
command.params['zone'] = zone unless zone.nil?
|
10837
|
+
command.params['resource'] = resource unless resource.nil?
|
10838
|
+
command.query['fields'] = fields unless fields.nil?
|
10839
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10840
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10841
|
+
execute_or_queue_command(command, &block)
|
10842
|
+
end
|
10843
|
+
|
10140
10844
|
# Creates a NodeGroup resource in the specified project using the data included
|
10141
10845
|
# in the request.
|
10142
10846
|
# @param [String] project
|
@@ -10344,6 +11048,49 @@ module Google
|
|
10344
11048
|
execute_or_queue_command(command, &block)
|
10345
11049
|
end
|
10346
11050
|
|
11051
|
+
# Sets the access control policy on the specified resource. Replaces any
|
11052
|
+
# existing policy.
|
11053
|
+
# @param [String] project
|
11054
|
+
# Project ID for this request.
|
11055
|
+
# @param [String] zone
|
11056
|
+
# The name of the zone for this request.
|
11057
|
+
# @param [String] resource
|
11058
|
+
# Name or id of the resource for this request.
|
11059
|
+
# @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object
|
11060
|
+
# @param [String] fields
|
11061
|
+
# Selector specifying which fields to include in a partial response.
|
11062
|
+
# @param [String] quota_user
|
11063
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11064
|
+
# characters.
|
11065
|
+
# @param [String] user_ip
|
11066
|
+
# Deprecated. Please use quotaUser instead.
|
11067
|
+
# @param [Google::Apis::RequestOptions] options
|
11068
|
+
# Request-specific options
|
11069
|
+
#
|
11070
|
+
# @yield [result, err] Result & error if block supplied
|
11071
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
11072
|
+
# @yieldparam err [StandardError] error object if request failed
|
11073
|
+
#
|
11074
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
11075
|
+
#
|
11076
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11077
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11078
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11079
|
+
def set_node_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11080
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options)
|
11081
|
+
command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation
|
11082
|
+
command.request_object = zone_set_policy_request_object
|
11083
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
11084
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
11085
|
+
command.params['project'] = project unless project.nil?
|
11086
|
+
command.params['zone'] = zone unless zone.nil?
|
11087
|
+
command.params['resource'] = resource unless resource.nil?
|
11088
|
+
command.query['fields'] = fields unless fields.nil?
|
11089
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11090
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11091
|
+
execute_or_queue_command(command, &block)
|
11092
|
+
end
|
11093
|
+
|
10347
11094
|
# Updates the node template of the node group.
|
10348
11095
|
# @param [String] project
|
10349
11096
|
# Project ID for this request.
|
@@ -10398,6 +11145,48 @@ module Google
|
|
10398
11145
|
execute_or_queue_command(command, &block)
|
10399
11146
|
end
|
10400
11147
|
|
11148
|
+
# Returns permissions that a caller has on the specified resource.
|
11149
|
+
# @param [String] project
|
11150
|
+
# Project ID for this request.
|
11151
|
+
# @param [String] zone
|
11152
|
+
# The name of the zone for this request.
|
11153
|
+
# @param [String] resource
|
11154
|
+
# Name or id of the resource for this request.
|
11155
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
11156
|
+
# @param [String] fields
|
11157
|
+
# Selector specifying which fields to include in a partial response.
|
11158
|
+
# @param [String] quota_user
|
11159
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11160
|
+
# characters.
|
11161
|
+
# @param [String] user_ip
|
11162
|
+
# Deprecated. Please use quotaUser instead.
|
11163
|
+
# @param [Google::Apis::RequestOptions] options
|
11164
|
+
# Request-specific options
|
11165
|
+
#
|
11166
|
+
# @yield [result, err] Result & error if block supplied
|
11167
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
11168
|
+
# @yieldparam err [StandardError] error object if request failed
|
11169
|
+
#
|
11170
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
11171
|
+
#
|
11172
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11173
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11174
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11175
|
+
def test_node_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11176
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', options)
|
11177
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
11178
|
+
command.request_object = test_permissions_request_object
|
11179
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
11180
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
11181
|
+
command.params['project'] = project unless project.nil?
|
11182
|
+
command.params['zone'] = zone unless zone.nil?
|
11183
|
+
command.params['resource'] = resource unless resource.nil?
|
11184
|
+
command.query['fields'] = fields unless fields.nil?
|
11185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11186
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11187
|
+
execute_or_queue_command(command, &block)
|
11188
|
+
end
|
11189
|
+
|
10401
11190
|
# Retrieves an aggregated list of node templates.
|
10402
11191
|
# @param [String] project
|
10403
11192
|
# Project ID for this request.
|
@@ -10560,6 +11349,46 @@ module Google
|
|
10560
11349
|
execute_or_queue_command(command, &block)
|
10561
11350
|
end
|
10562
11351
|
|
11352
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
11353
|
+
# or resource exists.
|
11354
|
+
# @param [String] project
|
11355
|
+
# Project ID for this request.
|
11356
|
+
# @param [String] region
|
11357
|
+
# The name of the region for this request.
|
11358
|
+
# @param [String] resource
|
11359
|
+
# Name or id of the resource for this request.
|
11360
|
+
# @param [String] fields
|
11361
|
+
# Selector specifying which fields to include in a partial response.
|
11362
|
+
# @param [String] quota_user
|
11363
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11364
|
+
# characters.
|
11365
|
+
# @param [String] user_ip
|
11366
|
+
# Deprecated. Please use quotaUser instead.
|
11367
|
+
# @param [Google::Apis::RequestOptions] options
|
11368
|
+
# Request-specific options
|
11369
|
+
#
|
11370
|
+
# @yield [result, err] Result & error if block supplied
|
11371
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
11372
|
+
# @yieldparam err [StandardError] error object if request failed
|
11373
|
+
#
|
11374
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
11375
|
+
#
|
11376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11379
|
+
def get_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11380
|
+
command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options)
|
11381
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
11382
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
11383
|
+
command.params['project'] = project unless project.nil?
|
11384
|
+
command.params['region'] = region unless region.nil?
|
11385
|
+
command.params['resource'] = resource unless resource.nil?
|
11386
|
+
command.query['fields'] = fields unless fields.nil?
|
11387
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11388
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11389
|
+
execute_or_queue_command(command, &block)
|
11390
|
+
end
|
11391
|
+
|
10563
11392
|
# Creates a NodeTemplate resource in the specified project using the data
|
10564
11393
|
# included in the request.
|
10565
11394
|
# @param [String] project
|
@@ -10686,6 +11515,91 @@ module Google
|
|
10686
11515
|
execute_or_queue_command(command, &block)
|
10687
11516
|
end
|
10688
11517
|
|
11518
|
+
# Sets the access control policy on the specified resource. Replaces any
|
11519
|
+
# existing policy.
|
11520
|
+
# @param [String] project
|
11521
|
+
# Project ID for this request.
|
11522
|
+
# @param [String] region
|
11523
|
+
# The name of the region for this request.
|
11524
|
+
# @param [String] resource
|
11525
|
+
# Name or id of the resource for this request.
|
11526
|
+
# @param [Google::Apis::ComputeV1::RegionSetPolicyRequest] region_set_policy_request_object
|
11527
|
+
# @param [String] fields
|
11528
|
+
# Selector specifying which fields to include in a partial response.
|
11529
|
+
# @param [String] quota_user
|
11530
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11531
|
+
# characters.
|
11532
|
+
# @param [String] user_ip
|
11533
|
+
# Deprecated. Please use quotaUser instead.
|
11534
|
+
# @param [Google::Apis::RequestOptions] options
|
11535
|
+
# Request-specific options
|
11536
|
+
#
|
11537
|
+
# @yield [result, err] Result & error if block supplied
|
11538
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
11539
|
+
# @yieldparam err [StandardError] error object if request failed
|
11540
|
+
#
|
11541
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
11542
|
+
#
|
11543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11546
|
+
def set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11547
|
+
command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options)
|
11548
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetPolicyRequest::Representation
|
11549
|
+
command.request_object = region_set_policy_request_object
|
11550
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
11551
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
11552
|
+
command.params['project'] = project unless project.nil?
|
11553
|
+
command.params['region'] = region unless region.nil?
|
11554
|
+
command.params['resource'] = resource unless resource.nil?
|
11555
|
+
command.query['fields'] = fields unless fields.nil?
|
11556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11557
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11558
|
+
execute_or_queue_command(command, &block)
|
11559
|
+
end
|
11560
|
+
|
11561
|
+
# Returns permissions that a caller has on the specified resource.
|
11562
|
+
# @param [String] project
|
11563
|
+
# Project ID for this request.
|
11564
|
+
# @param [String] region
|
11565
|
+
# The name of the region for this request.
|
11566
|
+
# @param [String] resource
|
11567
|
+
# Name or id of the resource for this request.
|
11568
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
11569
|
+
# @param [String] fields
|
11570
|
+
# Selector specifying which fields to include in a partial response.
|
11571
|
+
# @param [String] quota_user
|
11572
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11573
|
+
# characters.
|
11574
|
+
# @param [String] user_ip
|
11575
|
+
# Deprecated. Please use quotaUser instead.
|
11576
|
+
# @param [Google::Apis::RequestOptions] options
|
11577
|
+
# Request-specific options
|
11578
|
+
#
|
11579
|
+
# @yield [result, err] Result & error if block supplied
|
11580
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
11581
|
+
# @yieldparam err [StandardError] error object if request failed
|
11582
|
+
#
|
11583
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
11584
|
+
#
|
11585
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11586
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11587
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11588
|
+
def test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11589
|
+
command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options)
|
11590
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
11591
|
+
command.request_object = test_permissions_request_object
|
11592
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
11593
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
11594
|
+
command.params['project'] = project unless project.nil?
|
11595
|
+
command.params['region'] = region unless region.nil?
|
11596
|
+
command.params['resource'] = resource unless resource.nil?
|
11597
|
+
command.query['fields'] = fields unless fields.nil?
|
11598
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11599
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11600
|
+
execute_or_queue_command(command, &block)
|
11601
|
+
end
|
11602
|
+
|
10689
11603
|
# Retrieves an aggregated list of node types.
|
10690
11604
|
# @param [String] project
|
10691
11605
|
# Project ID for this request.
|
@@ -12906,7 +13820,7 @@ module Google
|
|
12906
13820
|
# @param [String] region
|
12907
13821
|
# The region for this request.
|
12908
13822
|
# @param [String] resource
|
12909
|
-
# Name of the resource for this request.
|
13823
|
+
# Name or id of the resource for this request.
|
12910
13824
|
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
12911
13825
|
# @param [String] request_id
|
12912
13826
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -12960,7 +13874,7 @@ module Google
|
|
12960
13874
|
# @param [String] region
|
12961
13875
|
# The name of the region for this request.
|
12962
13876
|
# @param [String] resource
|
12963
|
-
# Name of the resource for this request.
|
13877
|
+
# Name or id of the resource for this request.
|
12964
13878
|
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
12965
13879
|
# @param [String] fields
|
12966
13880
|
# Selector specifying which fields to include in a partial response.
|
@@ -12996,7 +13910,7 @@ module Google
|
|
12996
13910
|
execute_or_queue_command(command, &block)
|
12997
13911
|
end
|
12998
13912
|
|
12999
|
-
#
|
13913
|
+
# Flags the specified instances to be immediately removed from the managed
|
13000
13914
|
# instance group. Abandoning an instance does not delete the instance, but it
|
13001
13915
|
# does remove the instance from any target pools that are applied by the managed
|
13002
13916
|
# instance group. This method reduces the targetSize of the managed instance
|
@@ -13113,13 +14027,13 @@ module Google
|
|
13113
14027
|
execute_or_queue_command(command, &block)
|
13114
14028
|
end
|
13115
14029
|
|
13116
|
-
#
|
13117
|
-
#
|
13118
|
-
#
|
13119
|
-
# group by the number of instances that you delete.
|
13120
|
-
#
|
13121
|
-
#
|
13122
|
-
# listmanagedinstances method.
|
14030
|
+
# Flags the specified instances in the managed instance group to be immediately
|
14031
|
+
# deleted. The instances are also removed from any target pools of which they
|
14032
|
+
# were a member. This method reduces the targetSize of the managed instance
|
14033
|
+
# group by the number of instances that you delete. The deleteInstances
|
14034
|
+
# operation is marked DONE if the deleteInstances request is successful. The
|
14035
|
+
# underlying actions take additional time. You must separately verify the status
|
14036
|
+
# of the deleting action with the listmanagedinstances method.
|
13123
14037
|
# If the group is part of a backend service that has enabled connection draining,
|
13124
14038
|
# it can take up to 60 seconds after the connection draining duration has
|
13125
14039
|
# elapsed before the VM instance is removed or deleted.
|
@@ -13217,11 +14131,11 @@ module Google
|
|
13217
14131
|
end
|
13218
14132
|
|
13219
14133
|
# Creates a managed instance group using the information that you specify in the
|
13220
|
-
# request. After the group is created,
|
13221
|
-
#
|
13222
|
-
#
|
13223
|
-
#
|
13224
|
-
#
|
14134
|
+
# request. After the group is created, instances in the group are created using
|
14135
|
+
# the specified instance template. This operation is marked as DONE when the
|
14136
|
+
# group is created even if the instances in the group have not yet been created.
|
14137
|
+
# You must separately verify the status of the individual instances with the
|
14138
|
+
# listmanagedinstances method.
|
13225
14139
|
# A regional managed instance group can contain up to 2000 instances.
|
13226
14140
|
# @param [String] project
|
13227
14141
|
# Project ID for this request.
|
@@ -13427,23 +14341,19 @@ module Google
|
|
13427
14341
|
execute_or_queue_command(command, &block)
|
13428
14342
|
end
|
13429
14343
|
|
13430
|
-
#
|
13431
|
-
#
|
13432
|
-
#
|
13433
|
-
#
|
13434
|
-
#
|
13435
|
-
#
|
13436
|
-
# If the group is part of a backend service that has enabled connection draining,
|
13437
|
-
# it can take up to 60 seconds after the connection draining duration has
|
13438
|
-
# elapsed before the VM instance is removed or deleted.
|
13439
|
-
# You can specify a maximum of 1000 instances with this method per request.
|
14344
|
+
# Updates a managed instance group using the information that you specify in the
|
14345
|
+
# request. This operation is marked as DONE when the group is patched even if
|
14346
|
+
# the instances in the group are still in the process of being patched. You must
|
14347
|
+
# separately verify the status of the individual instances with the
|
14348
|
+
# listmanagedinstances method. This method supports PATCH semantics and uses the
|
14349
|
+
# JSON merge patch format and processing rules.
|
13440
14350
|
# @param [String] project
|
13441
14351
|
# Project ID for this request.
|
13442
14352
|
# @param [String] region
|
13443
14353
|
# Name of the region scoping this request.
|
13444
14354
|
# @param [String] instance_group_manager
|
13445
|
-
#
|
13446
|
-
# @param [Google::Apis::ComputeV1::
|
14355
|
+
# The name of the instance group manager.
|
14356
|
+
# @param [Google::Apis::ComputeV1::InstanceGroupManager] instance_group_manager_object
|
13447
14357
|
# @param [String] request_id
|
13448
14358
|
# An optional request ID to identify requests. Specify a unique request ID so
|
13449
14359
|
# that if you must retry your request, the server will know to ignore the
|
@@ -13474,10 +14384,10 @@ module Google
|
|
13474
14384
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13475
14385
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13476
14386
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13477
|
-
def
|
13478
|
-
command = make_simple_command(:
|
13479
|
-
command.request_representation = Google::Apis::ComputeV1::
|
13480
|
-
command.request_object =
|
14387
|
+
def patch_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14388
|
+
command = make_simple_command(:patch, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
|
14389
|
+
command.request_representation = Google::Apis::ComputeV1::InstanceGroupManager::Representation
|
14390
|
+
command.request_object = instance_group_manager_object
|
13481
14391
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
13482
14392
|
command.response_class = Google::Apis::ComputeV1::Operation
|
13483
14393
|
command.params['project'] = project unless project.nil?
|
@@ -13490,13 +14400,75 @@ module Google
|
|
13490
14400
|
execute_or_queue_command(command, &block)
|
13491
14401
|
end
|
13492
14402
|
|
13493
|
-
#
|
13494
|
-
#
|
13495
|
-
# instance
|
13496
|
-
#
|
13497
|
-
#
|
13498
|
-
#
|
13499
|
-
#
|
14403
|
+
# Flags the specified instances in the managed instance group to be immediately
|
14404
|
+
# recreated. The instances are deleted and recreated using the current instance
|
14405
|
+
# template for the managed instance group. This operation is marked as DONE when
|
14406
|
+
# the flag is set even if the instances have not yet been recreated. You must
|
14407
|
+
# separately verify the status of the recreating action with the
|
14408
|
+
# listmanagedinstances method.
|
14409
|
+
# If the group is part of a backend service that has enabled connection draining,
|
14410
|
+
# it can take up to 60 seconds after the connection draining duration has
|
14411
|
+
# elapsed before the VM instance is removed or deleted.
|
14412
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
14413
|
+
# @param [String] project
|
14414
|
+
# Project ID for this request.
|
14415
|
+
# @param [String] region
|
14416
|
+
# Name of the region scoping this request.
|
14417
|
+
# @param [String] instance_group_manager
|
14418
|
+
# Name of the managed instance group.
|
14419
|
+
# @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersRecreateRequest] region_instance_group_managers_recreate_request_object
|
14420
|
+
# @param [String] request_id
|
14421
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14422
|
+
# that if you must retry your request, the server will know to ignore the
|
14423
|
+
# request if it has already been completed.
|
14424
|
+
# For example, consider a situation where you make an initial request and the
|
14425
|
+
# request times out. If you make the request again with the same request ID, the
|
14426
|
+
# server can check if original operation with the same request ID was received,
|
14427
|
+
# and if so, will ignore the second request. This prevents clients from
|
14428
|
+
# accidentally creating duplicate commitments.
|
14429
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
14430
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
14431
|
+
# @param [String] fields
|
14432
|
+
# Selector specifying which fields to include in a partial response.
|
14433
|
+
# @param [String] quota_user
|
14434
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14435
|
+
# characters.
|
14436
|
+
# @param [String] user_ip
|
14437
|
+
# Deprecated. Please use quotaUser instead.
|
14438
|
+
# @param [Google::Apis::RequestOptions] options
|
14439
|
+
# Request-specific options
|
14440
|
+
#
|
14441
|
+
# @yield [result, err] Result & error if block supplied
|
14442
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
14443
|
+
# @yieldparam err [StandardError] error object if request failed
|
14444
|
+
#
|
14445
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
14446
|
+
#
|
14447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14450
|
+
def recreate_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_recreate_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14451
|
+
command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options)
|
14452
|
+
command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersRecreateRequest::Representation
|
14453
|
+
command.request_object = region_instance_group_managers_recreate_request_object
|
14454
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
14455
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
14456
|
+
command.params['project'] = project unless project.nil?
|
14457
|
+
command.params['region'] = region unless region.nil?
|
14458
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
14459
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14460
|
+
command.query['fields'] = fields unless fields.nil?
|
14461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14462
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14463
|
+
execute_or_queue_command(command, &block)
|
14464
|
+
end
|
14465
|
+
|
14466
|
+
# Changes the intended size of the managed instance group. If you increase the
|
14467
|
+
# size, the group creates new instances using the current instance template. If
|
14468
|
+
# you decrease the size, the group deletes one or more instances.
|
14469
|
+
# The resize operation is marked DONE if the resize request is successful. The
|
14470
|
+
# underlying actions take additional time. You must separately verify the status
|
14471
|
+
# of the creating or deleting actions with the listmanagedinstances method.
|
13500
14472
|
# If the group is part of a backend service that has enabled connection draining,
|
13501
14473
|
# it can take up to 60 seconds after the connection draining duration has
|
13502
14474
|
# elapsed before the VM instance is removed or deleted.
|
@@ -14333,6 +15305,84 @@ module Google
|
|
14333
15305
|
execute_or_queue_command(command, &block)
|
14334
15306
|
end
|
14335
15307
|
|
15308
|
+
# Retrieves runtime Nat mapping information of VM endpoints.
|
15309
|
+
# @param [String] project
|
15310
|
+
# Project ID for this request.
|
15311
|
+
# @param [String] region
|
15312
|
+
# Name of the region for this request.
|
15313
|
+
# @param [String] router
|
15314
|
+
# Name of the Router resource to query for Nat Mapping information of VM
|
15315
|
+
# endpoints.
|
15316
|
+
# @param [String] filter
|
15317
|
+
# A filter expression that filters resources listed in the response. The
|
15318
|
+
# expression must specify the field name, a comparison operator, and the value
|
15319
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
15320
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
15321
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
15322
|
+
# instances named example-instance by specifying name != example-instance.
|
15323
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
15324
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
15325
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
15326
|
+
# on resource labels.
|
15327
|
+
# To filter on multiple expressions, provide each separate expression within
|
15328
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
15329
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
15330
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
15331
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
15332
|
+
# automaticRestart = true).
|
15333
|
+
# @param [Fixnum] max_results
|
15334
|
+
# The maximum number of results per page that should be returned. If the number
|
15335
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
15336
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
15337
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
15338
|
+
# @param [String] order_by
|
15339
|
+
# Sorts list results by a certain order. By default, results are returned in
|
15340
|
+
# alphanumerical order based on the resource name.
|
15341
|
+
# You can also sort results in descending order based on the creation timestamp
|
15342
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
15343
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
15344
|
+
# Use this to sort resources like operations so that the newest operation is
|
15345
|
+
# returned first.
|
15346
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
15347
|
+
# @param [String] page_token
|
15348
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
15349
|
+
# a previous list request to get the next page of results.
|
15350
|
+
# @param [String] fields
|
15351
|
+
# Selector specifying which fields to include in a partial response.
|
15352
|
+
# @param [String] quota_user
|
15353
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
15354
|
+
# characters.
|
15355
|
+
# @param [String] user_ip
|
15356
|
+
# Deprecated. Please use quotaUser instead.
|
15357
|
+
# @param [Google::Apis::RequestOptions] options
|
15358
|
+
# Request-specific options
|
15359
|
+
#
|
15360
|
+
# @yield [result, err] Result & error if block supplied
|
15361
|
+
# @yieldparam result [Google::Apis::ComputeV1::VmEndpointNatMappingsList] parsed result object
|
15362
|
+
# @yieldparam err [StandardError] error object if request failed
|
15363
|
+
#
|
15364
|
+
# @return [Google::Apis::ComputeV1::VmEndpointNatMappingsList]
|
15365
|
+
#
|
15366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15369
|
+
def get_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15370
|
+
command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getNatMappingInfo', options)
|
15371
|
+
command.response_representation = Google::Apis::ComputeV1::VmEndpointNatMappingsList::Representation
|
15372
|
+
command.response_class = Google::Apis::ComputeV1::VmEndpointNatMappingsList
|
15373
|
+
command.params['project'] = project unless project.nil?
|
15374
|
+
command.params['region'] = region unless region.nil?
|
15375
|
+
command.params['router'] = router unless router.nil?
|
15376
|
+
command.query['filter'] = filter unless filter.nil?
|
15377
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
15378
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
15379
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
15380
|
+
command.query['fields'] = fields unless fields.nil?
|
15381
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15382
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15383
|
+
execute_or_queue_command(command, &block)
|
15384
|
+
end
|
15385
|
+
|
14336
15386
|
# Retrieves runtime information of the specified router.
|
14337
15387
|
# @param [String] project
|
14338
15388
|
# Project ID for this request.
|
@@ -15274,7 +16324,7 @@ module Google
|
|
15274
16324
|
# snapshot might not necessarily delete all the data on that snapshot. If any
|
15275
16325
|
# data on the snapshot that is marked for deletion is needed for subsequent
|
15276
16326
|
# snapshots, the data will be moved to the next corresponding snapshot.
|
15277
|
-
# For more information, see Deleting
|
16327
|
+
# For more information, see Deleting snapshots.
|
15278
16328
|
# @param [String] project
|
15279
16329
|
# Project ID for this request.
|
15280
16330
|
# @param [String] snapshot
|
@@ -15359,6 +16409,43 @@ module Google
|
|
15359
16409
|
execute_or_queue_command(command, &block)
|
15360
16410
|
end
|
15361
16411
|
|
16412
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
16413
|
+
# or resource exists.
|
16414
|
+
# @param [String] project
|
16415
|
+
# Project ID for this request.
|
16416
|
+
# @param [String] resource
|
16417
|
+
# Name or id of the resource for this request.
|
16418
|
+
# @param [String] fields
|
16419
|
+
# Selector specifying which fields to include in a partial response.
|
16420
|
+
# @param [String] quota_user
|
16421
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16422
|
+
# characters.
|
16423
|
+
# @param [String] user_ip
|
16424
|
+
# Deprecated. Please use quotaUser instead.
|
16425
|
+
# @param [Google::Apis::RequestOptions] options
|
16426
|
+
# Request-specific options
|
16427
|
+
#
|
16428
|
+
# @yield [result, err] Result & error if block supplied
|
16429
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
16430
|
+
# @yieldparam err [StandardError] error object if request failed
|
16431
|
+
#
|
16432
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
16433
|
+
#
|
16434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16437
|
+
def get_snapshot_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16438
|
+
command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options)
|
16439
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
16440
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
16441
|
+
command.params['project'] = project unless project.nil?
|
16442
|
+
command.params['resource'] = resource unless resource.nil?
|
16443
|
+
command.query['fields'] = fields unless fields.nil?
|
16444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16445
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16446
|
+
execute_or_queue_command(command, &block)
|
16447
|
+
end
|
16448
|
+
|
15362
16449
|
# Retrieves the list of Snapshot resources contained within the specified
|
15363
16450
|
# project.
|
15364
16451
|
# @param [String] project
|
@@ -15431,12 +16518,52 @@ module Google
|
|
15431
16518
|
execute_or_queue_command(command, &block)
|
15432
16519
|
end
|
15433
16520
|
|
16521
|
+
# Sets the access control policy on the specified resource. Replaces any
|
16522
|
+
# existing policy.
|
16523
|
+
# @param [String] project
|
16524
|
+
# Project ID for this request.
|
16525
|
+
# @param [String] resource
|
16526
|
+
# Name or id of the resource for this request.
|
16527
|
+
# @param [Google::Apis::ComputeV1::GlobalSetPolicyRequest] global_set_policy_request_object
|
16528
|
+
# @param [String] fields
|
16529
|
+
# Selector specifying which fields to include in a partial response.
|
16530
|
+
# @param [String] quota_user
|
16531
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16532
|
+
# characters.
|
16533
|
+
# @param [String] user_ip
|
16534
|
+
# Deprecated. Please use quotaUser instead.
|
16535
|
+
# @param [Google::Apis::RequestOptions] options
|
16536
|
+
# Request-specific options
|
16537
|
+
#
|
16538
|
+
# @yield [result, err] Result & error if block supplied
|
16539
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
16540
|
+
# @yieldparam err [StandardError] error object if request failed
|
16541
|
+
#
|
16542
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
16543
|
+
#
|
16544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16547
|
+
def set_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16548
|
+
command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setIamPolicy', options)
|
16549
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetPolicyRequest::Representation
|
16550
|
+
command.request_object = global_set_policy_request_object
|
16551
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
16552
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
16553
|
+
command.params['project'] = project unless project.nil?
|
16554
|
+
command.params['resource'] = resource unless resource.nil?
|
16555
|
+
command.query['fields'] = fields unless fields.nil?
|
16556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16557
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16558
|
+
execute_or_queue_command(command, &block)
|
16559
|
+
end
|
16560
|
+
|
15434
16561
|
# Sets the labels on a snapshot. To learn more about labels, read the Labeling
|
15435
16562
|
# Resources documentation.
|
15436
16563
|
# @param [String] project
|
15437
16564
|
# Project ID for this request.
|
15438
16565
|
# @param [String] resource
|
15439
|
-
# Name of the resource for this request.
|
16566
|
+
# Name or id of the resource for this request.
|
15440
16567
|
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
15441
16568
|
# @param [String] fields
|
15442
16569
|
# Selector specifying which fields to include in a partial response.
|
@@ -15471,6 +16598,45 @@ module Google
|
|
15471
16598
|
execute_or_queue_command(command, &block)
|
15472
16599
|
end
|
15473
16600
|
|
16601
|
+
# Returns permissions that a caller has on the specified resource.
|
16602
|
+
# @param [String] project
|
16603
|
+
# Project ID for this request.
|
16604
|
+
# @param [String] resource
|
16605
|
+
# Name or id of the resource for this request.
|
16606
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
16607
|
+
# @param [String] fields
|
16608
|
+
# Selector specifying which fields to include in a partial response.
|
16609
|
+
# @param [String] quota_user
|
16610
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16611
|
+
# characters.
|
16612
|
+
# @param [String] user_ip
|
16613
|
+
# Deprecated. Please use quotaUser instead.
|
16614
|
+
# @param [Google::Apis::RequestOptions] options
|
16615
|
+
# Request-specific options
|
16616
|
+
#
|
16617
|
+
# @yield [result, err] Result & error if block supplied
|
16618
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
16619
|
+
# @yieldparam err [StandardError] error object if request failed
|
16620
|
+
#
|
16621
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
16622
|
+
#
|
16623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16626
|
+
def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16627
|
+
command = make_simple_command(:post, '{project}/global/snapshots/{resource}/testIamPermissions', options)
|
16628
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
16629
|
+
command.request_object = test_permissions_request_object
|
16630
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
16631
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
16632
|
+
command.params['project'] = project unless project.nil?
|
16633
|
+
command.params['resource'] = resource unless resource.nil?
|
16634
|
+
command.query['fields'] = fields unless fields.nil?
|
16635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16636
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16637
|
+
execute_or_queue_command(command, &block)
|
16638
|
+
end
|
16639
|
+
|
15474
16640
|
# Deletes the specified SslCertificate resource.
|
15475
16641
|
# @param [String] project
|
15476
16642
|
# Project ID for this request.
|
@@ -16224,6 +17390,46 @@ module Google
|
|
16224
17390
|
execute_or_queue_command(command, &block)
|
16225
17391
|
end
|
16226
17392
|
|
17393
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
17394
|
+
# or resource exists.
|
17395
|
+
# @param [String] project
|
17396
|
+
# Project ID for this request.
|
17397
|
+
# @param [String] region
|
17398
|
+
# The name of the region for this request.
|
17399
|
+
# @param [String] resource
|
17400
|
+
# Name or id of the resource for this request.
|
17401
|
+
# @param [String] fields
|
17402
|
+
# Selector specifying which fields to include in a partial response.
|
17403
|
+
# @param [String] quota_user
|
17404
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17405
|
+
# characters.
|
17406
|
+
# @param [String] user_ip
|
17407
|
+
# Deprecated. Please use quotaUser instead.
|
17408
|
+
# @param [Google::Apis::RequestOptions] options
|
17409
|
+
# Request-specific options
|
17410
|
+
#
|
17411
|
+
# @yield [result, err] Result & error if block supplied
|
17412
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
17413
|
+
# @yieldparam err [StandardError] error object if request failed
|
17414
|
+
#
|
17415
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
17416
|
+
#
|
17417
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17418
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17419
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17420
|
+
def get_subnetwork_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17421
|
+
command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options)
|
17422
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
17423
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
17424
|
+
command.params['project'] = project unless project.nil?
|
17425
|
+
command.params['region'] = region unless region.nil?
|
17426
|
+
command.params['resource'] = resource unless resource.nil?
|
17427
|
+
command.query['fields'] = fields unless fields.nil?
|
17428
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17429
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17430
|
+
execute_or_queue_command(command, &block)
|
17431
|
+
end
|
17432
|
+
|
16227
17433
|
# Creates a subnetwork in the specified project using the data included in the
|
16228
17434
|
# request.
|
16229
17435
|
# @param [String] project
|
@@ -16422,10 +17628,9 @@ module Google
|
|
16422
17628
|
end
|
16423
17629
|
|
16424
17630
|
# Patches the specified subnetwork with the data included in the request. Only
|
16425
|
-
#
|
16426
|
-
#
|
16427
|
-
#
|
16428
|
-
# being patched.
|
17631
|
+
# certain fields can up updated with a patch request as indicated in the field
|
17632
|
+
# descriptions. You must specify the current fingeprint of the subnetwork
|
17633
|
+
# resource being patched.
|
16429
17634
|
# @param [String] project
|
16430
17635
|
# Project ID for this request.
|
16431
17636
|
# @param [String] region
|
@@ -16479,6 +17684,49 @@ module Google
|
|
16479
17684
|
execute_or_queue_command(command, &block)
|
16480
17685
|
end
|
16481
17686
|
|
17687
|
+
# Sets the access control policy on the specified resource. Replaces any
|
17688
|
+
# existing policy.
|
17689
|
+
# @param [String] project
|
17690
|
+
# Project ID for this request.
|
17691
|
+
# @param [String] region
|
17692
|
+
# The name of the region for this request.
|
17693
|
+
# @param [String] resource
|
17694
|
+
# Name or id of the resource for this request.
|
17695
|
+
# @param [Google::Apis::ComputeV1::RegionSetPolicyRequest] region_set_policy_request_object
|
17696
|
+
# @param [String] fields
|
17697
|
+
# Selector specifying which fields to include in a partial response.
|
17698
|
+
# @param [String] quota_user
|
17699
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17700
|
+
# characters.
|
17701
|
+
# @param [String] user_ip
|
17702
|
+
# Deprecated. Please use quotaUser instead.
|
17703
|
+
# @param [Google::Apis::RequestOptions] options
|
17704
|
+
# Request-specific options
|
17705
|
+
#
|
17706
|
+
# @yield [result, err] Result & error if block supplied
|
17707
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
17708
|
+
# @yieldparam err [StandardError] error object if request failed
|
17709
|
+
#
|
17710
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
17711
|
+
#
|
17712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17715
|
+
def set_subnetwork_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17716
|
+
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options)
|
17717
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetPolicyRequest::Representation
|
17718
|
+
command.request_object = region_set_policy_request_object
|
17719
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
17720
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
17721
|
+
command.params['project'] = project unless project.nil?
|
17722
|
+
command.params['region'] = region unless region.nil?
|
17723
|
+
command.params['resource'] = resource unless resource.nil?
|
17724
|
+
command.query['fields'] = fields unless fields.nil?
|
17725
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17726
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17727
|
+
execute_or_queue_command(command, &block)
|
17728
|
+
end
|
17729
|
+
|
16482
17730
|
# Set whether VMs in this subnet can access Google services without assigning
|
16483
17731
|
# external IP addresses through Private Google Access.
|
16484
17732
|
# @param [String] project
|
@@ -16534,6 +17782,48 @@ module Google
|
|
16534
17782
|
execute_or_queue_command(command, &block)
|
16535
17783
|
end
|
16536
17784
|
|
17785
|
+
# Returns permissions that a caller has on the specified resource.
|
17786
|
+
# @param [String] project
|
17787
|
+
# Project ID for this request.
|
17788
|
+
# @param [String] region
|
17789
|
+
# The name of the region for this request.
|
17790
|
+
# @param [String] resource
|
17791
|
+
# Name or id of the resource for this request.
|
17792
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
17793
|
+
# @param [String] fields
|
17794
|
+
# Selector specifying which fields to include in a partial response.
|
17795
|
+
# @param [String] quota_user
|
17796
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17797
|
+
# characters.
|
17798
|
+
# @param [String] user_ip
|
17799
|
+
# Deprecated. Please use quotaUser instead.
|
17800
|
+
# @param [Google::Apis::RequestOptions] options
|
17801
|
+
# Request-specific options
|
17802
|
+
#
|
17803
|
+
# @yield [result, err] Result & error if block supplied
|
17804
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
17805
|
+
# @yieldparam err [StandardError] error object if request failed
|
17806
|
+
#
|
17807
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
17808
|
+
#
|
17809
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17810
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17811
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17812
|
+
def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17813
|
+
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options)
|
17814
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
17815
|
+
command.request_object = test_permissions_request_object
|
17816
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
17817
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
17818
|
+
command.params['project'] = project unless project.nil?
|
17819
|
+
command.params['region'] = region unless region.nil?
|
17820
|
+
command.params['resource'] = resource unless resource.nil?
|
17821
|
+
command.query['fields'] = fields unless fields.nil?
|
17822
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17823
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17824
|
+
execute_or_queue_command(command, &block)
|
17825
|
+
end
|
17826
|
+
|
16537
17827
|
# Deletes the specified TargetHttpProxy resource.
|
16538
17828
|
# @param [String] project
|
16539
17829
|
# Project ID for this request.
|