google-apis-metastore_v1beta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: de6fa550363242caa8ec2bb0a13af7f43b5913b8916302c394e12dc81b3bf855
4
+ data.tar.gz: 73a03efc530508f32c3e0f695479df64f7ff19f121fc30b81ce7a3ad84111e67
5
+ SHA512:
6
+ metadata.gz: e78075fd61524eede3adb1da3eaf1c09a850b0a7d9d16580635f1fa00593fd076971bd8ac1a4afd743e41e735f610004a02a45b3327ec0cce2605bed754da4c9
7
+ data.tar.gz: 853718ddaadd0dbb6928aa15ae6cf3fcc0d91cc1a58c6319da095fb591187cb1b160ecf16572b74f2d62443e8df1818ff8522e5aa1169f932e1ff571a92564b3
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-metastore_v1beta
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/metastore_v1beta/*.rb
9
+ lib/google/apis/metastore_v1beta.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-metastore_v1beta
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201212
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta of the Dataproc Metastore API
2
+
3
+ This is a simple client library for version V1beta of the Dataproc Metastore API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/metastore.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-metastore_v1beta', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-metastore_v1beta
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/metastore_v1beta"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::MetastoreV1beta::DataprocMetastoreService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Metastore service in particular.)
67
+
68
+ For reference information on specific calls in the Dataproc Metastore API, see the {Google::Apis::MetastoreV1beta::DataprocMetastoreService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-metastore_v1beta`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/dataproc-metastore/docs) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/metastore_v1beta"
@@ -0,0 +1,37 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/metastore_v1beta/service.rb'
16
+ require 'google/apis/metastore_v1beta/classes.rb'
17
+ require 'google/apis/metastore_v1beta/representations.rb'
18
+ require 'google/apis/metastore_v1beta/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Dataproc Metastore API
23
+ #
24
+ # The Dataproc Metastore API is used to manage the lifecycle and configuration
25
+ # of metastore services.
26
+ #
27
+ # @see https://cloud.google.com/dataproc-metastore/docs
28
+ module MetastoreV1beta
29
+ # Version of the Dataproc Metastore API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1151 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module MetastoreV1beta
24
+
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConfig must have one or more AuditLogConfigs.If there
28
+ # are AuditConfigs for both allServices and a specific service, the union of the
29
+ # two AuditConfigs is used for that service: the log_types specified in each
30
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
31
+ # exempted.Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
32
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
33
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
34
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
35
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
39
+ # DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::MetastoreV1beta::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ # Specifies a service that will be enabled for audit logging. For example,
49
+ # storage.googleapis.com, cloudsql.googleapis.com. allServices is a special
50
+ # value that covers all services.
51
+ # Corresponds to the JSON property `service`
52
+ # @return [String]
53
+ attr_accessor :service
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
62
+ @service = args[:service] if args.key?(:service)
63
+ end
64
+ end
65
+
66
+ # Provides the configuration for logging a type of permissions. Example: ` "
67
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
68
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
69
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
70
+ # DATA_READ logging.
71
+ class AuditLogConfig
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Specifies the identities that do not cause logging for this type of permission.
75
+ # Follows the same format of Binding.members.
76
+ # Corresponds to the JSON property `exemptedMembers`
77
+ # @return [Array<String>]
78
+ attr_accessor :exempted_members
79
+
80
+ # The log type that this config enables.
81
+ # Corresponds to the JSON property `logType`
82
+ # @return [String]
83
+ attr_accessor :log_type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
92
+ @log_type = args[:log_type] if args.key?(:log_type)
93
+ end
94
+ end
95
+
96
+ # Associates members with a role.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
101
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
102
+ # documented at https://github.com/google/cel-spec.Example (Comparison): title: "
103
+ # Summary size limit" description: "Determines if a summary is less than 100
104
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
105
+ # Requestor is owner" description: "Determines if requestor is the document
106
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
107
+ # Logic): title: "Public documents" description: "Determine whether the document
108
+ # should be publicly visible" expression: "document.type != 'private' &&
109
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
110
+ # string" description: "Create a notification string with a timestamp."
111
+ # expression: "'New message received at ' + string(document.create_time)" The
112
+ # exact variables and functions that may be referenced within an expression are
113
+ # determined by the service that evaluates it. See the service documentation for
114
+ # additional information.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::MetastoreV1beta::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the identities requesting access for a Cloud Platform resource.
120
+ # members can have the following values: allUsers: A special identifier that
121
+ # represents anyone who is on the internet; with or without a Google account.
122
+ # allAuthenticatedUsers: A special identifier that represents anyone who is
123
+ # authenticated with a Google account or a service account. user:`emailid`: An
124
+ # email address that represents a specific Google account. For example, alice@
125
+ # example.com . serviceAccount:`emailid`: An email address that represents a
126
+ # service account. For example, my-other-app@appspot.gserviceaccount.com. group:`
127
+ # emailid`: An email address that represents a Google group. For example, admins@
128
+ # example.com. deleted:user:`emailid`?uid=`uniqueid`: An email address (plus
129
+ # unique identifier) representing a user that has been recently deleted. For
130
+ # example, alice@example.com?uid=123456789012345678901. If the user is recovered,
131
+ # this value reverts to user:`emailid` and the recovered user retains the role
132
+ # in the binding. deleted:serviceAccount:`emailid`?uid=`uniqueid`: An email
133
+ # address (plus unique identifier) representing a service account that has been
134
+ # recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=
135
+ # 123456789012345678901. If the service account is undeleted, this value reverts
136
+ # to serviceAccount:`emailid` and the undeleted service account retains the role
137
+ # in the binding. deleted:group:`emailid`?uid=`uniqueid`: An email address (plus
138
+ # unique identifier) representing a Google group that has been recently deleted.
139
+ # For example, admins@example.com?uid=123456789012345678901. If the group is
140
+ # recovered, this value reverts to group:`emailid` and the recovered group
141
+ # retains the role in the binding. domain:`domain`: The G Suite domain (primary)
142
+ # that represents all the users of that domain. For example, google.com or
143
+ # example.com.
144
+ # Corresponds to the JSON property `members`
145
+ # @return [Array<String>]
146
+ attr_accessor :members
147
+
148
+ # Role that is assigned to members. For example, roles/viewer, roles/editor, or
149
+ # roles/owner.
150
+ # Corresponds to the JSON property `role`
151
+ # @return [String]
152
+ attr_accessor :role
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @condition = args[:condition] if args.key?(:condition)
161
+ @members = args[:members] if args.key?(:members)
162
+ @role = args[:role] if args.key?(:role)
163
+ end
164
+ end
165
+
166
+ # A specification of the location of and metadata about a database dump from a
167
+ # relational database management system.
168
+ class DatabaseDump
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The type of the database.
172
+ # Corresponds to the JSON property `databaseType`
173
+ # @return [String]
174
+ attr_accessor :database_type
175
+
176
+ # A Cloud Storage object URI that specifies the source from which to import
177
+ # metadata. It must begin with gs://.
178
+ # Corresponds to the JSON property `gcsUri`
179
+ # @return [String]
180
+ attr_accessor :gcs_uri
181
+
182
+ # The name of the source database.
183
+ # Corresponds to the JSON property `sourceDatabase`
184
+ # @return [String]
185
+ attr_accessor :source_database
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @database_type = args[:database_type] if args.key?(:database_type)
194
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
195
+ @source_database = args[:source_database] if args.key?(:source_database)
196
+ end
197
+ end
198
+
199
+ # A generic empty message that you can re-use to avoid defining duplicated empty
200
+ # messages in your APIs. A typical example is to use it as the request or the
201
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
202
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
203
+ # Empty is empty JSON object ``.
204
+ class Empty
205
+ include Google::Apis::Core::Hashable
206
+
207
+ def initialize(**args)
208
+ update!(**args)
209
+ end
210
+
211
+ # Update properties of this object
212
+ def update!(**args)
213
+ end
214
+ end
215
+
216
+ # Request message for DataprocMetastore.ExportMetadata.
217
+ class ExportMetadataRequest
218
+ include Google::Apis::Core::Hashable
219
+
220
+ # Required. A Cloud Storage URI of a folder that metadata are exported to, in
221
+ # the format gs:///. A sub-folder containing exported files will be created
222
+ # below it.
223
+ # Corresponds to the JSON property `destinationGcsFolder`
224
+ # @return [String]
225
+ attr_accessor :destination_gcs_folder
226
+
227
+ # Optional. A request ID. Specify a unique request ID to allow the server to
228
+ # ignore the request if it has completed. The server will ignore subsequent
229
+ # requests that provide a duplicate request ID for at least 60 minutes after the
230
+ # first request.For example, if an initial request times out, followed by
231
+ # another request with the same request ID, the server ignores the second
232
+ # request to prevent the creation of duplicate commitments.The request ID must
233
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
234
+ # Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
235
+ # Corresponds to the JSON property `requestId`
236
+ # @return [String]
237
+ attr_accessor :request_id
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @destination_gcs_folder = args[:destination_gcs_folder] if args.key?(:destination_gcs_folder)
246
+ @request_id = args[:request_id] if args.key?(:request_id)
247
+ end
248
+ end
249
+
250
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
251
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
252
+ # documented at https://github.com/google/cel-spec.Example (Comparison): title: "
253
+ # Summary size limit" description: "Determines if a summary is less than 100
254
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
255
+ # Requestor is owner" description: "Determines if requestor is the document
256
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
257
+ # Logic): title: "Public documents" description: "Determine whether the document
258
+ # should be publicly visible" expression: "document.type != 'private' &&
259
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
260
+ # string" description: "Create a notification string with a timestamp."
261
+ # expression: "'New message received at ' + string(document.create_time)" The
262
+ # exact variables and functions that may be referenced within an expression are
263
+ # determined by the service that evaluates it. See the service documentation for
264
+ # additional information.
265
+ class Expr
266
+ include Google::Apis::Core::Hashable
267
+
268
+ # Optional. Description of the expression. This is a longer text which describes
269
+ # the expression, e.g. when hovered over it in a UI.
270
+ # Corresponds to the JSON property `description`
271
+ # @return [String]
272
+ attr_accessor :description
273
+
274
+ # Textual representation of an expression in Common Expression Language syntax.
275
+ # Corresponds to the JSON property `expression`
276
+ # @return [String]
277
+ attr_accessor :expression
278
+
279
+ # Optional. String indicating the location of the expression for error reporting,
280
+ # e.g. a file name and a position in the file.
281
+ # Corresponds to the JSON property `location`
282
+ # @return [String]
283
+ attr_accessor :location
284
+
285
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
286
+ # This can be used e.g. in UIs which allow to enter the expression.
287
+ # Corresponds to the JSON property `title`
288
+ # @return [String]
289
+ attr_accessor :title
290
+
291
+ def initialize(**args)
292
+ update!(**args)
293
+ end
294
+
295
+ # Update properties of this object
296
+ def update!(**args)
297
+ @description = args[:description] if args.key?(:description)
298
+ @expression = args[:expression] if args.key?(:expression)
299
+ @location = args[:location] if args.key?(:location)
300
+ @title = args[:title] if args.key?(:title)
301
+ end
302
+ end
303
+
304
+ # Specifies configuration information specific to running Hive metastore
305
+ # software as the metastore service.
306
+ class HiveMetastoreConfig
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # A mapping of Hive metastore configuration key-value pairs to apply to the Hive
310
+ # metastore (configured in hive-site.xml). The mappings override system defaults
311
+ # (some keys cannot be overridden).
312
+ # Corresponds to the JSON property `configOverrides`
313
+ # @return [Hash<String,String>]
314
+ attr_accessor :config_overrides
315
+
316
+ # Configuration information for a Kerberos principal.
317
+ # Corresponds to the JSON property `kerberosConfig`
318
+ # @return [Google::Apis::MetastoreV1beta::KerberosConfig]
319
+ attr_accessor :kerberos_config
320
+
321
+ # Immutable. The Hive metastore schema version.
322
+ # Corresponds to the JSON property `version`
323
+ # @return [String]
324
+ attr_accessor :version
325
+
326
+ def initialize(**args)
327
+ update!(**args)
328
+ end
329
+
330
+ # Update properties of this object
331
+ def update!(**args)
332
+ @config_overrides = args[:config_overrides] if args.key?(:config_overrides)
333
+ @kerberos_config = args[:kerberos_config] if args.key?(:kerberos_config)
334
+ @version = args[:version] if args.key?(:version)
335
+ end
336
+ end
337
+
338
+ # A specification of a supported version of the Hive Metastore software.
339
+ class HiveMetastoreVersion
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Whether version will be chosen by the server if a metastore service is created
343
+ # with a HiveMetastoreConfig that omits the version.
344
+ # Corresponds to the JSON property `isDefault`
345
+ # @return [Boolean]
346
+ attr_accessor :is_default
347
+ alias_method :is_default?, :is_default
348
+
349
+ # The semantic version of the Hive Metastore software.
350
+ # Corresponds to the JSON property `version`
351
+ # @return [String]
352
+ attr_accessor :version
353
+
354
+ def initialize(**args)
355
+ update!(**args)
356
+ end
357
+
358
+ # Update properties of this object
359
+ def update!(**args)
360
+ @is_default = args[:is_default] if args.key?(:is_default)
361
+ @version = args[:version] if args.key?(:version)
362
+ end
363
+ end
364
+
365
+ # Configuration information for a Kerberos principal.
366
+ class KerberosConfig
367
+ include Google::Apis::Core::Hashable
368
+
369
+ # A securely stored value.
370
+ # Corresponds to the JSON property `keytab`
371
+ # @return [Google::Apis::MetastoreV1beta::Secret]
372
+ attr_accessor :keytab
373
+
374
+ # A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the
375
+ # form gs://`bucket_name`/path/to/krb5.conf, although the file does not need to
376
+ # be named krb5.conf explicitly.
377
+ # Corresponds to the JSON property `krb5ConfigGcsUri`
378
+ # @return [String]
379
+ attr_accessor :krb5_config_gcs_uri
380
+
381
+ # A Kerberos principal that exists in the both the keytab the KDC to
382
+ # authenticate as. A typical principal is of the form "primary/instance@REALM",
383
+ # but there is no exact format.
384
+ # Corresponds to the JSON property `principal`
385
+ # @return [String]
386
+ attr_accessor :principal
387
+
388
+ def initialize(**args)
389
+ update!(**args)
390
+ end
391
+
392
+ # Update properties of this object
393
+ def update!(**args)
394
+ @keytab = args[:keytab] if args.key?(:keytab)
395
+ @krb5_config_gcs_uri = args[:krb5_config_gcs_uri] if args.key?(:krb5_config_gcs_uri)
396
+ @principal = args[:principal] if args.key?(:principal)
397
+ end
398
+ end
399
+
400
+ # The response message for Locations.ListLocations.
401
+ class ListLocationsResponse
402
+ include Google::Apis::Core::Hashable
403
+
404
+ # A list of locations that matches the specified filter in the request.
405
+ # Corresponds to the JSON property `locations`
406
+ # @return [Array<Google::Apis::MetastoreV1beta::Location>]
407
+ attr_accessor :locations
408
+
409
+ # The standard List next-page token.
410
+ # Corresponds to the JSON property `nextPageToken`
411
+ # @return [String]
412
+ attr_accessor :next_page_token
413
+
414
+ def initialize(**args)
415
+ update!(**args)
416
+ end
417
+
418
+ # Update properties of this object
419
+ def update!(**args)
420
+ @locations = args[:locations] if args.key?(:locations)
421
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
422
+ end
423
+ end
424
+
425
+ # Response message for DataprocMetastore.ListMetadataImports.
426
+ class ListMetadataImportsResponse
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # The imports in the specified service.
430
+ # Corresponds to the JSON property `metadataImports`
431
+ # @return [Array<Google::Apis::MetastoreV1beta::MetadataImport>]
432
+ attr_accessor :metadata_imports
433
+
434
+ # A token that can be sent as page_token to retrieve the next page. If this
435
+ # field is omitted, there are no subsequent pages.
436
+ # Corresponds to the JSON property `nextPageToken`
437
+ # @return [String]
438
+ attr_accessor :next_page_token
439
+
440
+ # Locations that could not be reached.
441
+ # Corresponds to the JSON property `unreachable`
442
+ # @return [Array<String>]
443
+ attr_accessor :unreachable
444
+
445
+ def initialize(**args)
446
+ update!(**args)
447
+ end
448
+
449
+ # Update properties of this object
450
+ def update!(**args)
451
+ @metadata_imports = args[:metadata_imports] if args.key?(:metadata_imports)
452
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
453
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
454
+ end
455
+ end
456
+
457
+ # The response message for Operations.ListOperations.
458
+ class ListOperationsResponse
459
+ include Google::Apis::Core::Hashable
460
+
461
+ # The standard List next-page token.
462
+ # Corresponds to the JSON property `nextPageToken`
463
+ # @return [String]
464
+ attr_accessor :next_page_token
465
+
466
+ # A list of operations that matches the specified filter in the request.
467
+ # Corresponds to the JSON property `operations`
468
+ # @return [Array<Google::Apis::MetastoreV1beta::Operation>]
469
+ attr_accessor :operations
470
+
471
+ def initialize(**args)
472
+ update!(**args)
473
+ end
474
+
475
+ # Update properties of this object
476
+ def update!(**args)
477
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
478
+ @operations = args[:operations] if args.key?(:operations)
479
+ end
480
+ end
481
+
482
+ # Response message for DataprocMetastore.ListServices.
483
+ class ListServicesResponse
484
+ include Google::Apis::Core::Hashable
485
+
486
+ # A token that can be sent as page_token to retrieve the next page. If this
487
+ # field is omitted, there are no subsequent pages.
488
+ # Corresponds to the JSON property `nextPageToken`
489
+ # @return [String]
490
+ attr_accessor :next_page_token
491
+
492
+ # The services in the specified location.
493
+ # Corresponds to the JSON property `services`
494
+ # @return [Array<Google::Apis::MetastoreV1beta::Service>]
495
+ attr_accessor :services
496
+
497
+ # Locations that could not be reached.
498
+ # Corresponds to the JSON property `unreachable`
499
+ # @return [Array<String>]
500
+ attr_accessor :unreachable
501
+
502
+ def initialize(**args)
503
+ update!(**args)
504
+ end
505
+
506
+ # Update properties of this object
507
+ def update!(**args)
508
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
509
+ @services = args[:services] if args.key?(:services)
510
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
511
+ end
512
+ end
513
+
514
+ # A resource that represents Google Cloud Platform location.
515
+ class Location
516
+ include Google::Apis::Core::Hashable
517
+
518
+ # The friendly name for this location, typically a nearby city name. For example,
519
+ # "Tokyo".
520
+ # Corresponds to the JSON property `displayName`
521
+ # @return [String]
522
+ attr_accessor :display_name
523
+
524
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
525
+ # region": "us-east1"`
526
+ # Corresponds to the JSON property `labels`
527
+ # @return [Hash<String,String>]
528
+ attr_accessor :labels
529
+
530
+ # The canonical id for this location. For example: "us-east1".
531
+ # Corresponds to the JSON property `locationId`
532
+ # @return [String]
533
+ attr_accessor :location_id
534
+
535
+ # Service-specific metadata. For example the available capacity at the given
536
+ # location.
537
+ # Corresponds to the JSON property `metadata`
538
+ # @return [Hash<String,Object>]
539
+ attr_accessor :metadata
540
+
541
+ # Resource name for the location, which may vary between implementations. For
542
+ # example: "projects/example-project/locations/us-east1"
543
+ # Corresponds to the JSON property `name`
544
+ # @return [String]
545
+ attr_accessor :name
546
+
547
+ def initialize(**args)
548
+ update!(**args)
549
+ end
550
+
551
+ # Update properties of this object
552
+ def update!(**args)
553
+ @display_name = args[:display_name] if args.key?(:display_name)
554
+ @labels = args[:labels] if args.key?(:labels)
555
+ @location_id = args[:location_id] if args.key?(:location_id)
556
+ @metadata = args[:metadata] if args.key?(:metadata)
557
+ @name = args[:name] if args.key?(:name)
558
+ end
559
+ end
560
+
561
+ # Metadata about the service in a location.
562
+ class LocationMetadata
563
+ include Google::Apis::Core::Hashable
564
+
565
+ # The versions of Hive Metastore that can be used when creating a new metastore
566
+ # service in this location. The server guarantees that exactly one
567
+ # HiveMetastoreVersion in the list will set is_default.
568
+ # Corresponds to the JSON property `supportedHiveMetastoreVersions`
569
+ # @return [Array<Google::Apis::MetastoreV1beta::HiveMetastoreVersion>]
570
+ attr_accessor :supported_hive_metastore_versions
571
+
572
+ def initialize(**args)
573
+ update!(**args)
574
+ end
575
+
576
+ # Update properties of this object
577
+ def update!(**args)
578
+ @supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
579
+ end
580
+ end
581
+
582
+ # Maintenance window. This specifies when Dataproc Metastore may perform system
583
+ # maintenance operation to the service.
584
+ class MaintenanceWindow
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # The day of week, when the window starts.
588
+ # Corresponds to the JSON property `dayOfWeek`
589
+ # @return [String]
590
+ attr_accessor :day_of_week
591
+
592
+ # The hour of day (0-23) when the window starts.
593
+ # Corresponds to the JSON property `hourOfDay`
594
+ # @return [Fixnum]
595
+ attr_accessor :hour_of_day
596
+
597
+ def initialize(**args)
598
+ update!(**args)
599
+ end
600
+
601
+ # Update properties of this object
602
+ def update!(**args)
603
+ @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
604
+ @hour_of_day = args[:hour_of_day] if args.key?(:hour_of_day)
605
+ end
606
+ end
607
+
608
+ # The details of a metadata export operation.
609
+ class MetadataExport
610
+ include Google::Apis::Core::Hashable
611
+
612
+ # Output only. A Cloud Storage URI of a folder that metadata are exported to, in
613
+ # the form of gs:////, where ` is automatically generated.
614
+ # Corresponds to the JSON property `destinationGcsUri`
615
+ # @return [String]
616
+ attr_accessor :destination_gcs_uri
617
+
618
+ # Output only. The time when the export ended.
619
+ # Corresponds to the JSON property `endTime`
620
+ # @return [String]
621
+ attr_accessor :end_time
622
+
623
+ # Output only. The time when the export started.
624
+ # Corresponds to the JSON property `startTime`
625
+ # @return [String]
626
+ attr_accessor :start_time
627
+
628
+ # Output only. The current state of the export.
629
+ # Corresponds to the JSON property `state`
630
+ # @return [String]
631
+ attr_accessor :state
632
+
633
+ def initialize(**args)
634
+ update!(**args)
635
+ end
636
+
637
+ # Update properties of this object
638
+ def update!(**args)
639
+ @destination_gcs_uri = args[:destination_gcs_uri] if args.key?(:destination_gcs_uri)
640
+ @end_time = args[:end_time] if args.key?(:end_time)
641
+ @start_time = args[:start_time] if args.key?(:start_time)
642
+ @state = args[:state] if args.key?(:state)
643
+ end
644
+ end
645
+
646
+ # A metastore resource that imports metadata.
647
+ class MetadataImport
648
+ include Google::Apis::Core::Hashable
649
+
650
+ # Output only. The time when the metadata import was created.
651
+ # Corresponds to the JSON property `createTime`
652
+ # @return [String]
653
+ attr_accessor :create_time
654
+
655
+ # A specification of the location of and metadata about a database dump from a
656
+ # relational database management system.
657
+ # Corresponds to the JSON property `databaseDump`
658
+ # @return [Google::Apis::MetastoreV1beta::DatabaseDump]
659
+ attr_accessor :database_dump
660
+
661
+ # The description of the metadata import.
662
+ # Corresponds to the JSON property `description`
663
+ # @return [String]
664
+ attr_accessor :description
665
+
666
+ # Immutable. The relative resource name of the metadata import, of the form:"
667
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
668
+ # metadataImports/`metadata_import_id`".
669
+ # Corresponds to the JSON property `name`
670
+ # @return [String]
671
+ attr_accessor :name
672
+
673
+ # Output only. The current state of the metadata import.
674
+ # Corresponds to the JSON property `state`
675
+ # @return [String]
676
+ attr_accessor :state
677
+
678
+ # Output only. The time when the metadata import was last updated.
679
+ # Corresponds to the JSON property `updateTime`
680
+ # @return [String]
681
+ attr_accessor :update_time
682
+
683
+ def initialize(**args)
684
+ update!(**args)
685
+ end
686
+
687
+ # Update properties of this object
688
+ def update!(**args)
689
+ @create_time = args[:create_time] if args.key?(:create_time)
690
+ @database_dump = args[:database_dump] if args.key?(:database_dump)
691
+ @description = args[:description] if args.key?(:description)
692
+ @name = args[:name] if args.key?(:name)
693
+ @state = args[:state] if args.key?(:state)
694
+ @update_time = args[:update_time] if args.key?(:update_time)
695
+ end
696
+ end
697
+
698
+ # Specifies how metastore metadata should be integrated with external services.
699
+ class MetadataIntegration
700
+ include Google::Apis::Core::Hashable
701
+
702
+ def initialize(**args)
703
+ update!(**args)
704
+ end
705
+
706
+ # Update properties of this object
707
+ def update!(**args)
708
+ end
709
+ end
710
+
711
+ # The metadata management activities of the metastore service.
712
+ class MetadataManagementActivity
713
+ include Google::Apis::Core::Hashable
714
+
715
+ # Output only. The latest metadata exports of the metastore service.
716
+ # Corresponds to the JSON property `metadataExports`
717
+ # @return [Array<Google::Apis::MetastoreV1beta::MetadataExport>]
718
+ attr_accessor :metadata_exports
719
+
720
+ def initialize(**args)
721
+ update!(**args)
722
+ end
723
+
724
+ # Update properties of this object
725
+ def update!(**args)
726
+ @metadata_exports = args[:metadata_exports] if args.key?(:metadata_exports)
727
+ end
728
+ end
729
+
730
+ # This resource represents a long-running operation that is the result of a
731
+ # network API call.
732
+ class Operation
733
+ include Google::Apis::Core::Hashable
734
+
735
+ # If the value is false, it means the operation is still in progress. If true,
736
+ # the operation is completed, and either error or response is available.
737
+ # Corresponds to the JSON property `done`
738
+ # @return [Boolean]
739
+ attr_accessor :done
740
+ alias_method :done?, :done
741
+
742
+ # The Status type defines a logical error model that is suitable for different
743
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
744
+ # (https://github.com/grpc). Each Status message contains three pieces of data:
745
+ # error code, error message, and error details.You can find out more about this
746
+ # error model and how to work with it in the API Design Guide (https://cloud.
747
+ # google.com/apis/design/errors).
748
+ # Corresponds to the JSON property `error`
749
+ # @return [Google::Apis::MetastoreV1beta::Status]
750
+ attr_accessor :error
751
+
752
+ # Service-specific metadata associated with the operation. It typically contains
753
+ # progress information and common metadata such as create time. Some services
754
+ # might not provide such metadata. Any method that returns a long-running
755
+ # operation should document the metadata type, if any.
756
+ # Corresponds to the JSON property `metadata`
757
+ # @return [Hash<String,Object>]
758
+ attr_accessor :metadata
759
+
760
+ # The server-assigned name, which is only unique within the same service that
761
+ # originally returns it. If you use the default HTTP mapping, the name should be
762
+ # a resource name ending with operations/`unique_id`.
763
+ # Corresponds to the JSON property `name`
764
+ # @return [String]
765
+ attr_accessor :name
766
+
767
+ # The normal response of the operation in case of success. If the original
768
+ # method returns no data on success, such as Delete, the response is google.
769
+ # protobuf.Empty. If the original method is standard Get/Create/Update, the
770
+ # response should be the resource. For other methods, the response should have
771
+ # the type XxxResponse, where Xxx is the original method name. For example, if
772
+ # the original method name is TakeSnapshot(), the inferred response type is
773
+ # TakeSnapshotResponse.
774
+ # Corresponds to the JSON property `response`
775
+ # @return [Hash<String,Object>]
776
+ attr_accessor :response
777
+
778
+ def initialize(**args)
779
+ update!(**args)
780
+ end
781
+
782
+ # Update properties of this object
783
+ def update!(**args)
784
+ @done = args[:done] if args.key?(:done)
785
+ @error = args[:error] if args.key?(:error)
786
+ @metadata = args[:metadata] if args.key?(:metadata)
787
+ @name = args[:name] if args.key?(:name)
788
+ @response = args[:response] if args.key?(:response)
789
+ end
790
+ end
791
+
792
+ # An Identity and Access Management (IAM) policy, which specifies access
793
+ # controls for Google Cloud resources.A Policy is a collection of bindings. A
794
+ # binding binds one or more members to a single role. Members can be user
795
+ # accounts, service accounts, Google groups, and domains (such as G Suite). A
796
+ # role is a named list of permissions; each role can be an IAM predefined role
797
+ # or a user-created custom role.For some types of Google Cloud resources, a
798
+ # binding can also specify a condition, which is a logical expression that
799
+ # allows access to a resource only if the expression evaluates to true. A
800
+ # condition can add constraints based on attributes of the request, the resource,
801
+ # or both. To learn which resources support conditions in their IAM policies,
802
+ # see the IAM documentation (https://cloud.google.com/iam/help/conditions/
803
+ # resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
804
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
805
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
806
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
807
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
808
+ # title": "expirable access", "description": "Does not grant access after Sep
809
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
810
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` YAML example: bindings: - members:
811
+ # - user:mike@example.com - group:admins@example.com - domain:google.com -
812
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
813
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
814
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
815
+ # description: Does not grant access after Sep 2020 expression: request.time <
816
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
817
+ # description of IAM and its features, see the IAM documentation (https://cloud.
818
+ # google.com/iam/docs/).
819
+ class Policy
820
+ include Google::Apis::Core::Hashable
821
+
822
+ # Specifies cloud audit logging configuration for this policy.
823
+ # Corresponds to the JSON property `auditConfigs`
824
+ # @return [Array<Google::Apis::MetastoreV1beta::AuditConfig>]
825
+ attr_accessor :audit_configs
826
+
827
+ # Associates a list of members to a role. Optionally, may specify a condition
828
+ # that determines how and when the bindings are applied. Each of the bindings
829
+ # must contain at least one member.
830
+ # Corresponds to the JSON property `bindings`
831
+ # @return [Array<Google::Apis::MetastoreV1beta::Binding>]
832
+ attr_accessor :bindings
833
+
834
+ # etag is used for optimistic concurrency control as a way to help prevent
835
+ # simultaneous updates of a policy from overwriting each other. It is strongly
836
+ # suggested that systems make use of the etag in the read-modify-write cycle to
837
+ # perform policy updates in order to avoid race conditions: An etag is returned
838
+ # in the response to getIamPolicy, and systems are expected to put that etag in
839
+ # the request to setIamPolicy to ensure that their change will be applied to the
840
+ # same version of the policy.Important: If you use IAM Conditions, you must
841
+ # include the etag field whenever you call setIamPolicy. If you omit this field,
842
+ # then IAM allows you to overwrite a version 3 policy with a version 1 policy,
843
+ # and all of the conditions in the version 3 policy are lost.
844
+ # Corresponds to the JSON property `etag`
845
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
846
+ # @return [String]
847
+ attr_accessor :etag
848
+
849
+ # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that
850
+ # specify an invalid value are rejected.Any operation that affects conditional
851
+ # role bindings must specify version 3. This requirement applies to the
852
+ # following operations: Getting a policy that includes a conditional role
853
+ # binding Adding a conditional role binding to a policy Changing a conditional
854
+ # role binding in a policy Removing any role binding, with or without a
855
+ # condition, from a policy that includes conditionsImportant: If you use IAM
856
+ # Conditions, you must include the etag field whenever you call setIamPolicy. If
857
+ # you omit this field, then IAM allows you to overwrite a version 3 policy with
858
+ # a version 1 policy, and all of the conditions in the version 3 policy are lost.
859
+ # If a policy does not include any conditions, operations on that policy may
860
+ # specify any valid version or leave the field unset.To learn which resources
861
+ # support conditions in their IAM policies, see the IAM documentation (https://
862
+ # cloud.google.com/iam/help/conditions/resource-policies).
863
+ # Corresponds to the JSON property `version`
864
+ # @return [Fixnum]
865
+ attr_accessor :version
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
874
+ @bindings = args[:bindings] if args.key?(:bindings)
875
+ @etag = args[:etag] if args.key?(:etag)
876
+ @version = args[:version] if args.key?(:version)
877
+ end
878
+ end
879
+
880
+ # A securely stored value.
881
+ class Secret
882
+ include Google::Apis::Core::Hashable
883
+
884
+ # The relative resource name of a Secret Manager secret version, in the
885
+ # following form:"projects/`project_number`/secrets/`secret_id`/versions/`
886
+ # version_id`".
887
+ # Corresponds to the JSON property `cloudSecret`
888
+ # @return [String]
889
+ attr_accessor :cloud_secret
890
+
891
+ def initialize(**args)
892
+ update!(**args)
893
+ end
894
+
895
+ # Update properties of this object
896
+ def update!(**args)
897
+ @cloud_secret = args[:cloud_secret] if args.key?(:cloud_secret)
898
+ end
899
+ end
900
+
901
+ # A managed metastore service that serves metadata queries.
902
+ class Service
903
+ include Google::Apis::Core::Hashable
904
+
905
+ # Output only. A Cloud Storage URI (starting with gs://) that specifies where
906
+ # artifacts related to the metastore service are stored.
907
+ # Corresponds to the JSON property `artifactGcsUri`
908
+ # @return [String]
909
+ attr_accessor :artifact_gcs_uri
910
+
911
+ # Output only. The time when the metastore service was created.
912
+ # Corresponds to the JSON property `createTime`
913
+ # @return [String]
914
+ attr_accessor :create_time
915
+
916
+ # Output only. The URI of the endpoint used to access the metastore service.
917
+ # Corresponds to the JSON property `endpointUri`
918
+ # @return [String]
919
+ attr_accessor :endpoint_uri
920
+
921
+ # Specifies configuration information specific to running Hive metastore
922
+ # software as the metastore service.
923
+ # Corresponds to the JSON property `hiveMetastoreConfig`
924
+ # @return [Google::Apis::MetastoreV1beta::HiveMetastoreConfig]
925
+ attr_accessor :hive_metastore_config
926
+
927
+ # User-defined labels for the metastore service.
928
+ # Corresponds to the JSON property `labels`
929
+ # @return [Hash<String,String>]
930
+ attr_accessor :labels
931
+
932
+ # Maintenance window. This specifies when Dataproc Metastore may perform system
933
+ # maintenance operation to the service.
934
+ # Corresponds to the JSON property `maintenanceWindow`
935
+ # @return [Google::Apis::MetastoreV1beta::MaintenanceWindow]
936
+ attr_accessor :maintenance_window
937
+
938
+ # Specifies how metastore metadata should be integrated with external services.
939
+ # Corresponds to the JSON property `metadataIntegration`
940
+ # @return [Google::Apis::MetastoreV1beta::MetadataIntegration]
941
+ attr_accessor :metadata_integration
942
+
943
+ # The metadata management activities of the metastore service.
944
+ # Corresponds to the JSON property `metadataManagementActivity`
945
+ # @return [Google::Apis::MetastoreV1beta::MetadataManagementActivity]
946
+ attr_accessor :metadata_management_activity
947
+
948
+ # Immutable. The relative resource name of the metastore service, of the form:"
949
+ # projects/`project_number`/locations/`location_id`/services/`service_id`".
950
+ # Corresponds to the JSON property `name`
951
+ # @return [String]
952
+ attr_accessor :name
953
+
954
+ # Immutable. The relative resource name of the VPC network on which the instance
955
+ # can be accessed. The network must belong to the same project as the metastore
956
+ # instance. It is specified in the following form:"projects/`project_number`/
957
+ # global/networks/`network_id`".
958
+ # Corresponds to the JSON property `network`
959
+ # @return [String]
960
+ attr_accessor :network
961
+
962
+ # The TCP port at which the metastore service is reached. Default: 9083.
963
+ # Corresponds to the JSON property `port`
964
+ # @return [Fixnum]
965
+ attr_accessor :port
966
+
967
+ # Output only. The current state of the metastore service.
968
+ # Corresponds to the JSON property `state`
969
+ # @return [String]
970
+ attr_accessor :state
971
+
972
+ # Output only. Additional information about the current state of the metastore
973
+ # service, if available.
974
+ # Corresponds to the JSON property `stateMessage`
975
+ # @return [String]
976
+ attr_accessor :state_message
977
+
978
+ # The tier of the service.
979
+ # Corresponds to the JSON property `tier`
980
+ # @return [String]
981
+ attr_accessor :tier
982
+
983
+ # Output only. The globally unique resource identifier of the metastore service.
984
+ # Corresponds to the JSON property `uid`
985
+ # @return [String]
986
+ attr_accessor :uid
987
+
988
+ # Output only. The time when the metastore service was last updated.
989
+ # Corresponds to the JSON property `updateTime`
990
+ # @return [String]
991
+ attr_accessor :update_time
992
+
993
+ def initialize(**args)
994
+ update!(**args)
995
+ end
996
+
997
+ # Update properties of this object
998
+ def update!(**args)
999
+ @artifact_gcs_uri = args[:artifact_gcs_uri] if args.key?(:artifact_gcs_uri)
1000
+ @create_time = args[:create_time] if args.key?(:create_time)
1001
+ @endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
1002
+ @hive_metastore_config = args[:hive_metastore_config] if args.key?(:hive_metastore_config)
1003
+ @labels = args[:labels] if args.key?(:labels)
1004
+ @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
1005
+ @metadata_integration = args[:metadata_integration] if args.key?(:metadata_integration)
1006
+ @metadata_management_activity = args[:metadata_management_activity] if args.key?(:metadata_management_activity)
1007
+ @name = args[:name] if args.key?(:name)
1008
+ @network = args[:network] if args.key?(:network)
1009
+ @port = args[:port] if args.key?(:port)
1010
+ @state = args[:state] if args.key?(:state)
1011
+ @state_message = args[:state_message] if args.key?(:state_message)
1012
+ @tier = args[:tier] if args.key?(:tier)
1013
+ @uid = args[:uid] if args.key?(:uid)
1014
+ @update_time = args[:update_time] if args.key?(:update_time)
1015
+ end
1016
+ end
1017
+
1018
+ # Request message for SetIamPolicy method.
1019
+ class SetIamPolicyRequest
1020
+ include Google::Apis::Core::Hashable
1021
+
1022
+ # An Identity and Access Management (IAM) policy, which specifies access
1023
+ # controls for Google Cloud resources.A Policy is a collection of bindings. A
1024
+ # binding binds one or more members to a single role. Members can be user
1025
+ # accounts, service accounts, Google groups, and domains (such as G Suite). A
1026
+ # role is a named list of permissions; each role can be an IAM predefined role
1027
+ # or a user-created custom role.For some types of Google Cloud resources, a
1028
+ # binding can also specify a condition, which is a logical expression that
1029
+ # allows access to a resource only if the expression evaluates to true. A
1030
+ # condition can add constraints based on attributes of the request, the resource,
1031
+ # or both. To learn which resources support conditions in their IAM policies,
1032
+ # see the IAM documentation (https://cloud.google.com/iam/help/conditions/
1033
+ # resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
1034
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1035
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1036
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1037
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1038
+ # title": "expirable access", "description": "Does not grant access after Sep
1039
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1040
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` YAML example: bindings: - members:
1041
+ # - user:mike@example.com - group:admins@example.com - domain:google.com -
1042
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1043
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1044
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1045
+ # description: Does not grant access after Sep 2020 expression: request.time <
1046
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1047
+ # description of IAM and its features, see the IAM documentation (https://cloud.
1048
+ # google.com/iam/docs/).
1049
+ # Corresponds to the JSON property `policy`
1050
+ # @return [Google::Apis::MetastoreV1beta::Policy]
1051
+ attr_accessor :policy
1052
+
1053
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1054
+ # the fields in the mask will be modified. If no mask is provided, the following
1055
+ # default mask is used:paths: "bindings, etag"
1056
+ # Corresponds to the JSON property `updateMask`
1057
+ # @return [String]
1058
+ attr_accessor :update_mask
1059
+
1060
+ def initialize(**args)
1061
+ update!(**args)
1062
+ end
1063
+
1064
+ # Update properties of this object
1065
+ def update!(**args)
1066
+ @policy = args[:policy] if args.key?(:policy)
1067
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1068
+ end
1069
+ end
1070
+
1071
+ # The Status type defines a logical error model that is suitable for different
1072
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1073
+ # (https://github.com/grpc). Each Status message contains three pieces of data:
1074
+ # error code, error message, and error details.You can find out more about this
1075
+ # error model and how to work with it in the API Design Guide (https://cloud.
1076
+ # google.com/apis/design/errors).
1077
+ class Status
1078
+ include Google::Apis::Core::Hashable
1079
+
1080
+ # The status code, which should be an enum value of google.rpc.Code.
1081
+ # Corresponds to the JSON property `code`
1082
+ # @return [Fixnum]
1083
+ attr_accessor :code
1084
+
1085
+ # A list of messages that carry the error details. There is a common set of
1086
+ # message types for APIs to use.
1087
+ # Corresponds to the JSON property `details`
1088
+ # @return [Array<Hash<String,Object>>]
1089
+ attr_accessor :details
1090
+
1091
+ # A developer-facing error message, which should be in English. Any user-facing
1092
+ # error message should be localized and sent in the google.rpc.Status.details
1093
+ # field, or localized by the client.
1094
+ # Corresponds to the JSON property `message`
1095
+ # @return [String]
1096
+ attr_accessor :message
1097
+
1098
+ def initialize(**args)
1099
+ update!(**args)
1100
+ end
1101
+
1102
+ # Update properties of this object
1103
+ def update!(**args)
1104
+ @code = args[:code] if args.key?(:code)
1105
+ @details = args[:details] if args.key?(:details)
1106
+ @message = args[:message] if args.key?(:message)
1107
+ end
1108
+ end
1109
+
1110
+ # Request message for TestIamPermissions method.
1111
+ class TestIamPermissionsRequest
1112
+ include Google::Apis::Core::Hashable
1113
+
1114
+ # The set of permissions to check for the resource. Permissions with wildcards (
1115
+ # such as '*' or 'storage.*') are not allowed. For more information see IAM
1116
+ # Overview (https://cloud.google.com/iam/docs/overview#permissions).
1117
+ # Corresponds to the JSON property `permissions`
1118
+ # @return [Array<String>]
1119
+ attr_accessor :permissions
1120
+
1121
+ def initialize(**args)
1122
+ update!(**args)
1123
+ end
1124
+
1125
+ # Update properties of this object
1126
+ def update!(**args)
1127
+ @permissions = args[:permissions] if args.key?(:permissions)
1128
+ end
1129
+ end
1130
+
1131
+ # Response message for TestIamPermissions method.
1132
+ class TestIamPermissionsResponse
1133
+ include Google::Apis::Core::Hashable
1134
+
1135
+ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
1136
+ # Corresponds to the JSON property `permissions`
1137
+ # @return [Array<String>]
1138
+ attr_accessor :permissions
1139
+
1140
+ def initialize(**args)
1141
+ update!(**args)
1142
+ end
1143
+
1144
+ # Update properties of this object
1145
+ def update!(**args)
1146
+ @permissions = args[:permissions] if args.key?(:permissions)
1147
+ end
1148
+ end
1149
+ end
1150
+ end
1151
+ end