google-apis-metastore_v1alpha 0.15.0 → 0.16.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/metastore_v1alpha/classes.rb +58 -2
- data/lib/google/apis/metastore_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/metastore_v1alpha/representations.rb +30 -0
- data/lib/google/apis/metastore_v1alpha/service.rb +228 -0
- data/lib/google/apis/metastore_v1alpha.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb40f29cba624a8f7e14504ded2268c0fcb5b4567be1a9b42ba167a4455f6bc
|
4
|
+
data.tar.gz: 8f850f0619568c9ef97171e92a1c41d70eb71b19f98b01ae90b6d681b50baa7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15db4de9f54bd8762ed78454cbf5bf0c521d5ee7db3a7477f1e1234d349403ce89285bab4047cc029375d5915dd8e21151d9c77ff2d873e4f2f37c393ea2a8b8
|
7
|
+
data.tar.gz: 3fc1ca53b42c299a9ae857ea47fe6eb3acb166558efdffb4bedcb5953cc65cab1e4ea742a25178c05947731abe35a091b7d51310b16559ff590b085e8f0e2e18
|
data/CHANGELOG.md
CHANGED
@@ -281,6 +281,28 @@ module Google
|
|
281
281
|
end
|
282
282
|
end
|
283
283
|
|
284
|
+
# Specifies how metastore metadata should be integrated with the Dataplex
|
285
|
+
# service.
|
286
|
+
class DataplexConfig
|
287
|
+
include Google::Apis::Core::Hashable
|
288
|
+
|
289
|
+
# A reference to the Lake resources that this metastore service is attached to.
|
290
|
+
# The key is the lake resource name. Example: projects/`project_number`/
|
291
|
+
# locations/`location_id`/lakes/`lake_id`.
|
292
|
+
# Corresponds to the JSON property `lakeResources`
|
293
|
+
# @return [Hash<String,Google::Apis::MetastoreV1alpha::Lake>]
|
294
|
+
attr_accessor :lake_resources
|
295
|
+
|
296
|
+
def initialize(**args)
|
297
|
+
update!(**args)
|
298
|
+
end
|
299
|
+
|
300
|
+
# Update properties of this object
|
301
|
+
def update!(**args)
|
302
|
+
@lake_resources = args[:lake_resources] if args.key?(:lake_resources)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
284
306
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
285
307
|
# messages in your APIs. A typical example is to use it as the request or the
|
286
308
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -424,6 +446,12 @@ module Google
|
|
424
446
|
# @return [Hash<String,String>]
|
425
447
|
attr_accessor :config_overrides
|
426
448
|
|
449
|
+
# The protocol to use for the metastore service endpoint. If unspecified,
|
450
|
+
# defaults to THRIFT.
|
451
|
+
# Corresponds to the JSON property `endpointProtocol`
|
452
|
+
# @return [String]
|
453
|
+
attr_accessor :endpoint_protocol
|
454
|
+
|
427
455
|
# Configuration information for a Kerberos principal.
|
428
456
|
# Corresponds to the JSON property `kerberosConfig`
|
429
457
|
# @return [Google::Apis::MetastoreV1alpha::KerberosConfig]
|
@@ -441,6 +469,7 @@ module Google
|
|
441
469
|
# Update properties of this object
|
442
470
|
def update!(**args)
|
443
471
|
@config_overrides = args[:config_overrides] if args.key?(:config_overrides)
|
472
|
+
@endpoint_protocol = args[:endpoint_protocol] if args.key?(:endpoint_protocol)
|
444
473
|
@kerberos_config = args[:kerberos_config] if args.key?(:kerberos_config)
|
445
474
|
@version = args[:version] if args.key?(:version)
|
446
475
|
end
|
@@ -508,6 +537,26 @@ module Google
|
|
508
537
|
end
|
509
538
|
end
|
510
539
|
|
540
|
+
# Represents a Lake resource
|
541
|
+
class Lake
|
542
|
+
include Google::Apis::Core::Hashable
|
543
|
+
|
544
|
+
# The Lake resource name. Example: projects/`project_number`/locations/`
|
545
|
+
# location_id`/lakes/`lake_id`
|
546
|
+
# Corresponds to the JSON property `name`
|
547
|
+
# @return [String]
|
548
|
+
attr_accessor :name
|
549
|
+
|
550
|
+
def initialize(**args)
|
551
|
+
update!(**args)
|
552
|
+
end
|
553
|
+
|
554
|
+
# Update properties of this object
|
555
|
+
def update!(**args)
|
556
|
+
@name = args[:name] if args.key?(:name)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
511
560
|
# Response message for DataprocMetastore.ListBackups.
|
512
561
|
class ListBackupsResponse
|
513
562
|
include Google::Apis::Core::Hashable
|
@@ -860,6 +909,12 @@ module Google
|
|
860
909
|
# @return [Google::Apis::MetastoreV1alpha::DataCatalogConfig]
|
861
910
|
attr_accessor :data_catalog_config
|
862
911
|
|
912
|
+
# Specifies how metastore metadata should be integrated with the Dataplex
|
913
|
+
# service.
|
914
|
+
# Corresponds to the JSON property `dataplexConfig`
|
915
|
+
# @return [Google::Apis::MetastoreV1alpha::DataplexConfig]
|
916
|
+
attr_accessor :dataplex_config
|
917
|
+
|
863
918
|
def initialize(**args)
|
864
919
|
update!(**args)
|
865
920
|
end
|
@@ -867,6 +922,7 @@ module Google
|
|
867
922
|
# Update properties of this object
|
868
923
|
def update!(**args)
|
869
924
|
@data_catalog_config = args[:data_catalog_config] if args.key?(:data_catalog_config)
|
925
|
+
@dataplex_config = args[:dataplex_config] if args.key?(:dataplex_config)
|
870
926
|
end
|
871
927
|
end
|
872
928
|
|
@@ -1040,7 +1096,7 @@ module Google
|
|
1040
1096
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1041
1097
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1042
1098
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
1043
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1099
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
1044
1100
|
# description of IAM and its features, see the IAM documentation (https://cloud.
|
1045
1101
|
# google.com/iam/docs/).
|
1046
1102
|
class Policy
|
@@ -1374,7 +1430,7 @@ module Google
|
|
1374
1430
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1375
1431
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1376
1432
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
1377
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1433
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
1378
1434
|
# description of IAM and its features, see the IAM documentation (https://cloud.
|
1379
1435
|
# google.com/iam/docs/).
|
1380
1436
|
# Corresponds to the JSON property `policy`
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MetastoreV1alpha
|
18
18
|
# Version of the google-apis-metastore_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210824"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -58,6 +58,12 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
+
class DataplexConfig
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
61
67
|
class Empty
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
69
|
|
@@ -100,6 +106,12 @@ module Google
|
|
100
106
|
include Google::Apis::Core::JsonObjectSupport
|
101
107
|
end
|
102
108
|
|
109
|
+
class Lake
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
103
115
|
class ListBackupsResponse
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
117
|
|
@@ -296,6 +308,14 @@ module Google
|
|
296
308
|
end
|
297
309
|
end
|
298
310
|
|
311
|
+
class DataplexConfig
|
312
|
+
# @private
|
313
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
314
|
+
hash :lake_resources, as: 'lakeResources', class: Google::Apis::MetastoreV1alpha::Lake, decorator: Google::Apis::MetastoreV1alpha::Lake::Representation
|
315
|
+
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
299
319
|
class Empty
|
300
320
|
# @private
|
301
321
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -332,6 +352,7 @@ module Google
|
|
332
352
|
# @private
|
333
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
334
354
|
hash :config_overrides, as: 'configOverrides'
|
355
|
+
property :endpoint_protocol, as: 'endpointProtocol'
|
335
356
|
property :kerberos_config, as: 'kerberosConfig', class: Google::Apis::MetastoreV1alpha::KerberosConfig, decorator: Google::Apis::MetastoreV1alpha::KerberosConfig::Representation
|
336
357
|
|
337
358
|
property :version, as: 'version'
|
@@ -356,6 +377,13 @@ module Google
|
|
356
377
|
end
|
357
378
|
end
|
358
379
|
|
380
|
+
class Lake
|
381
|
+
# @private
|
382
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
383
|
+
property :name, as: 'name'
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
359
387
|
class ListBackupsResponse
|
360
388
|
# @private
|
361
389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -461,6 +489,8 @@ module Google
|
|
461
489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
462
490
|
property :data_catalog_config, as: 'dataCatalogConfig', class: Google::Apis::MetastoreV1alpha::DataCatalogConfig, decorator: Google::Apis::MetastoreV1alpha::DataCatalogConfig::Representation
|
463
491
|
|
492
|
+
property :dataplex_config, as: 'dataplexConfig', class: Google::Apis::MetastoreV1alpha::DataplexConfig, decorator: Google::Apis::MetastoreV1alpha::DataplexConfig::Representation
|
493
|
+
|
464
494
|
end
|
465
495
|
end
|
466
496
|
|
@@ -933,6 +933,234 @@ module Google
|
|
933
933
|
execute_or_queue_command(command, &block)
|
934
934
|
end
|
935
935
|
|
936
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
937
|
+
# resource exists and does not have a policy set.
|
938
|
+
# @param [String] resource
|
939
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
940
|
+
# operation documentation for the appropriate value for this field.
|
941
|
+
# @param [Fixnum] options_requested_policy_version
|
942
|
+
# Optional. The policy format version to be returned.Valid values are 0, 1, and
|
943
|
+
# 3. Requests specifying an invalid value will be rejected.Requests for policies
|
944
|
+
# with any conditional bindings must specify version 3. Policies without any
|
945
|
+
# conditional bindings may specify any valid value or leave the field unset.To
|
946
|
+
# learn which resources support conditions in their IAM policies, see the IAM
|
947
|
+
# documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
|
948
|
+
# @param [String] fields
|
949
|
+
# Selector specifying which fields to include in a partial response.
|
950
|
+
# @param [String] quota_user
|
951
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
952
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
953
|
+
# @param [Google::Apis::RequestOptions] options
|
954
|
+
# Request-specific options
|
955
|
+
#
|
956
|
+
# @yield [result, err] Result & error if block supplied
|
957
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::Policy] parsed result object
|
958
|
+
# @yieldparam err [StandardError] error object if request failed
|
959
|
+
#
|
960
|
+
# @return [Google::Apis::MetastoreV1alpha::Policy]
|
961
|
+
#
|
962
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
963
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
964
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
965
|
+
def get_project_location_service_database_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
966
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
967
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation
|
968
|
+
command.response_class = Google::Apis::MetastoreV1alpha::Policy
|
969
|
+
command.params['resource'] = resource unless resource.nil?
|
970
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
971
|
+
command.query['fields'] = fields unless fields.nil?
|
972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
973
|
+
execute_or_queue_command(command, &block)
|
974
|
+
end
|
975
|
+
|
976
|
+
# Sets the access control policy on the specified resource. Replaces any
|
977
|
+
# existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
|
978
|
+
# errors.
|
979
|
+
# @param [String] resource
|
980
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
981
|
+
# operation documentation for the appropriate value for this field.
|
982
|
+
# @param [Google::Apis::MetastoreV1alpha::SetIamPolicyRequest] set_iam_policy_request_object
|
983
|
+
# @param [String] fields
|
984
|
+
# Selector specifying which fields to include in a partial response.
|
985
|
+
# @param [String] quota_user
|
986
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
987
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
988
|
+
# @param [Google::Apis::RequestOptions] options
|
989
|
+
# Request-specific options
|
990
|
+
#
|
991
|
+
# @yield [result, err] Result & error if block supplied
|
992
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::Policy] parsed result object
|
993
|
+
# @yieldparam err [StandardError] error object if request failed
|
994
|
+
#
|
995
|
+
# @return [Google::Apis::MetastoreV1alpha::Policy]
|
996
|
+
#
|
997
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
998
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
999
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1000
|
+
def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1001
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
1002
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation
|
1003
|
+
command.request_object = set_iam_policy_request_object
|
1004
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation
|
1005
|
+
command.response_class = Google::Apis::MetastoreV1alpha::Policy
|
1006
|
+
command.params['resource'] = resource unless resource.nil?
|
1007
|
+
command.query['fields'] = fields unless fields.nil?
|
1008
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1009
|
+
execute_or_queue_command(command, &block)
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1013
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
1014
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
1015
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1016
|
+
# This operation may "fail open" without warning.
|
1017
|
+
# @param [String] resource
|
1018
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1019
|
+
# operation documentation for the appropriate value for this field.
|
1020
|
+
# @param [Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1021
|
+
# @param [String] fields
|
1022
|
+
# Selector specifying which fields to include in a partial response.
|
1023
|
+
# @param [String] quota_user
|
1024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1026
|
+
# @param [Google::Apis::RequestOptions] options
|
1027
|
+
# Request-specific options
|
1028
|
+
#
|
1029
|
+
# @yield [result, err] Result & error if block supplied
|
1030
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse] parsed result object
|
1031
|
+
# @yieldparam err [StandardError] error object if request failed
|
1032
|
+
#
|
1033
|
+
# @return [Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse]
|
1034
|
+
#
|
1035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1038
|
+
def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1039
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
1040
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation
|
1041
|
+
command.request_object = test_iam_permissions_request_object
|
1042
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation
|
1043
|
+
command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
|
1044
|
+
command.params['resource'] = resource unless resource.nil?
|
1045
|
+
command.query['fields'] = fields unless fields.nil?
|
1046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1047
|
+
execute_or_queue_command(command, &block)
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1051
|
+
# resource exists and does not have a policy set.
|
1052
|
+
# @param [String] resource
|
1053
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1054
|
+
# operation documentation for the appropriate value for this field.
|
1055
|
+
# @param [Fixnum] options_requested_policy_version
|
1056
|
+
# Optional. The policy format version to be returned.Valid values are 0, 1, and
|
1057
|
+
# 3. Requests specifying an invalid value will be rejected.Requests for policies
|
1058
|
+
# with any conditional bindings must specify version 3. Policies without any
|
1059
|
+
# conditional bindings may specify any valid value or leave the field unset.To
|
1060
|
+
# learn which resources support conditions in their IAM policies, see the IAM
|
1061
|
+
# documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
|
1062
|
+
# @param [String] fields
|
1063
|
+
# Selector specifying which fields to include in a partial response.
|
1064
|
+
# @param [String] quota_user
|
1065
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1066
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1067
|
+
# @param [Google::Apis::RequestOptions] options
|
1068
|
+
# Request-specific options
|
1069
|
+
#
|
1070
|
+
# @yield [result, err] Result & error if block supplied
|
1071
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::Policy] parsed result object
|
1072
|
+
# @yieldparam err [StandardError] error object if request failed
|
1073
|
+
#
|
1074
|
+
# @return [Google::Apis::MetastoreV1alpha::Policy]
|
1075
|
+
#
|
1076
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1077
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1078
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1079
|
+
def get_project_location_service_database_table_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1080
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
1081
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation
|
1082
|
+
command.response_class = Google::Apis::MetastoreV1alpha::Policy
|
1083
|
+
command.params['resource'] = resource unless resource.nil?
|
1084
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1085
|
+
command.query['fields'] = fields unless fields.nil?
|
1086
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1087
|
+
execute_or_queue_command(command, &block)
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1091
|
+
# existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
|
1092
|
+
# errors.
|
1093
|
+
# @param [String] resource
|
1094
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1095
|
+
# operation documentation for the appropriate value for this field.
|
1096
|
+
# @param [Google::Apis::MetastoreV1alpha::SetIamPolicyRequest] set_iam_policy_request_object
|
1097
|
+
# @param [String] fields
|
1098
|
+
# Selector specifying which fields to include in a partial response.
|
1099
|
+
# @param [String] quota_user
|
1100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1102
|
+
# @param [Google::Apis::RequestOptions] options
|
1103
|
+
# Request-specific options
|
1104
|
+
#
|
1105
|
+
# @yield [result, err] Result & error if block supplied
|
1106
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::Policy] parsed result object
|
1107
|
+
# @yieldparam err [StandardError] error object if request failed
|
1108
|
+
#
|
1109
|
+
# @return [Google::Apis::MetastoreV1alpha::Policy]
|
1110
|
+
#
|
1111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1114
|
+
def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1115
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
1116
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation
|
1117
|
+
command.request_object = set_iam_policy_request_object
|
1118
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation
|
1119
|
+
command.response_class = Google::Apis::MetastoreV1alpha::Policy
|
1120
|
+
command.params['resource'] = resource unless resource.nil?
|
1121
|
+
command.query['fields'] = fields unless fields.nil?
|
1122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1123
|
+
execute_or_queue_command(command, &block)
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1127
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
1128
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
1129
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1130
|
+
# This operation may "fail open" without warning.
|
1131
|
+
# @param [String] resource
|
1132
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1133
|
+
# operation documentation for the appropriate value for this field.
|
1134
|
+
# @param [Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1135
|
+
# @param [String] fields
|
1136
|
+
# Selector specifying which fields to include in a partial response.
|
1137
|
+
# @param [String] quota_user
|
1138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1140
|
+
# @param [Google::Apis::RequestOptions] options
|
1141
|
+
# Request-specific options
|
1142
|
+
#
|
1143
|
+
# @yield [result, err] Result & error if block supplied
|
1144
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse] parsed result object
|
1145
|
+
# @yieldparam err [StandardError] error object if request failed
|
1146
|
+
#
|
1147
|
+
# @return [Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse]
|
1148
|
+
#
|
1149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1152
|
+
def test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1153
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
1154
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation
|
1155
|
+
command.request_object = test_iam_permissions_request_object
|
1156
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation
|
1157
|
+
command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
|
1158
|
+
command.params['resource'] = resource unless resource.nil?
|
1159
|
+
command.query['fields'] = fields unless fields.nil?
|
1160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1161
|
+
execute_or_queue_command(command, &block)
|
1162
|
+
end
|
1163
|
+
|
936
1164
|
# Creates a new MetadataImport in a given project and location.
|
937
1165
|
# @param [String] parent
|
938
1166
|
# Required. The relative resource name of the service in which to create a
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1alpha'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-metastore_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.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: 2021-
|
11
|
+
date: 2021-09-06 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/master/generated/google-apis-metastore_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.16.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-metastore_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|