google-api-client 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
@@ -116,110 +116,6 @@ module Google
|
|
116
116
|
execute_or_queue_command(command, &block)
|
117
117
|
end
|
118
118
|
|
119
|
-
# Gets the access control policy for a resource.
|
120
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
121
|
-
# set.
|
122
|
-
# @param [String] resource
|
123
|
-
# REQUIRED: The resource for which the policy is being requested.
|
124
|
-
# `resource` is usually specified as a path. For example, a Project
|
125
|
-
# resource is specified as `projects/`project``.
|
126
|
-
# @param [String] fields
|
127
|
-
# Selector specifying which fields to include in a partial response.
|
128
|
-
# @param [String] quota_user
|
129
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
130
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
131
|
-
# @param [Google::Apis::RequestOptions] options
|
132
|
-
# Request-specific options
|
133
|
-
#
|
134
|
-
# @yield [result, err] Result & error if block supplied
|
135
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
|
136
|
-
# @yieldparam err [StandardError] error object if request failed
|
137
|
-
#
|
138
|
-
# @return [Google::Apis::CloudkmsV1beta1::Policy]
|
139
|
-
#
|
140
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
-
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
144
|
-
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
145
|
-
command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
|
146
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::Policy
|
147
|
-
command.params['resource'] = resource unless resource.nil?
|
148
|
-
command.query['fields'] = fields unless fields.nil?
|
149
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
-
execute_or_queue_command(command, &block)
|
151
|
-
end
|
152
|
-
|
153
|
-
# Returns metadata for a given KeyRing.
|
154
|
-
# @param [String] name
|
155
|
-
# The name of the KeyRing to get.
|
156
|
-
# @param [String] fields
|
157
|
-
# Selector specifying which fields to include in a partial response.
|
158
|
-
# @param [String] quota_user
|
159
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
160
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
161
|
-
# @param [Google::Apis::RequestOptions] options
|
162
|
-
# Request-specific options
|
163
|
-
#
|
164
|
-
# @yield [result, err] Result & error if block supplied
|
165
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::KeyRing] parsed result object
|
166
|
-
# @yieldparam err [StandardError] error object if request failed
|
167
|
-
#
|
168
|
-
# @return [Google::Apis::CloudkmsV1beta1::KeyRing]
|
169
|
-
#
|
170
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
171
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
172
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
173
|
-
def get_project_location_key_ring(name, fields: nil, quota_user: nil, options: nil, &block)
|
174
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
175
|
-
command.response_representation = Google::Apis::CloudkmsV1beta1::KeyRing::Representation
|
176
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::KeyRing
|
177
|
-
command.params['name'] = name unless name.nil?
|
178
|
-
command.query['fields'] = fields unless fields.nil?
|
179
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
-
execute_or_queue_command(command, &block)
|
181
|
-
end
|
182
|
-
|
183
|
-
# Returns permissions that a caller has on the specified resource.
|
184
|
-
# If the resource does not exist, this will return an empty set of
|
185
|
-
# permissions, not a NOT_FOUND error.
|
186
|
-
# Note: This operation is designed to be used for building permission-aware
|
187
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
188
|
-
# may "fail open" without warning.
|
189
|
-
# @param [String] resource
|
190
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
191
|
-
# `resource` is usually specified as a path. For example, a Project
|
192
|
-
# resource is specified as `projects/`project``.
|
193
|
-
# @param [Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
194
|
-
# @param [String] fields
|
195
|
-
# Selector specifying which fields to include in a partial response.
|
196
|
-
# @param [String] quota_user
|
197
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
198
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
199
|
-
# @param [Google::Apis::RequestOptions] options
|
200
|
-
# Request-specific options
|
201
|
-
#
|
202
|
-
# @yield [result, err] Result & error if block supplied
|
203
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse] parsed result object
|
204
|
-
# @yieldparam err [StandardError] error object if request failed
|
205
|
-
#
|
206
|
-
# @return [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse]
|
207
|
-
#
|
208
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
209
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
210
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
211
|
-
def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
212
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
213
|
-
command.request_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest::Representation
|
214
|
-
command.request_object = test_iam_permissions_request_object
|
215
|
-
command.response_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse::Representation
|
216
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse
|
217
|
-
command.params['resource'] = resource unless resource.nil?
|
218
|
-
command.query['fields'] = fields unless fields.nil?
|
219
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
220
|
-
execute_or_queue_command(command, &block)
|
221
|
-
end
|
222
|
-
|
223
119
|
# Lists KeyRings.
|
224
120
|
# @param [String] parent
|
225
121
|
# Required. The resource name of the location associated with the
|
@@ -261,42 +157,6 @@ module Google
|
|
261
157
|
execute_or_queue_command(command, &block)
|
262
158
|
end
|
263
159
|
|
264
|
-
# Sets the access control policy on the specified resource. Replaces any
|
265
|
-
# existing policy.
|
266
|
-
# @param [String] resource
|
267
|
-
# REQUIRED: The resource for which the policy is being specified.
|
268
|
-
# `resource` is usually specified as a path. For example, a Project
|
269
|
-
# resource is specified as `projects/`project``.
|
270
|
-
# @param [Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
271
|
-
# @param [String] fields
|
272
|
-
# Selector specifying which fields to include in a partial response.
|
273
|
-
# @param [String] quota_user
|
274
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
275
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
-
# @param [Google::Apis::RequestOptions] options
|
277
|
-
# Request-specific options
|
278
|
-
#
|
279
|
-
# @yield [result, err] Result & error if block supplied
|
280
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
|
281
|
-
# @yieldparam err [StandardError] error object if request failed
|
282
|
-
#
|
283
|
-
# @return [Google::Apis::CloudkmsV1beta1::Policy]
|
284
|
-
#
|
285
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
-
def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
290
|
-
command.request_representation = Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest::Representation
|
291
|
-
command.request_object = set_iam_policy_request_object
|
292
|
-
command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
|
293
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::Policy
|
294
|
-
command.params['resource'] = resource unless resource.nil?
|
295
|
-
command.query['fields'] = fields unless fields.nil?
|
296
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
297
|
-
execute_or_queue_command(command, &block)
|
298
|
-
end
|
299
|
-
|
300
160
|
# Create a new KeyRing in a given Project and Location.
|
301
161
|
# @param [String] parent
|
302
162
|
# Required. The resource name of the location associated with the
|
@@ -335,18 +195,12 @@ module Google
|
|
335
195
|
execute_or_queue_command(command, &block)
|
336
196
|
end
|
337
197
|
|
338
|
-
#
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
# ListCryptoKeysResponse.next_page_token.
|
345
|
-
# @param [Fixnum] page_size
|
346
|
-
# Optional limit on the number of CryptoKeys to include in the
|
347
|
-
# response. Further CryptoKeys can subsequently be obtained by
|
348
|
-
# including the ListCryptoKeysResponse.next_page_token in a subsequent
|
349
|
-
# request. If unspecified, the server will pick an appropriate default.
|
198
|
+
# Sets the access control policy on the specified resource. Replaces any
|
199
|
+
# existing policy.
|
200
|
+
# @param [String] resource
|
201
|
+
# REQUIRED: The resource for which the policy is being specified.
|
202
|
+
# See the operation documentation for the appropriate value for this field.
|
203
|
+
# @param [Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
350
204
|
# @param [String] fields
|
351
205
|
# Selector specifying which fields to include in a partial response.
|
352
206
|
# @param [String] quota_user
|
@@ -356,33 +210,32 @@ module Google
|
|
356
210
|
# Request-specific options
|
357
211
|
#
|
358
212
|
# @yield [result, err] Result & error if block supplied
|
359
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::
|
213
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
|
360
214
|
# @yieldparam err [StandardError] error object if request failed
|
361
215
|
#
|
362
|
-
# @return [Google::Apis::CloudkmsV1beta1::
|
216
|
+
# @return [Google::Apis::CloudkmsV1beta1::Policy]
|
363
217
|
#
|
364
218
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
365
219
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
366
220
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
367
|
-
def
|
368
|
-
command = make_simple_command(:
|
369
|
-
command.
|
370
|
-
command.
|
371
|
-
command.
|
372
|
-
command.
|
373
|
-
command.
|
221
|
+
def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
223
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest::Representation
|
224
|
+
command.request_object = set_iam_policy_request_object
|
225
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
|
226
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::Policy
|
227
|
+
command.params['resource'] = resource unless resource.nil?
|
374
228
|
command.query['fields'] = fields unless fields.nil?
|
375
229
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
376
230
|
execute_or_queue_command(command, &block)
|
377
231
|
end
|
378
232
|
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
# @param [Google::Apis::CloudkmsV1beta1::EncryptRequest] encrypt_request_object
|
233
|
+
# Gets the access control policy for a resource.
|
234
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
235
|
+
# set.
|
236
|
+
# @param [String] resource
|
237
|
+
# REQUIRED: The resource for which the policy is being requested.
|
238
|
+
# See the operation documentation for the appropriate value for this field.
|
386
239
|
# @param [String] fields
|
387
240
|
# Selector specifying which fields to include in a partial response.
|
388
241
|
# @param [String] quota_user
|
@@ -392,35 +245,27 @@ module Google
|
|
392
245
|
# Request-specific options
|
393
246
|
#
|
394
247
|
# @yield [result, err] Result & error if block supplied
|
395
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::
|
248
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
|
396
249
|
# @yieldparam err [StandardError] error object if request failed
|
397
250
|
#
|
398
|
-
# @return [Google::Apis::CloudkmsV1beta1::
|
251
|
+
# @return [Google::Apis::CloudkmsV1beta1::Policy]
|
399
252
|
#
|
400
253
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
401
254
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
402
255
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
403
|
-
def
|
404
|
-
command = make_simple_command(:
|
405
|
-
command.
|
406
|
-
command.
|
407
|
-
command.
|
408
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::EncryptResponse
|
409
|
-
command.params['name'] = name unless name.nil?
|
256
|
+
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
257
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
258
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
|
259
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::Policy
|
260
|
+
command.params['resource'] = resource unless resource.nil?
|
410
261
|
command.query['fields'] = fields unless fields.nil?
|
411
262
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
412
263
|
execute_or_queue_command(command, &block)
|
413
264
|
end
|
414
265
|
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
# Required. The name of the KeyRing associated with the
|
419
|
-
# CryptoKeys.
|
420
|
-
# @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
|
421
|
-
# @param [String] crypto_key_id
|
422
|
-
# Required. It must be unique within a KeyRing and match the regular
|
423
|
-
# expression `[a-zA-Z0-9_-]`1,63``
|
266
|
+
# Returns metadata for a given KeyRing.
|
267
|
+
# @param [String] name
|
268
|
+
# The name of the KeyRing to get.
|
424
269
|
# @param [String] fields
|
425
270
|
# Selector specifying which fields to include in a partial response.
|
426
271
|
# @param [String] quota_user
|
@@ -430,34 +275,34 @@ module Google
|
|
430
275
|
# Request-specific options
|
431
276
|
#
|
432
277
|
# @yield [result, err] Result & error if block supplied
|
433
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::
|
278
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::KeyRing] parsed result object
|
434
279
|
# @yieldparam err [StandardError] error object if request failed
|
435
280
|
#
|
436
|
-
# @return [Google::Apis::CloudkmsV1beta1::
|
281
|
+
# @return [Google::Apis::CloudkmsV1beta1::KeyRing]
|
437
282
|
#
|
438
283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
439
284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
440
285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
441
|
-
def
|
442
|
-
command = make_simple_command(:
|
443
|
-
command.
|
444
|
-
command.
|
445
|
-
command.
|
446
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
|
447
|
-
command.params['parent'] = parent unless parent.nil?
|
448
|
-
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
|
286
|
+
def get_project_location_key_ring(name, fields: nil, quota_user: nil, options: nil, &block)
|
287
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
288
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::KeyRing::Representation
|
289
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::KeyRing
|
290
|
+
command.params['name'] = name unless name.nil?
|
449
291
|
command.query['fields'] = fields unless fields.nil?
|
450
292
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
451
293
|
execute_or_queue_command(command, &block)
|
452
294
|
end
|
453
295
|
|
454
|
-
#
|
455
|
-
#
|
296
|
+
# Returns permissions that a caller has on the specified resource.
|
297
|
+
# If the resource does not exist, this will return an empty set of
|
298
|
+
# permissions, not a NOT_FOUND error.
|
299
|
+
# Note: This operation is designed to be used for building permission-aware
|
300
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
301
|
+
# may "fail open" without warning.
|
456
302
|
# @param [String] resource
|
457
|
-
# REQUIRED: The resource for which the policy is being
|
458
|
-
#
|
459
|
-
#
|
460
|
-
# @param [Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
303
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
304
|
+
# See the operation documentation for the appropriate value for this field.
|
305
|
+
# @param [Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
461
306
|
# @param [String] fields
|
462
307
|
# Selector specifying which fields to include in a partial response.
|
463
308
|
# @param [String] quota_user
|
@@ -467,20 +312,20 @@ module Google
|
|
467
312
|
# Request-specific options
|
468
313
|
#
|
469
314
|
# @yield [result, err] Result & error if block supplied
|
470
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::
|
315
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse] parsed result object
|
471
316
|
# @yieldparam err [StandardError] error object if request failed
|
472
317
|
#
|
473
|
-
# @return [Google::Apis::CloudkmsV1beta1::
|
318
|
+
# @return [Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse]
|
474
319
|
#
|
475
320
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
321
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
322
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
-
def
|
479
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:
|
480
|
-
command.request_representation = Google::Apis::CloudkmsV1beta1::
|
481
|
-
command.request_object =
|
482
|
-
command.response_representation = Google::Apis::CloudkmsV1beta1::
|
483
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::
|
323
|
+
def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
324
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
325
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest::Representation
|
326
|
+
command.request_object = test_iam_permissions_request_object
|
327
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse::Representation
|
328
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::TestIamPermissionsResponse
|
484
329
|
command.params['resource'] = resource unless resource.nil?
|
485
330
|
command.query['fields'] = fields unless fields.nil?
|
486
331
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -525,8 +370,7 @@ module Google
|
|
525
370
|
# set.
|
526
371
|
# @param [String] resource
|
527
372
|
# REQUIRED: The resource for which the policy is being requested.
|
528
|
-
#
|
529
|
-
# resource is specified as `projects/`project``.
|
373
|
+
# See the operation documentation for the appropriate value for this field.
|
530
374
|
# @param [String] fields
|
531
375
|
# Selector specifying which fields to include in a partial response.
|
532
376
|
# @param [String] quota_user
|
@@ -554,13 +398,10 @@ module Google
|
|
554
398
|
execute_or_queue_command(command, &block)
|
555
399
|
end
|
556
400
|
|
557
|
-
#
|
401
|
+
# Returns metadata for a given CryptoKey, as well as its
|
402
|
+
# primary CryptoKeyVersion.
|
558
403
|
# @param [String] name
|
559
|
-
#
|
560
|
-
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
561
|
-
# @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
|
562
|
-
# @param [String] update_mask
|
563
|
-
# Required list of fields to be updated in this request.
|
404
|
+
# The name of the CryptoKey to get.
|
564
405
|
# @param [String] fields
|
565
406
|
# Selector specifying which fields to include in a partial response.
|
566
407
|
# @param [String] quota_user
|
@@ -578,23 +419,23 @@ module Google
|
|
578
419
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
420
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
421
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
-
def
|
582
|
-
command = make_simple_command(:
|
583
|
-
command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
|
584
|
-
command.request_object = crypto_key_object
|
422
|
+
def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
|
423
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
585
424
|
command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
|
586
425
|
command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
|
587
426
|
command.params['name'] = name unless name.nil?
|
588
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
589
427
|
command.query['fields'] = fields unless fields.nil?
|
590
428
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
591
429
|
execute_or_queue_command(command, &block)
|
592
430
|
end
|
593
431
|
|
594
|
-
#
|
595
|
-
# primary CryptoKeyVersion.
|
432
|
+
# Update a CryptoKey.
|
596
433
|
# @param [String] name
|
597
|
-
# The name
|
434
|
+
# Output only. The resource name for this CryptoKey in the format
|
435
|
+
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
436
|
+
# @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
|
437
|
+
# @param [String] update_mask
|
438
|
+
# Required list of fields to be updated in this request.
|
598
439
|
# @param [String] fields
|
599
440
|
# Selector specifying which fields to include in a partial response.
|
600
441
|
# @param [String] quota_user
|
@@ -612,11 +453,14 @@ module Google
|
|
612
453
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
613
454
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
614
455
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
615
|
-
def
|
616
|
-
command = make_simple_command(:
|
456
|
+
def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
457
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
458
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
|
459
|
+
command.request_object = crypto_key_object
|
617
460
|
command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
|
618
461
|
command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
|
619
462
|
command.params['name'] = name unless name.nil?
|
463
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
620
464
|
command.query['fields'] = fields unless fields.nil?
|
621
465
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
622
466
|
execute_or_queue_command(command, &block)
|
@@ -630,8 +474,7 @@ module Google
|
|
630
474
|
# may "fail open" without warning.
|
631
475
|
# @param [String] resource
|
632
476
|
# REQUIRED: The resource for which the policy detail is being requested.
|
633
|
-
#
|
634
|
-
# resource is specified as `projects/`project``.
|
477
|
+
# See the operation documentation for the appropriate value for this field.
|
635
478
|
# @param [Google::Apis::CloudkmsV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
636
479
|
# @param [String] fields
|
637
480
|
# Selector specifying which fields to include in a partial response.
|
@@ -696,15 +539,54 @@ module Google
|
|
696
539
|
execute_or_queue_command(command, &block)
|
697
540
|
end
|
698
541
|
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
702
|
-
#
|
703
|
-
#
|
704
|
-
#
|
542
|
+
# Lists CryptoKeys.
|
543
|
+
# @param [String] parent
|
544
|
+
# Required. The resource name of the KeyRing to list, in the format
|
545
|
+
# `projects/*/locations/*/keyRings/*`.
|
546
|
+
# @param [String] page_token
|
547
|
+
# Optional pagination token, returned earlier via
|
548
|
+
# ListCryptoKeysResponse.next_page_token.
|
549
|
+
# @param [Fixnum] page_size
|
550
|
+
# Optional limit on the number of CryptoKeys to include in the
|
551
|
+
# response. Further CryptoKeys can subsequently be obtained by
|
552
|
+
# including the ListCryptoKeysResponse.next_page_token in a subsequent
|
553
|
+
# request. If unspecified, the server will pick an appropriate default.
|
554
|
+
# @param [String] fields
|
555
|
+
# Selector specifying which fields to include in a partial response.
|
556
|
+
# @param [String] quota_user
|
557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
558
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
559
|
+
# @param [Google::Apis::RequestOptions] options
|
560
|
+
# Request-specific options
|
561
|
+
#
|
562
|
+
# @yield [result, err] Result & error if block supplied
|
563
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::ListCryptoKeysResponse] parsed result object
|
564
|
+
# @yieldparam err [StandardError] error object if request failed
|
565
|
+
#
|
566
|
+
# @return [Google::Apis::CloudkmsV1beta1::ListCryptoKeysResponse]
|
567
|
+
#
|
568
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
569
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
570
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
571
|
+
def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
572
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/cryptoKeys', options)
|
573
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::ListCryptoKeysResponse::Representation
|
574
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::ListCryptoKeysResponse
|
575
|
+
command.params['parent'] = parent unless parent.nil?
|
576
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
577
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
578
|
+
command.query['fields'] = fields unless fields.nil?
|
579
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
|
+
execute_or_queue_command(command, &block)
|
581
|
+
end
|
582
|
+
|
583
|
+
# Encrypt data, so that it can only be recovered by a call to Decrypt.
|
705
584
|
# @param [String] name
|
706
|
-
# The resource name of the
|
707
|
-
#
|
585
|
+
# Required. The resource name of the CryptoKey or CryptoKeyVersion
|
586
|
+
# to use for encryption.
|
587
|
+
# If a CryptoKey is specified, the server will use its
|
588
|
+
# primary version.
|
589
|
+
# @param [Google::Apis::CloudkmsV1beta1::EncryptRequest] encrypt_request_object
|
708
590
|
# @param [String] fields
|
709
591
|
# Selector specifying which fields to include in a partial response.
|
710
592
|
# @param [String] quota_user
|
@@ -714,26 +596,100 @@ module Google
|
|
714
596
|
# Request-specific options
|
715
597
|
#
|
716
598
|
# @yield [result, err] Result & error if block supplied
|
717
|
-
# @yieldparam result [Google::Apis::CloudkmsV1beta1::
|
599
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::EncryptResponse] parsed result object
|
718
600
|
# @yieldparam err [StandardError] error object if request failed
|
719
601
|
#
|
720
|
-
# @return [Google::Apis::CloudkmsV1beta1::
|
602
|
+
# @return [Google::Apis::CloudkmsV1beta1::EncryptResponse]
|
721
603
|
#
|
722
604
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
723
605
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
724
606
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
725
|
-
def
|
726
|
-
command = make_simple_command(:post, 'v1beta1/{+name}:
|
727
|
-
command.request_representation = Google::Apis::CloudkmsV1beta1::
|
728
|
-
command.request_object =
|
729
|
-
command.response_representation = Google::Apis::CloudkmsV1beta1::
|
730
|
-
command.response_class = Google::Apis::CloudkmsV1beta1::
|
607
|
+
def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
608
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:encrypt', options)
|
609
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::EncryptRequest::Representation
|
610
|
+
command.request_object = encrypt_request_object
|
611
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::EncryptResponse::Representation
|
612
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::EncryptResponse
|
731
613
|
command.params['name'] = name unless name.nil?
|
732
614
|
command.query['fields'] = fields unless fields.nil?
|
733
615
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
734
616
|
execute_or_queue_command(command, &block)
|
735
617
|
end
|
736
618
|
|
619
|
+
# Create a new CryptoKey within a KeyRing.
|
620
|
+
# CryptoKey.purpose is required.
|
621
|
+
# @param [String] parent
|
622
|
+
# Required. The name of the KeyRing associated with the
|
623
|
+
# CryptoKeys.
|
624
|
+
# @param [Google::Apis::CloudkmsV1beta1::CryptoKey] crypto_key_object
|
625
|
+
# @param [String] crypto_key_id
|
626
|
+
# Required. It must be unique within a KeyRing and match the regular
|
627
|
+
# expression `[a-zA-Z0-9_-]`1,63``
|
628
|
+
# @param [String] fields
|
629
|
+
# Selector specifying which fields to include in a partial response.
|
630
|
+
# @param [String] quota_user
|
631
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
632
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
633
|
+
# @param [Google::Apis::RequestOptions] options
|
634
|
+
# Request-specific options
|
635
|
+
#
|
636
|
+
# @yield [result, err] Result & error if block supplied
|
637
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKey] parsed result object
|
638
|
+
# @yieldparam err [StandardError] error object if request failed
|
639
|
+
#
|
640
|
+
# @return [Google::Apis::CloudkmsV1beta1::CryptoKey]
|
641
|
+
#
|
642
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
643
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
644
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
645
|
+
def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
646
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeys', options)
|
647
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
|
648
|
+
command.request_object = crypto_key_object
|
649
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKey::Representation
|
650
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKey
|
651
|
+
command.params['parent'] = parent unless parent.nil?
|
652
|
+
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
|
653
|
+
command.query['fields'] = fields unless fields.nil?
|
654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
655
|
+
execute_or_queue_command(command, &block)
|
656
|
+
end
|
657
|
+
|
658
|
+
# Sets the access control policy on the specified resource. Replaces any
|
659
|
+
# existing policy.
|
660
|
+
# @param [String] resource
|
661
|
+
# REQUIRED: The resource for which the policy is being specified.
|
662
|
+
# See the operation documentation for the appropriate value for this field.
|
663
|
+
# @param [Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
664
|
+
# @param [String] fields
|
665
|
+
# Selector specifying which fields to include in a partial response.
|
666
|
+
# @param [String] quota_user
|
667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
669
|
+
# @param [Google::Apis::RequestOptions] options
|
670
|
+
# Request-specific options
|
671
|
+
#
|
672
|
+
# @yield [result, err] Result & error if block supplied
|
673
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::Policy] parsed result object
|
674
|
+
# @yieldparam err [StandardError] error object if request failed
|
675
|
+
#
|
676
|
+
# @return [Google::Apis::CloudkmsV1beta1::Policy]
|
677
|
+
#
|
678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
681
|
+
def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
682
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
683
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::SetIamPolicyRequest::Representation
|
684
|
+
command.request_object = set_iam_policy_request_object
|
685
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::Policy::Representation
|
686
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::Policy
|
687
|
+
command.params['resource'] = resource unless resource.nil?
|
688
|
+
command.query['fields'] = fields unless fields.nil?
|
689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
690
|
+
execute_or_queue_command(command, &block)
|
691
|
+
end
|
692
|
+
|
737
693
|
# Update a CryptoKeyVersion's metadata.
|
738
694
|
# state may be changed between
|
739
695
|
# ENABLED and
|
@@ -810,15 +766,15 @@ module Google
|
|
810
766
|
# @param [String] parent
|
811
767
|
# Required. The resource name of the CryptoKey to list, in the format
|
812
768
|
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
813
|
-
# @param [String] page_token
|
814
|
-
# Optional pagination token, returned earlier via
|
815
|
-
# ListCryptoKeyVersionsResponse.next_page_token.
|
816
769
|
# @param [Fixnum] page_size
|
817
770
|
# Optional limit on the number of CryptoKeyVersions to
|
818
771
|
# include in the response. Further CryptoKeyVersions can
|
819
772
|
# subsequently be obtained by including the
|
820
773
|
# ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
|
821
774
|
# If unspecified, the server will pick an appropriate default.
|
775
|
+
# @param [String] page_token
|
776
|
+
# Optional pagination token, returned earlier via
|
777
|
+
# ListCryptoKeyVersionsResponse.next_page_token.
|
822
778
|
# @param [String] fields
|
823
779
|
# Selector specifying which fields to include in a partial response.
|
824
780
|
# @param [String] quota_user
|
@@ -836,13 +792,50 @@ module Google
|
|
836
792
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
837
793
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
838
794
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
839
|
-
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent,
|
795
|
+
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
840
796
|
command = make_simple_command(:get, 'v1beta1/{+parent}/cryptoKeyVersions', options)
|
841
797
|
command.response_representation = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse::Representation
|
842
798
|
command.response_class = Google::Apis::CloudkmsV1beta1::ListCryptoKeyVersionsResponse
|
843
799
|
command.params['parent'] = parent unless parent.nil?
|
844
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
845
800
|
command.query['pageSize'] = page_size unless page_size.nil?
|
801
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
802
|
+
command.query['fields'] = fields unless fields.nil?
|
803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
804
|
+
execute_or_queue_command(command, &block)
|
805
|
+
end
|
806
|
+
|
807
|
+
# Create a new CryptoKeyVersion in a CryptoKey.
|
808
|
+
# The server will assign the next sequential id. If unset,
|
809
|
+
# state will be set to
|
810
|
+
# ENABLED.
|
811
|
+
# @param [String] parent
|
812
|
+
# Required. The name of the CryptoKey associated with
|
813
|
+
# the CryptoKeyVersions.
|
814
|
+
# @param [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] crypto_key_version_object
|
815
|
+
# @param [String] fields
|
816
|
+
# Selector specifying which fields to include in a partial response.
|
817
|
+
# @param [String] quota_user
|
818
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
819
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
820
|
+
# @param [Google::Apis::RequestOptions] options
|
821
|
+
# Request-specific options
|
822
|
+
#
|
823
|
+
# @yield [result, err] Result & error if block supplied
|
824
|
+
# @yieldparam result [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion] parsed result object
|
825
|
+
# @yieldparam err [StandardError] error object if request failed
|
826
|
+
#
|
827
|
+
# @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
|
828
|
+
#
|
829
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
830
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
831
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
832
|
+
def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
833
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/cryptoKeyVersions', options)
|
834
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
|
835
|
+
command.request_object = crypto_key_version_object
|
836
|
+
command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
|
837
|
+
command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
|
838
|
+
command.params['parent'] = parent unless parent.nil?
|
846
839
|
command.query['fields'] = fields unless fields.nil?
|
847
840
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
841
|
execute_or_queue_command(command, &block)
|
@@ -890,14 +883,15 @@ module Google
|
|
890
883
|
execute_or_queue_command(command, &block)
|
891
884
|
end
|
892
885
|
|
893
|
-
#
|
894
|
-
#
|
895
|
-
# state
|
896
|
-
#
|
897
|
-
#
|
898
|
-
#
|
899
|
-
#
|
900
|
-
#
|
886
|
+
# Restore a CryptoKeyVersion in the
|
887
|
+
# DESTROY_SCHEDULED,
|
888
|
+
# state.
|
889
|
+
# Upon restoration of the CryptoKeyVersion, state
|
890
|
+
# will be set to DISABLED,
|
891
|
+
# and destroy_time will be cleared.
|
892
|
+
# @param [String] name
|
893
|
+
# The resource name of the CryptoKeyVersion to restore.
|
894
|
+
# @param [Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
|
901
895
|
# @param [String] fields
|
902
896
|
# Selector specifying which fields to include in a partial response.
|
903
897
|
# @param [String] quota_user
|
@@ -915,13 +909,13 @@ module Google
|
|
915
909
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
916
910
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
917
911
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
918
|
-
def
|
919
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
920
|
-
command.request_representation = Google::Apis::CloudkmsV1beta1::
|
921
|
-
command.request_object =
|
912
|
+
def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
913
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
|
914
|
+
command.request_representation = Google::Apis::CloudkmsV1beta1::RestoreCryptoKeyVersionRequest::Representation
|
915
|
+
command.request_object = restore_crypto_key_version_request_object
|
922
916
|
command.response_representation = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion::Representation
|
923
917
|
command.response_class = Google::Apis::CloudkmsV1beta1::CryptoKeyVersion
|
924
|
-
command.params['
|
918
|
+
command.params['name'] = name unless name.nil?
|
925
919
|
command.query['fields'] = fields unless fields.nil?
|
926
920
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
927
921
|
execute_or_queue_command(command, &block)
|