google-apis-dataform_v1beta1 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -125,6 +125,40 @@ module Google
|
|
125
125
|
execute_or_queue_command(command, &block)
|
126
126
|
end
|
127
127
|
|
128
|
+
# Applies a Git commit to a Repository. The Repository must not have a value for
|
129
|
+
# `git_remote_settings.url`.
|
130
|
+
# @param [String] name
|
131
|
+
# Required. The repository's name.
|
132
|
+
# @param [Google::Apis::DataformV1beta1::CommitRepositoryChangesRequest] commit_repository_changes_request_object
|
133
|
+
# @param [String] fields
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
135
|
+
# @param [String] quota_user
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
139
|
+
# Request-specific options
|
140
|
+
#
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
142
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
144
|
+
#
|
145
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
146
|
+
#
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
+
def commit_repository_changes(name, commit_repository_changes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:commit', options)
|
152
|
+
command.request_representation = Google::Apis::DataformV1beta1::CommitRepositoryChangesRequest::Representation
|
153
|
+
command.request_object = commit_repository_changes_request_object
|
154
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
155
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
156
|
+
command.params['name'] = name unless name.nil?
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
|
+
execute_or_queue_command(command, &block)
|
160
|
+
end
|
161
|
+
|
128
162
|
# Creates a new Repository in a given project and location.
|
129
163
|
# @param [String] parent
|
130
164
|
# Required. The location in which to create the repository. Must be in the
|
@@ -198,6 +232,47 @@ module Google
|
|
198
232
|
execute_or_queue_command(command, &block)
|
199
233
|
end
|
200
234
|
|
235
|
+
# Fetches a Repository's history of changes. The Repository must not have a
|
236
|
+
# value for `git_remote_settings.url`.
|
237
|
+
# @param [String] name
|
238
|
+
# Required. The repository's name.
|
239
|
+
# @param [Fixnum] page_size
|
240
|
+
# Optional. Maximum number of paths to return. The server may return fewer items
|
241
|
+
# than requested. If unspecified, the server will pick an appropriate default.
|
242
|
+
# @param [String] page_token
|
243
|
+
# Optional. Page token received from a previous `FetchRepositoryHistory` call.
|
244
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
245
|
+
# parameters provided to `FetchRepositoryHistory` must match the call that
|
246
|
+
# provided the page token.
|
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::DataformV1beta1::FetchRepositoryHistoryResponse] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse]
|
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 fetch_project_location_repository_history(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchHistory', options)
|
266
|
+
command.response_representation = Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse::Representation
|
267
|
+
command.response_class = Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse
|
268
|
+
command.params['name'] = name unless name.nil?
|
269
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
270
|
+
command.query['pageToken'] = page_token unless page_token.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
|
+
|
201
276
|
# Fetches a Repository's remote branches.
|
202
277
|
# @param [String] name
|
203
278
|
# Required. The repository's name.
|
@@ -258,6 +333,51 @@ module Google
|
|
258
333
|
execute_or_queue_command(command, &block)
|
259
334
|
end
|
260
335
|
|
336
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
337
|
+
# resource exists and does not have a policy set.
|
338
|
+
# @param [String] resource
|
339
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
340
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
341
|
+
# appropriate value for this field.
|
342
|
+
# @param [Fixnum] options_requested_policy_version
|
343
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
344
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
345
|
+
# rejected. Requests for policies with any conditional role bindings must
|
346
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
347
|
+
# valid value or leave the field unset. The policy in the response might use the
|
348
|
+
# policy version that you specified, or it might use a lower policy version. For
|
349
|
+
# example, if you specify version 3, but the policy has no conditional role
|
350
|
+
# bindings, the response uses version 1. To learn which resources support
|
351
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
352
|
+
# google.com/iam/help/conditions/resource-policies).
|
353
|
+
# @param [String] fields
|
354
|
+
# Selector specifying which fields to include in a partial response.
|
355
|
+
# @param [String] quota_user
|
356
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
357
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
358
|
+
# @param [Google::Apis::RequestOptions] options
|
359
|
+
# Request-specific options
|
360
|
+
#
|
361
|
+
# @yield [result, err] Result & error if block supplied
|
362
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
|
363
|
+
# @yieldparam err [StandardError] error object if request failed
|
364
|
+
#
|
365
|
+
# @return [Google::Apis::DataformV1beta1::Policy]
|
366
|
+
#
|
367
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
368
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
369
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
370
|
+
def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
371
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
372
|
+
command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
|
373
|
+
command.response_class = Google::Apis::DataformV1beta1::Policy
|
374
|
+
command.params['resource'] = resource unless resource.nil?
|
375
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
376
|
+
command.query['fields'] = fields unless fields.nil?
|
377
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
378
|
+
execute_or_queue_command(command, &block)
|
379
|
+
end
|
380
|
+
|
261
381
|
# Lists Repositories in a given project and location.
|
262
382
|
# @param [String] parent
|
263
383
|
# Required. The location in which to list repositories. Must be in the format `
|
@@ -345,6 +465,170 @@ module Google
|
|
345
465
|
execute_or_queue_command(command, &block)
|
346
466
|
end
|
347
467
|
|
468
|
+
# Returns the contents of a given Repository directory. The Repository must not
|
469
|
+
# have a value for `git_remote_settings.url`.
|
470
|
+
# @param [String] name
|
471
|
+
# Required. The repository's name.
|
472
|
+
# @param [String] commit_sha
|
473
|
+
# Optional. The Commit SHA for the commit to query from. If unset, the directory
|
474
|
+
# will be queried from HEAD.
|
475
|
+
# @param [Fixnum] page_size
|
476
|
+
# Optional. Maximum number of paths to return. The server may return fewer items
|
477
|
+
# than requested. If unspecified, the server will pick an appropriate default.
|
478
|
+
# @param [String] page_token
|
479
|
+
# Optional. Page token received from a previous `
|
480
|
+
# QueryRepositoryDirectoryContents` call. Provide this to retrieve the
|
481
|
+
# subsequent page. When paginating, all other parameters provided to `
|
482
|
+
# QueryRepositoryDirectoryContents` must match the call that provided the page
|
483
|
+
# token.
|
484
|
+
# @param [String] path
|
485
|
+
# Optional. The directory's full path including directory name, relative to root.
|
486
|
+
# If left unset, the root is used.
|
487
|
+
# @param [String] fields
|
488
|
+
# Selector specifying which fields to include in a partial response.
|
489
|
+
# @param [String] quota_user
|
490
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
491
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
492
|
+
# @param [Google::Apis::RequestOptions] options
|
493
|
+
# Request-specific options
|
494
|
+
#
|
495
|
+
# @yield [result, err] Result & error if block supplied
|
496
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse] parsed result object
|
497
|
+
# @yieldparam err [StandardError] error object if request failed
|
498
|
+
#
|
499
|
+
# @return [Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse]
|
500
|
+
#
|
501
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
502
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
503
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
504
|
+
def query_project_location_repository_directory_contents(name, commit_sha: nil, page_size: nil, page_token: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
|
505
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:queryDirectoryContents', options)
|
506
|
+
command.response_representation = Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse::Representation
|
507
|
+
command.response_class = Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse
|
508
|
+
command.params['name'] = name unless name.nil?
|
509
|
+
command.query['commitSha'] = commit_sha unless commit_sha.nil?
|
510
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
511
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
512
|
+
command.query['path'] = path unless path.nil?
|
513
|
+
command.query['fields'] = fields unless fields.nil?
|
514
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
515
|
+
execute_or_queue_command(command, &block)
|
516
|
+
end
|
517
|
+
|
518
|
+
# Returns the contents of a file (inside a Repository). The Repository must not
|
519
|
+
# have a value for `git_remote_settings.url`.
|
520
|
+
# @param [String] name
|
521
|
+
# Required. The repository's name.
|
522
|
+
# @param [String] commit_sha
|
523
|
+
# Optional. The commit SHA for the commit to read from. If unset, the file will
|
524
|
+
# be read from HEAD.
|
525
|
+
# @param [String] path
|
526
|
+
# Required. Full file path to read including filename, from repository root.
|
527
|
+
# @param [String] fields
|
528
|
+
# Selector specifying which fields to include in a partial response.
|
529
|
+
# @param [String] quota_user
|
530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
532
|
+
# @param [Google::Apis::RequestOptions] options
|
533
|
+
# Request-specific options
|
534
|
+
#
|
535
|
+
# @yield [result, err] Result & error if block supplied
|
536
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ReadRepositoryFileResponse] parsed result object
|
537
|
+
# @yieldparam err [StandardError] error object if request failed
|
538
|
+
#
|
539
|
+
# @return [Google::Apis::DataformV1beta1::ReadRepositoryFileResponse]
|
540
|
+
#
|
541
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
542
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
543
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
544
|
+
def read_project_location_repository_file(name, commit_sha: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
|
545
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:readFile', options)
|
546
|
+
command.response_representation = Google::Apis::DataformV1beta1::ReadRepositoryFileResponse::Representation
|
547
|
+
command.response_class = Google::Apis::DataformV1beta1::ReadRepositoryFileResponse
|
548
|
+
command.params['name'] = name unless name.nil?
|
549
|
+
command.query['commitSha'] = commit_sha unless commit_sha.nil?
|
550
|
+
command.query['path'] = path unless path.nil?
|
551
|
+
command.query['fields'] = fields unless fields.nil?
|
552
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
553
|
+
execute_or_queue_command(command, &block)
|
554
|
+
end
|
555
|
+
|
556
|
+
# Sets the access control policy on the specified resource. Replaces any
|
557
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
558
|
+
# PERMISSION_DENIED` errors.
|
559
|
+
# @param [String] resource
|
560
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
561
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
562
|
+
# appropriate value for this field.
|
563
|
+
# @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
564
|
+
# @param [String] fields
|
565
|
+
# Selector specifying which fields to include in a partial response.
|
566
|
+
# @param [String] quota_user
|
567
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
568
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
569
|
+
# @param [Google::Apis::RequestOptions] options
|
570
|
+
# Request-specific options
|
571
|
+
#
|
572
|
+
# @yield [result, err] Result & error if block supplied
|
573
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
|
574
|
+
# @yieldparam err [StandardError] error object if request failed
|
575
|
+
#
|
576
|
+
# @return [Google::Apis::DataformV1beta1::Policy]
|
577
|
+
#
|
578
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
+
def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
582
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
583
|
+
command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation
|
584
|
+
command.request_object = set_iam_policy_request_object
|
585
|
+
command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
|
586
|
+
command.response_class = Google::Apis::DataformV1beta1::Policy
|
587
|
+
command.params['resource'] = resource unless resource.nil?
|
588
|
+
command.query['fields'] = fields unless fields.nil?
|
589
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
590
|
+
execute_or_queue_command(command, &block)
|
591
|
+
end
|
592
|
+
|
593
|
+
# Returns permissions that a caller has on the specified resource. If the
|
594
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
595
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
596
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
597
|
+
# This operation may "fail open" without warning.
|
598
|
+
# @param [String] resource
|
599
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
600
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
601
|
+
# appropriate value for this field.
|
602
|
+
# @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
603
|
+
# @param [String] fields
|
604
|
+
# Selector specifying which fields to include in a partial response.
|
605
|
+
# @param [String] quota_user
|
606
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
607
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
608
|
+
# @param [Google::Apis::RequestOptions] options
|
609
|
+
# Request-specific options
|
610
|
+
#
|
611
|
+
# @yield [result, err] Result & error if block supplied
|
612
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object
|
613
|
+
# @yieldparam err [StandardError] error object if request failed
|
614
|
+
#
|
615
|
+
# @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse]
|
616
|
+
#
|
617
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
618
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
619
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
620
|
+
def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
621
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
622
|
+
command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation
|
623
|
+
command.request_object = test_iam_permissions_request_object
|
624
|
+
command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation
|
625
|
+
command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse
|
626
|
+
command.params['resource'] = resource unless resource.nil?
|
627
|
+
command.query['fields'] = fields unless fields.nil?
|
628
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
629
|
+
execute_or_queue_command(command, &block)
|
630
|
+
end
|
631
|
+
|
348
632
|
# Creates a new CompilationResult in a given project and location.
|
349
633
|
# @param [String] parent
|
350
634
|
# Required. The repository in which to create the compilation result. Must be in
|
@@ -1298,6 +1582,51 @@ module Google
|
|
1298
1582
|
execute_or_queue_command(command, &block)
|
1299
1583
|
end
|
1300
1584
|
|
1585
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1586
|
+
# resource exists and does not have a policy set.
|
1587
|
+
# @param [String] resource
|
1588
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1589
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1590
|
+
# appropriate value for this field.
|
1591
|
+
# @param [Fixnum] options_requested_policy_version
|
1592
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1593
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1594
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1595
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1596
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1597
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1598
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1599
|
+
# bindings, the response uses version 1. To learn which resources support
|
1600
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1601
|
+
# google.com/iam/help/conditions/resource-policies).
|
1602
|
+
# @param [String] fields
|
1603
|
+
# Selector specifying which fields to include in a partial response.
|
1604
|
+
# @param [String] quota_user
|
1605
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1606
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1607
|
+
# @param [Google::Apis::RequestOptions] options
|
1608
|
+
# Request-specific options
|
1609
|
+
#
|
1610
|
+
# @yield [result, err] Result & error if block supplied
|
1611
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
|
1612
|
+
# @yieldparam err [StandardError] error object if request failed
|
1613
|
+
#
|
1614
|
+
# @return [Google::Apis::DataformV1beta1::Policy]
|
1615
|
+
#
|
1616
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1617
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1618
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1619
|
+
def get_project_location_repository_workspace_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1620
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
1621
|
+
command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
|
1622
|
+
command.response_class = Google::Apis::DataformV1beta1::Policy
|
1623
|
+
command.params['resource'] = resource unless resource.nil?
|
1624
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1625
|
+
command.query['fields'] = fields unless fields.nil?
|
1626
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1627
|
+
execute_or_queue_command(command, &block)
|
1628
|
+
end
|
1629
|
+
|
1301
1630
|
# Installs dependency NPM packages (inside a Workspace).
|
1302
1631
|
# @param [String] workspace
|
1303
1632
|
# Required. The workspace's name.
|
@@ -1723,6 +2052,82 @@ module Google
|
|
1723
2052
|
execute_or_queue_command(command, &block)
|
1724
2053
|
end
|
1725
2054
|
|
2055
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2056
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2057
|
+
# PERMISSION_DENIED` errors.
|
2058
|
+
# @param [String] resource
|
2059
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2060
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2061
|
+
# appropriate value for this field.
|
2062
|
+
# @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
2063
|
+
# @param [String] fields
|
2064
|
+
# Selector specifying which fields to include in a partial response.
|
2065
|
+
# @param [String] quota_user
|
2066
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2067
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2068
|
+
# @param [Google::Apis::RequestOptions] options
|
2069
|
+
# Request-specific options
|
2070
|
+
#
|
2071
|
+
# @yield [result, err] Result & error if block supplied
|
2072
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
|
2073
|
+
# @yieldparam err [StandardError] error object if request failed
|
2074
|
+
#
|
2075
|
+
# @return [Google::Apis::DataformV1beta1::Policy]
|
2076
|
+
#
|
2077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2080
|
+
def set_workspace_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2081
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
2082
|
+
command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation
|
2083
|
+
command.request_object = set_iam_policy_request_object
|
2084
|
+
command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
|
2085
|
+
command.response_class = Google::Apis::DataformV1beta1::Policy
|
2086
|
+
command.params['resource'] = resource unless resource.nil?
|
2087
|
+
command.query['fields'] = fields unless fields.nil?
|
2088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2089
|
+
execute_or_queue_command(command, &block)
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2093
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2094
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2095
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2096
|
+
# This operation may "fail open" without warning.
|
2097
|
+
# @param [String] resource
|
2098
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2099
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2100
|
+
# appropriate value for this field.
|
2101
|
+
# @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2102
|
+
# @param [String] fields
|
2103
|
+
# Selector specifying which fields to include in a partial response.
|
2104
|
+
# @param [String] quota_user
|
2105
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2106
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2107
|
+
# @param [Google::Apis::RequestOptions] options
|
2108
|
+
# Request-specific options
|
2109
|
+
#
|
2110
|
+
# @yield [result, err] Result & error if block supplied
|
2111
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object
|
2112
|
+
# @yieldparam err [StandardError] error object if request failed
|
2113
|
+
#
|
2114
|
+
# @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse]
|
2115
|
+
#
|
2116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2119
|
+
def test_workspace_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2120
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
2121
|
+
command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation
|
2122
|
+
command.request_object = test_iam_permissions_request_object
|
2123
|
+
command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation
|
2124
|
+
command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse
|
2125
|
+
command.params['resource'] = resource unless resource.nil?
|
2126
|
+
command.query['fields'] = fields unless fields.nil?
|
2127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2128
|
+
execute_or_queue_command(command, &block)
|
2129
|
+
end
|
2130
|
+
|
1726
2131
|
# Writes to a file (inside a Workspace).
|
1727
2132
|
# @param [String] workspace
|
1728
2133
|
# Required. The workspace's name.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dataform_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataform_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.6.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataform_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|