google-api-client 0.23.7 → 0.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +5 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +31 -3
- data/generated/google/apis/appengine_v1beta/representations.rb +15 -0
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +5 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +5 -3
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +27 -22
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/{mybusiness_v3.rb → cloudtasks_v2beta3.rb} +12 -10
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +1405 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +421 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +855 -0
- data/generated/google/apis/compute_alpha/classes.rb +178 -135
- data/generated/google/apis/compute_alpha/representations.rb +82 -52
- data/generated/google/apis/compute_alpha/service.rb +57 -4
- data/generated/google/apis/compute_beta/classes.rb +125 -125
- data/generated/google/apis/compute_beta/representations.rb +51 -51
- data/generated/google/apis/compute_beta/service.rb +4 -4
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +152 -0
- data/generated/google/apis/content_v2/representations.rb +77 -0
- data/generated/google/apis/content_v2/service.rb +40 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +39 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +26 -0
- data/generated/google/apis/content_v2sandbox/service.rb +40 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +299 -0
- data/generated/google/apis/dataproc_v1/representations.rb +115 -0
- data/generated/google/apis/dataproc_v1/service.rb +540 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -3
- data/generated/google/apis/dialogflow_v2beta1/service.rb +226 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/service.rb +54 -6
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +85 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +32 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +30 -0
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +97 -0
- data/generated/google/apis/iamcredentials_v1/representations.rb +28 -0
- data/generated/google/apis/iamcredentials_v1/service.rb +37 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +8 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +9 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/service.rb +4 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +56 -1
- data/generated/google/apis/spanner_v1/representations.rb +18 -0
- data/generated/google/apis/spanner_v1/service.rb +9 -3
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +11 -8
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -1
- data/generated/google/apis/storage_v1/representations.rb +1 -0
- data/generated/google/apis/storage_v1/service.rb +1 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +14 -14
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -6
- data/generated/google/apis/mybusiness_v3/classes.rb +0 -1864
- data/generated/google/apis/mybusiness_v3/representations.rb +0 -741
- data/generated/google/apis/mybusiness_v3/service.rb +0 -961
|
@@ -47,6 +47,114 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
51
|
+
# resource exists and does not have a policy set.
|
|
52
|
+
# @param [String] resource
|
|
53
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
|
54
|
+
# operation documentation for the appropriate value for this field.
|
|
55
|
+
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
56
|
+
# @param [String] fields
|
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
|
58
|
+
# @param [String] quota_user
|
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
|
62
|
+
# Request-specific options
|
|
63
|
+
#
|
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
|
65
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67
|
+
#
|
|
68
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
69
|
+
#
|
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
+
def get_project_location_workflow_template_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
74
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
75
|
+
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
|
76
|
+
command.request_object = get_iam_policy_request_object
|
|
77
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
78
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
79
|
+
command.params['resource'] = resource unless resource.nil?
|
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
82
|
+
execute_or_queue_command(command, &block)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
86
|
+
# existing policy.
|
|
87
|
+
# @param [String] resource
|
|
88
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
|
89
|
+
# operation documentation for the appropriate value for this field.
|
|
90
|
+
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
91
|
+
# @param [String] fields
|
|
92
|
+
# Selector specifying which fields to include in a partial response.
|
|
93
|
+
# @param [String] quota_user
|
|
94
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
95
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
|
97
|
+
# Request-specific options
|
|
98
|
+
#
|
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
|
100
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
102
|
+
#
|
|
103
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
104
|
+
#
|
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
108
|
+
def set_project_location_workflow_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
109
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
110
|
+
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
|
111
|
+
command.request_object = set_iam_policy_request_object
|
|
112
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
113
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
114
|
+
command.params['resource'] = resource unless resource.nil?
|
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
117
|
+
execute_or_queue_command(command, &block)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
121
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
|
122
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
|
123
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
124
|
+
# This operation may "fail open" without warning.
|
|
125
|
+
# @param [String] resource
|
|
126
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
127
|
+
# operation documentation for the appropriate value for this field.
|
|
128
|
+
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
129
|
+
# @param [String] fields
|
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
|
131
|
+
# @param [String] quota_user
|
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
|
135
|
+
# Request-specific options
|
|
136
|
+
#
|
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
|
138
|
+
# @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
|
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
140
|
+
#
|
|
141
|
+
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
|
142
|
+
#
|
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
146
|
+
def test_project_location_workflow_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
147
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
148
|
+
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
|
149
|
+
command.request_object = test_iam_permissions_request_object
|
|
150
|
+
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
|
151
|
+
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
|
152
|
+
command.params['resource'] = resource unless resource.nil?
|
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
155
|
+
execute_or_queue_command(command, &block)
|
|
156
|
+
end
|
|
157
|
+
|
|
50
158
|
# Creates a cluster in a project.
|
|
51
159
|
# @param [String] project_id
|
|
52
160
|
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
@@ -221,6 +329,41 @@ module Google
|
|
|
221
329
|
execute_or_queue_command(command, &block)
|
|
222
330
|
end
|
|
223
331
|
|
|
332
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
333
|
+
# resource exists and does not have a policy set.
|
|
334
|
+
# @param [String] resource
|
|
335
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
|
336
|
+
# operation documentation for the appropriate value for this field.
|
|
337
|
+
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
338
|
+
# @param [String] fields
|
|
339
|
+
# Selector specifying which fields to include in a partial response.
|
|
340
|
+
# @param [String] quota_user
|
|
341
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
342
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
343
|
+
# @param [Google::Apis::RequestOptions] options
|
|
344
|
+
# Request-specific options
|
|
345
|
+
#
|
|
346
|
+
# @yield [result, err] Result & error if block supplied
|
|
347
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
348
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
349
|
+
#
|
|
350
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
351
|
+
#
|
|
352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
355
|
+
def get_cluster_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
356
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
357
|
+
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
|
358
|
+
command.request_object = get_iam_policy_request_object
|
|
359
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
360
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
361
|
+
command.params['resource'] = resource unless resource.nil?
|
|
362
|
+
command.query['fields'] = fields unless fields.nil?
|
|
363
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
364
|
+
execute_or_queue_command(command, &block)
|
|
365
|
+
end
|
|
366
|
+
|
|
224
367
|
# Lists all regions/`region`/clusters in a project.
|
|
225
368
|
# @param [String] project_id
|
|
226
369
|
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
@@ -360,6 +503,79 @@ module Google
|
|
|
360
503
|
execute_or_queue_command(command, &block)
|
|
361
504
|
end
|
|
362
505
|
|
|
506
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
507
|
+
# existing policy.
|
|
508
|
+
# @param [String] resource
|
|
509
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
|
510
|
+
# operation documentation for the appropriate value for this field.
|
|
511
|
+
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
512
|
+
# @param [String] fields
|
|
513
|
+
# Selector specifying which fields to include in a partial response.
|
|
514
|
+
# @param [String] quota_user
|
|
515
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
516
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
517
|
+
# @param [Google::Apis::RequestOptions] options
|
|
518
|
+
# Request-specific options
|
|
519
|
+
#
|
|
520
|
+
# @yield [result, err] Result & error if block supplied
|
|
521
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
522
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
523
|
+
#
|
|
524
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
525
|
+
#
|
|
526
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
527
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
528
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
529
|
+
def set_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
530
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
531
|
+
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
|
532
|
+
command.request_object = set_iam_policy_request_object
|
|
533
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
534
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
535
|
+
command.params['resource'] = resource unless resource.nil?
|
|
536
|
+
command.query['fields'] = fields unless fields.nil?
|
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
538
|
+
execute_or_queue_command(command, &block)
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
542
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
|
543
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
|
544
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
545
|
+
# This operation may "fail open" without warning.
|
|
546
|
+
# @param [String] resource
|
|
547
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
548
|
+
# operation documentation for the appropriate value for this field.
|
|
549
|
+
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
550
|
+
# @param [String] fields
|
|
551
|
+
# Selector specifying which fields to include in a partial response.
|
|
552
|
+
# @param [String] quota_user
|
|
553
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
554
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
555
|
+
# @param [Google::Apis::RequestOptions] options
|
|
556
|
+
# Request-specific options
|
|
557
|
+
#
|
|
558
|
+
# @yield [result, err] Result & error if block supplied
|
|
559
|
+
# @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
|
|
560
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
561
|
+
#
|
|
562
|
+
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
|
563
|
+
#
|
|
564
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
565
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
566
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
567
|
+
def test_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
568
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
569
|
+
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
|
570
|
+
command.request_object = test_iam_permissions_request_object
|
|
571
|
+
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
|
572
|
+
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
|
573
|
+
command.params['resource'] = resource unless resource.nil?
|
|
574
|
+
command.query['fields'] = fields unless fields.nil?
|
|
575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
576
|
+
execute_or_queue_command(command, &block)
|
|
577
|
+
end
|
|
578
|
+
|
|
363
579
|
# Starts a job cancellation request. To access the job resource after
|
|
364
580
|
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
|
365
581
|
# @param [String] project_id
|
|
@@ -473,6 +689,41 @@ module Google
|
|
|
473
689
|
execute_or_queue_command(command, &block)
|
|
474
690
|
end
|
|
475
691
|
|
|
692
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
693
|
+
# resource exists and does not have a policy set.
|
|
694
|
+
# @param [String] resource
|
|
695
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
|
696
|
+
# operation documentation for the appropriate value for this field.
|
|
697
|
+
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
698
|
+
# @param [String] fields
|
|
699
|
+
# Selector specifying which fields to include in a partial response.
|
|
700
|
+
# @param [String] quota_user
|
|
701
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
702
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
703
|
+
# @param [Google::Apis::RequestOptions] options
|
|
704
|
+
# Request-specific options
|
|
705
|
+
#
|
|
706
|
+
# @yield [result, err] Result & error if block supplied
|
|
707
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
708
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
709
|
+
#
|
|
710
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
711
|
+
#
|
|
712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
715
|
+
def get_job_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
716
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
717
|
+
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
|
718
|
+
command.request_object = get_iam_policy_request_object
|
|
719
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
720
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
721
|
+
command.params['resource'] = resource unless resource.nil?
|
|
722
|
+
command.query['fields'] = fields unless fields.nil?
|
|
723
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
724
|
+
execute_or_queue_command(command, &block)
|
|
725
|
+
end
|
|
726
|
+
|
|
476
727
|
# Lists regions/`region`/jobs in a project.
|
|
477
728
|
# @param [String] project_id
|
|
478
729
|
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
@@ -576,6 +827,41 @@ module Google
|
|
|
576
827
|
execute_or_queue_command(command, &block)
|
|
577
828
|
end
|
|
578
829
|
|
|
830
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
831
|
+
# existing policy.
|
|
832
|
+
# @param [String] resource
|
|
833
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
|
834
|
+
# operation documentation for the appropriate value for this field.
|
|
835
|
+
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
836
|
+
# @param [String] fields
|
|
837
|
+
# Selector specifying which fields to include in a partial response.
|
|
838
|
+
# @param [String] quota_user
|
|
839
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
840
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
841
|
+
# @param [Google::Apis::RequestOptions] options
|
|
842
|
+
# Request-specific options
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, err] Result & error if block supplied
|
|
845
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
846
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
847
|
+
#
|
|
848
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
849
|
+
#
|
|
850
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
851
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
852
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
853
|
+
def set_job_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
854
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
855
|
+
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
|
856
|
+
command.request_object = set_iam_policy_request_object
|
|
857
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
858
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
859
|
+
command.params['resource'] = resource unless resource.nil?
|
|
860
|
+
command.query['fields'] = fields unless fields.nil?
|
|
861
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
862
|
+
execute_or_queue_command(command, &block)
|
|
863
|
+
end
|
|
864
|
+
|
|
579
865
|
# Submits a job to a cluster.
|
|
580
866
|
# @param [String] project_id
|
|
581
867
|
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
@@ -612,6 +898,44 @@ module Google
|
|
|
612
898
|
execute_or_queue_command(command, &block)
|
|
613
899
|
end
|
|
614
900
|
|
|
901
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
902
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
|
903
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
|
904
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
905
|
+
# This operation may "fail open" without warning.
|
|
906
|
+
# @param [String] resource
|
|
907
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
908
|
+
# operation documentation for the appropriate value for this field.
|
|
909
|
+
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
910
|
+
# @param [String] fields
|
|
911
|
+
# Selector specifying which fields to include in a partial response.
|
|
912
|
+
# @param [String] quota_user
|
|
913
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
914
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
915
|
+
# @param [Google::Apis::RequestOptions] options
|
|
916
|
+
# Request-specific options
|
|
917
|
+
#
|
|
918
|
+
# @yield [result, err] Result & error if block supplied
|
|
919
|
+
# @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
|
|
920
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
921
|
+
#
|
|
922
|
+
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
|
923
|
+
#
|
|
924
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
925
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
926
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
927
|
+
def test_job_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
928
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
929
|
+
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
|
930
|
+
command.request_object = test_iam_permissions_request_object
|
|
931
|
+
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
|
932
|
+
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
|
933
|
+
command.params['resource'] = resource unless resource.nil?
|
|
934
|
+
command.query['fields'] = fields unless fields.nil?
|
|
935
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
936
|
+
execute_or_queue_command(command, &block)
|
|
937
|
+
end
|
|
938
|
+
|
|
615
939
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
616
940
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
617
941
|
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
@@ -713,6 +1037,41 @@ module Google
|
|
|
713
1037
|
execute_or_queue_command(command, &block)
|
|
714
1038
|
end
|
|
715
1039
|
|
|
1040
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
1041
|
+
# resource exists and does not have a policy set.
|
|
1042
|
+
# @param [String] resource
|
|
1043
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
|
1044
|
+
# operation documentation for the appropriate value for this field.
|
|
1045
|
+
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
1046
|
+
# @param [String] fields
|
|
1047
|
+
# Selector specifying which fields to include in a partial response.
|
|
1048
|
+
# @param [String] quota_user
|
|
1049
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1050
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1051
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1052
|
+
# Request-specific options
|
|
1053
|
+
#
|
|
1054
|
+
# @yield [result, err] Result & error if block supplied
|
|
1055
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
1056
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1057
|
+
#
|
|
1058
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
1059
|
+
#
|
|
1060
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1061
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1062
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1063
|
+
def get_operation_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1064
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
1065
|
+
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
|
1066
|
+
command.request_object = get_iam_policy_request_object
|
|
1067
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
1068
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
1069
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1070
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1071
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1072
|
+
execute_or_queue_command(command, &block)
|
|
1073
|
+
end
|
|
1074
|
+
|
|
716
1075
|
# Lists operations that match the specified filter in the request. If the server
|
|
717
1076
|
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
|
718
1077
|
# allows API services to override the binding to use different resource name
|
|
@@ -758,6 +1117,187 @@ module Google
|
|
|
758
1117
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
759
1118
|
execute_or_queue_command(command, &block)
|
|
760
1119
|
end
|
|
1120
|
+
|
|
1121
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
1122
|
+
# existing policy.
|
|
1123
|
+
# @param [String] resource
|
|
1124
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
|
1125
|
+
# operation documentation for the appropriate value for this field.
|
|
1126
|
+
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
1127
|
+
# @param [String] fields
|
|
1128
|
+
# Selector specifying which fields to include in a partial response.
|
|
1129
|
+
# @param [String] quota_user
|
|
1130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1133
|
+
# Request-specific options
|
|
1134
|
+
#
|
|
1135
|
+
# @yield [result, err] Result & error if block supplied
|
|
1136
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
1137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1138
|
+
#
|
|
1139
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
1140
|
+
#
|
|
1141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1144
|
+
def set_operation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1145
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
1146
|
+
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
|
1147
|
+
command.request_object = set_iam_policy_request_object
|
|
1148
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
1149
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
1150
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1151
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1153
|
+
execute_or_queue_command(command, &block)
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
1157
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
|
1158
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
|
1159
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
1160
|
+
# This operation may "fail open" without warning.
|
|
1161
|
+
# @param [String] resource
|
|
1162
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
1163
|
+
# operation documentation for the appropriate value for this field.
|
|
1164
|
+
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
1165
|
+
# @param [String] fields
|
|
1166
|
+
# Selector specifying which fields to include in a partial response.
|
|
1167
|
+
# @param [String] quota_user
|
|
1168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1170
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1171
|
+
# Request-specific options
|
|
1172
|
+
#
|
|
1173
|
+
# @yield [result, err] Result & error if block supplied
|
|
1174
|
+
# @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
|
|
1175
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1176
|
+
#
|
|
1177
|
+
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
|
1178
|
+
#
|
|
1179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1182
|
+
def test_operation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1183
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
1184
|
+
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
|
1185
|
+
command.request_object = test_iam_permissions_request_object
|
|
1186
|
+
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
|
1187
|
+
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
|
1188
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1189
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1191
|
+
execute_or_queue_command(command, &block)
|
|
1192
|
+
end
|
|
1193
|
+
|
|
1194
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
|
1195
|
+
# resource exists and does not have a policy set.
|
|
1196
|
+
# @param [String] resource
|
|
1197
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
|
1198
|
+
# operation documentation for the appropriate value for this field.
|
|
1199
|
+
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
1200
|
+
# @param [String] fields
|
|
1201
|
+
# Selector specifying which fields to include in a partial response.
|
|
1202
|
+
# @param [String] quota_user
|
|
1203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1205
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1206
|
+
# Request-specific options
|
|
1207
|
+
#
|
|
1208
|
+
# @yield [result, err] Result & error if block supplied
|
|
1209
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
1210
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1211
|
+
#
|
|
1212
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
1213
|
+
#
|
|
1214
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1215
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1216
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1217
|
+
def get_project_region_workflow_template_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1218
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
1219
|
+
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
|
1220
|
+
command.request_object = get_iam_policy_request_object
|
|
1221
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
1222
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
1223
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1224
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1225
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1226
|
+
execute_or_queue_command(command, &block)
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
1230
|
+
# existing policy.
|
|
1231
|
+
# @param [String] resource
|
|
1232
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
|
1233
|
+
# operation documentation for the appropriate value for this field.
|
|
1234
|
+
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
1235
|
+
# @param [String] fields
|
|
1236
|
+
# Selector specifying which fields to include in a partial response.
|
|
1237
|
+
# @param [String] quota_user
|
|
1238
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1239
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1240
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1241
|
+
# Request-specific options
|
|
1242
|
+
#
|
|
1243
|
+
# @yield [result, err] Result & error if block supplied
|
|
1244
|
+
# @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
|
|
1245
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1246
|
+
#
|
|
1247
|
+
# @return [Google::Apis::DataprocV1::Policy]
|
|
1248
|
+
#
|
|
1249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1252
|
+
def set_project_region_workflow_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1253
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
1254
|
+
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
|
1255
|
+
command.request_object = set_iam_policy_request_object
|
|
1256
|
+
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
|
1257
|
+
command.response_class = Google::Apis::DataprocV1::Policy
|
|
1258
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1259
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1260
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1261
|
+
execute_or_queue_command(command, &block)
|
|
1262
|
+
end
|
|
1263
|
+
|
|
1264
|
+
# Returns permissions that a caller has on the specified resource. If the
|
|
1265
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
|
1266
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
|
1267
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
|
1268
|
+
# This operation may "fail open" without warning.
|
|
1269
|
+
# @param [String] resource
|
|
1270
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
|
1271
|
+
# operation documentation for the appropriate value for this field.
|
|
1272
|
+
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
1273
|
+
# @param [String] fields
|
|
1274
|
+
# Selector specifying which fields to include in a partial response.
|
|
1275
|
+
# @param [String] quota_user
|
|
1276
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1277
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1278
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1279
|
+
# Request-specific options
|
|
1280
|
+
#
|
|
1281
|
+
# @yield [result, err] Result & error if block supplied
|
|
1282
|
+
# @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
|
|
1283
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1284
|
+
#
|
|
1285
|
+
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
|
1286
|
+
#
|
|
1287
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1288
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1289
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1290
|
+
def test_project_region_workflow_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1291
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
1292
|
+
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
|
1293
|
+
command.request_object = test_iam_permissions_request_object
|
|
1294
|
+
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
|
1295
|
+
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
|
1296
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1297
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1298
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1299
|
+
execute_or_queue_command(command, &block)
|
|
1300
|
+
end
|
|
761
1301
|
|
|
762
1302
|
protected
|
|
763
1303
|
|