google-api-client 0.27.3 → 0.28.0

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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  4. data/generated/google/apis/alertcenter_v1beta1/service.rb +4 -4
  5. data/generated/google/apis/analytics_v3.rb +1 -1
  6. data/generated/google/apis/analytics_v3/classes.rb +18 -112
  7. data/generated/google/apis/analytics_v3/representations.rb +0 -36
  8. data/generated/google/apis/analytics_v3/service.rb +18 -18
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +20 -0
  12. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  13. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  14. data/generated/google/apis/cloudbilling_v1/classes.rb +7 -0
  15. data/generated/google/apis/cloudbilling_v1/representations.rb +1 -0
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
  18. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  19. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
  20. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  21. data/generated/google/apis/cloudsearch_v1/classes.rb +5 -8
  22. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  23. data/generated/google/apis/composer_v1.rb +1 -1
  24. data/generated/google/apis/composer_v1/classes.rb +59 -0
  25. data/generated/google/apis/composer_v1/representations.rb +30 -0
  26. data/generated/google/apis/composer_v1/service.rb +37 -0
  27. data/generated/google/apis/composer_v1beta1.rb +1 -1
  28. data/generated/google/apis/composer_v1beta1/classes.rb +59 -0
  29. data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
  30. data/generated/google/apis/composer_v1beta1/service.rb +37 -0
  31. data/generated/google/apis/dialogflow_v2.rb +1 -1
  32. data/generated/google/apis/dialogflow_v2/classes.rb +2 -0
  33. data/generated/google/apis/dialogflow_v2/service.rb +8 -16
  34. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  35. data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -0
  36. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -16
  37. data/generated/google/apis/firebasehosting_v1beta1.rb +4 -3
  38. data/generated/google/apis/firebasehosting_v1beta1/service.rb +3 -2
  39. data/generated/google/apis/fitness_v1.rb +1 -1
  40. data/generated/google/apis/fitness_v1/classes.rb +7 -6
  41. data/generated/google/apis/iam_v1.rb +1 -1
  42. data/generated/google/apis/iam_v1/classes.rb +37 -0
  43. data/generated/google/apis/iam_v1/representations.rb +15 -0
  44. data/generated/google/apis/iam_v1/service.rb +44 -0
  45. data/generated/google/apis/iap_v1.rb +1 -1
  46. data/generated/google/apis/iap_v1/service.rb +3 -558
  47. data/generated/google/apis/iap_v1beta1.rb +1 -1
  48. data/generated/google/apis/iap_v1beta1/service.rb +3 -568
  49. data/generated/google/apis/jobs_v2.rb +1 -1
  50. data/generated/google/apis/jobs_v2/classes.rb +1 -1
  51. data/generated/google/apis/jobs_v2/service.rb +2 -2
  52. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  53. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -0
  54. data/generated/google/apis/logging_v2.rb +1 -1
  55. data/generated/google/apis/logging_v2/classes.rb +52 -10
  56. data/generated/google/apis/logging_v2/representations.rb +6 -0
  57. data/generated/google/apis/logging_v2/service.rb +9 -9
  58. data/generated/google/apis/logging_v2beta1.rb +1 -1
  59. data/generated/google/apis/logging_v2beta1/classes.rb +37 -9
  60. data/generated/google/apis/logging_v2beta1/representations.rb +4 -0
  61. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  62. data/generated/google/apis/ml_v1.rb +1 -1
  63. data/generated/google/apis/ml_v1/classes.rb +10 -12
  64. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  65. data/generated/google/apis/remotebuildexecution_v1/classes.rb +111 -88
  66. data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -1
  67. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  68. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +111 -88
  69. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -1
  70. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  71. data/generated/google/apis/remotebuildexecution_v2/classes.rb +141 -116
  72. data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -1
  73. data/generated/google/apis/remotebuildexecution_v2/service.rb +6 -5
  74. data/generated/google/apis/script_v1.rb +1 -1
  75. data/generated/google/apis/script_v1/classes.rb +2 -1
  76. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  77. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  78. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  79. data/generated/google/apis/servicemanagement_v1/classes.rb +12 -0
  80. data/generated/google/apis/servicemanagement_v1/representations.rb +2 -0
  81. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  82. data/generated/google/apis/servicenetworking_v1beta/classes.rb +71 -0
  83. data/generated/google/apis/servicenetworking_v1beta/representations.rb +30 -0
  84. data/generated/google/apis/serviceusage_v1.rb +1 -1
  85. data/generated/google/apis/serviceusage_v1/service.rb +0 -3
  86. data/generated/google/apis/speech_v1.rb +1 -1
  87. data/generated/google/apis/speech_v1/classes.rb +20 -0
  88. data/generated/google/apis/speech_v1/representations.rb +2 -0
  89. data/generated/google/apis/speech_v1/service.rb +111 -0
  90. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/speech_v1p1beta1/classes.rb +1 -1
  92. data/generated/google/apis/speech_v1p1beta1/service.rb +111 -0
  93. data/generated/google/apis/videointelligence_v1.rb +1 -1
  94. data/generated/google/apis/videointelligence_v1/classes.rb +14 -0
  95. data/generated/google/apis/videointelligence_v1/representations.rb +1 -0
  96. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  97. data/generated/google/apis/videointelligence_v1beta2/classes.rb +14 -0
  98. data/generated/google/apis/videointelligence_v1beta2/representations.rb +1 -0
  99. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  100. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +14 -0
  101. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +1 -0
  102. data/generated/google/apis/vision_v1.rb +1 -1
  103. data/generated/google/apis/vision_v1/classes.rb +2 -1
  104. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  105. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  106. data/lib/google/apis/version.rb +1 -1
  107. metadata +2 -6
  108. data/generated/google/apis/monitoring_v1.rb +0 -33
  109. data/generated/google/apis/monitoring_v1/classes.rb +0 -474
  110. data/generated/google/apis/monitoring_v1/representations.rb +0 -195
  111. data/generated/google/apis/monitoring_v1/service.rb +0 -211
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/iap
26
26
  module IapV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20181128'
28
+ REVISION = '20190109'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -72,7 +72,7 @@ module Google
72
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def get_iap_tunnel_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ def get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
76
  command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
77
77
  command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation
78
78
  command.request_object = get_iam_policy_request_object
@@ -109,7 +109,7 @@ module Google
109
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def set_iap_tunnel_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ def set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
113
113
  command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
114
114
  command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation
115
115
  command.request_object = set_iam_policy_request_object
@@ -148,572 +148,7 @@ module Google
148
148
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
151
- def test_iap_tunnel_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
152
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
153
- command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation
154
- command.request_object = test_iam_permissions_request_object
155
- command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation
156
- command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse
157
- command.params['resource'] = resource unless resource.nil?
158
- command.query['fields'] = fields unless fields.nil?
159
- command.query['quotaUser'] = quota_user unless quota_user.nil?
160
- execute_or_queue_command(command, &block)
161
- end
162
-
163
- # Gets the access control policy for an Identity-Aware Proxy protected
164
- # resource.
165
- # More information about managing access via IAP can be found at:
166
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
167
- # @param [String] resource
168
- # REQUIRED: The resource for which the policy is being requested.
169
- # See the operation documentation for the appropriate value for this field.
170
- # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
171
- # @param [String] fields
172
- # Selector specifying which fields to include in a partial response.
173
- # @param [String] quota_user
174
- # Available to use for quota purposes for server-side applications. Can be any
175
- # arbitrary string assigned to a user, but should not exceed 40 characters.
176
- # @param [Google::Apis::RequestOptions] options
177
- # Request-specific options
178
- #
179
- # @yield [result, err] Result & error if block supplied
180
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
181
- # @yieldparam err [StandardError] error object if request failed
182
- #
183
- # @return [Google::Apis::IapV1beta1::Policy]
184
- #
185
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
- # @raise [Google::Apis::AuthorizationError] Authorization is required
188
- def get_zone_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
189
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
190
- command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation
191
- command.request_object = get_iam_policy_request_object
192
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
193
- command.response_class = Google::Apis::IapV1beta1::Policy
194
- command.params['resource'] = resource unless resource.nil?
195
- command.query['fields'] = fields unless fields.nil?
196
- command.query['quotaUser'] = quota_user unless quota_user.nil?
197
- execute_or_queue_command(command, &block)
198
- end
199
-
200
- # Sets the access control policy for an Identity-Aware Proxy protected
201
- # resource. Replaces any existing policy.
202
- # More information about managing access via IAP can be found at:
203
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
204
- # @param [String] resource
205
- # REQUIRED: The resource for which the policy is being specified.
206
- # See the operation documentation for the appropriate value for this field.
207
- # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
- # @param [String] quota_user
211
- # Available to use for quota purposes for server-side applications. Can be any
212
- # arbitrary string assigned to a user, but should not exceed 40 characters.
213
- # @param [Google::Apis::RequestOptions] options
214
- # Request-specific options
215
- #
216
- # @yield [result, err] Result & error if block supplied
217
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
218
- # @yieldparam err [StandardError] error object if request failed
219
- #
220
- # @return [Google::Apis::IapV1beta1::Policy]
221
- #
222
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
- # @raise [Google::Apis::AuthorizationError] Authorization is required
225
- def set_zone_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
226
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
227
- command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation
228
- command.request_object = set_iam_policy_request_object
229
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
230
- command.response_class = Google::Apis::IapV1beta1::Policy
231
- command.params['resource'] = resource unless resource.nil?
232
- command.query['fields'] = fields unless fields.nil?
233
- command.query['quotaUser'] = quota_user unless quota_user.nil?
234
- execute_or_queue_command(command, &block)
235
- end
236
-
237
- # Returns permissions that a caller has on the Identity-Aware Proxy protected
238
- # resource. If the resource does not exist or the caller does not have
239
- # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
240
- # will be returned.
241
- # More information about managing access via IAP can be found at:
242
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
243
- # @param [String] resource
244
- # REQUIRED: The resource for which the policy detail is being requested.
245
- # See the operation documentation for the appropriate value for this field.
246
- # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
247
- # @param [String] fields
248
- # Selector specifying which fields to include in a partial response.
249
- # @param [String] quota_user
250
- # Available to use for quota purposes for server-side applications. Can be any
251
- # arbitrary string assigned to a user, but should not exceed 40 characters.
252
- # @param [Google::Apis::RequestOptions] options
253
- # Request-specific options
254
- #
255
- # @yield [result, err] Result & error if block supplied
256
- # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object
257
- # @yieldparam err [StandardError] error object if request failed
258
- #
259
- # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse]
260
- #
261
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
- # @raise [Google::Apis::AuthorizationError] Authorization is required
264
- def test_zone_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
266
- command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation
267
- command.request_object = test_iam_permissions_request_object
268
- command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation
269
- command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse
270
- command.params['resource'] = resource unless resource.nil?
271
- command.query['fields'] = fields unless fields.nil?
272
- command.query['quotaUser'] = quota_user unless quota_user.nil?
273
- execute_or_queue_command(command, &block)
274
- end
275
-
276
- # Gets the access control policy for an Identity-Aware Proxy protected
277
- # resource.
278
- # More information about managing access via IAP can be found at:
279
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
280
- # @param [String] resource
281
- # REQUIRED: The resource for which the policy is being requested.
282
- # See the operation documentation for the appropriate value for this field.
283
- # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
284
- # @param [String] fields
285
- # Selector specifying which fields to include in a partial response.
286
- # @param [String] quota_user
287
- # Available to use for quota purposes for server-side applications. Can be any
288
- # arbitrary string assigned to a user, but should not exceed 40 characters.
289
- # @param [Google::Apis::RequestOptions] options
290
- # Request-specific options
291
- #
292
- # @yield [result, err] Result & error if block supplied
293
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
294
- # @yieldparam err [StandardError] error object if request failed
295
- #
296
- # @return [Google::Apis::IapV1beta1::Policy]
297
- #
298
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
- # @raise [Google::Apis::AuthorizationError] Authorization is required
301
- def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
302
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
303
- command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation
304
- command.request_object = get_iam_policy_request_object
305
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
306
- command.response_class = Google::Apis::IapV1beta1::Policy
307
- command.params['resource'] = resource unless resource.nil?
308
- command.query['fields'] = fields unless fields.nil?
309
- command.query['quotaUser'] = quota_user unless quota_user.nil?
310
- execute_or_queue_command(command, &block)
311
- end
312
-
313
- # Sets the access control policy for an Identity-Aware Proxy protected
314
- # resource. Replaces any existing policy.
315
- # More information about managing access via IAP can be found at:
316
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
317
- # @param [String] resource
318
- # REQUIRED: The resource for which the policy is being specified.
319
- # See the operation documentation for the appropriate value for this field.
320
- # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
321
- # @param [String] fields
322
- # Selector specifying which fields to include in a partial response.
323
- # @param [String] quota_user
324
- # Available to use for quota purposes for server-side applications. Can be any
325
- # arbitrary string assigned to a user, but should not exceed 40 characters.
326
- # @param [Google::Apis::RequestOptions] options
327
- # Request-specific options
328
- #
329
- # @yield [result, err] Result & error if block supplied
330
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
331
- # @yieldparam err [StandardError] error object if request failed
332
- #
333
- # @return [Google::Apis::IapV1beta1::Policy]
334
- #
335
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
336
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
337
- # @raise [Google::Apis::AuthorizationError] Authorization is required
338
- def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
339
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
340
- command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation
341
- command.request_object = set_iam_policy_request_object
342
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
343
- command.response_class = Google::Apis::IapV1beta1::Policy
344
- command.params['resource'] = resource unless resource.nil?
345
- command.query['fields'] = fields unless fields.nil?
346
- command.query['quotaUser'] = quota_user unless quota_user.nil?
347
- execute_or_queue_command(command, &block)
348
- end
349
-
350
- # Returns permissions that a caller has on the Identity-Aware Proxy protected
351
- # resource. If the resource does not exist or the caller does not have
352
- # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
353
- # will be returned.
354
- # More information about managing access via IAP can be found at:
355
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
356
- # @param [String] resource
357
- # REQUIRED: The resource for which the policy detail is being requested.
358
- # See the operation documentation for the appropriate value for this field.
359
- # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
360
- # @param [String] fields
361
- # Selector specifying which fields to include in a partial response.
362
- # @param [String] quota_user
363
- # Available to use for quota purposes for server-side applications. Can be any
364
- # arbitrary string assigned to a user, but should not exceed 40 characters.
365
- # @param [Google::Apis::RequestOptions] options
366
- # Request-specific options
367
- #
368
- # @yield [result, err] Result & error if block supplied
369
- # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object
370
- # @yieldparam err [StandardError] error object if request failed
371
- #
372
- # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse]
373
- #
374
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
- # @raise [Google::Apis::AuthorizationError] Authorization is required
377
- def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
378
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
379
- command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation
380
- command.request_object = test_iam_permissions_request_object
381
- command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation
382
- command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse
383
- command.params['resource'] = resource unless resource.nil?
384
- command.query['fields'] = fields unless fields.nil?
385
- command.query['quotaUser'] = quota_user unless quota_user.nil?
386
- execute_or_queue_command(command, &block)
387
- end
388
-
389
- # Gets the access control policy for an Identity-Aware Proxy protected
390
- # resource.
391
- # More information about managing access via IAP can be found at:
392
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
393
- # @param [String] resource
394
- # REQUIRED: The resource for which the policy is being requested.
395
- # See the operation documentation for the appropriate value for this field.
396
- # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
397
- # @param [String] fields
398
- # Selector specifying which fields to include in a partial response.
399
- # @param [String] quota_user
400
- # Available to use for quota purposes for server-side applications. Can be any
401
- # arbitrary string assigned to a user, but should not exceed 40 characters.
402
- # @param [Google::Apis::RequestOptions] options
403
- # Request-specific options
404
- #
405
- # @yield [result, err] Result & error if block supplied
406
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
407
- # @yieldparam err [StandardError] error object if request failed
408
- #
409
- # @return [Google::Apis::IapV1beta1::Policy]
410
- #
411
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
412
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
413
- # @raise [Google::Apis::AuthorizationError] Authorization is required
414
- def get_iap_web_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
415
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
416
- command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation
417
- command.request_object = get_iam_policy_request_object
418
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
419
- command.response_class = Google::Apis::IapV1beta1::Policy
420
- command.params['resource'] = resource unless resource.nil?
421
- command.query['fields'] = fields unless fields.nil?
422
- command.query['quotaUser'] = quota_user unless quota_user.nil?
423
- execute_or_queue_command(command, &block)
424
- end
425
-
426
- # Sets the access control policy for an Identity-Aware Proxy protected
427
- # resource. Replaces any existing policy.
428
- # More information about managing access via IAP can be found at:
429
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
430
- # @param [String] resource
431
- # REQUIRED: The resource for which the policy is being specified.
432
- # See the operation documentation for the appropriate value for this field.
433
- # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
434
- # @param [String] fields
435
- # Selector specifying which fields to include in a partial response.
436
- # @param [String] quota_user
437
- # Available to use for quota purposes for server-side applications. Can be any
438
- # arbitrary string assigned to a user, but should not exceed 40 characters.
439
- # @param [Google::Apis::RequestOptions] options
440
- # Request-specific options
441
- #
442
- # @yield [result, err] Result & error if block supplied
443
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
444
- # @yieldparam err [StandardError] error object if request failed
445
- #
446
- # @return [Google::Apis::IapV1beta1::Policy]
447
- #
448
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
- # @raise [Google::Apis::AuthorizationError] Authorization is required
451
- def set_iap_web_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
452
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
453
- command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation
454
- command.request_object = set_iam_policy_request_object
455
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
456
- command.response_class = Google::Apis::IapV1beta1::Policy
457
- command.params['resource'] = resource unless resource.nil?
458
- command.query['fields'] = fields unless fields.nil?
459
- command.query['quotaUser'] = quota_user unless quota_user.nil?
460
- execute_or_queue_command(command, &block)
461
- end
462
-
463
- # Returns permissions that a caller has on the Identity-Aware Proxy protected
464
- # resource. If the resource does not exist or the caller does not have
465
- # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
466
- # will be returned.
467
- # More information about managing access via IAP can be found at:
468
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
469
- # @param [String] resource
470
- # REQUIRED: The resource for which the policy detail is being requested.
471
- # See the operation documentation for the appropriate value for this field.
472
- # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
473
- # @param [String] fields
474
- # Selector specifying which fields to include in a partial response.
475
- # @param [String] quota_user
476
- # Available to use for quota purposes for server-side applications. Can be any
477
- # arbitrary string assigned to a user, but should not exceed 40 characters.
478
- # @param [Google::Apis::RequestOptions] options
479
- # Request-specific options
480
- #
481
- # @yield [result, err] Result & error if block supplied
482
- # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object
483
- # @yieldparam err [StandardError] error object if request failed
484
- #
485
- # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse]
486
- #
487
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
488
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
489
- # @raise [Google::Apis::AuthorizationError] Authorization is required
490
- def test_iap_web_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
491
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
492
- command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation
493
- command.request_object = test_iam_permissions_request_object
494
- command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation
495
- command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse
496
- command.params['resource'] = resource unless resource.nil?
497
- command.query['fields'] = fields unless fields.nil?
498
- command.query['quotaUser'] = quota_user unless quota_user.nil?
499
- execute_or_queue_command(command, &block)
500
- end
501
-
502
- # Gets the access control policy for an Identity-Aware Proxy protected
503
- # resource.
504
- # More information about managing access via IAP can be found at:
505
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
506
- # @param [String] resource
507
- # REQUIRED: The resource for which the policy is being requested.
508
- # See the operation documentation for the appropriate value for this field.
509
- # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
510
- # @param [String] fields
511
- # Selector specifying which fields to include in a partial response.
512
- # @param [String] quota_user
513
- # Available to use for quota purposes for server-side applications. Can be any
514
- # arbitrary string assigned to a user, but should not exceed 40 characters.
515
- # @param [Google::Apis::RequestOptions] options
516
- # Request-specific options
517
- #
518
- # @yield [result, err] Result & error if block supplied
519
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
520
- # @yieldparam err [StandardError] error object if request failed
521
- #
522
- # @return [Google::Apis::IapV1beta1::Policy]
523
- #
524
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526
- # @raise [Google::Apis::AuthorizationError] Authorization is required
527
- def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
528
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
529
- command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation
530
- command.request_object = get_iam_policy_request_object
531
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
532
- command.response_class = Google::Apis::IapV1beta1::Policy
533
- command.params['resource'] = resource unless resource.nil?
534
- command.query['fields'] = fields unless fields.nil?
535
- command.query['quotaUser'] = quota_user unless quota_user.nil?
536
- execute_or_queue_command(command, &block)
537
- end
538
-
539
- # Sets the access control policy for an Identity-Aware Proxy protected
540
- # resource. Replaces any existing policy.
541
- # More information about managing access via IAP can be found at:
542
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
543
- # @param [String] resource
544
- # REQUIRED: The resource for which the policy is being specified.
545
- # See the operation documentation for the appropriate value for this field.
546
- # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
547
- # @param [String] fields
548
- # Selector specifying which fields to include in a partial response.
549
- # @param [String] quota_user
550
- # Available to use for quota purposes for server-side applications. Can be any
551
- # arbitrary string assigned to a user, but should not exceed 40 characters.
552
- # @param [Google::Apis::RequestOptions] options
553
- # Request-specific options
554
- #
555
- # @yield [result, err] Result & error if block supplied
556
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
557
- # @yieldparam err [StandardError] error object if request failed
558
- #
559
- # @return [Google::Apis::IapV1beta1::Policy]
560
- #
561
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
- # @raise [Google::Apis::AuthorizationError] Authorization is required
564
- def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
565
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
566
- command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation
567
- command.request_object = set_iam_policy_request_object
568
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
569
- command.response_class = Google::Apis::IapV1beta1::Policy
570
- command.params['resource'] = resource unless resource.nil?
571
- command.query['fields'] = fields unless fields.nil?
572
- command.query['quotaUser'] = quota_user unless quota_user.nil?
573
- execute_or_queue_command(command, &block)
574
- end
575
-
576
- # Returns permissions that a caller has on the Identity-Aware Proxy protected
577
- # resource. If the resource does not exist or the caller does not have
578
- # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
579
- # will be returned.
580
- # More information about managing access via IAP can be found at:
581
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
582
- # @param [String] resource
583
- # REQUIRED: The resource for which the policy detail is being requested.
584
- # See the operation documentation for the appropriate value for this field.
585
- # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
586
- # @param [String] fields
587
- # Selector specifying which fields to include in a partial response.
588
- # @param [String] quota_user
589
- # Available to use for quota purposes for server-side applications. Can be any
590
- # arbitrary string assigned to a user, but should not exceed 40 characters.
591
- # @param [Google::Apis::RequestOptions] options
592
- # Request-specific options
593
- #
594
- # @yield [result, err] Result & error if block supplied
595
- # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object
596
- # @yieldparam err [StandardError] error object if request failed
597
- #
598
- # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse]
599
- #
600
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
601
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
602
- # @raise [Google::Apis::AuthorizationError] Authorization is required
603
- def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
604
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
605
- command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation
606
- command.request_object = test_iam_permissions_request_object
607
- command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation
608
- command.response_class = Google::Apis::IapV1beta1::TestIamPermissionsResponse
609
- command.params['resource'] = resource unless resource.nil?
610
- command.query['fields'] = fields unless fields.nil?
611
- command.query['quotaUser'] = quota_user unless quota_user.nil?
612
- execute_or_queue_command(command, &block)
613
- end
614
-
615
- # Gets the access control policy for an Identity-Aware Proxy protected
616
- # resource.
617
- # More information about managing access via IAP can be found at:
618
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
619
- # @param [String] resource
620
- # REQUIRED: The resource for which the policy is being requested.
621
- # See the operation documentation for the appropriate value for this field.
622
- # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
623
- # @param [String] fields
624
- # Selector specifying which fields to include in a partial response.
625
- # @param [String] quota_user
626
- # Available to use for quota purposes for server-side applications. Can be any
627
- # arbitrary string assigned to a user, but should not exceed 40 characters.
628
- # @param [Google::Apis::RequestOptions] options
629
- # Request-specific options
630
- #
631
- # @yield [result, err] Result & error if block supplied
632
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
633
- # @yieldparam err [StandardError] error object if request failed
634
- #
635
- # @return [Google::Apis::IapV1beta1::Policy]
636
- #
637
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
638
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
639
- # @raise [Google::Apis::AuthorizationError] Authorization is required
640
- def get_version_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
641
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
642
- command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation
643
- command.request_object = get_iam_policy_request_object
644
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
645
- command.response_class = Google::Apis::IapV1beta1::Policy
646
- command.params['resource'] = resource unless resource.nil?
647
- command.query['fields'] = fields unless fields.nil?
648
- command.query['quotaUser'] = quota_user unless quota_user.nil?
649
- execute_or_queue_command(command, &block)
650
- end
651
-
652
- # Sets the access control policy for an Identity-Aware Proxy protected
653
- # resource. Replaces any existing policy.
654
- # More information about managing access via IAP can be found at:
655
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
656
- # @param [String] resource
657
- # REQUIRED: The resource for which the policy is being specified.
658
- # See the operation documentation for the appropriate value for this field.
659
- # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
660
- # @param [String] fields
661
- # Selector specifying which fields to include in a partial response.
662
- # @param [String] quota_user
663
- # Available to use for quota purposes for server-side applications. Can be any
664
- # arbitrary string assigned to a user, but should not exceed 40 characters.
665
- # @param [Google::Apis::RequestOptions] options
666
- # Request-specific options
667
- #
668
- # @yield [result, err] Result & error if block supplied
669
- # @yieldparam result [Google::Apis::IapV1beta1::Policy] parsed result object
670
- # @yieldparam err [StandardError] error object if request failed
671
- #
672
- # @return [Google::Apis::IapV1beta1::Policy]
673
- #
674
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
675
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
676
- # @raise [Google::Apis::AuthorizationError] Authorization is required
677
- def set_version_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
678
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
679
- command.request_representation = Google::Apis::IapV1beta1::SetIamPolicyRequest::Representation
680
- command.request_object = set_iam_policy_request_object
681
- command.response_representation = Google::Apis::IapV1beta1::Policy::Representation
682
- command.response_class = Google::Apis::IapV1beta1::Policy
683
- command.params['resource'] = resource unless resource.nil?
684
- command.query['fields'] = fields unless fields.nil?
685
- command.query['quotaUser'] = quota_user unless quota_user.nil?
686
- execute_or_queue_command(command, &block)
687
- end
688
-
689
- # Returns permissions that a caller has on the Identity-Aware Proxy protected
690
- # resource. If the resource does not exist or the caller does not have
691
- # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
692
- # will be returned.
693
- # More information about managing access via IAP can be found at:
694
- # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
695
- # @param [String] resource
696
- # REQUIRED: The resource for which the policy detail is being requested.
697
- # See the operation documentation for the appropriate value for this field.
698
- # @param [Google::Apis::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
699
- # @param [String] fields
700
- # Selector specifying which fields to include in a partial response.
701
- # @param [String] quota_user
702
- # Available to use for quota purposes for server-side applications. Can be any
703
- # arbitrary string assigned to a user, but should not exceed 40 characters.
704
- # @param [Google::Apis::RequestOptions] options
705
- # Request-specific options
706
- #
707
- # @yield [result, err] Result & error if block supplied
708
- # @yieldparam result [Google::Apis::IapV1beta1::TestIamPermissionsResponse] parsed result object
709
- # @yieldparam err [StandardError] error object if request failed
710
- #
711
- # @return [Google::Apis::IapV1beta1::TestIamPermissionsResponse]
712
- #
713
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
- # @raise [Google::Apis::AuthorizationError] Authorization is required
716
- def test_version_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ def test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
717
152
  command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
718
153
  command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation
719
154
  command.request_object = test_iam_permissions_request_object