google-apis-metastore_v1beta 0.20.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4707206581639ef789f286e951cf1cfc7fd0aa05a108a7d261c5ec5605d3d6c7
4
- data.tar.gz: b3eb50467da351fd8c5d0ca0160b6a202366197272f846877042738921ade64d
3
+ metadata.gz: 41adc6928a9bbbfd00d556b0782f65d39bfc8cfd7f024aba43cce5a349b04372
4
+ data.tar.gz: b6367cd53b7a62e239545ed79157c5eee86e83da7d24e7801bb11708a8d9477a
5
5
  SHA512:
6
- metadata.gz: e2839bb5446429fc10e0ab825a5d12132d0979524d1359c2115a40507d956d187835b846d0e6c62595d52e16bdaa15d6d889ec40f3c3baaba273a75ecda0663f
7
- data.tar.gz: 916b6e2be734ea63ede4a90a1313dba9fec3fb75566b59cd04eb41b4a3b8f9d43eea992d28562c5e07202a8fa54ba39842d9555edf52b563e31e14cf3982e1cd
6
+ metadata.gz: feea87fe702bc89e15514025c3769f36d8bd6fdd90a2944c3b2fc4a25cbc75758c9e8aae98fd821832492b3b827b8ec27cae404437cf6435232df172235666ff
7
+ data.tar.gz: 24cf07a6fc3e1fba524ec19dfa46afcd788ba01403dbb527ca9776fe55d20646472f2cca1b76b7064c2355a3ba0c9cbaa101ec02c161a35c24c3313a22070961
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-metastore_v1beta
2
2
 
3
+ ### v0.24.0 (2022-02-10)
4
+
5
+ * Regenerated from discovery document revision 20220205
6
+
7
+ ### v0.23.0 (2022-02-06)
8
+
9
+ * Regenerated from discovery document revision 20220127
10
+
11
+ ### v0.22.0 (2022-01-24)
12
+
13
+ * Regenerated from discovery document revision 20220118
14
+
15
+ ### v0.21.0 (2022-01-19)
16
+
17
+ * Regenerated from discovery document revision 20220112
18
+ * Regenerated using generator version 0.4.1
19
+
3
20
  ### v0.20.0 (2022-01-10)
4
21
 
5
22
  * Regenerated from discovery document revision 20211230
@@ -93,6 +93,42 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
+ # Configuration information for the auxiliary service versions.
97
+ class AuxiliaryVersionConfig
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # A mapping of Hive metastore configuration key-value pairs to apply to the
101
+ # auxiliary Hive metastore (configured in hive-site.xml) in addition to the
102
+ # primary version's overrides. If keys are present in both the auxiliary version'
103
+ # s overrides and the primary version's overrides, the value from the auxiliary
104
+ # version's overrides takes precedence.
105
+ # Corresponds to the JSON property `configOverrides`
106
+ # @return [Hash<String,String>]
107
+ attr_accessor :config_overrides
108
+
109
+ # Network configuration for the Dataproc Metastore service.
110
+ # Corresponds to the JSON property `networkConfig`
111
+ # @return [Google::Apis::MetastoreV1beta::NetworkConfig]
112
+ attr_accessor :network_config
113
+
114
+ # The Hive metastore version of the auxiliary service. It must be less than the
115
+ # primary Hive metastore service's version.
116
+ # Corresponds to the JSON property `version`
117
+ # @return [String]
118
+ attr_accessor :version
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ @config_overrides = args[:config_overrides] if args.key?(:config_overrides)
127
+ @network_config = args[:network_config] if args.key?(:network_config)
128
+ @version = args[:version] if args.key?(:version)
129
+ end
130
+ end
131
+
96
132
  # The details of a backup resource.
97
133
  class Backup
98
134
  include Google::Apis::Core::Hashable
@@ -469,6 +505,17 @@ module Google
469
505
  class HiveMetastoreConfig
470
506
  include Google::Apis::Core::Hashable
471
507
 
508
+ # A mapping of Hive metastore version to the auxiliary version configuration.
509
+ # When specified, a secondary Hive metastore service is created along with the
510
+ # primary service. All auxiliary versions must be less than the service's
511
+ # primary version. The key is the auxiliary service name and it must match the
512
+ # regular expression a-z?. This means that the first character must be a
513
+ # lowercase letter, and all the following characters must be hyphens, lowercase
514
+ # letters, or digits, except the last character, which cannot be a hyphen.
515
+ # Corresponds to the JSON property `auxiliaryVersions`
516
+ # @return [Hash<String,Google::Apis::MetastoreV1beta::AuxiliaryVersionConfig>]
517
+ attr_accessor :auxiliary_versions
518
+
472
519
  # A mapping of Hive metastore configuration key-value pairs to apply to the Hive
473
520
  # metastore (configured in hive-site.xml). The mappings override system defaults
474
521
  # (some keys cannot be overridden). These overrides are also applied to
@@ -500,6 +547,7 @@ module Google
500
547
 
501
548
  # Update properties of this object
502
549
  def update!(**args)
550
+ @auxiliary_versions = args[:auxiliary_versions] if args.key?(:auxiliary_versions)
503
551
  @config_overrides = args[:config_overrides] if args.key?(:config_overrides)
504
552
  @endpoint_protocol = args[:endpoint_protocol] if args.key?(:endpoint_protocol)
505
553
  @kerberos_config = args[:kerberos_config] if args.key?(:kerberos_config)
@@ -1217,6 +1265,39 @@ module Google
1217
1265
  end
1218
1266
  end
1219
1267
 
1268
+ # Request message for DataprocMetastore.RemoveIamPolicy.
1269
+ class RemoveIamPolicyRequest
1270
+ include Google::Apis::Core::Hashable
1271
+
1272
+ def initialize(**args)
1273
+ update!(**args)
1274
+ end
1275
+
1276
+ # Update properties of this object
1277
+ def update!(**args)
1278
+ end
1279
+ end
1280
+
1281
+ # Response message for DataprocMetastore.RemoveIamPolicy.
1282
+ class RemoveIamPolicyResponse
1283
+ include Google::Apis::Core::Hashable
1284
+
1285
+ # whether related policies are removed
1286
+ # Corresponds to the JSON property `success`
1287
+ # @return [Boolean]
1288
+ attr_accessor :success
1289
+ alias_method :success?, :success
1290
+
1291
+ def initialize(**args)
1292
+ update!(**args)
1293
+ end
1294
+
1295
+ # Update properties of this object
1296
+ def update!(**args)
1297
+ @success = args[:success] if args.key?(:success)
1298
+ end
1299
+ end
1300
+
1220
1301
  # The details of a metadata restore operation.
1221
1302
  class Restore
1222
1303
  include Google::Apis::Core::Hashable
@@ -1345,6 +1426,11 @@ module Google
1345
1426
  # @return [String]
1346
1427
  attr_accessor :create_time
1347
1428
 
1429
+ # Immutable. The database type that the Metastore service stores its data.
1430
+ # Corresponds to the JSON property `databaseType`
1431
+ # @return [String]
1432
+ attr_accessor :database_type
1433
+
1348
1434
  # Encryption settings for the service.
1349
1435
  # Corresponds to the JSON property `encryptionConfig`
1350
1436
  # @return [Google::Apis::MetastoreV1beta::EncryptionConfig]
@@ -1445,6 +1531,7 @@ module Google
1445
1531
  def update!(**args)
1446
1532
  @artifact_gcs_uri = args[:artifact_gcs_uri] if args.key?(:artifact_gcs_uri)
1447
1533
  @create_time = args[:create_time] if args.key?(:create_time)
1534
+ @database_type = args[:database_type] if args.key?(:database_type)
1448
1535
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
1449
1536
  @endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
1450
1537
  @hive_metastore_config = args[:hive_metastore_config] if args.key?(:hive_metastore_config)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1beta
18
18
  # Version of the google-apis-metastore_v1beta gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211230"
25
+ REVISION = "20220205"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AuxiliaryVersionConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Backup
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -214,6 +220,18 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class RemoveIamPolicyRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class RemoveIamPolicyResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class Restore
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -279,6 +297,16 @@ module Google
279
297
  end
280
298
  end
281
299
 
300
+ class AuxiliaryVersionConfig
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ hash :config_overrides, as: 'configOverrides'
304
+ property :network_config, as: 'networkConfig', class: Google::Apis::MetastoreV1beta::NetworkConfig, decorator: Google::Apis::MetastoreV1beta::NetworkConfig::Representation
305
+
306
+ property :version, as: 'version'
307
+ end
308
+ end
309
+
282
310
  class Backup
283
311
  # @private
284
312
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -371,6 +399,8 @@ module Google
371
399
  class HiveMetastoreConfig
372
400
  # @private
373
401
  class Representation < Google::Apis::Core::JsonRepresentation
402
+ hash :auxiliary_versions, as: 'auxiliaryVersions', class: Google::Apis::MetastoreV1beta::AuxiliaryVersionConfig, decorator: Google::Apis::MetastoreV1beta::AuxiliaryVersionConfig::Representation
403
+
374
404
  hash :config_overrides, as: 'configOverrides'
375
405
  property :endpoint_protocol, as: 'endpointProtocol'
376
406
  property :kerberos_config, as: 'kerberosConfig', class: Google::Apis::MetastoreV1beta::KerberosConfig, decorator: Google::Apis::MetastoreV1beta::KerberosConfig::Representation
@@ -569,6 +599,19 @@ module Google
569
599
  end
570
600
  end
571
601
 
602
+ class RemoveIamPolicyRequest
603
+ # @private
604
+ class Representation < Google::Apis::Core::JsonRepresentation
605
+ end
606
+ end
607
+
608
+ class RemoveIamPolicyResponse
609
+ # @private
610
+ class Representation < Google::Apis::Core::JsonRepresentation
611
+ property :success, as: 'success'
612
+ end
613
+ end
614
+
572
615
  class Restore
573
616
  # @private
574
617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -602,6 +645,7 @@ module Google
602
645
  class Representation < Google::Apis::Core::JsonRepresentation
603
646
  property :artifact_gcs_uri, as: 'artifactGcsUri'
604
647
  property :create_time, as: 'createTime'
648
+ property :database_type, as: 'databaseType'
605
649
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::MetastoreV1beta::EncryptionConfig, decorator: Google::Apis::MetastoreV1beta::EncryptionConfig::Representation
606
650
 
607
651
  property :endpoint_uri, as: 'endpointUri'
@@ -538,6 +538,43 @@ module Google
538
538
  execute_or_queue_command(command, &block)
539
539
  end
540
540
 
541
+ # Removes the attached IAM policies for a resource
542
+ # @param [String] resource
543
+ # Required. The relative resource name of the dataplane resource to remove IAM
544
+ # policy, in the following form:projects/`project_id`/locations/`location_id`/
545
+ # services/`service_id`/databases/`database_id` or projects/`project_id`/
546
+ # locations/`location_id`/services/`service_id`/databases/`database_id`/tables/`
547
+ # table_id`.
548
+ # @param [Google::Apis::MetastoreV1beta::RemoveIamPolicyRequest] remove_iam_policy_request_object
549
+ # @param [String] fields
550
+ # Selector specifying which fields to include in a partial response.
551
+ # @param [String] quota_user
552
+ # Available to use for quota purposes for server-side applications. Can be any
553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
554
+ # @param [Google::Apis::RequestOptions] options
555
+ # Request-specific options
556
+ #
557
+ # @yield [result, err] Result & error if block supplied
558
+ # @yieldparam result [Google::Apis::MetastoreV1beta::RemoveIamPolicyResponse] parsed result object
559
+ # @yieldparam err [StandardError] error object if request failed
560
+ #
561
+ # @return [Google::Apis::MetastoreV1beta::RemoveIamPolicyResponse]
562
+ #
563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
566
+ def remove_service_iam_policy(resource, remove_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
567
+ command = make_simple_command(:post, 'v1beta/{+resource}:removeIamPolicy', options)
568
+ command.request_representation = Google::Apis::MetastoreV1beta::RemoveIamPolicyRequest::Representation
569
+ command.request_object = remove_iam_policy_request_object
570
+ command.response_representation = Google::Apis::MetastoreV1beta::RemoveIamPolicyResponse::Representation
571
+ command.response_class = Google::Apis::MetastoreV1beta::RemoveIamPolicyResponse
572
+ command.params['resource'] = resource unless resource.nil?
573
+ command.query['fields'] = fields unless fields.nil?
574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ execute_or_queue_command(command, &block)
576
+ end
577
+
541
578
  # Restores a service from a backup.
542
579
  # @param [String] service
543
580
  # Required. The relative resource name of the metastore service to run restore,
@@ -941,6 +978,242 @@ module Google
941
978
  execute_or_queue_command(command, &block)
942
979
  end
943
980
 
981
+ # Gets the access control policy for a resource. Returns an empty policy if the
982
+ # resource exists and does not have a policy set.
983
+ # @param [String] resource
984
+ # REQUIRED: The resource for which the policy is being requested. See the
985
+ # operation documentation for the appropriate value for this field.
986
+ # @param [Fixnum] options_requested_policy_version
987
+ # Optional. The maximum policy version that will be used to format the policy.
988
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
989
+ # rejected.Requests for policies with any conditional role bindings must specify
990
+ # version 3. Policies with no conditional role bindings may specify any valid
991
+ # value or leave the field unset.The policy in the response might use the policy
992
+ # version that you specified, or it might use a lower policy version. For
993
+ # example, if you specify version 3, but the policy has no conditional role
994
+ # bindings, the response uses version 1.To learn which resources support
995
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
996
+ # google.com/iam/help/conditions/resource-policies).
997
+ # @param [String] fields
998
+ # Selector specifying which fields to include in a partial response.
999
+ # @param [String] quota_user
1000
+ # Available to use for quota purposes for server-side applications. Can be any
1001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
+ # @param [Google::Apis::RequestOptions] options
1003
+ # Request-specific options
1004
+ #
1005
+ # @yield [result, err] Result & error if block supplied
1006
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
1007
+ # @yieldparam err [StandardError] error object if request failed
1008
+ #
1009
+ # @return [Google::Apis::MetastoreV1beta::Policy]
1010
+ #
1011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
+ def get_project_location_service_database_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1015
+ command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
1016
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
1017
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
1018
+ command.params['resource'] = resource unless resource.nil?
1019
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1020
+ command.query['fields'] = fields unless fields.nil?
1021
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1022
+ execute_or_queue_command(command, &block)
1023
+ end
1024
+
1025
+ # Sets the access control policy on the specified resource. Replaces any
1026
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
1027
+ # errors.
1028
+ # @param [String] resource
1029
+ # REQUIRED: The resource for which the policy is being specified. See the
1030
+ # operation documentation for the appropriate value for this field.
1031
+ # @param [Google::Apis::MetastoreV1beta::SetIamPolicyRequest] set_iam_policy_request_object
1032
+ # @param [String] fields
1033
+ # Selector specifying which fields to include in a partial response.
1034
+ # @param [String] quota_user
1035
+ # Available to use for quota purposes for server-side applications. Can be any
1036
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1037
+ # @param [Google::Apis::RequestOptions] options
1038
+ # Request-specific options
1039
+ #
1040
+ # @yield [result, err] Result & error if block supplied
1041
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
1042
+ # @yieldparam err [StandardError] error object if request failed
1043
+ #
1044
+ # @return [Google::Apis::MetastoreV1beta::Policy]
1045
+ #
1046
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1047
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1048
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1049
+ def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1050
+ command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
1051
+ command.request_representation = Google::Apis::MetastoreV1beta::SetIamPolicyRequest::Representation
1052
+ command.request_object = set_iam_policy_request_object
1053
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
1054
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
1055
+ command.params['resource'] = resource unless resource.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ execute_or_queue_command(command, &block)
1059
+ end
1060
+
1061
+ # Returns permissions that a caller has on the specified resource. If the
1062
+ # resource does not exist, this will return an empty set of permissions, not a
1063
+ # NOT_FOUND error.Note: This operation is designed to be used for building
1064
+ # permission-aware UIs and command-line tools, not for authorization checking.
1065
+ # This operation may "fail open" without warning.
1066
+ # @param [String] resource
1067
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1068
+ # operation documentation for the appropriate value for this field.
1069
+ # @param [Google::Apis::MetastoreV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
1070
+ # @param [String] fields
1071
+ # Selector specifying which fields to include in a partial response.
1072
+ # @param [String] quota_user
1073
+ # Available to use for quota purposes for server-side applications. Can be any
1074
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1075
+ # @param [Google::Apis::RequestOptions] options
1076
+ # Request-specific options
1077
+ #
1078
+ # @yield [result, err] Result & error if block supplied
1079
+ # @yieldparam result [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse] parsed result object
1080
+ # @yieldparam err [StandardError] error object if request failed
1081
+ #
1082
+ # @return [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse]
1083
+ #
1084
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1085
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1086
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1087
+ def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1088
+ command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
1089
+ command.request_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsRequest::Representation
1090
+ command.request_object = test_iam_permissions_request_object
1091
+ command.response_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse::Representation
1092
+ command.response_class = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse
1093
+ command.params['resource'] = resource unless resource.nil?
1094
+ command.query['fields'] = fields unless fields.nil?
1095
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1096
+ execute_or_queue_command(command, &block)
1097
+ end
1098
+
1099
+ # Gets the access control policy for a resource. Returns an empty policy if the
1100
+ # resource exists and does not have a policy set.
1101
+ # @param [String] resource
1102
+ # REQUIRED: The resource for which the policy is being requested. See the
1103
+ # operation documentation for the appropriate value for this field.
1104
+ # @param [Fixnum] options_requested_policy_version
1105
+ # Optional. The maximum policy version that will be used to format the policy.
1106
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1107
+ # rejected.Requests for policies with any conditional role bindings must specify
1108
+ # version 3. Policies with no conditional role bindings may specify any valid
1109
+ # value or leave the field unset.The policy in the response might use the policy
1110
+ # version that you specified, or it might use a lower policy version. For
1111
+ # example, if you specify version 3, but the policy has no conditional role
1112
+ # bindings, the response uses version 1.To learn which resources support
1113
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
1114
+ # google.com/iam/help/conditions/resource-policies).
1115
+ # @param [String] fields
1116
+ # Selector specifying which fields to include in a partial response.
1117
+ # @param [String] quota_user
1118
+ # Available to use for quota purposes for server-side applications. Can be any
1119
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1120
+ # @param [Google::Apis::RequestOptions] options
1121
+ # Request-specific options
1122
+ #
1123
+ # @yield [result, err] Result & error if block supplied
1124
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
1125
+ # @yieldparam err [StandardError] error object if request failed
1126
+ #
1127
+ # @return [Google::Apis::MetastoreV1beta::Policy]
1128
+ #
1129
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1130
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1131
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1132
+ def get_project_location_service_database_table_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1133
+ command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
1134
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
1135
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
1136
+ command.params['resource'] = resource unless resource.nil?
1137
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1138
+ command.query['fields'] = fields unless fields.nil?
1139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1140
+ execute_or_queue_command(command, &block)
1141
+ end
1142
+
1143
+ # Sets the access control policy on the specified resource. Replaces any
1144
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
1145
+ # errors.
1146
+ # @param [String] resource
1147
+ # REQUIRED: The resource for which the policy is being specified. See the
1148
+ # operation documentation for the appropriate value for this field.
1149
+ # @param [Google::Apis::MetastoreV1beta::SetIamPolicyRequest] set_iam_policy_request_object
1150
+ # @param [String] fields
1151
+ # Selector specifying which fields to include in a partial response.
1152
+ # @param [String] quota_user
1153
+ # Available to use for quota purposes for server-side applications. Can be any
1154
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1155
+ # @param [Google::Apis::RequestOptions] options
1156
+ # Request-specific options
1157
+ #
1158
+ # @yield [result, err] Result & error if block supplied
1159
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
1160
+ # @yieldparam err [StandardError] error object if request failed
1161
+ #
1162
+ # @return [Google::Apis::MetastoreV1beta::Policy]
1163
+ #
1164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1167
+ def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1168
+ command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
1169
+ command.request_representation = Google::Apis::MetastoreV1beta::SetIamPolicyRequest::Representation
1170
+ command.request_object = set_iam_policy_request_object
1171
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
1172
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
1173
+ command.params['resource'] = resource unless resource.nil?
1174
+ command.query['fields'] = fields unless fields.nil?
1175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1176
+ execute_or_queue_command(command, &block)
1177
+ end
1178
+
1179
+ # Returns permissions that a caller has on the specified resource. If the
1180
+ # resource does not exist, this will return an empty set of permissions, not a
1181
+ # NOT_FOUND error.Note: This operation is designed to be used for building
1182
+ # permission-aware UIs and command-line tools, not for authorization checking.
1183
+ # This operation may "fail open" without warning.
1184
+ # @param [String] resource
1185
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1186
+ # operation documentation for the appropriate value for this field.
1187
+ # @param [Google::Apis::MetastoreV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
1188
+ # @param [String] fields
1189
+ # Selector specifying which fields to include in a partial response.
1190
+ # @param [String] quota_user
1191
+ # Available to use for quota purposes for server-side applications. Can be any
1192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1193
+ # @param [Google::Apis::RequestOptions] options
1194
+ # Request-specific options
1195
+ #
1196
+ # @yield [result, err] Result & error if block supplied
1197
+ # @yieldparam result [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse] parsed result object
1198
+ # @yieldparam err [StandardError] error object if request failed
1199
+ #
1200
+ # @return [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse]
1201
+ #
1202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1205
+ def test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1206
+ command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
1207
+ command.request_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsRequest::Representation
1208
+ command.request_object = test_iam_permissions_request_object
1209
+ command.response_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse::Representation
1210
+ command.response_class = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse
1211
+ command.params['resource'] = resource unless resource.nil?
1212
+ command.query['fields'] = fields unless fields.nil?
1213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1214
+ execute_or_queue_command(command, &block)
1215
+ end
1216
+
944
1217
  # Creates a new MetadataImport in a given project and location.
945
1218
  # @param [String] parent
946
1219
  # Required. The relative resource name of the service in which to create a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.24.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: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-02-14 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-metastore_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []