google-api-client 0.30.2 → 0.30.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +90 -0
- data/README.md +17 -1
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +108 -0
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +48 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +32 -6
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +16 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +32 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +16 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +8 -64
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +6 -4
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +6 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +243 -5
- data/generated/google/apis/bigquery_v2/representations.rb +77 -0
- data/generated/google/apis/bigquery_v2/service.rb +206 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +18 -76
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +0 -72
- data/generated/google/apis/bigtableadmin_v1/representations.rb +0 -32
- data/generated/google/apis/bigtableadmin_v1/service.rb +0 -69
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +72 -0
- data/generated/google/apis/bigtableadmin_v2/representations.rb +32 -0
- data/generated/google/apis/bigtableadmin_v2/service.rb +69 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +9 -75
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +9 -75
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +8 -74
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -74
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +8 -74
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +4 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -5
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -9
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -9
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +20 -84
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +20 -84
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +8 -74
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +8 -74
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -74
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +8 -0
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -74
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +2 -2
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +1 -1
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +8 -74
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +8 -74
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1991 -700
- data/generated/google/apis/compute_alpha/representations.rb +604 -154
- data/generated/google/apis/compute_alpha/service.rb +693 -89
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +375 -230
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +92 -6
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1827 -239
- data/generated/google/apis/compute_v1/representations.rb +669 -2
- data/generated/google/apis/compute_v1/service.rb +1150 -6
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +104 -0
- data/generated/google/apis/container_v1/representations.rb +48 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +67 -2
- data/generated/google/apis/container_v1beta1/representations.rb +31 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +4 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +41 -0
- data/generated/google/apis/content_v2_1/representations.rb +19 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +46 -74
- data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +8 -74
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +147 -64
- data/generated/google/apis/dataproc_v1/representations.rb +42 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +8 -64
- data/generated/google/apis/dataproc_v1beta2/service.rb +4 -2
- data/generated/google/apis/dialogflow_v2.rb +2 -2
- data/generated/google/apis/dialogflow_v2/classes.rb +32 -32
- data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2/service.rb +77 -17
- data/generated/google/apis/dialogflow_v2beta1.rb +2 -2
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +32 -32
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +79 -19
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -3
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/service.rb +1 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +0 -10
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +17 -74
- data/generated/google/apis/file_v1/representations.rb +1 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +17 -74
- data/generated/google/apis/file_v1beta1/representations.rb +1 -0
- data/generated/google/apis/firebase_v1beta1.rb +44 -0
- data/generated/google/apis/firebase_v1beta1/classes.rb +1063 -0
- data/generated/google/apis/firebase_v1beta1/representations.rb +432 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +1105 -0
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/service.rb +43 -61
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +43 -61
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +6 -0
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +18 -0
- data/generated/google/apis/ml_v1/representations.rb +3 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +12 -111
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +43 -0
- data/generated/google/apis/pubsub_v1/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +89 -26
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +89 -26
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +15 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +103 -30
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +29 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +64 -148
- data/generated/google/apis/servicecontrol_v1/representations.rb +17 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +8 -74
- data/generated/google/apis/servicemanagement_v1/service.rb +9 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +0 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +0 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +12 -111
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +13 -74
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +13 -74
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -3
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/tagmanager_v1.rb +4 -3
- data/generated/google/apis/tagmanager_v1/classes.rb +237 -70
- data/generated/google/apis/tagmanager_v1/service.rb +223 -374
- data/generated/google/apis/tagmanager_v2.rb +4 -3
- data/generated/google/apis/tagmanager_v2/classes.rb +221 -208
- data/generated/google/apis/tagmanager_v2/representations.rb +1 -16
- data/generated/google/apis/tagmanager_v2/service.rb +608 -757
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +28 -27
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +28 -27
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +35 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +17 -88
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +17 -88
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +49 -0
- data/generated/google/apis/vault_v1/representations.rb +18 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +324 -332
- data/generated/google/apis/videointelligence_v1/representations.rb +102 -0
- data/generated/google/apis/videointelligence_v1/service.rb +217 -9
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +279 -297
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +102 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +324 -332
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +102 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +324 -332
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +102 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +324 -332
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +102 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
|
@@ -396,8 +396,8 @@ module Google
|
|
|
396
396
|
execute_or_queue_command(command, &block)
|
|
397
397
|
end
|
|
398
398
|
|
|
399
|
-
# Creates an address resource in the specified project using the data
|
|
400
|
-
# in the request.
|
|
399
|
+
# Creates an address resource in the specified project by using the data
|
|
400
|
+
# included in the request.
|
|
401
401
|
# @param [String] project
|
|
402
402
|
# Project ID for this request.
|
|
403
403
|
# @param [String] region
|
|
@@ -2105,6 +2105,61 @@ module Google
|
|
|
2105
2105
|
execute_or_queue_command(command, &block)
|
|
2106
2106
|
end
|
|
2107
2107
|
|
|
2108
|
+
# Adds existing resource policies to a disk. You can only add one policy which
|
|
2109
|
+
# will be applied to this disk for scheduling snapshot creation.
|
|
2110
|
+
# @param [String] project
|
|
2111
|
+
# Project ID for this request.
|
|
2112
|
+
# @param [String] zone
|
|
2113
|
+
# The name of the zone for this request.
|
|
2114
|
+
# @param [String] disk
|
|
2115
|
+
# The disk name for this request.
|
|
2116
|
+
# @param [Google::Apis::ComputeV1::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object
|
|
2117
|
+
# @param [String] request_id
|
|
2118
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2119
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2120
|
+
# request if it has already been completed.
|
|
2121
|
+
# For example, consider a situation where you make an initial request and the
|
|
2122
|
+
# request times out. If you make the request again with the same request ID, the
|
|
2123
|
+
# server can check if original operation with the same request ID was received,
|
|
2124
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
2125
|
+
# accidentally creating duplicate commitments.
|
|
2126
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
2127
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
2128
|
+
# @param [String] fields
|
|
2129
|
+
# Selector specifying which fields to include in a partial response.
|
|
2130
|
+
# @param [String] quota_user
|
|
2131
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2132
|
+
# characters.
|
|
2133
|
+
# @param [String] user_ip
|
|
2134
|
+
# Deprecated. Please use quotaUser instead.
|
|
2135
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2136
|
+
# Request-specific options
|
|
2137
|
+
#
|
|
2138
|
+
# @yield [result, err] Result & error if block supplied
|
|
2139
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2140
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2141
|
+
#
|
|
2142
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2143
|
+
#
|
|
2144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2147
|
+
def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2148
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options)
|
|
2149
|
+
command.request_representation = Google::Apis::ComputeV1::DisksAddResourcePoliciesRequest::Representation
|
|
2150
|
+
command.request_object = disks_add_resource_policies_request_object
|
|
2151
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2152
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2153
|
+
command.params['project'] = project unless project.nil?
|
|
2154
|
+
command.params['zone'] = zone unless zone.nil?
|
|
2155
|
+
command.params['disk'] = disk unless disk.nil?
|
|
2156
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
2157
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2159
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2160
|
+
execute_or_queue_command(command, &block)
|
|
2161
|
+
end
|
|
2162
|
+
|
|
2108
2163
|
# Retrieves an aggregated list of persistent disks.
|
|
2109
2164
|
# @param [String] project
|
|
2110
2165
|
# Project ID for this request.
|
|
@@ -2499,6 +2554,60 @@ module Google
|
|
|
2499
2554
|
execute_or_queue_command(command, &block)
|
|
2500
2555
|
end
|
|
2501
2556
|
|
|
2557
|
+
# Removes resource policies from a disk.
|
|
2558
|
+
# @param [String] project
|
|
2559
|
+
# Project ID for this request.
|
|
2560
|
+
# @param [String] zone
|
|
2561
|
+
# The name of the zone for this request.
|
|
2562
|
+
# @param [String] disk
|
|
2563
|
+
# The disk name for this request.
|
|
2564
|
+
# @param [Google::Apis::ComputeV1::DisksRemoveResourcePoliciesRequest] disks_remove_resource_policies_request_object
|
|
2565
|
+
# @param [String] request_id
|
|
2566
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2567
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2568
|
+
# request if it has already been completed.
|
|
2569
|
+
# For example, consider a situation where you make an initial request and the
|
|
2570
|
+
# request times out. If you make the request again with the same request ID, the
|
|
2571
|
+
# server can check if original operation with the same request ID was received,
|
|
2572
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
2573
|
+
# accidentally creating duplicate commitments.
|
|
2574
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
2575
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
2576
|
+
# @param [String] fields
|
|
2577
|
+
# Selector specifying which fields to include in a partial response.
|
|
2578
|
+
# @param [String] quota_user
|
|
2579
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2580
|
+
# characters.
|
|
2581
|
+
# @param [String] user_ip
|
|
2582
|
+
# Deprecated. Please use quotaUser instead.
|
|
2583
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2584
|
+
# Request-specific options
|
|
2585
|
+
#
|
|
2586
|
+
# @yield [result, err] Result & error if block supplied
|
|
2587
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2588
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2589
|
+
#
|
|
2590
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2591
|
+
#
|
|
2592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2595
|
+
def remove_disk_resource_policies(project, zone, disk, disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2596
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/removeResourcePolicies', options)
|
|
2597
|
+
command.request_representation = Google::Apis::ComputeV1::DisksRemoveResourcePoliciesRequest::Representation
|
|
2598
|
+
command.request_object = disks_remove_resource_policies_request_object
|
|
2599
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2600
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2601
|
+
command.params['project'] = project unless project.nil?
|
|
2602
|
+
command.params['zone'] = zone unless zone.nil?
|
|
2603
|
+
command.params['disk'] = disk unless disk.nil?
|
|
2604
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
2605
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2607
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2608
|
+
execute_or_queue_command(command, &block)
|
|
2609
|
+
end
|
|
2610
|
+
|
|
2502
2611
|
# Resizes the specified persistent disk. You can only increase the size of the
|
|
2503
2612
|
# disk.
|
|
2504
2613
|
# @param [String] project
|
|
@@ -3432,8 +3541,8 @@ module Google
|
|
|
3432
3541
|
execute_or_queue_command(command, &block)
|
|
3433
3542
|
end
|
|
3434
3543
|
|
|
3435
|
-
# Creates an address resource in the specified project using the data
|
|
3436
|
-
# in the request.
|
|
3544
|
+
# Creates an address resource in the specified project by using the data
|
|
3545
|
+
# included in the request.
|
|
3437
3546
|
# @param [String] project
|
|
3438
3547
|
# Project ID for this request.
|
|
3439
3548
|
# @param [Google::Apis::ComputeV1::Address] address_object
|
|
@@ -7487,6 +7596,51 @@ module Google
|
|
|
7487
7596
|
execute_or_queue_command(command, &block)
|
|
7488
7597
|
end
|
|
7489
7598
|
|
|
7599
|
+
# Returns the specified guest attributes entry.
|
|
7600
|
+
# @param [String] project
|
|
7601
|
+
# Project ID for this request.
|
|
7602
|
+
# @param [String] zone
|
|
7603
|
+
# The name of the zone for this request.
|
|
7604
|
+
# @param [String] instance
|
|
7605
|
+
# Name of the instance scoping this request.
|
|
7606
|
+
# @param [String] query_path
|
|
7607
|
+
# Specifies the guest attributes path to be queried.
|
|
7608
|
+
# @param [String] variable_key
|
|
7609
|
+
# Specifies the key for the guest attributes entry.
|
|
7610
|
+
# @param [String] fields
|
|
7611
|
+
# Selector specifying which fields to include in a partial response.
|
|
7612
|
+
# @param [String] quota_user
|
|
7613
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
7614
|
+
# characters.
|
|
7615
|
+
# @param [String] user_ip
|
|
7616
|
+
# Deprecated. Please use quotaUser instead.
|
|
7617
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7618
|
+
# Request-specific options
|
|
7619
|
+
#
|
|
7620
|
+
# @yield [result, err] Result & error if block supplied
|
|
7621
|
+
# @yieldparam result [Google::Apis::ComputeV1::GuestAttributes] parsed result object
|
|
7622
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7623
|
+
#
|
|
7624
|
+
# @return [Google::Apis::ComputeV1::GuestAttributes]
|
|
7625
|
+
#
|
|
7626
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7627
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7628
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7629
|
+
def get_instance_guest_attributes(project, zone, instance, query_path: nil, variable_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7630
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getGuestAttributes', options)
|
|
7631
|
+
command.response_representation = Google::Apis::ComputeV1::GuestAttributes::Representation
|
|
7632
|
+
command.response_class = Google::Apis::ComputeV1::GuestAttributes
|
|
7633
|
+
command.params['project'] = project unless project.nil?
|
|
7634
|
+
command.params['zone'] = zone unless zone.nil?
|
|
7635
|
+
command.params['instance'] = instance unless instance.nil?
|
|
7636
|
+
command.query['queryPath'] = query_path unless query_path.nil?
|
|
7637
|
+
command.query['variableKey'] = variable_key unless variable_key.nil?
|
|
7638
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7639
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7640
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7641
|
+
execute_or_queue_command(command, &block)
|
|
7642
|
+
end
|
|
7643
|
+
|
|
7490
7644
|
# Gets the access control policy for a resource. May be empty if no such policy
|
|
7491
7645
|
# or resource exists.
|
|
7492
7646
|
# @param [String] project
|
|
@@ -12517,8 +12671,8 @@ module Google
|
|
|
12517
12671
|
execute_or_queue_command(command, &block)
|
|
12518
12672
|
end
|
|
12519
12673
|
|
|
12520
|
-
# Disable a
|
|
12521
|
-
# project.
|
|
12674
|
+
# Disable a service resource (also known as service project) associated with
|
|
12675
|
+
# this host project.
|
|
12522
12676
|
# @param [String] project
|
|
12523
12677
|
# Project ID for this request.
|
|
12524
12678
|
# @param [Google::Apis::ComputeV1::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object
|
|
@@ -14171,6 +14325,61 @@ module Google
|
|
|
14171
14325
|
execute_or_queue_command(command, &block)
|
|
14172
14326
|
end
|
|
14173
14327
|
|
|
14328
|
+
# Adds existing resource policies to a regional disk. You can only add one
|
|
14329
|
+
# policy which will be applied to this disk for scheduling snapshot creation.
|
|
14330
|
+
# @param [String] project
|
|
14331
|
+
# Project ID for this request.
|
|
14332
|
+
# @param [String] region
|
|
14333
|
+
# The name of the region for this request.
|
|
14334
|
+
# @param [String] disk
|
|
14335
|
+
# The disk name for this request.
|
|
14336
|
+
# @param [Google::Apis::ComputeV1::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_request_object
|
|
14337
|
+
# @param [String] request_id
|
|
14338
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
14339
|
+
# that if you must retry your request, the server will know to ignore the
|
|
14340
|
+
# request if it has already been completed.
|
|
14341
|
+
# For example, consider a situation where you make an initial request and the
|
|
14342
|
+
# request times out. If you make the request again with the same request ID, the
|
|
14343
|
+
# server can check if original operation with the same request ID was received,
|
|
14344
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
14345
|
+
# accidentally creating duplicate commitments.
|
|
14346
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
14347
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
14348
|
+
# @param [String] fields
|
|
14349
|
+
# Selector specifying which fields to include in a partial response.
|
|
14350
|
+
# @param [String] quota_user
|
|
14351
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
14352
|
+
# characters.
|
|
14353
|
+
# @param [String] user_ip
|
|
14354
|
+
# Deprecated. Please use quotaUser instead.
|
|
14355
|
+
# @param [Google::Apis::RequestOptions] options
|
|
14356
|
+
# Request-specific options
|
|
14357
|
+
#
|
|
14358
|
+
# @yield [result, err] Result & error if block supplied
|
|
14359
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
14360
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
14361
|
+
#
|
|
14362
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
14363
|
+
#
|
|
14364
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
14365
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
14366
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
14367
|
+
def add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
14368
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/addResourcePolicies', options)
|
|
14369
|
+
command.request_representation = Google::Apis::ComputeV1::RegionDisksAddResourcePoliciesRequest::Representation
|
|
14370
|
+
command.request_object = region_disks_add_resource_policies_request_object
|
|
14371
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
14372
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
14373
|
+
command.params['project'] = project unless project.nil?
|
|
14374
|
+
command.params['region'] = region unless region.nil?
|
|
14375
|
+
command.params['disk'] = disk unless disk.nil?
|
|
14376
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
14377
|
+
command.query['fields'] = fields unless fields.nil?
|
|
14378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
14379
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
14380
|
+
execute_or_queue_command(command, &block)
|
|
14381
|
+
end
|
|
14382
|
+
|
|
14174
14383
|
# Creates a snapshot of this regional disk.
|
|
14175
14384
|
# @param [String] project
|
|
14176
14385
|
# Project ID for this request.
|
|
@@ -14447,6 +14656,60 @@ module Google
|
|
|
14447
14656
|
execute_or_queue_command(command, &block)
|
|
14448
14657
|
end
|
|
14449
14658
|
|
|
14659
|
+
# Removes resource policies from a regional disk.
|
|
14660
|
+
# @param [String] project
|
|
14661
|
+
# Project ID for this request.
|
|
14662
|
+
# @param [String] region
|
|
14663
|
+
# The name of the region for this request.
|
|
14664
|
+
# @param [String] disk
|
|
14665
|
+
# The disk name for this request.
|
|
14666
|
+
# @param [Google::Apis::ComputeV1::RegionDisksRemoveResourcePoliciesRequest] region_disks_remove_resource_policies_request_object
|
|
14667
|
+
# @param [String] request_id
|
|
14668
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
14669
|
+
# that if you must retry your request, the server will know to ignore the
|
|
14670
|
+
# request if it has already been completed.
|
|
14671
|
+
# For example, consider a situation where you make an initial request and the
|
|
14672
|
+
# request times out. If you make the request again with the same request ID, the
|
|
14673
|
+
# server can check if original operation with the same request ID was received,
|
|
14674
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
14675
|
+
# accidentally creating duplicate commitments.
|
|
14676
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
14677
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
14678
|
+
# @param [String] fields
|
|
14679
|
+
# Selector specifying which fields to include in a partial response.
|
|
14680
|
+
# @param [String] quota_user
|
|
14681
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
14682
|
+
# characters.
|
|
14683
|
+
# @param [String] user_ip
|
|
14684
|
+
# Deprecated. Please use quotaUser instead.
|
|
14685
|
+
# @param [Google::Apis::RequestOptions] options
|
|
14686
|
+
# Request-specific options
|
|
14687
|
+
#
|
|
14688
|
+
# @yield [result, err] Result & error if block supplied
|
|
14689
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
14690
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
14691
|
+
#
|
|
14692
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
14693
|
+
#
|
|
14694
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
14695
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
14696
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
14697
|
+
def remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
14698
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options)
|
|
14699
|
+
command.request_representation = Google::Apis::ComputeV1::RegionDisksRemoveResourcePoliciesRequest::Representation
|
|
14700
|
+
command.request_object = region_disks_remove_resource_policies_request_object
|
|
14701
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
14702
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
14703
|
+
command.params['project'] = project unless project.nil?
|
|
14704
|
+
command.params['region'] = region unless region.nil?
|
|
14705
|
+
command.params['disk'] = disk unless disk.nil?
|
|
14706
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
14707
|
+
command.query['fields'] = fields unless fields.nil?
|
|
14708
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
14709
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
14710
|
+
execute_or_queue_command(command, &block)
|
|
14711
|
+
end
|
|
14712
|
+
|
|
14450
14713
|
# Resizes the specified regional persistent disk.
|
|
14451
14714
|
# @param [String] project
|
|
14452
14715
|
# The project ID for this request.
|
|
@@ -15830,6 +16093,884 @@ module Google
|
|
|
15830
16093
|
execute_or_queue_command(command, &block)
|
|
15831
16094
|
end
|
|
15832
16095
|
|
|
16096
|
+
# Retrieves an aggregated list of reservations.
|
|
16097
|
+
# @param [String] project
|
|
16098
|
+
# Project ID for this request.
|
|
16099
|
+
# @param [String] filter
|
|
16100
|
+
# A filter expression that filters resources listed in the response. The
|
|
16101
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
16102
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
16103
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
16104
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
16105
|
+
# instances named example-instance by specifying name != example-instance.
|
|
16106
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
16107
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
16108
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
16109
|
+
# on resource labels.
|
|
16110
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
16111
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
16112
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
16113
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
16114
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
16115
|
+
# automaticRestart = true).
|
|
16116
|
+
# @param [Fixnum] max_results
|
|
16117
|
+
# The maximum number of results per page that should be returned. If the number
|
|
16118
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
16119
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
16120
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
16121
|
+
# @param [String] order_by
|
|
16122
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
16123
|
+
# alphanumerical order based on the resource name.
|
|
16124
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
16125
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
16126
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
16127
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
16128
|
+
# returned first.
|
|
16129
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
16130
|
+
# @param [String] page_token
|
|
16131
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
16132
|
+
# a previous list request to get the next page of results.
|
|
16133
|
+
# @param [String] fields
|
|
16134
|
+
# Selector specifying which fields to include in a partial response.
|
|
16135
|
+
# @param [String] quota_user
|
|
16136
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16137
|
+
# characters.
|
|
16138
|
+
# @param [String] user_ip
|
|
16139
|
+
# Deprecated. Please use quotaUser instead.
|
|
16140
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16141
|
+
# Request-specific options
|
|
16142
|
+
#
|
|
16143
|
+
# @yield [result, err] Result & error if block supplied
|
|
16144
|
+
# @yieldparam result [Google::Apis::ComputeV1::ReservationAggregatedList] parsed result object
|
|
16145
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16146
|
+
#
|
|
16147
|
+
# @return [Google::Apis::ComputeV1::ReservationAggregatedList]
|
|
16148
|
+
#
|
|
16149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16152
|
+
def aggregated_reservation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16153
|
+
command = make_simple_command(:get, '{project}/aggregated/reservations', options)
|
|
16154
|
+
command.response_representation = Google::Apis::ComputeV1::ReservationAggregatedList::Representation
|
|
16155
|
+
command.response_class = Google::Apis::ComputeV1::ReservationAggregatedList
|
|
16156
|
+
command.params['project'] = project unless project.nil?
|
|
16157
|
+
command.query['filter'] = filter unless filter.nil?
|
|
16158
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
16159
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
16160
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
16161
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16163
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16164
|
+
execute_or_queue_command(command, &block)
|
|
16165
|
+
end
|
|
16166
|
+
|
|
16167
|
+
# Deletes the specified reservation.
|
|
16168
|
+
# @param [String] project
|
|
16169
|
+
# Project ID for this request.
|
|
16170
|
+
# @param [String] zone
|
|
16171
|
+
# Name of the zone for this request.
|
|
16172
|
+
# @param [String] reservation
|
|
16173
|
+
# Name of the reservation to delete.
|
|
16174
|
+
# @param [String] request_id
|
|
16175
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
16176
|
+
# that if you must retry your request, the server will know to ignore the
|
|
16177
|
+
# request if it has already been completed.
|
|
16178
|
+
# For example, consider a situation where you make an initial request and the
|
|
16179
|
+
# request times out. If you make the request again with the same request ID, the
|
|
16180
|
+
# server can check if original operation with the same request ID was received,
|
|
16181
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
16182
|
+
# accidentally creating duplicate commitments.
|
|
16183
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
16184
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
16185
|
+
# @param [String] fields
|
|
16186
|
+
# Selector specifying which fields to include in a partial response.
|
|
16187
|
+
# @param [String] quota_user
|
|
16188
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16189
|
+
# characters.
|
|
16190
|
+
# @param [String] user_ip
|
|
16191
|
+
# Deprecated. Please use quotaUser instead.
|
|
16192
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16193
|
+
# Request-specific options
|
|
16194
|
+
#
|
|
16195
|
+
# @yield [result, err] Result & error if block supplied
|
|
16196
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
16197
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16198
|
+
#
|
|
16199
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
16200
|
+
#
|
|
16201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16204
|
+
def delete_reservation(project, zone, reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16205
|
+
command = make_simple_command(:delete, '{project}/zones/{zone}/reservations/{reservation}', options)
|
|
16206
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
16207
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
16208
|
+
command.params['project'] = project unless project.nil?
|
|
16209
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16210
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
|
16211
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
16212
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16214
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16215
|
+
execute_or_queue_command(command, &block)
|
|
16216
|
+
end
|
|
16217
|
+
|
|
16218
|
+
# Retrieves all information of the specified reservation.
|
|
16219
|
+
# @param [String] project
|
|
16220
|
+
# Project ID for this request.
|
|
16221
|
+
# @param [String] zone
|
|
16222
|
+
# Name of the zone for this request.
|
|
16223
|
+
# @param [String] reservation
|
|
16224
|
+
# Name of the reservation to retrieve.
|
|
16225
|
+
# @param [String] fields
|
|
16226
|
+
# Selector specifying which fields to include in a partial response.
|
|
16227
|
+
# @param [String] quota_user
|
|
16228
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16229
|
+
# characters.
|
|
16230
|
+
# @param [String] user_ip
|
|
16231
|
+
# Deprecated. Please use quotaUser instead.
|
|
16232
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16233
|
+
# Request-specific options
|
|
16234
|
+
#
|
|
16235
|
+
# @yield [result, err] Result & error if block supplied
|
|
16236
|
+
# @yieldparam result [Google::Apis::ComputeV1::Reservation] parsed result object
|
|
16237
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16238
|
+
#
|
|
16239
|
+
# @return [Google::Apis::ComputeV1::Reservation]
|
|
16240
|
+
#
|
|
16241
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16242
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16243
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16244
|
+
def get_reservation(project, zone, reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16245
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{reservation}', options)
|
|
16246
|
+
command.response_representation = Google::Apis::ComputeV1::Reservation::Representation
|
|
16247
|
+
command.response_class = Google::Apis::ComputeV1::Reservation
|
|
16248
|
+
command.params['project'] = project unless project.nil?
|
|
16249
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16250
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
|
16251
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16253
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16254
|
+
execute_or_queue_command(command, &block)
|
|
16255
|
+
end
|
|
16256
|
+
|
|
16257
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
|
16258
|
+
# or resource exists.
|
|
16259
|
+
# @param [String] project
|
|
16260
|
+
# Project ID for this request.
|
|
16261
|
+
# @param [String] zone
|
|
16262
|
+
# The name of the zone for this request.
|
|
16263
|
+
# @param [String] resource
|
|
16264
|
+
# Name or id of the resource for this request.
|
|
16265
|
+
# @param [String] fields
|
|
16266
|
+
# Selector specifying which fields to include in a partial response.
|
|
16267
|
+
# @param [String] quota_user
|
|
16268
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16269
|
+
# characters.
|
|
16270
|
+
# @param [String] user_ip
|
|
16271
|
+
# Deprecated. Please use quotaUser instead.
|
|
16272
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16273
|
+
# Request-specific options
|
|
16274
|
+
#
|
|
16275
|
+
# @yield [result, err] Result & error if block supplied
|
|
16276
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
|
16277
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16278
|
+
#
|
|
16279
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
|
16280
|
+
#
|
|
16281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16284
|
+
def get_reservation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16285
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options)
|
|
16286
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
|
16287
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
|
16288
|
+
command.params['project'] = project unless project.nil?
|
|
16289
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16290
|
+
command.params['resource'] = resource unless resource.nil?
|
|
16291
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16292
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16293
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16294
|
+
execute_or_queue_command(command, &block)
|
|
16295
|
+
end
|
|
16296
|
+
|
|
16297
|
+
# Creates a new reservation.
|
|
16298
|
+
# @param [String] project
|
|
16299
|
+
# Project ID for this request.
|
|
16300
|
+
# @param [String] zone
|
|
16301
|
+
# Name of the zone for this request.
|
|
16302
|
+
# @param [Google::Apis::ComputeV1::Reservation] reservation_object
|
|
16303
|
+
# @param [String] request_id
|
|
16304
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
16305
|
+
# that if you must retry your request, the server will know to ignore the
|
|
16306
|
+
# request if it has already been completed.
|
|
16307
|
+
# For example, consider a situation where you make an initial request and the
|
|
16308
|
+
# request times out. If you make the request again with the same request ID, the
|
|
16309
|
+
# server can check if original operation with the same request ID was received,
|
|
16310
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
16311
|
+
# accidentally creating duplicate commitments.
|
|
16312
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
16313
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
16314
|
+
# @param [String] fields
|
|
16315
|
+
# Selector specifying which fields to include in a partial response.
|
|
16316
|
+
# @param [String] quota_user
|
|
16317
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16318
|
+
# characters.
|
|
16319
|
+
# @param [String] user_ip
|
|
16320
|
+
# Deprecated. Please use quotaUser instead.
|
|
16321
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16322
|
+
# Request-specific options
|
|
16323
|
+
#
|
|
16324
|
+
# @yield [result, err] Result & error if block supplied
|
|
16325
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
16326
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16327
|
+
#
|
|
16328
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
16329
|
+
#
|
|
16330
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16331
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16332
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16333
|
+
def insert_reservation(project, zone, reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16334
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/reservations', options)
|
|
16335
|
+
command.request_representation = Google::Apis::ComputeV1::Reservation::Representation
|
|
16336
|
+
command.request_object = reservation_object
|
|
16337
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
16338
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
16339
|
+
command.params['project'] = project unless project.nil?
|
|
16340
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16341
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
16342
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16344
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16345
|
+
execute_or_queue_command(command, &block)
|
|
16346
|
+
end
|
|
16347
|
+
|
|
16348
|
+
# A list all the reservations that have been configured for the specified
|
|
16349
|
+
# project in specified zone.
|
|
16350
|
+
# @param [String] project
|
|
16351
|
+
# Project ID for this request.
|
|
16352
|
+
# @param [String] zone
|
|
16353
|
+
# Name of the zone for this request.
|
|
16354
|
+
# @param [String] filter
|
|
16355
|
+
# A filter expression that filters resources listed in the response. The
|
|
16356
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
16357
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
16358
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
16359
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
16360
|
+
# instances named example-instance by specifying name != example-instance.
|
|
16361
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
16362
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
16363
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
16364
|
+
# on resource labels.
|
|
16365
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
16366
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
16367
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
16368
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
16369
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
16370
|
+
# automaticRestart = true).
|
|
16371
|
+
# @param [Fixnum] max_results
|
|
16372
|
+
# The maximum number of results per page that should be returned. If the number
|
|
16373
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
16374
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
16375
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
16376
|
+
# @param [String] order_by
|
|
16377
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
16378
|
+
# alphanumerical order based on the resource name.
|
|
16379
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
16380
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
16381
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
16382
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
16383
|
+
# returned first.
|
|
16384
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
16385
|
+
# @param [String] page_token
|
|
16386
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
16387
|
+
# a previous list request to get the next page of results.
|
|
16388
|
+
# @param [String] fields
|
|
16389
|
+
# Selector specifying which fields to include in a partial response.
|
|
16390
|
+
# @param [String] quota_user
|
|
16391
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16392
|
+
# characters.
|
|
16393
|
+
# @param [String] user_ip
|
|
16394
|
+
# Deprecated. Please use quotaUser instead.
|
|
16395
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16396
|
+
# Request-specific options
|
|
16397
|
+
#
|
|
16398
|
+
# @yield [result, err] Result & error if block supplied
|
|
16399
|
+
# @yieldparam result [Google::Apis::ComputeV1::ReservationList] parsed result object
|
|
16400
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16401
|
+
#
|
|
16402
|
+
# @return [Google::Apis::ComputeV1::ReservationList]
|
|
16403
|
+
#
|
|
16404
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16405
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16406
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16407
|
+
def list_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16408
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/reservations', options)
|
|
16409
|
+
command.response_representation = Google::Apis::ComputeV1::ReservationList::Representation
|
|
16410
|
+
command.response_class = Google::Apis::ComputeV1::ReservationList
|
|
16411
|
+
command.params['project'] = project unless project.nil?
|
|
16412
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16413
|
+
command.query['filter'] = filter unless filter.nil?
|
|
16414
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
16415
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
16416
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
16417
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16418
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16419
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16420
|
+
execute_or_queue_command(command, &block)
|
|
16421
|
+
end
|
|
16422
|
+
|
|
16423
|
+
# Resizes the reservation (applicable to standalone reservations only)
|
|
16424
|
+
# @param [String] project
|
|
16425
|
+
# Project ID for this request.
|
|
16426
|
+
# @param [String] zone
|
|
16427
|
+
# Name of the zone for this request.
|
|
16428
|
+
# @param [String] reservation
|
|
16429
|
+
# Name of the reservation to update.
|
|
16430
|
+
# @param [Google::Apis::ComputeV1::ReservationsResizeRequest] reservations_resize_request_object
|
|
16431
|
+
# @param [String] request_id
|
|
16432
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
16433
|
+
# that if you must retry your request, the server will know to ignore the
|
|
16434
|
+
# request if it has already been completed.
|
|
16435
|
+
# For example, consider a situation where you make an initial request and the
|
|
16436
|
+
# request times out. If you make the request again with the same request ID, the
|
|
16437
|
+
# server can check if original operation with the same request ID was received,
|
|
16438
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
16439
|
+
# accidentally creating duplicate commitments.
|
|
16440
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
16441
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
16442
|
+
# @param [String] fields
|
|
16443
|
+
# Selector specifying which fields to include in a partial response.
|
|
16444
|
+
# @param [String] quota_user
|
|
16445
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16446
|
+
# characters.
|
|
16447
|
+
# @param [String] user_ip
|
|
16448
|
+
# Deprecated. Please use quotaUser instead.
|
|
16449
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16450
|
+
# Request-specific options
|
|
16451
|
+
#
|
|
16452
|
+
# @yield [result, err] Result & error if block supplied
|
|
16453
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
16454
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16455
|
+
#
|
|
16456
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
16457
|
+
#
|
|
16458
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16459
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16460
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16461
|
+
def resize_reservation(project, zone, reservation, reservations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16462
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{reservation}/resize', options)
|
|
16463
|
+
command.request_representation = Google::Apis::ComputeV1::ReservationsResizeRequest::Representation
|
|
16464
|
+
command.request_object = reservations_resize_request_object
|
|
16465
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
16466
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
16467
|
+
command.params['project'] = project unless project.nil?
|
|
16468
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16469
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
|
16470
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
16471
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16472
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16473
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16474
|
+
execute_or_queue_command(command, &block)
|
|
16475
|
+
end
|
|
16476
|
+
|
|
16477
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
16478
|
+
# existing policy.
|
|
16479
|
+
# @param [String] project
|
|
16480
|
+
# Project ID for this request.
|
|
16481
|
+
# @param [String] zone
|
|
16482
|
+
# The name of the zone for this request.
|
|
16483
|
+
# @param [String] resource
|
|
16484
|
+
# Name or id of the resource for this request.
|
|
16485
|
+
# @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object
|
|
16486
|
+
# @param [String] fields
|
|
16487
|
+
# Selector specifying which fields to include in a partial response.
|
|
16488
|
+
# @param [String] quota_user
|
|
16489
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16490
|
+
# characters.
|
|
16491
|
+
# @param [String] user_ip
|
|
16492
|
+
# Deprecated. Please use quotaUser instead.
|
|
16493
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16494
|
+
# Request-specific options
|
|
16495
|
+
#
|
|
16496
|
+
# @yield [result, err] Result & error if block supplied
|
|
16497
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
|
16498
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16499
|
+
#
|
|
16500
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
|
16501
|
+
#
|
|
16502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16505
|
+
def set_reservation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16506
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/setIamPolicy', options)
|
|
16507
|
+
command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation
|
|
16508
|
+
command.request_object = zone_set_policy_request_object
|
|
16509
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
|
16510
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
|
16511
|
+
command.params['project'] = project unless project.nil?
|
|
16512
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16513
|
+
command.params['resource'] = resource unless resource.nil?
|
|
16514
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16516
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16517
|
+
execute_or_queue_command(command, &block)
|
|
16518
|
+
end
|
|
16519
|
+
|
|
16520
|
+
# Returns permissions that a caller has on the specified resource.
|
|
16521
|
+
# @param [String] project
|
|
16522
|
+
# Project ID for this request.
|
|
16523
|
+
# @param [String] zone
|
|
16524
|
+
# The name of the zone for this request.
|
|
16525
|
+
# @param [String] resource
|
|
16526
|
+
# Name or id of the resource for this request.
|
|
16527
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_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::TestPermissionsResponse] parsed result object
|
|
16540
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16541
|
+
#
|
|
16542
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
|
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 test_reservation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16548
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/testIamPermissions', options)
|
|
16549
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
|
16550
|
+
command.request_object = test_permissions_request_object
|
|
16551
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
|
16552
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
|
16553
|
+
command.params['project'] = project unless project.nil?
|
|
16554
|
+
command.params['zone'] = zone unless zone.nil?
|
|
16555
|
+
command.params['resource'] = resource unless resource.nil?
|
|
16556
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16557
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16558
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16559
|
+
execute_or_queue_command(command, &block)
|
|
16560
|
+
end
|
|
16561
|
+
|
|
16562
|
+
# Retrieves an aggregated list of resource policies.
|
|
16563
|
+
# @param [String] project
|
|
16564
|
+
# Project ID for this request.
|
|
16565
|
+
# @param [String] filter
|
|
16566
|
+
# A filter expression that filters resources listed in the response. The
|
|
16567
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
16568
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
16569
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
16570
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
16571
|
+
# instances named example-instance by specifying name != example-instance.
|
|
16572
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
16573
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
16574
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
16575
|
+
# on resource labels.
|
|
16576
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
16577
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
16578
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
16579
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
16580
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
16581
|
+
# automaticRestart = true).
|
|
16582
|
+
# @param [Fixnum] max_results
|
|
16583
|
+
# The maximum number of results per page that should be returned. If the number
|
|
16584
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
16585
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
16586
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
16587
|
+
# @param [String] order_by
|
|
16588
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
16589
|
+
# alphanumerical order based on the resource name.
|
|
16590
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
16591
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
16592
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
16593
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
16594
|
+
# returned first.
|
|
16595
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
16596
|
+
# @param [String] page_token
|
|
16597
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
16598
|
+
# a previous list request to get the next page of results.
|
|
16599
|
+
# @param [String] fields
|
|
16600
|
+
# Selector specifying which fields to include in a partial response.
|
|
16601
|
+
# @param [String] quota_user
|
|
16602
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16603
|
+
# characters.
|
|
16604
|
+
# @param [String] user_ip
|
|
16605
|
+
# Deprecated. Please use quotaUser instead.
|
|
16606
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16607
|
+
# Request-specific options
|
|
16608
|
+
#
|
|
16609
|
+
# @yield [result, err] Result & error if block supplied
|
|
16610
|
+
# @yieldparam result [Google::Apis::ComputeV1::ResourcePolicyAggregatedList] parsed result object
|
|
16611
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16612
|
+
#
|
|
16613
|
+
# @return [Google::Apis::ComputeV1::ResourcePolicyAggregatedList]
|
|
16614
|
+
#
|
|
16615
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16616
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16617
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16618
|
+
def aggregated_resource_policy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16619
|
+
command = make_simple_command(:get, '{project}/aggregated/resourcePolicies', options)
|
|
16620
|
+
command.response_representation = Google::Apis::ComputeV1::ResourcePolicyAggregatedList::Representation
|
|
16621
|
+
command.response_class = Google::Apis::ComputeV1::ResourcePolicyAggregatedList
|
|
16622
|
+
command.params['project'] = project unless project.nil?
|
|
16623
|
+
command.query['filter'] = filter unless filter.nil?
|
|
16624
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
16625
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
16626
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
16627
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16628
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16629
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16630
|
+
execute_or_queue_command(command, &block)
|
|
16631
|
+
end
|
|
16632
|
+
|
|
16633
|
+
# Deletes the specified resource policy.
|
|
16634
|
+
# @param [String] project
|
|
16635
|
+
# Project ID for this request.
|
|
16636
|
+
# @param [String] region
|
|
16637
|
+
# Name of the region for this request.
|
|
16638
|
+
# @param [String] resource_policy
|
|
16639
|
+
# Name of the resource policy to delete.
|
|
16640
|
+
# @param [String] request_id
|
|
16641
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
16642
|
+
# that if you must retry your request, the server will know to ignore the
|
|
16643
|
+
# request if it has already been completed.
|
|
16644
|
+
# For example, consider a situation where you make an initial request and the
|
|
16645
|
+
# request times out. If you make the request again with the same request ID, the
|
|
16646
|
+
# server can check if original operation with the same request ID was received,
|
|
16647
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
16648
|
+
# accidentally creating duplicate commitments.
|
|
16649
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
16650
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
16651
|
+
# @param [String] fields
|
|
16652
|
+
# Selector specifying which fields to include in a partial response.
|
|
16653
|
+
# @param [String] quota_user
|
|
16654
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16655
|
+
# characters.
|
|
16656
|
+
# @param [String] user_ip
|
|
16657
|
+
# Deprecated. Please use quotaUser instead.
|
|
16658
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16659
|
+
# Request-specific options
|
|
16660
|
+
#
|
|
16661
|
+
# @yield [result, err] Result & error if block supplied
|
|
16662
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
16663
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16664
|
+
#
|
|
16665
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
16666
|
+
#
|
|
16667
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16668
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16669
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16670
|
+
def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16671
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
|
|
16672
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
16673
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
16674
|
+
command.params['project'] = project unless project.nil?
|
|
16675
|
+
command.params['region'] = region unless region.nil?
|
|
16676
|
+
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
16677
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
16678
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16679
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16680
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16681
|
+
execute_or_queue_command(command, &block)
|
|
16682
|
+
end
|
|
16683
|
+
|
|
16684
|
+
# Retrieves all information of the specified resource policy.
|
|
16685
|
+
# @param [String] project
|
|
16686
|
+
# Project ID for this request.
|
|
16687
|
+
# @param [String] region
|
|
16688
|
+
# Name of the region for this request.
|
|
16689
|
+
# @param [String] resource_policy
|
|
16690
|
+
# Name of the resource policy to retrieve.
|
|
16691
|
+
# @param [String] fields
|
|
16692
|
+
# Selector specifying which fields to include in a partial response.
|
|
16693
|
+
# @param [String] quota_user
|
|
16694
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16695
|
+
# characters.
|
|
16696
|
+
# @param [String] user_ip
|
|
16697
|
+
# Deprecated. Please use quotaUser instead.
|
|
16698
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16699
|
+
# Request-specific options
|
|
16700
|
+
#
|
|
16701
|
+
# @yield [result, err] Result & error if block supplied
|
|
16702
|
+
# @yieldparam result [Google::Apis::ComputeV1::ResourcePolicy] parsed result object
|
|
16703
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16704
|
+
#
|
|
16705
|
+
# @return [Google::Apis::ComputeV1::ResourcePolicy]
|
|
16706
|
+
#
|
|
16707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16710
|
+
def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16711
|
+
command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
|
|
16712
|
+
command.response_representation = Google::Apis::ComputeV1::ResourcePolicy::Representation
|
|
16713
|
+
command.response_class = Google::Apis::ComputeV1::ResourcePolicy
|
|
16714
|
+
command.params['project'] = project unless project.nil?
|
|
16715
|
+
command.params['region'] = region unless region.nil?
|
|
16716
|
+
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
16717
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16718
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16719
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16720
|
+
execute_or_queue_command(command, &block)
|
|
16721
|
+
end
|
|
16722
|
+
|
|
16723
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
|
16724
|
+
# or resource exists.
|
|
16725
|
+
# @param [String] project
|
|
16726
|
+
# Project ID for this request.
|
|
16727
|
+
# @param [String] region
|
|
16728
|
+
# The name of the region for this request.
|
|
16729
|
+
# @param [String] resource
|
|
16730
|
+
# Name or id of the resource for this request.
|
|
16731
|
+
# @param [String] fields
|
|
16732
|
+
# Selector specifying which fields to include in a partial response.
|
|
16733
|
+
# @param [String] quota_user
|
|
16734
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16735
|
+
# characters.
|
|
16736
|
+
# @param [String] user_ip
|
|
16737
|
+
# Deprecated. Please use quotaUser instead.
|
|
16738
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16739
|
+
# Request-specific options
|
|
16740
|
+
#
|
|
16741
|
+
# @yield [result, err] Result & error if block supplied
|
|
16742
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
|
16743
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16744
|
+
#
|
|
16745
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
|
16746
|
+
#
|
|
16747
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16748
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16749
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16750
|
+
def get_resource_policy_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16751
|
+
command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options)
|
|
16752
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
|
16753
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
|
16754
|
+
command.params['project'] = project unless project.nil?
|
|
16755
|
+
command.params['region'] = region unless region.nil?
|
|
16756
|
+
command.params['resource'] = resource unless resource.nil?
|
|
16757
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16758
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16759
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16760
|
+
execute_or_queue_command(command, &block)
|
|
16761
|
+
end
|
|
16762
|
+
|
|
16763
|
+
# Creates a new resource policy.
|
|
16764
|
+
# @param [String] project
|
|
16765
|
+
# Project ID for this request.
|
|
16766
|
+
# @param [String] region
|
|
16767
|
+
# Name of the region for this request.
|
|
16768
|
+
# @param [Google::Apis::ComputeV1::ResourcePolicy] resource_policy_object
|
|
16769
|
+
# @param [String] request_id
|
|
16770
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
16771
|
+
# that if you must retry your request, the server will know to ignore the
|
|
16772
|
+
# request if it has already been completed.
|
|
16773
|
+
# For example, consider a situation where you make an initial request and the
|
|
16774
|
+
# request times out. If you make the request again with the same request ID, the
|
|
16775
|
+
# server can check if original operation with the same request ID was received,
|
|
16776
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
16777
|
+
# accidentally creating duplicate commitments.
|
|
16778
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
16779
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
16780
|
+
# @param [String] fields
|
|
16781
|
+
# Selector specifying which fields to include in a partial response.
|
|
16782
|
+
# @param [String] quota_user
|
|
16783
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16784
|
+
# characters.
|
|
16785
|
+
# @param [String] user_ip
|
|
16786
|
+
# Deprecated. Please use quotaUser instead.
|
|
16787
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16788
|
+
# Request-specific options
|
|
16789
|
+
#
|
|
16790
|
+
# @yield [result, err] Result & error if block supplied
|
|
16791
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
16792
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16793
|
+
#
|
|
16794
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
16795
|
+
#
|
|
16796
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16797
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16798
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16799
|
+
def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16800
|
+
command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies', options)
|
|
16801
|
+
command.request_representation = Google::Apis::ComputeV1::ResourcePolicy::Representation
|
|
16802
|
+
command.request_object = resource_policy_object
|
|
16803
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
16804
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
16805
|
+
command.params['project'] = project unless project.nil?
|
|
16806
|
+
command.params['region'] = region unless region.nil?
|
|
16807
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
16808
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16809
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16810
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16811
|
+
execute_or_queue_command(command, &block)
|
|
16812
|
+
end
|
|
16813
|
+
|
|
16814
|
+
# A list all the resource policies that have been configured for the specified
|
|
16815
|
+
# project in specified region.
|
|
16816
|
+
# @param [String] project
|
|
16817
|
+
# Project ID for this request.
|
|
16818
|
+
# @param [String] region
|
|
16819
|
+
# Name of the region for this request.
|
|
16820
|
+
# @param [String] filter
|
|
16821
|
+
# A filter expression that filters resources listed in the response. The
|
|
16822
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
16823
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
16824
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
16825
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
16826
|
+
# instances named example-instance by specifying name != example-instance.
|
|
16827
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
16828
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
16829
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
16830
|
+
# on resource labels.
|
|
16831
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
16832
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
16833
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
16834
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
16835
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
16836
|
+
# automaticRestart = true).
|
|
16837
|
+
# @param [Fixnum] max_results
|
|
16838
|
+
# The maximum number of results per page that should be returned. If the number
|
|
16839
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
16840
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
16841
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
16842
|
+
# @param [String] order_by
|
|
16843
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
16844
|
+
# alphanumerical order based on the resource name.
|
|
16845
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
16846
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
16847
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
16848
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
16849
|
+
# returned first.
|
|
16850
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
16851
|
+
# @param [String] page_token
|
|
16852
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
16853
|
+
# a previous list request to get the next page of results.
|
|
16854
|
+
# @param [String] fields
|
|
16855
|
+
# Selector specifying which fields to include in a partial response.
|
|
16856
|
+
# @param [String] quota_user
|
|
16857
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16858
|
+
# characters.
|
|
16859
|
+
# @param [String] user_ip
|
|
16860
|
+
# Deprecated. Please use quotaUser instead.
|
|
16861
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16862
|
+
# Request-specific options
|
|
16863
|
+
#
|
|
16864
|
+
# @yield [result, err] Result & error if block supplied
|
|
16865
|
+
# @yieldparam result [Google::Apis::ComputeV1::ResourcePolicyList] parsed result object
|
|
16866
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16867
|
+
#
|
|
16868
|
+
# @return [Google::Apis::ComputeV1::ResourcePolicyList]
|
|
16869
|
+
#
|
|
16870
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16871
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16872
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16873
|
+
def list_resource_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16874
|
+
command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies', options)
|
|
16875
|
+
command.response_representation = Google::Apis::ComputeV1::ResourcePolicyList::Representation
|
|
16876
|
+
command.response_class = Google::Apis::ComputeV1::ResourcePolicyList
|
|
16877
|
+
command.params['project'] = project unless project.nil?
|
|
16878
|
+
command.params['region'] = region unless region.nil?
|
|
16879
|
+
command.query['filter'] = filter unless filter.nil?
|
|
16880
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
16881
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
16882
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
16883
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16884
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16885
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16886
|
+
execute_or_queue_command(command, &block)
|
|
16887
|
+
end
|
|
16888
|
+
|
|
16889
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
16890
|
+
# existing policy.
|
|
16891
|
+
# @param [String] project
|
|
16892
|
+
# Project ID for this request.
|
|
16893
|
+
# @param [String] region
|
|
16894
|
+
# The name of the region for this request.
|
|
16895
|
+
# @param [String] resource
|
|
16896
|
+
# Name or id of the resource for this request.
|
|
16897
|
+
# @param [Google::Apis::ComputeV1::RegionSetPolicyRequest] region_set_policy_request_object
|
|
16898
|
+
# @param [String] fields
|
|
16899
|
+
# Selector specifying which fields to include in a partial response.
|
|
16900
|
+
# @param [String] quota_user
|
|
16901
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16902
|
+
# characters.
|
|
16903
|
+
# @param [String] user_ip
|
|
16904
|
+
# Deprecated. Please use quotaUser instead.
|
|
16905
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16906
|
+
# Request-specific options
|
|
16907
|
+
#
|
|
16908
|
+
# @yield [result, err] Result & error if block supplied
|
|
16909
|
+
# @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
|
|
16910
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16911
|
+
#
|
|
16912
|
+
# @return [Google::Apis::ComputeV1::Policy]
|
|
16913
|
+
#
|
|
16914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16917
|
+
def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16918
|
+
command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options)
|
|
16919
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetPolicyRequest::Representation
|
|
16920
|
+
command.request_object = region_set_policy_request_object
|
|
16921
|
+
command.response_representation = Google::Apis::ComputeV1::Policy::Representation
|
|
16922
|
+
command.response_class = Google::Apis::ComputeV1::Policy
|
|
16923
|
+
command.params['project'] = project unless project.nil?
|
|
16924
|
+
command.params['region'] = region unless region.nil?
|
|
16925
|
+
command.params['resource'] = resource unless resource.nil?
|
|
16926
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16927
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16928
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16929
|
+
execute_or_queue_command(command, &block)
|
|
16930
|
+
end
|
|
16931
|
+
|
|
16932
|
+
# Returns permissions that a caller has on the specified resource.
|
|
16933
|
+
# @param [String] project
|
|
16934
|
+
# Project ID for this request.
|
|
16935
|
+
# @param [String] region
|
|
16936
|
+
# The name of the region for this request.
|
|
16937
|
+
# @param [String] resource
|
|
16938
|
+
# Name or id of the resource for this request.
|
|
16939
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
|
16940
|
+
# @param [String] fields
|
|
16941
|
+
# Selector specifying which fields to include in a partial response.
|
|
16942
|
+
# @param [String] quota_user
|
|
16943
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
16944
|
+
# characters.
|
|
16945
|
+
# @param [String] user_ip
|
|
16946
|
+
# Deprecated. Please use quotaUser instead.
|
|
16947
|
+
# @param [Google::Apis::RequestOptions] options
|
|
16948
|
+
# Request-specific options
|
|
16949
|
+
#
|
|
16950
|
+
# @yield [result, err] Result & error if block supplied
|
|
16951
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
|
16952
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
16953
|
+
#
|
|
16954
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
|
16955
|
+
#
|
|
16956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
16957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
16958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
16959
|
+
def test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
16960
|
+
command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options)
|
|
16961
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
|
16962
|
+
command.request_object = test_permissions_request_object
|
|
16963
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
|
16964
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
|
16965
|
+
command.params['project'] = project unless project.nil?
|
|
16966
|
+
command.params['region'] = region unless region.nil?
|
|
16967
|
+
command.params['resource'] = resource unless resource.nil?
|
|
16968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
16969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
16970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
16971
|
+
execute_or_queue_command(command, &block)
|
|
16972
|
+
end
|
|
16973
|
+
|
|
15833
16974
|
# Retrieves an aggregated list of routers.
|
|
15834
16975
|
# @param [String] project
|
|
15835
16976
|
# Project ID for this request.
|
|
@@ -16335,6 +17476,9 @@ module Google
|
|
|
16335
17476
|
end
|
|
16336
17477
|
|
|
16337
17478
|
# Updates the specified Router resource with the data included in the request.
|
|
17479
|
+
# This method conforms to PUT semantics, which requests that the state of the
|
|
17480
|
+
# target resource be created or replaced with the state defined by the
|
|
17481
|
+
# representation enclosed in the request message payload.
|
|
16338
17482
|
# @param [String] project
|
|
16339
17483
|
# Project ID for this request.
|
|
16340
17484
|
# @param [String] region
|