google-apis-metastore_v1alpha 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-metastore_v1alpha.rb +15 -0
- data/lib/google/apis/metastore_v1alpha.rb +37 -0
- data/lib/google/apis/metastore_v1alpha/classes.rb +1210 -0
- data/lib/google/apis/metastore_v1alpha/gem_version.rb +28 -0
- data/lib/google/apis/metastore_v1alpha/representations.rb +498 -0
- data/lib/google/apis/metastore_v1alpha/service.rb +802 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bf811bbbd71e9e4308cf6407ebc8a116fee20bee87c31e8e982e884ccaa0d370
|
4
|
+
data.tar.gz: d2e8fe435ec758a34dd01f1425420f0757c78490acc2d4dda3a4cbba5567440f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e491e30dc7a7ce8196086f4dfce13348139543c34966ccd86ff157176523369d447b126faadc475f108240f1c78c64ad02ab97b7ca10d77ac1602296a7680227
|
7
|
+
data.tar.gz: 1f0a155f5babb82089e404909901192663cd4a14e226aac69cae60b03ce1848385e9d997d640cc4d493815f5a3c68c5e13ecabdc6474cbb8faf2d924ba9c8235
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-metastore_v1alpha
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/metastore_v1alpha/*.rb
|
9
|
+
lib/google/apis/metastore_v1alpha.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -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.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1alpha of the Dataproc Metastore API
|
2
|
+
|
3
|
+
This is a simple client library for version V1alpha 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_v1alpha', '~> 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_v1alpha
|
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_v1alpha"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::MetastoreV1alpha::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::MetastoreV1alpha::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_v1alpha`, 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_v1alpha"
|
@@ -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_v1alpha/service.rb'
|
16
|
+
require 'google/apis/metastore_v1alpha/classes.rb'
|
17
|
+
require 'google/apis/metastore_v1alpha/representations.rb'
|
18
|
+
require 'google/apis/metastore_v1alpha/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 MetastoreV1alpha
|
29
|
+
# Version of the Dataproc Metastore API this client connects to.
|
30
|
+
# This is NOT the gem version.
|
31
|
+
VERSION = 'V1alpha'
|
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,1210 @@
|
|
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 MetastoreV1alpha
|
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::MetastoreV1alpha::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::MetastoreV1alpha::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
|
+
# Represents the metadata of a long-running operation.
|
305
|
+
class GoogleCloudMetastoreV1alphaOperationMetadata
|
306
|
+
include Google::Apis::Core::Hashable
|
307
|
+
|
308
|
+
# Output only. API version used to start the operation.
|
309
|
+
# Corresponds to the JSON property `apiVersion`
|
310
|
+
# @return [String]
|
311
|
+
attr_accessor :api_version
|
312
|
+
|
313
|
+
# Output only. The time the operation was created.
|
314
|
+
# Corresponds to the JSON property `createTime`
|
315
|
+
# @return [String]
|
316
|
+
attr_accessor :create_time
|
317
|
+
|
318
|
+
# Output only. The time the operation finished running.
|
319
|
+
# Corresponds to the JSON property `endTime`
|
320
|
+
# @return [String]
|
321
|
+
attr_accessor :end_time
|
322
|
+
|
323
|
+
# Output only. Identifies whether the caller has requested cancellation of the
|
324
|
+
# operation. Operations that have successfully been cancelled have Operation.
|
325
|
+
# error value with a google.rpc.Status.code of 1, corresponding to Code.
|
326
|
+
# CANCELLED.
|
327
|
+
# Corresponds to the JSON property `requestedCancellation`
|
328
|
+
# @return [Boolean]
|
329
|
+
attr_accessor :requested_cancellation
|
330
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
331
|
+
|
332
|
+
# Output only. Human-readable status of the operation, if any.
|
333
|
+
# Corresponds to the JSON property `statusMessage`
|
334
|
+
# @return [String]
|
335
|
+
attr_accessor :status_message
|
336
|
+
|
337
|
+
# Output only. Server-defined resource path for the target of the operation.
|
338
|
+
# Corresponds to the JSON property `target`
|
339
|
+
# @return [String]
|
340
|
+
attr_accessor :target
|
341
|
+
|
342
|
+
# Output only. Name of the verb executed by the operation.
|
343
|
+
# Corresponds to the JSON property `verb`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :verb
|
346
|
+
|
347
|
+
def initialize(**args)
|
348
|
+
update!(**args)
|
349
|
+
end
|
350
|
+
|
351
|
+
# Update properties of this object
|
352
|
+
def update!(**args)
|
353
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
354
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
355
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
356
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
357
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
358
|
+
@target = args[:target] if args.key?(:target)
|
359
|
+
@verb = args[:verb] if args.key?(:verb)
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# Specifies configuration information specific to running Hive metastore
|
364
|
+
# software as the metastore service.
|
365
|
+
class HiveMetastoreConfig
|
366
|
+
include Google::Apis::Core::Hashable
|
367
|
+
|
368
|
+
# A mapping of Hive metastore configuration key-value pairs to apply to the Hive
|
369
|
+
# metastore (configured in hive-site.xml). The mappings override system defaults
|
370
|
+
# (some keys cannot be overridden).
|
371
|
+
# Corresponds to the JSON property `configOverrides`
|
372
|
+
# @return [Hash<String,String>]
|
373
|
+
attr_accessor :config_overrides
|
374
|
+
|
375
|
+
# Configuration information for a Kerberos principal.
|
376
|
+
# Corresponds to the JSON property `kerberosConfig`
|
377
|
+
# @return [Google::Apis::MetastoreV1alpha::KerberosConfig]
|
378
|
+
attr_accessor :kerberos_config
|
379
|
+
|
380
|
+
# Immutable. The Hive metastore schema version.
|
381
|
+
# Corresponds to the JSON property `version`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :version
|
384
|
+
|
385
|
+
def initialize(**args)
|
386
|
+
update!(**args)
|
387
|
+
end
|
388
|
+
|
389
|
+
# Update properties of this object
|
390
|
+
def update!(**args)
|
391
|
+
@config_overrides = args[:config_overrides] if args.key?(:config_overrides)
|
392
|
+
@kerberos_config = args[:kerberos_config] if args.key?(:kerberos_config)
|
393
|
+
@version = args[:version] if args.key?(:version)
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
397
|
+
# A specification of a supported version of the Hive Metastore software.
|
398
|
+
class HiveMetastoreVersion
|
399
|
+
include Google::Apis::Core::Hashable
|
400
|
+
|
401
|
+
# Whether version will be chosen by the server if a metastore service is created
|
402
|
+
# with a HiveMetastoreConfig that omits the version.
|
403
|
+
# Corresponds to the JSON property `isDefault`
|
404
|
+
# @return [Boolean]
|
405
|
+
attr_accessor :is_default
|
406
|
+
alias_method :is_default?, :is_default
|
407
|
+
|
408
|
+
# The semantic version of the Hive Metastore software.
|
409
|
+
# Corresponds to the JSON property `version`
|
410
|
+
# @return [String]
|
411
|
+
attr_accessor :version
|
412
|
+
|
413
|
+
def initialize(**args)
|
414
|
+
update!(**args)
|
415
|
+
end
|
416
|
+
|
417
|
+
# Update properties of this object
|
418
|
+
def update!(**args)
|
419
|
+
@is_default = args[:is_default] if args.key?(:is_default)
|
420
|
+
@version = args[:version] if args.key?(:version)
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
# Configuration information for a Kerberos principal.
|
425
|
+
class KerberosConfig
|
426
|
+
include Google::Apis::Core::Hashable
|
427
|
+
|
428
|
+
# A securely stored value.
|
429
|
+
# Corresponds to the JSON property `keytab`
|
430
|
+
# @return [Google::Apis::MetastoreV1alpha::Secret]
|
431
|
+
attr_accessor :keytab
|
432
|
+
|
433
|
+
# A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the
|
434
|
+
# form gs://`bucket_name`/path/to/krb5.conf, although the file does not need to
|
435
|
+
# be named krb5.conf explicitly.
|
436
|
+
# Corresponds to the JSON property `krb5ConfigGcsUri`
|
437
|
+
# @return [String]
|
438
|
+
attr_accessor :krb5_config_gcs_uri
|
439
|
+
|
440
|
+
# A Kerberos principal that exists in the both the keytab the KDC to
|
441
|
+
# authenticate as. A typical principal is of the form "primary/instance@REALM",
|
442
|
+
# but there is no exact format.
|
443
|
+
# Corresponds to the JSON property `principal`
|
444
|
+
# @return [String]
|
445
|
+
attr_accessor :principal
|
446
|
+
|
447
|
+
def initialize(**args)
|
448
|
+
update!(**args)
|
449
|
+
end
|
450
|
+
|
451
|
+
# Update properties of this object
|
452
|
+
def update!(**args)
|
453
|
+
@keytab = args[:keytab] if args.key?(:keytab)
|
454
|
+
@krb5_config_gcs_uri = args[:krb5_config_gcs_uri] if args.key?(:krb5_config_gcs_uri)
|
455
|
+
@principal = args[:principal] if args.key?(:principal)
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
459
|
+
# The response message for Locations.ListLocations.
|
460
|
+
class ListLocationsResponse
|
461
|
+
include Google::Apis::Core::Hashable
|
462
|
+
|
463
|
+
# A list of locations that matches the specified filter in the request.
|
464
|
+
# Corresponds to the JSON property `locations`
|
465
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::Location>]
|
466
|
+
attr_accessor :locations
|
467
|
+
|
468
|
+
# The standard List next-page token.
|
469
|
+
# Corresponds to the JSON property `nextPageToken`
|
470
|
+
# @return [String]
|
471
|
+
attr_accessor :next_page_token
|
472
|
+
|
473
|
+
def initialize(**args)
|
474
|
+
update!(**args)
|
475
|
+
end
|
476
|
+
|
477
|
+
# Update properties of this object
|
478
|
+
def update!(**args)
|
479
|
+
@locations = args[:locations] if args.key?(:locations)
|
480
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# Response message for DataprocMetastore.ListMetadataImports.
|
485
|
+
class ListMetadataImportsResponse
|
486
|
+
include Google::Apis::Core::Hashable
|
487
|
+
|
488
|
+
# The imports in the specified service.
|
489
|
+
# Corresponds to the JSON property `metadataImports`
|
490
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::MetadataImport>]
|
491
|
+
attr_accessor :metadata_imports
|
492
|
+
|
493
|
+
# A token that can be sent as page_token to retrieve the next page. If this
|
494
|
+
# field is omitted, there are no subsequent pages.
|
495
|
+
# Corresponds to the JSON property `nextPageToken`
|
496
|
+
# @return [String]
|
497
|
+
attr_accessor :next_page_token
|
498
|
+
|
499
|
+
# Locations that could not be reached.
|
500
|
+
# Corresponds to the JSON property `unreachable`
|
501
|
+
# @return [Array<String>]
|
502
|
+
attr_accessor :unreachable
|
503
|
+
|
504
|
+
def initialize(**args)
|
505
|
+
update!(**args)
|
506
|
+
end
|
507
|
+
|
508
|
+
# Update properties of this object
|
509
|
+
def update!(**args)
|
510
|
+
@metadata_imports = args[:metadata_imports] if args.key?(:metadata_imports)
|
511
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
512
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
516
|
+
# The response message for Operations.ListOperations.
|
517
|
+
class ListOperationsResponse
|
518
|
+
include Google::Apis::Core::Hashable
|
519
|
+
|
520
|
+
# The standard List next-page token.
|
521
|
+
# Corresponds to the JSON property `nextPageToken`
|
522
|
+
# @return [String]
|
523
|
+
attr_accessor :next_page_token
|
524
|
+
|
525
|
+
# A list of operations that matches the specified filter in the request.
|
526
|
+
# Corresponds to the JSON property `operations`
|
527
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::Operation>]
|
528
|
+
attr_accessor :operations
|
529
|
+
|
530
|
+
def initialize(**args)
|
531
|
+
update!(**args)
|
532
|
+
end
|
533
|
+
|
534
|
+
# Update properties of this object
|
535
|
+
def update!(**args)
|
536
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
537
|
+
@operations = args[:operations] if args.key?(:operations)
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
# Response message for DataprocMetastore.ListServices.
|
542
|
+
class ListServicesResponse
|
543
|
+
include Google::Apis::Core::Hashable
|
544
|
+
|
545
|
+
# A token that can be sent as page_token to retrieve the next page. If this
|
546
|
+
# field is omitted, there are no subsequent pages.
|
547
|
+
# Corresponds to the JSON property `nextPageToken`
|
548
|
+
# @return [String]
|
549
|
+
attr_accessor :next_page_token
|
550
|
+
|
551
|
+
# The services in the specified location.
|
552
|
+
# Corresponds to the JSON property `services`
|
553
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::Service>]
|
554
|
+
attr_accessor :services
|
555
|
+
|
556
|
+
# Locations that could not be reached.
|
557
|
+
# Corresponds to the JSON property `unreachable`
|
558
|
+
# @return [Array<String>]
|
559
|
+
attr_accessor :unreachable
|
560
|
+
|
561
|
+
def initialize(**args)
|
562
|
+
update!(**args)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Update properties of this object
|
566
|
+
def update!(**args)
|
567
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
568
|
+
@services = args[:services] if args.key?(:services)
|
569
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# A resource that represents Google Cloud Platform location.
|
574
|
+
class Location
|
575
|
+
include Google::Apis::Core::Hashable
|
576
|
+
|
577
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
578
|
+
# "Tokyo".
|
579
|
+
# Corresponds to the JSON property `displayName`
|
580
|
+
# @return [String]
|
581
|
+
attr_accessor :display_name
|
582
|
+
|
583
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
584
|
+
# region": "us-east1"`
|
585
|
+
# Corresponds to the JSON property `labels`
|
586
|
+
# @return [Hash<String,String>]
|
587
|
+
attr_accessor :labels
|
588
|
+
|
589
|
+
# The canonical id for this location. For example: "us-east1".
|
590
|
+
# Corresponds to the JSON property `locationId`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :location_id
|
593
|
+
|
594
|
+
# Service-specific metadata. For example the available capacity at the given
|
595
|
+
# location.
|
596
|
+
# Corresponds to the JSON property `metadata`
|
597
|
+
# @return [Hash<String,Object>]
|
598
|
+
attr_accessor :metadata
|
599
|
+
|
600
|
+
# Resource name for the location, which may vary between implementations. For
|
601
|
+
# example: "projects/example-project/locations/us-east1"
|
602
|
+
# Corresponds to the JSON property `name`
|
603
|
+
# @return [String]
|
604
|
+
attr_accessor :name
|
605
|
+
|
606
|
+
def initialize(**args)
|
607
|
+
update!(**args)
|
608
|
+
end
|
609
|
+
|
610
|
+
# Update properties of this object
|
611
|
+
def update!(**args)
|
612
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
613
|
+
@labels = args[:labels] if args.key?(:labels)
|
614
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
615
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
616
|
+
@name = args[:name] if args.key?(:name)
|
617
|
+
end
|
618
|
+
end
|
619
|
+
|
620
|
+
# Metadata about the service in a location.
|
621
|
+
class LocationMetadata
|
622
|
+
include Google::Apis::Core::Hashable
|
623
|
+
|
624
|
+
# The versions of Hive Metastore that can be used when creating a new metastore
|
625
|
+
# service in this location. The server guarantees that exactly one
|
626
|
+
# HiveMetastoreVersion in the list will set is_default.
|
627
|
+
# Corresponds to the JSON property `supportedHiveMetastoreVersions`
|
628
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::HiveMetastoreVersion>]
|
629
|
+
attr_accessor :supported_hive_metastore_versions
|
630
|
+
|
631
|
+
def initialize(**args)
|
632
|
+
update!(**args)
|
633
|
+
end
|
634
|
+
|
635
|
+
# Update properties of this object
|
636
|
+
def update!(**args)
|
637
|
+
@supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
641
|
+
# Maintenance window. This specifies when Dataproc Metastore may perform system
|
642
|
+
# maintenance operation to the service.
|
643
|
+
class MaintenanceWindow
|
644
|
+
include Google::Apis::Core::Hashable
|
645
|
+
|
646
|
+
# The day of week, when the window starts.
|
647
|
+
# Corresponds to the JSON property `dayOfWeek`
|
648
|
+
# @return [String]
|
649
|
+
attr_accessor :day_of_week
|
650
|
+
|
651
|
+
# The hour of day (0-23) when the window starts.
|
652
|
+
# Corresponds to the JSON property `hourOfDay`
|
653
|
+
# @return [Fixnum]
|
654
|
+
attr_accessor :hour_of_day
|
655
|
+
|
656
|
+
def initialize(**args)
|
657
|
+
update!(**args)
|
658
|
+
end
|
659
|
+
|
660
|
+
# Update properties of this object
|
661
|
+
def update!(**args)
|
662
|
+
@day_of_week = args[:day_of_week] if args.key?(:day_of_week)
|
663
|
+
@hour_of_day = args[:hour_of_day] if args.key?(:hour_of_day)
|
664
|
+
end
|
665
|
+
end
|
666
|
+
|
667
|
+
# The details of a metadata export operation.
|
668
|
+
class MetadataExport
|
669
|
+
include Google::Apis::Core::Hashable
|
670
|
+
|
671
|
+
# Output only. A Cloud Storage URI of a folder that metadata are exported to, in
|
672
|
+
# the form of gs:////, where ` is automatically generated.
|
673
|
+
# Corresponds to the JSON property `destinationGcsUri`
|
674
|
+
# @return [String]
|
675
|
+
attr_accessor :destination_gcs_uri
|
676
|
+
|
677
|
+
# Output only. The time when the export ended.
|
678
|
+
# Corresponds to the JSON property `endTime`
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :end_time
|
681
|
+
|
682
|
+
# Output only. The time when the export started.
|
683
|
+
# Corresponds to the JSON property `startTime`
|
684
|
+
# @return [String]
|
685
|
+
attr_accessor :start_time
|
686
|
+
|
687
|
+
# Output only. The current state of the export.
|
688
|
+
# Corresponds to the JSON property `state`
|
689
|
+
# @return [String]
|
690
|
+
attr_accessor :state
|
691
|
+
|
692
|
+
def initialize(**args)
|
693
|
+
update!(**args)
|
694
|
+
end
|
695
|
+
|
696
|
+
# Update properties of this object
|
697
|
+
def update!(**args)
|
698
|
+
@destination_gcs_uri = args[:destination_gcs_uri] if args.key?(:destination_gcs_uri)
|
699
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
700
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
701
|
+
@state = args[:state] if args.key?(:state)
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
705
|
+
# A metastore resource that imports metadata.
|
706
|
+
class MetadataImport
|
707
|
+
include Google::Apis::Core::Hashable
|
708
|
+
|
709
|
+
# Output only. The time when the metadata import was created.
|
710
|
+
# Corresponds to the JSON property `createTime`
|
711
|
+
# @return [String]
|
712
|
+
attr_accessor :create_time
|
713
|
+
|
714
|
+
# A specification of the location of and metadata about a database dump from a
|
715
|
+
# relational database management system.
|
716
|
+
# Corresponds to the JSON property `databaseDump`
|
717
|
+
# @return [Google::Apis::MetastoreV1alpha::DatabaseDump]
|
718
|
+
attr_accessor :database_dump
|
719
|
+
|
720
|
+
# The description of the metadata import.
|
721
|
+
# Corresponds to the JSON property `description`
|
722
|
+
# @return [String]
|
723
|
+
attr_accessor :description
|
724
|
+
|
725
|
+
# Immutable. The relative resource name of the metadata import, of the form:"
|
726
|
+
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
727
|
+
# metadataImports/`metadata_import_id`".
|
728
|
+
# Corresponds to the JSON property `name`
|
729
|
+
# @return [String]
|
730
|
+
attr_accessor :name
|
731
|
+
|
732
|
+
# Output only. The current state of the metadata import.
|
733
|
+
# Corresponds to the JSON property `state`
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :state
|
736
|
+
|
737
|
+
# Output only. The time when the metadata import was last updated.
|
738
|
+
# Corresponds to the JSON property `updateTime`
|
739
|
+
# @return [String]
|
740
|
+
attr_accessor :update_time
|
741
|
+
|
742
|
+
def initialize(**args)
|
743
|
+
update!(**args)
|
744
|
+
end
|
745
|
+
|
746
|
+
# Update properties of this object
|
747
|
+
def update!(**args)
|
748
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
749
|
+
@database_dump = args[:database_dump] if args.key?(:database_dump)
|
750
|
+
@description = args[:description] if args.key?(:description)
|
751
|
+
@name = args[:name] if args.key?(:name)
|
752
|
+
@state = args[:state] if args.key?(:state)
|
753
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
# Specifies how metastore metadata should be integrated with external services.
|
758
|
+
class MetadataIntegration
|
759
|
+
include Google::Apis::Core::Hashable
|
760
|
+
|
761
|
+
def initialize(**args)
|
762
|
+
update!(**args)
|
763
|
+
end
|
764
|
+
|
765
|
+
# Update properties of this object
|
766
|
+
def update!(**args)
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
# The metadata management activities of the metastore service.
|
771
|
+
class MetadataManagementActivity
|
772
|
+
include Google::Apis::Core::Hashable
|
773
|
+
|
774
|
+
# Output only. The latest metadata exports of the metastore service.
|
775
|
+
# Corresponds to the JSON property `metadataExports`
|
776
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::MetadataExport>]
|
777
|
+
attr_accessor :metadata_exports
|
778
|
+
|
779
|
+
def initialize(**args)
|
780
|
+
update!(**args)
|
781
|
+
end
|
782
|
+
|
783
|
+
# Update properties of this object
|
784
|
+
def update!(**args)
|
785
|
+
@metadata_exports = args[:metadata_exports] if args.key?(:metadata_exports)
|
786
|
+
end
|
787
|
+
end
|
788
|
+
|
789
|
+
# This resource represents a long-running operation that is the result of a
|
790
|
+
# network API call.
|
791
|
+
class Operation
|
792
|
+
include Google::Apis::Core::Hashable
|
793
|
+
|
794
|
+
# If the value is false, it means the operation is still in progress. If true,
|
795
|
+
# the operation is completed, and either error or response is available.
|
796
|
+
# Corresponds to the JSON property `done`
|
797
|
+
# @return [Boolean]
|
798
|
+
attr_accessor :done
|
799
|
+
alias_method :done?, :done
|
800
|
+
|
801
|
+
# The Status type defines a logical error model that is suitable for different
|
802
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
803
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
804
|
+
# error code, error message, and error details.You can find out more about this
|
805
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
806
|
+
# google.com/apis/design/errors).
|
807
|
+
# Corresponds to the JSON property `error`
|
808
|
+
# @return [Google::Apis::MetastoreV1alpha::Status]
|
809
|
+
attr_accessor :error
|
810
|
+
|
811
|
+
# Service-specific metadata associated with the operation. It typically contains
|
812
|
+
# progress information and common metadata such as create time. Some services
|
813
|
+
# might not provide such metadata. Any method that returns a long-running
|
814
|
+
# operation should document the metadata type, if any.
|
815
|
+
# Corresponds to the JSON property `metadata`
|
816
|
+
# @return [Hash<String,Object>]
|
817
|
+
attr_accessor :metadata
|
818
|
+
|
819
|
+
# The server-assigned name, which is only unique within the same service that
|
820
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
821
|
+
# a resource name ending with operations/`unique_id`.
|
822
|
+
# Corresponds to the JSON property `name`
|
823
|
+
# @return [String]
|
824
|
+
attr_accessor :name
|
825
|
+
|
826
|
+
# The normal response of the operation in case of success. If the original
|
827
|
+
# method returns no data on success, such as Delete, the response is google.
|
828
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
829
|
+
# response should be the resource. For other methods, the response should have
|
830
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
831
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
832
|
+
# TakeSnapshotResponse.
|
833
|
+
# Corresponds to the JSON property `response`
|
834
|
+
# @return [Hash<String,Object>]
|
835
|
+
attr_accessor :response
|
836
|
+
|
837
|
+
def initialize(**args)
|
838
|
+
update!(**args)
|
839
|
+
end
|
840
|
+
|
841
|
+
# Update properties of this object
|
842
|
+
def update!(**args)
|
843
|
+
@done = args[:done] if args.key?(:done)
|
844
|
+
@error = args[:error] if args.key?(:error)
|
845
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
846
|
+
@name = args[:name] if args.key?(:name)
|
847
|
+
@response = args[:response] if args.key?(:response)
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
851
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
852
|
+
# controls for Google Cloud resources.A Policy is a collection of bindings. A
|
853
|
+
# binding binds one or more members to a single role. Members can be user
|
854
|
+
# accounts, service accounts, Google groups, and domains (such as G Suite). A
|
855
|
+
# role is a named list of permissions; each role can be an IAM predefined role
|
856
|
+
# or a user-created custom role.For some types of Google Cloud resources, a
|
857
|
+
# binding can also specify a condition, which is a logical expression that
|
858
|
+
# allows access to a resource only if the expression evaluates to true. A
|
859
|
+
# condition can add constraints based on attributes of the request, the resource,
|
860
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
861
|
+
# see the IAM documentation (https://cloud.google.com/iam/help/conditions/
|
862
|
+
# resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
|
863
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
864
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
865
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
866
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
867
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
868
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
869
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` YAML example: bindings: - members:
|
870
|
+
# - user:mike@example.com - group:admins@example.com - domain:google.com -
|
871
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
872
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
873
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
874
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
875
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
876
|
+
# description of IAM and its features, see the IAM documentation (https://cloud.
|
877
|
+
# google.com/iam/docs/).
|
878
|
+
class Policy
|
879
|
+
include Google::Apis::Core::Hashable
|
880
|
+
|
881
|
+
# Specifies cloud audit logging configuration for this policy.
|
882
|
+
# Corresponds to the JSON property `auditConfigs`
|
883
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::AuditConfig>]
|
884
|
+
attr_accessor :audit_configs
|
885
|
+
|
886
|
+
# Associates a list of members to a role. Optionally, may specify a condition
|
887
|
+
# that determines how and when the bindings are applied. Each of the bindings
|
888
|
+
# must contain at least one member.
|
889
|
+
# Corresponds to the JSON property `bindings`
|
890
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::Binding>]
|
891
|
+
attr_accessor :bindings
|
892
|
+
|
893
|
+
# etag is used for optimistic concurrency control as a way to help prevent
|
894
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
895
|
+
# suggested that systems make use of the etag in the read-modify-write cycle to
|
896
|
+
# perform policy updates in order to avoid race conditions: An etag is returned
|
897
|
+
# in the response to getIamPolicy, and systems are expected to put that etag in
|
898
|
+
# the request to setIamPolicy to ensure that their change will be applied to the
|
899
|
+
# same version of the policy.Important: If you use IAM Conditions, you must
|
900
|
+
# include the etag field whenever you call setIamPolicy. If you omit this field,
|
901
|
+
# then IAM allows you to overwrite a version 3 policy with a version 1 policy,
|
902
|
+
# and all of the conditions in the version 3 policy are lost.
|
903
|
+
# Corresponds to the JSON property `etag`
|
904
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
905
|
+
# @return [String]
|
906
|
+
attr_accessor :etag
|
907
|
+
|
908
|
+
# Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that
|
909
|
+
# specify an invalid value are rejected.Any operation that affects conditional
|
910
|
+
# role bindings must specify version 3. This requirement applies to the
|
911
|
+
# following operations: Getting a policy that includes a conditional role
|
912
|
+
# binding Adding a conditional role binding to a policy Changing a conditional
|
913
|
+
# role binding in a policy Removing any role binding, with or without a
|
914
|
+
# condition, from a policy that includes conditionsImportant: If you use IAM
|
915
|
+
# Conditions, you must include the etag field whenever you call setIamPolicy. If
|
916
|
+
# you omit this field, then IAM allows you to overwrite a version 3 policy with
|
917
|
+
# a version 1 policy, and all of the conditions in the version 3 policy are lost.
|
918
|
+
# If a policy does not include any conditions, operations on that policy may
|
919
|
+
# specify any valid version or leave the field unset.To learn which resources
|
920
|
+
# support conditions in their IAM policies, see the IAM documentation (https://
|
921
|
+
# cloud.google.com/iam/help/conditions/resource-policies).
|
922
|
+
# Corresponds to the JSON property `version`
|
923
|
+
# @return [Fixnum]
|
924
|
+
attr_accessor :version
|
925
|
+
|
926
|
+
def initialize(**args)
|
927
|
+
update!(**args)
|
928
|
+
end
|
929
|
+
|
930
|
+
# Update properties of this object
|
931
|
+
def update!(**args)
|
932
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
933
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
934
|
+
@etag = args[:etag] if args.key?(:etag)
|
935
|
+
@version = args[:version] if args.key?(:version)
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
939
|
+
# A securely stored value.
|
940
|
+
class Secret
|
941
|
+
include Google::Apis::Core::Hashable
|
942
|
+
|
943
|
+
# The relative resource name of a Secret Manager secret version, in the
|
944
|
+
# following form:"projects/`project_number`/secrets/`secret_id`/versions/`
|
945
|
+
# version_id`".
|
946
|
+
# Corresponds to the JSON property `cloudSecret`
|
947
|
+
# @return [String]
|
948
|
+
attr_accessor :cloud_secret
|
949
|
+
|
950
|
+
def initialize(**args)
|
951
|
+
update!(**args)
|
952
|
+
end
|
953
|
+
|
954
|
+
# Update properties of this object
|
955
|
+
def update!(**args)
|
956
|
+
@cloud_secret = args[:cloud_secret] if args.key?(:cloud_secret)
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
960
|
+
# A managed metastore service that serves metadata queries.
|
961
|
+
class Service
|
962
|
+
include Google::Apis::Core::Hashable
|
963
|
+
|
964
|
+
# Output only. A Cloud Storage URI (starting with gs://) that specifies where
|
965
|
+
# artifacts related to the metastore service are stored.
|
966
|
+
# Corresponds to the JSON property `artifactGcsUri`
|
967
|
+
# @return [String]
|
968
|
+
attr_accessor :artifact_gcs_uri
|
969
|
+
|
970
|
+
# Output only. The time when the metastore service was created.
|
971
|
+
# Corresponds to the JSON property `createTime`
|
972
|
+
# @return [String]
|
973
|
+
attr_accessor :create_time
|
974
|
+
|
975
|
+
# Output only. The URI of the endpoint used to access the metastore service.
|
976
|
+
# Corresponds to the JSON property `endpointUri`
|
977
|
+
# @return [String]
|
978
|
+
attr_accessor :endpoint_uri
|
979
|
+
|
980
|
+
# Specifies configuration information specific to running Hive metastore
|
981
|
+
# software as the metastore service.
|
982
|
+
# Corresponds to the JSON property `hiveMetastoreConfig`
|
983
|
+
# @return [Google::Apis::MetastoreV1alpha::HiveMetastoreConfig]
|
984
|
+
attr_accessor :hive_metastore_config
|
985
|
+
|
986
|
+
# User-defined labels for the metastore service.
|
987
|
+
# Corresponds to the JSON property `labels`
|
988
|
+
# @return [Hash<String,String>]
|
989
|
+
attr_accessor :labels
|
990
|
+
|
991
|
+
# Maintenance window. This specifies when Dataproc Metastore may perform system
|
992
|
+
# maintenance operation to the service.
|
993
|
+
# Corresponds to the JSON property `maintenanceWindow`
|
994
|
+
# @return [Google::Apis::MetastoreV1alpha::MaintenanceWindow]
|
995
|
+
attr_accessor :maintenance_window
|
996
|
+
|
997
|
+
# Specifies how metastore metadata should be integrated with external services.
|
998
|
+
# Corresponds to the JSON property `metadataIntegration`
|
999
|
+
# @return [Google::Apis::MetastoreV1alpha::MetadataIntegration]
|
1000
|
+
attr_accessor :metadata_integration
|
1001
|
+
|
1002
|
+
# The metadata management activities of the metastore service.
|
1003
|
+
# Corresponds to the JSON property `metadataManagementActivity`
|
1004
|
+
# @return [Google::Apis::MetastoreV1alpha::MetadataManagementActivity]
|
1005
|
+
attr_accessor :metadata_management_activity
|
1006
|
+
|
1007
|
+
# Immutable. The relative resource name of the metastore service, of the form:"
|
1008
|
+
# projects/`project_number`/locations/`location_id`/services/`service_id`".
|
1009
|
+
# Corresponds to the JSON property `name`
|
1010
|
+
# @return [String]
|
1011
|
+
attr_accessor :name
|
1012
|
+
|
1013
|
+
# Immutable. The relative resource name of the VPC network on which the instance
|
1014
|
+
# can be accessed. The network must belong to the same project as the metastore
|
1015
|
+
# instance. It is specified in the following form:"projects/`project_number`/
|
1016
|
+
# global/networks/`network_id`".
|
1017
|
+
# Corresponds to the JSON property `network`
|
1018
|
+
# @return [String]
|
1019
|
+
attr_accessor :network
|
1020
|
+
|
1021
|
+
# The TCP port at which the metastore service is reached. Default: 9083.
|
1022
|
+
# Corresponds to the JSON property `port`
|
1023
|
+
# @return [Fixnum]
|
1024
|
+
attr_accessor :port
|
1025
|
+
|
1026
|
+
# Output only. The current state of the metastore service.
|
1027
|
+
# Corresponds to the JSON property `state`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :state
|
1030
|
+
|
1031
|
+
# Output only. Additional information about the current state of the metastore
|
1032
|
+
# service, if available.
|
1033
|
+
# Corresponds to the JSON property `stateMessage`
|
1034
|
+
# @return [String]
|
1035
|
+
attr_accessor :state_message
|
1036
|
+
|
1037
|
+
# The tier of the service.
|
1038
|
+
# Corresponds to the JSON property `tier`
|
1039
|
+
# @return [String]
|
1040
|
+
attr_accessor :tier
|
1041
|
+
|
1042
|
+
# Output only. The globally unique resource identifier of the metastore service.
|
1043
|
+
# Corresponds to the JSON property `uid`
|
1044
|
+
# @return [String]
|
1045
|
+
attr_accessor :uid
|
1046
|
+
|
1047
|
+
# Output only. The time when the metastore service was last updated.
|
1048
|
+
# Corresponds to the JSON property `updateTime`
|
1049
|
+
# @return [String]
|
1050
|
+
attr_accessor :update_time
|
1051
|
+
|
1052
|
+
def initialize(**args)
|
1053
|
+
update!(**args)
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
# Update properties of this object
|
1057
|
+
def update!(**args)
|
1058
|
+
@artifact_gcs_uri = args[:artifact_gcs_uri] if args.key?(:artifact_gcs_uri)
|
1059
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1060
|
+
@endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
|
1061
|
+
@hive_metastore_config = args[:hive_metastore_config] if args.key?(:hive_metastore_config)
|
1062
|
+
@labels = args[:labels] if args.key?(:labels)
|
1063
|
+
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
1064
|
+
@metadata_integration = args[:metadata_integration] if args.key?(:metadata_integration)
|
1065
|
+
@metadata_management_activity = args[:metadata_management_activity] if args.key?(:metadata_management_activity)
|
1066
|
+
@name = args[:name] if args.key?(:name)
|
1067
|
+
@network = args[:network] if args.key?(:network)
|
1068
|
+
@port = args[:port] if args.key?(:port)
|
1069
|
+
@state = args[:state] if args.key?(:state)
|
1070
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
1071
|
+
@tier = args[:tier] if args.key?(:tier)
|
1072
|
+
@uid = args[:uid] if args.key?(:uid)
|
1073
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1074
|
+
end
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
# Request message for SetIamPolicy method.
|
1078
|
+
class SetIamPolicyRequest
|
1079
|
+
include Google::Apis::Core::Hashable
|
1080
|
+
|
1081
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
1082
|
+
# controls for Google Cloud resources.A Policy is a collection of bindings. A
|
1083
|
+
# binding binds one or more members to a single role. Members can be user
|
1084
|
+
# accounts, service accounts, Google groups, and domains (such as G Suite). A
|
1085
|
+
# role is a named list of permissions; each role can be an IAM predefined role
|
1086
|
+
# or a user-created custom role.For some types of Google Cloud resources, a
|
1087
|
+
# binding can also specify a condition, which is a logical expression that
|
1088
|
+
# allows access to a resource only if the expression evaluates to true. A
|
1089
|
+
# condition can add constraints based on attributes of the request, the resource,
|
1090
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
1091
|
+
# see the IAM documentation (https://cloud.google.com/iam/help/conditions/
|
1092
|
+
# resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
|
1093
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
1094
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
1095
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
1096
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
1097
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
1098
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
1099
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` YAML example: bindings: - members:
|
1100
|
+
# - user:mike@example.com - group:admins@example.com - domain:google.com -
|
1101
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
1102
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1103
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1104
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
1105
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
1106
|
+
# description of IAM and its features, see the IAM documentation (https://cloud.
|
1107
|
+
# google.com/iam/docs/).
|
1108
|
+
# Corresponds to the JSON property `policy`
|
1109
|
+
# @return [Google::Apis::MetastoreV1alpha::Policy]
|
1110
|
+
attr_accessor :policy
|
1111
|
+
|
1112
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
1113
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
1114
|
+
# default mask is used:paths: "bindings, etag"
|
1115
|
+
# Corresponds to the JSON property `updateMask`
|
1116
|
+
# @return [String]
|
1117
|
+
attr_accessor :update_mask
|
1118
|
+
|
1119
|
+
def initialize(**args)
|
1120
|
+
update!(**args)
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
# Update properties of this object
|
1124
|
+
def update!(**args)
|
1125
|
+
@policy = args[:policy] if args.key?(:policy)
|
1126
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# The Status type defines a logical error model that is suitable for different
|
1131
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
1132
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
1133
|
+
# error code, error message, and error details.You can find out more about this
|
1134
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
1135
|
+
# google.com/apis/design/errors).
|
1136
|
+
class Status
|
1137
|
+
include Google::Apis::Core::Hashable
|
1138
|
+
|
1139
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1140
|
+
# Corresponds to the JSON property `code`
|
1141
|
+
# @return [Fixnum]
|
1142
|
+
attr_accessor :code
|
1143
|
+
|
1144
|
+
# A list of messages that carry the error details. There is a common set of
|
1145
|
+
# message types for APIs to use.
|
1146
|
+
# Corresponds to the JSON property `details`
|
1147
|
+
# @return [Array<Hash<String,Object>>]
|
1148
|
+
attr_accessor :details
|
1149
|
+
|
1150
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1151
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1152
|
+
# field, or localized by the client.
|
1153
|
+
# Corresponds to the JSON property `message`
|
1154
|
+
# @return [String]
|
1155
|
+
attr_accessor :message
|
1156
|
+
|
1157
|
+
def initialize(**args)
|
1158
|
+
update!(**args)
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
# Update properties of this object
|
1162
|
+
def update!(**args)
|
1163
|
+
@code = args[:code] if args.key?(:code)
|
1164
|
+
@details = args[:details] if args.key?(:details)
|
1165
|
+
@message = args[:message] if args.key?(:message)
|
1166
|
+
end
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# Request message for TestIamPermissions method.
|
1170
|
+
class TestIamPermissionsRequest
|
1171
|
+
include Google::Apis::Core::Hashable
|
1172
|
+
|
1173
|
+
# The set of permissions to check for the resource. Permissions with wildcards (
|
1174
|
+
# such as '*' or 'storage.*') are not allowed. For more information see IAM
|
1175
|
+
# Overview (https://cloud.google.com/iam/docs/overview#permissions).
|
1176
|
+
# Corresponds to the JSON property `permissions`
|
1177
|
+
# @return [Array<String>]
|
1178
|
+
attr_accessor :permissions
|
1179
|
+
|
1180
|
+
def initialize(**args)
|
1181
|
+
update!(**args)
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
# Update properties of this object
|
1185
|
+
def update!(**args)
|
1186
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1187
|
+
end
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
# Response message for TestIamPermissions method.
|
1191
|
+
class TestIamPermissionsResponse
|
1192
|
+
include Google::Apis::Core::Hashable
|
1193
|
+
|
1194
|
+
# A subset of TestPermissionsRequest.permissions that the caller is allowed.
|
1195
|
+
# Corresponds to the JSON property `permissions`
|
1196
|
+
# @return [Array<String>]
|
1197
|
+
attr_accessor :permissions
|
1198
|
+
|
1199
|
+
def initialize(**args)
|
1200
|
+
update!(**args)
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
# Update properties of this object
|
1204
|
+
def update!(**args)
|
1205
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1206
|
+
end
|
1207
|
+
end
|
1208
|
+
end
|
1209
|
+
end
|
1210
|
+
end
|