google-apis-metastore_v1beta 0.24.0 → 0.27.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95e19b9e6950ffca9b31fa11add197b453ed6dc3d10b28473f543366e7e159ce
|
4
|
+
data.tar.gz: 2016628cae8521fae6b4ff8af1562706909de03b055ef4354ec896c0543b6a7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9afb714b8442c10f764dbfa0d851c8c1bc82569b341a876e8810cc315c8272b23c7f13f351f52a594057c891a29d6911feb69253a87bd8926deb81231c1be216
|
7
|
+
data.tar.gz: 4661244b6b6562b2b53578c430576c610cd2dcaa1b3479aecf397206f0a81b90e141d9c602e5e033cb709cc39ba3b9f5dcab9d920cdf70524b1766234866bb24
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-metastore_v1beta
|
2
2
|
|
3
|
+
### v0.27.0 (2022-05-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220426
|
6
|
+
|
7
|
+
### v0.26.0 (2022-04-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220407
|
10
|
+
|
11
|
+
### v0.25.0 (2022-04-09)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220331
|
14
|
+
|
3
15
|
### v0.24.0 (2022-02-10)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220205
|
@@ -129,6 +129,35 @@ module Google
|
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
132
|
+
# Represents a backend metastore for the federation.
|
133
|
+
class BackendMetastore
|
134
|
+
include Google::Apis::Core::Hashable
|
135
|
+
|
136
|
+
# The type of the backend metastore.
|
137
|
+
# Corresponds to the JSON property `metastoreType`
|
138
|
+
# @return [String]
|
139
|
+
attr_accessor :metastore_type
|
140
|
+
|
141
|
+
# The relative resource name of the metastore that is being federated. The
|
142
|
+
# formats of the relative resource names for the currently supported metastores
|
143
|
+
# are listed below: Dataplex: projects/`project_id`/locations/`location`/lakes/`
|
144
|
+
# lake_id` BigQuery: projects/`project_id` Dataproc Metastore: projects/`
|
145
|
+
# project_id`/locations/`location`/services/`service_id`
|
146
|
+
# Corresponds to the JSON property `name`
|
147
|
+
# @return [String]
|
148
|
+
attr_accessor :name
|
149
|
+
|
150
|
+
def initialize(**args)
|
151
|
+
update!(**args)
|
152
|
+
end
|
153
|
+
|
154
|
+
# Update properties of this object
|
155
|
+
def update!(**args)
|
156
|
+
@metastore_type = args[:metastore_type] if args.key?(:metastore_type)
|
157
|
+
@name = args[:name] if args.key?(:name)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
132
161
|
# The details of a backup resource.
|
133
162
|
class Backup
|
134
163
|
include Google::Apis::Core::Hashable
|
@@ -209,7 +238,7 @@ module Google
|
|
209
238
|
# @return [Google::Apis::MetastoreV1beta::Expr]
|
210
239
|
attr_accessor :condition
|
211
240
|
|
212
|
-
# Specifies the principals requesting access for a Cloud
|
241
|
+
# Specifies the principals requesting access for a Google Cloud resource.
|
213
242
|
# members can have the following values: allUsers: A special identifier that
|
214
243
|
# represents anyone who is on the internet; with or without a Google account.
|
215
244
|
# allAuthenticatedUsers: A special identifier that represents anyone who is
|
@@ -372,8 +401,7 @@ module Google
|
|
372
401
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
373
402
|
# messages in your APIs. A typical example is to use it as the request or the
|
374
403
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
375
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
376
|
-
# Empty is empty JSON object ``.
|
404
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
377
405
|
class Empty
|
378
406
|
include Google::Apis::Core::Hashable
|
379
407
|
|
@@ -500,6 +528,87 @@ module Google
|
|
500
528
|
end
|
501
529
|
end
|
502
530
|
|
531
|
+
# Represents a federation of multiple backend metastores.
|
532
|
+
class Federation
|
533
|
+
include Google::Apis::Core::Hashable
|
534
|
+
|
535
|
+
# A map from BackendMetastore rank to BackendMetastores from which the
|
536
|
+
# federation service serves metadata at query time. The map key is an integer
|
537
|
+
# that represents the order in which BackendMetastores should be evaluated to
|
538
|
+
# resolve database names at query time. A BackendMetastore with a lower number
|
539
|
+
# will be evaluated before a BackendMetastore with a higher number.
|
540
|
+
# Corresponds to the JSON property `backendMetastores`
|
541
|
+
# @return [Hash<String,Google::Apis::MetastoreV1beta::BackendMetastore>]
|
542
|
+
attr_accessor :backend_metastores
|
543
|
+
|
544
|
+
# Output only. The time when the metastore federation was created.
|
545
|
+
# Corresponds to the JSON property `createTime`
|
546
|
+
# @return [String]
|
547
|
+
attr_accessor :create_time
|
548
|
+
|
549
|
+
# Output only. The federation endpoint.
|
550
|
+
# Corresponds to the JSON property `endpointUri`
|
551
|
+
# @return [String]
|
552
|
+
attr_accessor :endpoint_uri
|
553
|
+
|
554
|
+
# User-defined labels for the metastore federation.
|
555
|
+
# Corresponds to the JSON property `labels`
|
556
|
+
# @return [Hash<String,String>]
|
557
|
+
attr_accessor :labels
|
558
|
+
|
559
|
+
# Immutable. The relative resource name of the federation, of the form: projects/
|
560
|
+
# `project_number`/locations/`location_id`/federations/`federation_id``.
|
561
|
+
# Corresponds to the JSON property `name`
|
562
|
+
# @return [String]
|
563
|
+
attr_accessor :name
|
564
|
+
|
565
|
+
# Output only. The current state of the federation.
|
566
|
+
# Corresponds to the JSON property `state`
|
567
|
+
# @return [String]
|
568
|
+
attr_accessor :state
|
569
|
+
|
570
|
+
# Output only. Additional information about the current state of the metastore
|
571
|
+
# federation, if available.
|
572
|
+
# Corresponds to the JSON property `stateMessage`
|
573
|
+
# @return [String]
|
574
|
+
attr_accessor :state_message
|
575
|
+
|
576
|
+
# Output only. The globally unique resource identifier of the metastore
|
577
|
+
# federation.
|
578
|
+
# Corresponds to the JSON property `uid`
|
579
|
+
# @return [String]
|
580
|
+
attr_accessor :uid
|
581
|
+
|
582
|
+
# Output only. The time when the metastore federation was last updated.
|
583
|
+
# Corresponds to the JSON property `updateTime`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :update_time
|
586
|
+
|
587
|
+
# Immutable. The Apache Hive metastore version of the federation. All backend
|
588
|
+
# metastore versions must be compatible with the federation version.
|
589
|
+
# Corresponds to the JSON property `version`
|
590
|
+
# @return [String]
|
591
|
+
attr_accessor :version
|
592
|
+
|
593
|
+
def initialize(**args)
|
594
|
+
update!(**args)
|
595
|
+
end
|
596
|
+
|
597
|
+
# Update properties of this object
|
598
|
+
def update!(**args)
|
599
|
+
@backend_metastores = args[:backend_metastores] if args.key?(:backend_metastores)
|
600
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
601
|
+
@endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
|
602
|
+
@labels = args[:labels] if args.key?(:labels)
|
603
|
+
@name = args[:name] if args.key?(:name)
|
604
|
+
@state = args[:state] if args.key?(:state)
|
605
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
606
|
+
@uid = args[:uid] if args.key?(:uid)
|
607
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
608
|
+
@version = args[:version] if args.key?(:version)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
503
612
|
# Specifies configuration information specific to running Hive metastore
|
504
613
|
# software as the metastore service.
|
505
614
|
class HiveMetastoreConfig
|
@@ -669,6 +778,38 @@ module Google
|
|
669
778
|
end
|
670
779
|
end
|
671
780
|
|
781
|
+
# Response message for ListFederations
|
782
|
+
class ListFederationsResponse
|
783
|
+
include Google::Apis::Core::Hashable
|
784
|
+
|
785
|
+
# The services in the specified location.
|
786
|
+
# Corresponds to the JSON property `federations`
|
787
|
+
# @return [Array<Google::Apis::MetastoreV1beta::Federation>]
|
788
|
+
attr_accessor :federations
|
789
|
+
|
790
|
+
# A token that can be sent as page_token to retrieve the next page. If this
|
791
|
+
# field is omitted, there are no subsequent pages.
|
792
|
+
# Corresponds to the JSON property `nextPageToken`
|
793
|
+
# @return [String]
|
794
|
+
attr_accessor :next_page_token
|
795
|
+
|
796
|
+
# Locations that could not be reached.
|
797
|
+
# Corresponds to the JSON property `unreachable`
|
798
|
+
# @return [Array<String>]
|
799
|
+
attr_accessor :unreachable
|
800
|
+
|
801
|
+
def initialize(**args)
|
802
|
+
update!(**args)
|
803
|
+
end
|
804
|
+
|
805
|
+
# Update properties of this object
|
806
|
+
def update!(**args)
|
807
|
+
@federations = args[:federations] if args.key?(:federations)
|
808
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
809
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
810
|
+
end
|
811
|
+
end
|
812
|
+
|
672
813
|
# The response message for Locations.ListLocations.
|
673
814
|
class ListLocationsResponse
|
674
815
|
include Google::Apis::Core::Hashable
|
@@ -1649,8 +1790,8 @@ module Google
|
|
1649
1790
|
include Google::Apis::Core::Hashable
|
1650
1791
|
|
1651
1792
|
# The set of permissions to check for the resource. Permissions with wildcards (
|
1652
|
-
# such as
|
1653
|
-
#
|
1793
|
+
# such as * or storage.*) are not allowed. For more information see IAM Overview
|
1794
|
+
# (https://cloud.google.com/iam/docs/overview#permissions).
|
1654
1795
|
# Corresponds to the JSON property `permissions`
|
1655
1796
|
# @return [Array<String>]
|
1656
1797
|
attr_accessor :permissions
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220426"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class BackendMetastore
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class Backup
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -100,6 +106,12 @@ module Google
|
|
100
106
|
include Google::Apis::Core::JsonObjectSupport
|
101
107
|
end
|
102
108
|
|
109
|
+
class Federation
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
103
115
|
class HiveMetastoreConfig
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
117
|
|
@@ -130,6 +142,12 @@ module Google
|
|
130
142
|
include Google::Apis::Core::JsonObjectSupport
|
131
143
|
end
|
132
144
|
|
145
|
+
class ListFederationsResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
133
151
|
class ListLocationsResponse
|
134
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
153
|
|
@@ -307,6 +325,14 @@ module Google
|
|
307
325
|
end
|
308
326
|
end
|
309
327
|
|
328
|
+
class BackendMetastore
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
property :metastore_type, as: 'metastoreType'
|
332
|
+
property :name, as: 'name'
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
310
336
|
class Backup
|
311
337
|
# @private
|
312
338
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -396,6 +422,23 @@ module Google
|
|
396
422
|
end
|
397
423
|
end
|
398
424
|
|
425
|
+
class Federation
|
426
|
+
# @private
|
427
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
428
|
+
hash :backend_metastores, as: 'backendMetastores', class: Google::Apis::MetastoreV1beta::BackendMetastore, decorator: Google::Apis::MetastoreV1beta::BackendMetastore::Representation
|
429
|
+
|
430
|
+
property :create_time, as: 'createTime'
|
431
|
+
property :endpoint_uri, as: 'endpointUri'
|
432
|
+
hash :labels, as: 'labels'
|
433
|
+
property :name, as: 'name'
|
434
|
+
property :state, as: 'state'
|
435
|
+
property :state_message, as: 'stateMessage'
|
436
|
+
property :uid, as: 'uid'
|
437
|
+
property :update_time, as: 'updateTime'
|
438
|
+
property :version, as: 'version'
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
399
442
|
class HiveMetastoreConfig
|
400
443
|
# @private
|
401
444
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -444,6 +487,16 @@ module Google
|
|
444
487
|
end
|
445
488
|
end
|
446
489
|
|
490
|
+
class ListFederationsResponse
|
491
|
+
# @private
|
492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
493
|
+
collection :federations, as: 'federations', class: Google::Apis::MetastoreV1beta::Federation, decorator: Google::Apis::MetastoreV1beta::Federation::Representation
|
494
|
+
|
495
|
+
property :next_page_token, as: 'nextPageToken'
|
496
|
+
collection :unreachable, as: 'unreachable'
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
447
500
|
class ListLocationsResponse
|
448
501
|
# @private
|
449
502
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -123,6 +123,351 @@ module Google
|
|
123
123
|
execute_or_queue_command(command, &block)
|
124
124
|
end
|
125
125
|
|
126
|
+
# Creates a metastore federation in a project and location.
|
127
|
+
# @param [String] parent
|
128
|
+
# Required. The relative resource name of the location in which to create a
|
129
|
+
# federation service, in the following form:projects/`project_number`/locations/`
|
130
|
+
# location_id`.
|
131
|
+
# @param [Google::Apis::MetastoreV1beta::Federation] federation_object
|
132
|
+
# @param [String] federation_id
|
133
|
+
# Required. The ID of the metastore federation, which is used as the final
|
134
|
+
# component of the metastore federation's name.This value must be between 2 and
|
135
|
+
# 63 characters long inclusive, begin with a letter, end with a letter or number,
|
136
|
+
# and consist of alpha-numeric ASCII characters or hyphens.
|
137
|
+
# @param [String] request_id
|
138
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
139
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
140
|
+
# requests that provide a duplicate request ID for at least 60 minutes after the
|
141
|
+
# first request.For example, if an initial request times out, followed by
|
142
|
+
# another request with the same request ID, the server ignores the second
|
143
|
+
# request to prevent the creation of duplicate commitments.The request ID must
|
144
|
+
# be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
|
145
|
+
# Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
146
|
+
# @param [String] fields
|
147
|
+
# Selector specifying which fields to include in a partial response.
|
148
|
+
# @param [String] quota_user
|
149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
151
|
+
# @param [Google::Apis::RequestOptions] options
|
152
|
+
# Request-specific options
|
153
|
+
#
|
154
|
+
# @yield [result, err] Result & error if block supplied
|
155
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
|
156
|
+
# @yieldparam err [StandardError] error object if request failed
|
157
|
+
#
|
158
|
+
# @return [Google::Apis::MetastoreV1beta::Operation]
|
159
|
+
#
|
160
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
161
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
162
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
163
|
+
def create_project_location_federation(parent, federation_object = nil, federation_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
164
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/federations', options)
|
165
|
+
command.request_representation = Google::Apis::MetastoreV1beta::Federation::Representation
|
166
|
+
command.request_object = federation_object
|
167
|
+
command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
|
168
|
+
command.response_class = Google::Apis::MetastoreV1beta::Operation
|
169
|
+
command.params['parent'] = parent unless parent.nil?
|
170
|
+
command.query['federationId'] = federation_id unless federation_id.nil?
|
171
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
172
|
+
command.query['fields'] = fields unless fields.nil?
|
173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
174
|
+
execute_or_queue_command(command, &block)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Deletes a single federation.
|
178
|
+
# @param [String] name
|
179
|
+
# Required. The relative resource name of the metastore federation to delete, in
|
180
|
+
# the following form:projects/`project_number`/locations/`location_id`/
|
181
|
+
# federations/`federation_id`.
|
182
|
+
# @param [String] request_id
|
183
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
184
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
185
|
+
# requests that provide a duplicate request ID for at least 60 minutes after the
|
186
|
+
# first request.For example, if an initial request times out, followed by
|
187
|
+
# another request with the same request ID, the server ignores the second
|
188
|
+
# request to prevent the creation of duplicate commitments.The request ID must
|
189
|
+
# be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
|
190
|
+
# Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
191
|
+
# @param [String] fields
|
192
|
+
# Selector specifying which fields to include in a partial response.
|
193
|
+
# @param [String] quota_user
|
194
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
195
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
196
|
+
# @param [Google::Apis::RequestOptions] options
|
197
|
+
# Request-specific options
|
198
|
+
#
|
199
|
+
# @yield [result, err] Result & error if block supplied
|
200
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
|
201
|
+
# @yieldparam err [StandardError] error object if request failed
|
202
|
+
#
|
203
|
+
# @return [Google::Apis::MetastoreV1beta::Operation]
|
204
|
+
#
|
205
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
206
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
207
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
208
|
+
def delete_project_location_federation(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
209
|
+
command = make_simple_command(:delete, 'v1beta/{+name}', options)
|
210
|
+
command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
|
211
|
+
command.response_class = Google::Apis::MetastoreV1beta::Operation
|
212
|
+
command.params['name'] = name unless name.nil?
|
213
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
214
|
+
command.query['fields'] = fields unless fields.nil?
|
215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
|
+
execute_or_queue_command(command, &block)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Gets the details of a single federation.
|
220
|
+
# @param [String] name
|
221
|
+
# Required. The relative resource name of the metastore federation to retrieve,
|
222
|
+
# in the following form:projects/`project_number`/locations/`location_id`/
|
223
|
+
# federations/`federation_id`.
|
224
|
+
# @param [String] fields
|
225
|
+
# Selector specifying which fields to include in a partial response.
|
226
|
+
# @param [String] quota_user
|
227
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
228
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
229
|
+
# @param [Google::Apis::RequestOptions] options
|
230
|
+
# Request-specific options
|
231
|
+
#
|
232
|
+
# @yield [result, err] Result & error if block supplied
|
233
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::Federation] parsed result object
|
234
|
+
# @yieldparam err [StandardError] error object if request failed
|
235
|
+
#
|
236
|
+
# @return [Google::Apis::MetastoreV1beta::Federation]
|
237
|
+
#
|
238
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
239
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
240
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
241
|
+
def get_project_location_federation(name, fields: nil, quota_user: nil, options: nil, &block)
|
242
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
243
|
+
command.response_representation = Google::Apis::MetastoreV1beta::Federation::Representation
|
244
|
+
command.response_class = Google::Apis::MetastoreV1beta::Federation
|
245
|
+
command.params['name'] = name unless name.nil?
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
248
|
+
execute_or_queue_command(command, &block)
|
249
|
+
end
|
250
|
+
|
251
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
252
|
+
# resource exists and does not have a policy set.
|
253
|
+
# @param [String] resource
|
254
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
255
|
+
# operation documentation for the appropriate value for this field.
|
256
|
+
# @param [Fixnum] options_requested_policy_version
|
257
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
258
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
259
|
+
# rejected.Requests for policies with any conditional role bindings must specify
|
260
|
+
# version 3. Policies with no conditional role bindings may specify any valid
|
261
|
+
# value or leave the field unset.The policy in the response might use the policy
|
262
|
+
# version that you specified, or it might use a lower policy version. For
|
263
|
+
# example, if you specify version 3, but the policy has no conditional role
|
264
|
+
# bindings, the response uses version 1.To learn which resources support
|
265
|
+
# conditions in their IAM policies, see the IAM documentation (https://cloud.
|
266
|
+
# google.com/iam/help/conditions/resource-policies).
|
267
|
+
# @param [String] fields
|
268
|
+
# Selector specifying which fields to include in a partial response.
|
269
|
+
# @param [String] quota_user
|
270
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
271
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
272
|
+
# @param [Google::Apis::RequestOptions] options
|
273
|
+
# Request-specific options
|
274
|
+
#
|
275
|
+
# @yield [result, err] Result & error if block supplied
|
276
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
|
277
|
+
# @yieldparam err [StandardError] error object if request failed
|
278
|
+
#
|
279
|
+
# @return [Google::Apis::MetastoreV1beta::Policy]
|
280
|
+
#
|
281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
284
|
+
def get_project_location_federation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
285
|
+
command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
|
286
|
+
command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
|
287
|
+
command.response_class = Google::Apis::MetastoreV1beta::Policy
|
288
|
+
command.params['resource'] = resource unless resource.nil?
|
289
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
290
|
+
command.query['fields'] = fields unless fields.nil?
|
291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
292
|
+
execute_or_queue_command(command, &block)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Lists federations in a project and location.
|
296
|
+
# @param [String] parent
|
297
|
+
# Required. The relative resource name of the location of metastore federations
|
298
|
+
# to list, in the following form: projects/`project_number`/locations/`
|
299
|
+
# location_id`.
|
300
|
+
# @param [String] filter
|
301
|
+
# Optional. The filter to apply to list results.
|
302
|
+
# @param [String] order_by
|
303
|
+
# Optional. Specify the ordering of results as described in Sorting Order (https:
|
304
|
+
# //cloud.google.com/apis/design/design_patterns#sorting_order). If not
|
305
|
+
# specified, the results will be sorted in the default order.
|
306
|
+
# @param [Fixnum] page_size
|
307
|
+
# Optional. The maximum number of federations to return. The response may
|
308
|
+
# contain less than the maximum number. If unspecified, no more than 500
|
309
|
+
# services are returned. The maximum value is 1000; values above 1000 are
|
310
|
+
# changed to 1000.
|
311
|
+
# @param [String] page_token
|
312
|
+
# Optional. A page token, received from a previous ListFederationServices call.
|
313
|
+
# Provide this token to retrieve the subsequent page.To retrieve the first page,
|
314
|
+
# supply an empty page token.When paginating, other parameters provided to
|
315
|
+
# ListFederationServices must match the call that provided the page token.
|
316
|
+
# @param [String] fields
|
317
|
+
# Selector specifying which fields to include in a partial response.
|
318
|
+
# @param [String] quota_user
|
319
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
320
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
321
|
+
# @param [Google::Apis::RequestOptions] options
|
322
|
+
# Request-specific options
|
323
|
+
#
|
324
|
+
# @yield [result, err] Result & error if block supplied
|
325
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::ListFederationsResponse] parsed result object
|
326
|
+
# @yieldparam err [StandardError] error object if request failed
|
327
|
+
#
|
328
|
+
# @return [Google::Apis::MetastoreV1beta::ListFederationsResponse]
|
329
|
+
#
|
330
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
331
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
332
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
333
|
+
def list_project_location_federations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
334
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/federations', options)
|
335
|
+
command.response_representation = Google::Apis::MetastoreV1beta::ListFederationsResponse::Representation
|
336
|
+
command.response_class = Google::Apis::MetastoreV1beta::ListFederationsResponse
|
337
|
+
command.params['parent'] = parent unless parent.nil?
|
338
|
+
command.query['filter'] = filter unless filter.nil?
|
339
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
340
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
341
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
342
|
+
command.query['fields'] = fields unless fields.nil?
|
343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
344
|
+
execute_or_queue_command(command, &block)
|
345
|
+
end
|
346
|
+
|
347
|
+
# Updates the fields of a federation.
|
348
|
+
# @param [String] name
|
349
|
+
# Immutable. The relative resource name of the federation, of the form: projects/
|
350
|
+
# `project_number`/locations/`location_id`/federations/`federation_id``.
|
351
|
+
# @param [Google::Apis::MetastoreV1beta::Federation] federation_object
|
352
|
+
# @param [String] request_id
|
353
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
354
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
355
|
+
# requests that provide a duplicate request ID for at least 60 minutes after the
|
356
|
+
# first request.For example, if an initial request times out, followed by
|
357
|
+
# another request with the same request ID, the server ignores the second
|
358
|
+
# request to prevent the creation of duplicate commitments.The request ID must
|
359
|
+
# be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
|
360
|
+
# Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
361
|
+
# @param [String] update_mask
|
362
|
+
# Required. A field mask used to specify the fields to be overwritten in the
|
363
|
+
# metastore federation resource by the update. Fields specified in the
|
364
|
+
# update_mask are relative to the resource (not to the full request). A field is
|
365
|
+
# overwritten if it is in the mask.
|
366
|
+
# @param [String] fields
|
367
|
+
# Selector specifying which fields to include in a partial response.
|
368
|
+
# @param [String] quota_user
|
369
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
370
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
371
|
+
# @param [Google::Apis::RequestOptions] options
|
372
|
+
# Request-specific options
|
373
|
+
#
|
374
|
+
# @yield [result, err] Result & error if block supplied
|
375
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
|
376
|
+
# @yieldparam err [StandardError] error object if request failed
|
377
|
+
#
|
378
|
+
# @return [Google::Apis::MetastoreV1beta::Operation]
|
379
|
+
#
|
380
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
381
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
382
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
383
|
+
def patch_project_location_federation(name, federation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
384
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
385
|
+
command.request_representation = Google::Apis::MetastoreV1beta::Federation::Representation
|
386
|
+
command.request_object = federation_object
|
387
|
+
command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
|
388
|
+
command.response_class = Google::Apis::MetastoreV1beta::Operation
|
389
|
+
command.params['name'] = name unless name.nil?
|
390
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
391
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
execute_or_queue_command(command, &block)
|
395
|
+
end
|
396
|
+
|
397
|
+
# Sets the access control policy on the specified resource. Replaces any
|
398
|
+
# existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
|
399
|
+
# errors.
|
400
|
+
# @param [String] resource
|
401
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
402
|
+
# operation documentation for the appropriate value for this field.
|
403
|
+
# @param [Google::Apis::MetastoreV1beta::SetIamPolicyRequest] set_iam_policy_request_object
|
404
|
+
# @param [String] fields
|
405
|
+
# Selector specifying which fields to include in a partial response.
|
406
|
+
# @param [String] quota_user
|
407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
409
|
+
# @param [Google::Apis::RequestOptions] options
|
410
|
+
# Request-specific options
|
411
|
+
#
|
412
|
+
# @yield [result, err] Result & error if block supplied
|
413
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
|
414
|
+
# @yieldparam err [StandardError] error object if request failed
|
415
|
+
#
|
416
|
+
# @return [Google::Apis::MetastoreV1beta::Policy]
|
417
|
+
#
|
418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
421
|
+
def set_federation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
422
|
+
command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
|
423
|
+
command.request_representation = Google::Apis::MetastoreV1beta::SetIamPolicyRequest::Representation
|
424
|
+
command.request_object = set_iam_policy_request_object
|
425
|
+
command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
|
426
|
+
command.response_class = Google::Apis::MetastoreV1beta::Policy
|
427
|
+
command.params['resource'] = resource unless resource.nil?
|
428
|
+
command.query['fields'] = fields unless fields.nil?
|
429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
430
|
+
execute_or_queue_command(command, &block)
|
431
|
+
end
|
432
|
+
|
433
|
+
# Returns permissions that a caller has on the specified resource. If the
|
434
|
+
# resource does not exist, this will return an empty set of permissions, not a
|
435
|
+
# NOT_FOUND error.Note: This operation is designed to be used for building
|
436
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
437
|
+
# This operation may "fail open" without warning.
|
438
|
+
# @param [String] resource
|
439
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
440
|
+
# operation documentation for the appropriate value for this field.
|
441
|
+
# @param [Google::Apis::MetastoreV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
|
442
|
+
# @param [String] fields
|
443
|
+
# Selector specifying which fields to include in a partial response.
|
444
|
+
# @param [String] quota_user
|
445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
447
|
+
# @param [Google::Apis::RequestOptions] options
|
448
|
+
# Request-specific options
|
449
|
+
#
|
450
|
+
# @yield [result, err] Result & error if block supplied
|
451
|
+
# @yieldparam result [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse] parsed result object
|
452
|
+
# @yieldparam err [StandardError] error object if request failed
|
453
|
+
#
|
454
|
+
# @return [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse]
|
455
|
+
#
|
456
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
457
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
458
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
459
|
+
def test_federation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
460
|
+
command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
|
461
|
+
command.request_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsRequest::Representation
|
462
|
+
command.request_object = test_iam_permissions_request_object
|
463
|
+
command.response_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse::Representation
|
464
|
+
command.response_class = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse
|
465
|
+
command.params['resource'] = resource unless resource.nil?
|
466
|
+
command.query['fields'] = fields unless fields.nil?
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
+
execute_or_queue_command(command, &block)
|
469
|
+
end
|
470
|
+
|
126
471
|
# Deletes a long-running operation. This method indicates that the client is no
|
127
472
|
# longer interested in the operation result. It does not cancel the operation.
|
128
473
|
# If the server doesn't support this method, it returns google.rpc.Code.
|
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.
|
4
|
+
version: 0.27.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-
|
11
|
+
date: 2022-05-09 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.27.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: []
|