google-cloud-metastore-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-metastore-v1.rb +21 -0
- data/lib/google/cloud/metastore/v1.rb +38 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore.rb +66 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/client.rb +1275 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/credentials.rb +51 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +655 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb +107 -0
- data/lib/google/cloud/metastore/v1/metastore_pb.rb +249 -0
- data/lib/google/cloud/metastore/v1/metastore_services_pb.rb +80 -0
- data/lib/google/cloud/metastore/v1/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +65 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/metastore/v1/metastore.rb +756 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- metadata +215 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,283 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# A simple descriptor of a resource type.
|
23
|
+
#
|
24
|
+
# ResourceDescriptor annotates a resource message (either by means of a
|
25
|
+
# protobuf annotation or use in the service config), and associates the
|
26
|
+
# resource's schema, the resource type, and the pattern of the resource name.
|
27
|
+
#
|
28
|
+
# Example:
|
29
|
+
#
|
30
|
+
# message Topic {
|
31
|
+
# // Indicates this message defines a resource schema.
|
32
|
+
# // Declares the resource type in the format of {service}/{kind}.
|
33
|
+
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
|
+
# option (google.api.resource) = {
|
35
|
+
# type: "pubsub.googleapis.com/Topic"
|
36
|
+
# name_descriptor: {
|
37
|
+
# pattern: "projects/{project}/topics/{topic}"
|
38
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
+
# parent_name_extractor: "projects/{project}"
|
40
|
+
# }
|
41
|
+
# };
|
42
|
+
# }
|
43
|
+
#
|
44
|
+
# The ResourceDescriptor Yaml config will look like:
|
45
|
+
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
|
+
#
|
53
|
+
# Sometimes, resources have multiple patterns, typically because they can
|
54
|
+
# live under multiple parents.
|
55
|
+
#
|
56
|
+
# Example:
|
57
|
+
#
|
58
|
+
# message LogEntry {
|
59
|
+
# option (google.api.resource) = {
|
60
|
+
# type: "logging.googleapis.com/LogEntry"
|
61
|
+
# name_descriptor: {
|
62
|
+
# pattern: "projects/{project}/logs/{log}"
|
63
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
64
|
+
# parent_name_extractor: "projects/{project}"
|
65
|
+
# }
|
66
|
+
# name_descriptor: {
|
67
|
+
# pattern: "folders/{folder}/logs/{log}"
|
68
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
+
# parent_name_extractor: "folders/{folder}"
|
70
|
+
# }
|
71
|
+
# name_descriptor: {
|
72
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
+
# parent_name_extractor: "organizations/{organization}"
|
75
|
+
# }
|
76
|
+
# name_descriptor: {
|
77
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
+
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
+
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
+
# }
|
81
|
+
# };
|
82
|
+
# }
|
83
|
+
#
|
84
|
+
# The ResourceDescriptor Yaml config will look like:
|
85
|
+
#
|
86
|
+
# resources:
|
87
|
+
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
+
# name_descriptor:
|
89
|
+
# - pattern: "projects/{project}/logs/{log}"
|
90
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
91
|
+
# parent_name_extractor: "projects/{project}"
|
92
|
+
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
+
# parent_name_extractor: "folders/{folder}"
|
95
|
+
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
+
# parent_name_extractor: "organizations/{organization}"
|
98
|
+
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
+
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
+
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
+
#
|
102
|
+
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
+
# the resource itself has parents for policy evaluation.
|
104
|
+
#
|
105
|
+
# Example:
|
106
|
+
#
|
107
|
+
# message Shelf {
|
108
|
+
# option (google.api.resource) = {
|
109
|
+
# type: "library.googleapis.com/Shelf"
|
110
|
+
# name_descriptor: {
|
111
|
+
# pattern: "shelves/{shelf}"
|
112
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
+
# }
|
114
|
+
# name_descriptor: {
|
115
|
+
# pattern: "shelves/{shelf}"
|
116
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
+
# }
|
118
|
+
# };
|
119
|
+
# }
|
120
|
+
#
|
121
|
+
# The ResourceDescriptor Yaml config will look like:
|
122
|
+
#
|
123
|
+
# resources:
|
124
|
+
# - type: 'library.googleapis.com/Shelf'
|
125
|
+
# name_descriptor:
|
126
|
+
# - pattern: "shelves/{shelf}"
|
127
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
+
# - pattern: "shelves/{shelf}"
|
129
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
|
+
# @!attribute [rw] type
|
131
|
+
# @return [::String]
|
132
|
+
# The resource type. It must be in the format of
|
133
|
+
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
134
|
+
# singular and must not include version numbers.
|
135
|
+
#
|
136
|
+
# Example: `storage.googleapis.com/Bucket`
|
137
|
+
#
|
138
|
+
# The value of the resource_type_kind must follow the regular expression
|
139
|
+
# /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
140
|
+
# should use PascalCase (UpperCamelCase). The maximum number of
|
141
|
+
# characters allowed for the `resource_type_kind` is 100.
|
142
|
+
# @!attribute [rw] pattern
|
143
|
+
# @return [::Array<::String>]
|
144
|
+
# Optional. The relative resource name pattern associated with this resource
|
145
|
+
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
146
|
+
#
|
147
|
+
# The path pattern must follow the syntax, which aligns with HTTP binding
|
148
|
+
# syntax:
|
149
|
+
#
|
150
|
+
# Template = Segment { "/" Segment } ;
|
151
|
+
# Segment = LITERAL | Variable ;
|
152
|
+
# Variable = "{" LITERAL "}" ;
|
153
|
+
#
|
154
|
+
# Examples:
|
155
|
+
#
|
156
|
+
# - "projects/\\{project}/topics/\\{topic}"
|
157
|
+
# - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
|
158
|
+
#
|
159
|
+
# The components in braces correspond to the IDs for each resource in the
|
160
|
+
# hierarchy. It is expected that, if multiple patterns are provided,
|
161
|
+
# the same component name (e.g. "project") refers to IDs of the same
|
162
|
+
# type of resource.
|
163
|
+
# @!attribute [rw] name_field
|
164
|
+
# @return [::String]
|
165
|
+
# Optional. The field on the resource that designates the resource name
|
166
|
+
# field. If omitted, this is assumed to be "name".
|
167
|
+
# @!attribute [rw] history
|
168
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
169
|
+
# Optional. The historical or future-looking state of the resource pattern.
|
170
|
+
#
|
171
|
+
# Example:
|
172
|
+
#
|
173
|
+
# // The InspectTemplate message originally only supported resource
|
174
|
+
# // names with organization, and project was added later.
|
175
|
+
# message InspectTemplate {
|
176
|
+
# option (google.api.resource) = {
|
177
|
+
# type: "dlp.googleapis.com/InspectTemplate"
|
178
|
+
# pattern:
|
179
|
+
# "organizations/{organization}/inspectTemplates/{inspect_template}"
|
180
|
+
# pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
181
|
+
# history: ORIGINALLY_SINGLE_PATTERN
|
182
|
+
# };
|
183
|
+
# }
|
184
|
+
# @!attribute [rw] plural
|
185
|
+
# @return [::String]
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
190
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
194
|
+
# @!attribute [rw] singular
|
195
|
+
# @return [::String]
|
196
|
+
# The same concept of the `singular` field in k8s CRD spec
|
197
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
198
|
+
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
204
|
+
class ResourceDescriptor
|
205
|
+
include ::Google::Protobuf::MessageExts
|
206
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
207
|
+
|
208
|
+
# A description of the historical or future-looking state of the
|
209
|
+
# resource pattern.
|
210
|
+
module History
|
211
|
+
# The "unset" value.
|
212
|
+
HISTORY_UNSPECIFIED = 0
|
213
|
+
|
214
|
+
# The resource originally had one pattern and launched as such, and
|
215
|
+
# additional patterns were added later.
|
216
|
+
ORIGINALLY_SINGLE_PATTERN = 1
|
217
|
+
|
218
|
+
# The resource has one pattern, but the API owner expects to add more
|
219
|
+
# later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
|
220
|
+
# that from being necessary once there are multiple patterns.)
|
221
|
+
FUTURE_MULTI_PATTERN = 2
|
222
|
+
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
# Defines a proto annotation that describes a string field that refers to
|
242
|
+
# an API resource.
|
243
|
+
# @!attribute [rw] type
|
244
|
+
# @return [::String]
|
245
|
+
# The resource type that the annotated field references.
|
246
|
+
#
|
247
|
+
# Example:
|
248
|
+
#
|
249
|
+
# message Subscription {
|
250
|
+
# string topic = 2 [(google.api.resource_reference) = {
|
251
|
+
# type: "pubsub.googleapis.com/Topic"
|
252
|
+
# }];
|
253
|
+
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
265
|
+
# @!attribute [rw] child_type
|
266
|
+
# @return [::String]
|
267
|
+
# The resource type of a child collection that the annotated field
|
268
|
+
# references. This is useful for annotating the `parent` field that
|
269
|
+
# doesn't have a fixed resource type.
|
270
|
+
#
|
271
|
+
# Example:
|
272
|
+
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
278
|
+
class ResourceReference
|
279
|
+
include ::Google::Protobuf::MessageExts
|
280
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
@@ -0,0 +1,756 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Metastore
|
23
|
+
module V1
|
24
|
+
# A managed metastore service that serves metadata queries.
|
25
|
+
# @!attribute [rw] hive_metastore_config
|
26
|
+
# @return [::Google::Cloud::Metastore::V1::HiveMetastoreConfig]
|
27
|
+
# Configuration information specific to running Hive metastore
|
28
|
+
# software as the metastore service.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# Immutable. The relative resource name of the metastore service, of the form:
|
32
|
+
#
|
33
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
34
|
+
# @!attribute [r] create_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# Output only. The time when the metastore service was created.
|
37
|
+
# @!attribute [r] update_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# Output only. The time when the metastore service was last updated.
|
40
|
+
# @!attribute [rw] labels
|
41
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
42
|
+
# User-defined labels for the metastore service.
|
43
|
+
# @!attribute [rw] network
|
44
|
+
# @return [::String]
|
45
|
+
# Immutable. The relative resource name of the VPC network on which the instance can be
|
46
|
+
# accessed. It is specified in the following form:
|
47
|
+
#
|
48
|
+
# `projects/{project_number}/global/networks/{network_id}`.
|
49
|
+
# @!attribute [r] endpoint_uri
|
50
|
+
# @return [::String]
|
51
|
+
# Output only. The URI of the endpoint used to access the metastore service.
|
52
|
+
# @!attribute [rw] port
|
53
|
+
# @return [::Integer]
|
54
|
+
# The TCP port at which the metastore service is reached. Default: 9083.
|
55
|
+
# @!attribute [r] state
|
56
|
+
# @return [::Google::Cloud::Metastore::V1::Service::State]
|
57
|
+
# Output only. The current state of the metastore service.
|
58
|
+
# @!attribute [r] state_message
|
59
|
+
# @return [::String]
|
60
|
+
# Output only. Additional information about the current state of the metastore service, if
|
61
|
+
# available.
|
62
|
+
# @!attribute [r] artifact_gcs_uri
|
63
|
+
# @return [::String]
|
64
|
+
# Output only. A Cloud Storage URI (starting with `gs://`) that specifies where artifacts
|
65
|
+
# related to the metastore service are stored.
|
66
|
+
# @!attribute [rw] tier
|
67
|
+
# @return [::Google::Cloud::Metastore::V1::Service::Tier]
|
68
|
+
# The tier of the service.
|
69
|
+
# @!attribute [rw] maintenance_window
|
70
|
+
# @return [::Google::Cloud::Metastore::V1::MaintenanceWindow]
|
71
|
+
# The one hour maintenance window of the metastore service. This specifies
|
72
|
+
# when the service can be restarted for maintenance purposes in UTC time.
|
73
|
+
# @!attribute [r] uid
|
74
|
+
# @return [::String]
|
75
|
+
# Output only. The globally unique resource identifier of the metastore service.
|
76
|
+
# @!attribute [r] metadata_management_activity
|
77
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataManagementActivity]
|
78
|
+
# Output only. The metadata management activities of the metastore service.
|
79
|
+
# @!attribute [rw] release_channel
|
80
|
+
# @return [::Google::Cloud::Metastore::V1::Service::ReleaseChannel]
|
81
|
+
# Immutable. The release channel of the service.
|
82
|
+
# If unspecified, defaults to `STABLE`.
|
83
|
+
class Service
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
|
87
|
+
# @!attribute [rw] key
|
88
|
+
# @return [::String]
|
89
|
+
# @!attribute [rw] value
|
90
|
+
# @return [::String]
|
91
|
+
class LabelsEntry
|
92
|
+
include ::Google::Protobuf::MessageExts
|
93
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
94
|
+
end
|
95
|
+
|
96
|
+
# The current state of the metastore service.
|
97
|
+
module State
|
98
|
+
# The state of the metastore service is unknown.
|
99
|
+
STATE_UNSPECIFIED = 0
|
100
|
+
|
101
|
+
# The metastore service is in the process of being created.
|
102
|
+
CREATING = 1
|
103
|
+
|
104
|
+
# The metastore service is running and ready to serve queries.
|
105
|
+
ACTIVE = 2
|
106
|
+
|
107
|
+
# The metastore service is entering suspension. Its query-serving
|
108
|
+
# availability may cease unexpectedly.
|
109
|
+
SUSPENDING = 3
|
110
|
+
|
111
|
+
# The metastore service is suspended and unable to serve queries.
|
112
|
+
SUSPENDED = 4
|
113
|
+
|
114
|
+
# The metastore service is being updated. It remains usable but cannot
|
115
|
+
# accept additional update requests or be deleted at this time.
|
116
|
+
UPDATING = 5
|
117
|
+
|
118
|
+
# The metastore service is undergoing deletion. It cannot be used.
|
119
|
+
DELETING = 6
|
120
|
+
|
121
|
+
# The metastore service has encountered an error and cannot be used. The
|
122
|
+
# metastore service should be deleted.
|
123
|
+
ERROR = 7
|
124
|
+
end
|
125
|
+
|
126
|
+
# Available service tiers.
|
127
|
+
module Tier
|
128
|
+
# The tier is not set.
|
129
|
+
TIER_UNSPECIFIED = 0
|
130
|
+
|
131
|
+
# The developer tier provides limited scalability and no fault tolerance.
|
132
|
+
# Good for low-cost proof-of-concept.
|
133
|
+
DEVELOPER = 1
|
134
|
+
|
135
|
+
# The enterprise tier provides multi-zone high availability, and sufficient
|
136
|
+
# scalability for enterprise-level Dataproc Metastore workloads.
|
137
|
+
ENTERPRISE = 3
|
138
|
+
end
|
139
|
+
|
140
|
+
# Release channels bundle features of varying levels of stability. Newer
|
141
|
+
# features may be introduced initially into less stable release channels and
|
142
|
+
# can be automatically promoted into more stable release channels.
|
143
|
+
module ReleaseChannel
|
144
|
+
# Release channel is not specified.
|
145
|
+
RELEASE_CHANNEL_UNSPECIFIED = 0
|
146
|
+
|
147
|
+
# The `CANARY` release channel contains the newest features, which may be
|
148
|
+
# unstable and subject to unresolved issues with no known workarounds.
|
149
|
+
# Services using the `CANARY` release channel are not subject to any SLAs.
|
150
|
+
CANARY = 1
|
151
|
+
|
152
|
+
# The `STABLE` release channel contains features that are considered stable
|
153
|
+
# and have been validated for production use.
|
154
|
+
STABLE = 2
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# Maintenance window. This specifies when Dataproc Metastore
|
159
|
+
# may perform system maintenance operation to the service.
|
160
|
+
# @!attribute [rw] hour_of_day
|
161
|
+
# @return [::Google::Protobuf::Int32Value]
|
162
|
+
# The hour of day (0-23) when the window starts.
|
163
|
+
# @!attribute [rw] day_of_week
|
164
|
+
# @return [::Google::Type::DayOfWeek]
|
165
|
+
# The day of week, when the window starts.
|
166
|
+
class MaintenanceWindow
|
167
|
+
include ::Google::Protobuf::MessageExts
|
168
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
169
|
+
end
|
170
|
+
|
171
|
+
# Specifies configuration information specific to running Hive metastore
|
172
|
+
# software as the metastore service.
|
173
|
+
# @!attribute [rw] version
|
174
|
+
# @return [::String]
|
175
|
+
# Immutable. The Hive metastore schema version.
|
176
|
+
# @!attribute [rw] config_overrides
|
177
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
178
|
+
# A mapping of Hive metastore configuration key-value pairs to apply to the
|
179
|
+
# Hive metastore (configured in `hive-site.xml`). The mappings
|
180
|
+
# override system defaults (some keys cannot be overridden).
|
181
|
+
# @!attribute [rw] kerberos_config
|
182
|
+
# @return [::Google::Cloud::Metastore::V1::KerberosConfig]
|
183
|
+
# Information used to configure the Hive metastore service as a service
|
184
|
+
# principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
|
185
|
+
# method and specify this field's path
|
186
|
+
# (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
|
187
|
+
# while omitting this field from the request's `service`.
|
188
|
+
class HiveMetastoreConfig
|
189
|
+
include ::Google::Protobuf::MessageExts
|
190
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
191
|
+
|
192
|
+
# @!attribute [rw] key
|
193
|
+
# @return [::String]
|
194
|
+
# @!attribute [rw] value
|
195
|
+
# @return [::String]
|
196
|
+
class ConfigOverridesEntry
|
197
|
+
include ::Google::Protobuf::MessageExts
|
198
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# Configuration information for a Kerberos principal.
|
203
|
+
# @!attribute [rw] keytab
|
204
|
+
# @return [::Google::Cloud::Metastore::V1::Secret]
|
205
|
+
# A Kerberos keytab file that can be used to authenticate a service principal
|
206
|
+
# with a Kerberos Key Distribution Center (KDC).
|
207
|
+
# @!attribute [rw] principal
|
208
|
+
# @return [::String]
|
209
|
+
# A Kerberos principal that exists in the both the keytab the KDC
|
210
|
+
# to authenticate as. A typical principal is of the form
|
211
|
+
# `primary/instance@REALM`, but there is no exact format.
|
212
|
+
# @!attribute [rw] krb5_config_gcs_uri
|
213
|
+
# @return [::String]
|
214
|
+
# A Cloud Storage URI that specifies the path to a
|
215
|
+
# krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`,
|
216
|
+
# although the file does not need to be named krb5.conf explicitly.
|
217
|
+
class KerberosConfig
|
218
|
+
include ::Google::Protobuf::MessageExts
|
219
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
220
|
+
end
|
221
|
+
|
222
|
+
# A securely stored value.
|
223
|
+
# @!attribute [rw] cloud_secret
|
224
|
+
# @return [::String]
|
225
|
+
# The relative resource name of a Secret Manager secret version, in the
|
226
|
+
# following form:
|
227
|
+
#
|
228
|
+
# `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`.
|
229
|
+
class Secret
|
230
|
+
include ::Google::Protobuf::MessageExts
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
232
|
+
end
|
233
|
+
|
234
|
+
# The metadata management activities of the metastore service.
|
235
|
+
# @!attribute [r] metadata_exports
|
236
|
+
# @return [::Array<::Google::Cloud::Metastore::V1::MetadataExport>]
|
237
|
+
# Output only. The latest metadata exports of the metastore service.
|
238
|
+
class MetadataManagementActivity
|
239
|
+
include ::Google::Protobuf::MessageExts
|
240
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
241
|
+
end
|
242
|
+
|
243
|
+
# A metastore resource that imports metadata.
|
244
|
+
# @!attribute [rw] database_dump
|
245
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataImport::DatabaseDump]
|
246
|
+
# Immutable. A database dump from a pre-existing metastore's database.
|
247
|
+
# @!attribute [rw] name
|
248
|
+
# @return [::String]
|
249
|
+
# Immutable. The relative resource name of the metadata import, of the form:
|
250
|
+
#
|
251
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.
|
252
|
+
# @!attribute [rw] description
|
253
|
+
# @return [::String]
|
254
|
+
# The description of the metadata import.
|
255
|
+
# @!attribute [r] create_time
|
256
|
+
# @return [::Google::Protobuf::Timestamp]
|
257
|
+
# Output only. The time when the metadata import was created.
|
258
|
+
# @!attribute [r] update_time
|
259
|
+
# @return [::Google::Protobuf::Timestamp]
|
260
|
+
# Output only. The time when the metadata import was last updated.
|
261
|
+
# @!attribute [r] state
|
262
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataImport::State]
|
263
|
+
# Output only. The current state of the metadata import.
|
264
|
+
class MetadataImport
|
265
|
+
include ::Google::Protobuf::MessageExts
|
266
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
267
|
+
|
268
|
+
# A specification of the location of and metadata about a database dump from
|
269
|
+
# a relational database management system.
|
270
|
+
# @!attribute [rw] database_type
|
271
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataImport::DatabaseDump::DatabaseType]
|
272
|
+
# The type of the database.
|
273
|
+
# @!attribute [rw] gcs_uri
|
274
|
+
# @return [::String]
|
275
|
+
# A Cloud Storage object or folder URI that specifies the source from which
|
276
|
+
# to import metadata. It must begin with `gs://`.
|
277
|
+
# @!attribute [rw] type
|
278
|
+
# @return [::Google::Cloud::Metastore::V1::DatabaseDumpSpec::Type]
|
279
|
+
# Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
|
280
|
+
class DatabaseDump
|
281
|
+
include ::Google::Protobuf::MessageExts
|
282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
|
+
|
284
|
+
# The type of the database.
|
285
|
+
module DatabaseType
|
286
|
+
# The type of the source database is unknown.
|
287
|
+
DATABASE_TYPE_UNSPECIFIED = 0
|
288
|
+
|
289
|
+
# The type of the source database is MySQL.
|
290
|
+
MYSQL = 1
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# The current state of the metadata import.
|
295
|
+
module State
|
296
|
+
# The state of the metadata import is unknown.
|
297
|
+
STATE_UNSPECIFIED = 0
|
298
|
+
|
299
|
+
# The metadata import is running.
|
300
|
+
RUNNING = 1
|
301
|
+
|
302
|
+
# The metadata import completed successfully.
|
303
|
+
SUCCEEDED = 2
|
304
|
+
|
305
|
+
# The metadata import is being updated.
|
306
|
+
UPDATING = 3
|
307
|
+
|
308
|
+
# The metadata import failed, and attempted metadata changes were rolled
|
309
|
+
# back.
|
310
|
+
FAILED = 4
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# The details of a metadata export operation.
|
315
|
+
# @!attribute [r] destination_gcs_uri
|
316
|
+
# @return [::String]
|
317
|
+
# Output only. A Cloud Storage URI of a folder that metadata are exported to, in the
|
318
|
+
# form of `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where
|
319
|
+
# `<export_folder>` is automatically generated.
|
320
|
+
# @!attribute [r] start_time
|
321
|
+
# @return [::Google::Protobuf::Timestamp]
|
322
|
+
# Output only. The time when the export started.
|
323
|
+
# @!attribute [r] end_time
|
324
|
+
# @return [::Google::Protobuf::Timestamp]
|
325
|
+
# Output only. The time when the export ended.
|
326
|
+
# @!attribute [r] state
|
327
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataExport::State]
|
328
|
+
# Output only. The current state of the export.
|
329
|
+
# @!attribute [r] database_dump_type
|
330
|
+
# @return [::Google::Cloud::Metastore::V1::DatabaseDumpSpec::Type]
|
331
|
+
# Output only. The type of the database dump.
|
332
|
+
class MetadataExport
|
333
|
+
include ::Google::Protobuf::MessageExts
|
334
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
335
|
+
|
336
|
+
# The current state of the metadata export.
|
337
|
+
module State
|
338
|
+
# The state of the metadata export is unknown.
|
339
|
+
STATE_UNSPECIFIED = 0
|
340
|
+
|
341
|
+
# The metadata export is running.
|
342
|
+
RUNNING = 1
|
343
|
+
|
344
|
+
# The metadata export completed successfully.
|
345
|
+
SUCCEEDED = 2
|
346
|
+
|
347
|
+
# The metadata export failed.
|
348
|
+
FAILED = 3
|
349
|
+
|
350
|
+
# The metadata export is cancelled.
|
351
|
+
CANCELLED = 4
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices}.
|
356
|
+
# @!attribute [rw] parent
|
357
|
+
# @return [::String]
|
358
|
+
# Required. The relative resource name of the location of metastore services to
|
359
|
+
# list, in the following form:
|
360
|
+
#
|
361
|
+
# `projects/{project_number}/locations/{location_id}`.
|
362
|
+
# @!attribute [rw] page_size
|
363
|
+
# @return [::Integer]
|
364
|
+
# Optional. The maximum number of services to return. The response may contain less
|
365
|
+
# than the maximum number. If unspecified, no more than 500 services are
|
366
|
+
# returned. The maximum value is 1000; values above 1000 are changed to 1000.
|
367
|
+
# @!attribute [rw] page_token
|
368
|
+
# @return [::String]
|
369
|
+
# Optional. A page token, received from a previous {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices}
|
370
|
+
# call. Provide this token to retrieve the subsequent page.
|
371
|
+
#
|
372
|
+
# To retrieve the first page, supply an empty page token.
|
373
|
+
#
|
374
|
+
# When paginating, other parameters provided to
|
375
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices} must match the call that provided the
|
376
|
+
# page token.
|
377
|
+
# @!attribute [rw] filter
|
378
|
+
# @return [::String]
|
379
|
+
# Optional. The filter to apply to list results.
|
380
|
+
# @!attribute [rw] order_by
|
381
|
+
# @return [::String]
|
382
|
+
# Optional. Specify the ordering of results as described in [Sorting
|
383
|
+
# Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
|
384
|
+
# If not specified, the results will be sorted in the default order.
|
385
|
+
class ListServicesRequest
|
386
|
+
include ::Google::Protobuf::MessageExts
|
387
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
388
|
+
end
|
389
|
+
|
390
|
+
# Response message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices}.
|
391
|
+
# @!attribute [rw] services
|
392
|
+
# @return [::Array<::Google::Cloud::Metastore::V1::Service>]
|
393
|
+
# The services in the specified location.
|
394
|
+
# @!attribute [rw] next_page_token
|
395
|
+
# @return [::String]
|
396
|
+
# A token that can be sent as `page_token` to retrieve the next page. If this
|
397
|
+
# field is omitted, there are no subsequent pages.
|
398
|
+
# @!attribute [rw] unreachable
|
399
|
+
# @return [::Array<::String>]
|
400
|
+
# Locations that could not be reached.
|
401
|
+
class ListServicesResponse
|
402
|
+
include ::Google::Protobuf::MessageExts
|
403
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
404
|
+
end
|
405
|
+
|
406
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#get_service DataprocMetastore.GetService}.
|
407
|
+
# @!attribute [rw] name
|
408
|
+
# @return [::String]
|
409
|
+
# Required. The relative resource name of the metastore service to retrieve, in the
|
410
|
+
# following form:
|
411
|
+
#
|
412
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
413
|
+
class GetServiceRequest
|
414
|
+
include ::Google::Protobuf::MessageExts
|
415
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
416
|
+
end
|
417
|
+
|
418
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#create_service DataprocMetastore.CreateService}.
|
419
|
+
# @!attribute [rw] parent
|
420
|
+
# @return [::String]
|
421
|
+
# Required. The relative resource name of the location in which to create a metastore
|
422
|
+
# service, in the following form:
|
423
|
+
#
|
424
|
+
# `projects/{project_number}/locations/{location_id}`.
|
425
|
+
# @!attribute [rw] service_id
|
426
|
+
# @return [::String]
|
427
|
+
# Required. The ID of the metastore service, which is used as the final
|
428
|
+
# component of the metastore service's name.
|
429
|
+
#
|
430
|
+
# This value must be between 2 and 63 characters long inclusive, begin with a
|
431
|
+
# letter, end with a letter or number, and consist of alpha-numeric
|
432
|
+
# ASCII characters or hyphens.
|
433
|
+
# @!attribute [rw] service
|
434
|
+
# @return [::Google::Cloud::Metastore::V1::Service]
|
435
|
+
# Required. The Metastore service to create. The `name` field is
|
436
|
+
# ignored. The ID of the created metastore service must be provided in
|
437
|
+
# the request's `service_id` field.
|
438
|
+
# @!attribute [rw] request_id
|
439
|
+
# @return [::String]
|
440
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to ignore the
|
441
|
+
# request if it has completed. The server will ignore subsequent requests
|
442
|
+
# that provide a duplicate request ID for at least 60 minutes after the first
|
443
|
+
# request.
|
444
|
+
#
|
445
|
+
# For example, if an initial request times out, followed by another request
|
446
|
+
# with the same request ID, the server ignores the second request to prevent
|
447
|
+
# the creation of duplicate commitments.
|
448
|
+
#
|
449
|
+
# The request ID must be a valid
|
450
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
|
451
|
+
# A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
452
|
+
class CreateServiceRequest
|
453
|
+
include ::Google::Protobuf::MessageExts
|
454
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
455
|
+
end
|
456
|
+
|
457
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#update_service DataprocMetastore.UpdateService}.
|
458
|
+
# @!attribute [rw] update_mask
|
459
|
+
# @return [::Google::Protobuf::FieldMask]
|
460
|
+
# Required. A field mask used to specify the fields to be overwritten in the
|
461
|
+
# metastore service resource by the update.
|
462
|
+
# Fields specified in the `update_mask` are relative to the resource (not
|
463
|
+
# to the full request). A field is overwritten if it is in the mask.
|
464
|
+
# @!attribute [rw] service
|
465
|
+
# @return [::Google::Cloud::Metastore::V1::Service]
|
466
|
+
# Required. The metastore service to update. The server only merges fields
|
467
|
+
# in the service if they are specified in `update_mask`.
|
468
|
+
#
|
469
|
+
# The metastore service's `name` field is used to identify the metastore
|
470
|
+
# service to be updated.
|
471
|
+
# @!attribute [rw] request_id
|
472
|
+
# @return [::String]
|
473
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to ignore the
|
474
|
+
# request if it has completed. The server will ignore subsequent requests
|
475
|
+
# that provide a duplicate request ID for at least 60 minutes after the first
|
476
|
+
# request.
|
477
|
+
#
|
478
|
+
# For example, if an initial request times out, followed by another request
|
479
|
+
# with the same request ID, the server ignores the second request to prevent
|
480
|
+
# the creation of duplicate commitments.
|
481
|
+
#
|
482
|
+
# The request ID must be a valid
|
483
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
|
484
|
+
# A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
485
|
+
class UpdateServiceRequest
|
486
|
+
include ::Google::Protobuf::MessageExts
|
487
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
488
|
+
end
|
489
|
+
|
490
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#delete_service DataprocMetastore.DeleteService}.
|
491
|
+
# @!attribute [rw] name
|
492
|
+
# @return [::String]
|
493
|
+
# Required. The relative resource name of the metastore service to delete, in the
|
494
|
+
# following form:
|
495
|
+
#
|
496
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
497
|
+
# @!attribute [rw] request_id
|
498
|
+
# @return [::String]
|
499
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to ignore the
|
500
|
+
# request if it has completed. The server will ignore subsequent requests
|
501
|
+
# that provide a duplicate request ID for at least 60 minutes after the first
|
502
|
+
# request.
|
503
|
+
#
|
504
|
+
# For example, if an initial request times out, followed by another request
|
505
|
+
# with the same request ID, the server ignores the second request to prevent
|
506
|
+
# the creation of duplicate commitments.
|
507
|
+
#
|
508
|
+
# The request ID must be a valid
|
509
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
|
510
|
+
# A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
511
|
+
class DeleteServiceRequest
|
512
|
+
include ::Google::Protobuf::MessageExts
|
513
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
514
|
+
end
|
515
|
+
|
516
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_metadata_imports DataprocMetastore.ListMetadataImports}.
|
517
|
+
# @!attribute [rw] parent
|
518
|
+
# @return [::String]
|
519
|
+
# Required. The relative resource name of the service whose metadata imports to
|
520
|
+
# list, in the following form:
|
521
|
+
#
|
522
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`.
|
523
|
+
# @!attribute [rw] page_size
|
524
|
+
# @return [::Integer]
|
525
|
+
# Optional. The maximum number of imports to return. The response may contain less
|
526
|
+
# than the maximum number. If unspecified, no more than 500 imports are
|
527
|
+
# returned. The maximum value is 1000; values above 1000 are changed to 1000.
|
528
|
+
# @!attribute [rw] page_token
|
529
|
+
# @return [::String]
|
530
|
+
# Optional. A page token, received from a previous {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices}
|
531
|
+
# call. Provide this token to retrieve the subsequent page.
|
532
|
+
#
|
533
|
+
# To retrieve the first page, supply an empty page token.
|
534
|
+
#
|
535
|
+
# When paginating, other parameters provided to
|
536
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices} must match the call that provided the
|
537
|
+
# page token.
|
538
|
+
# @!attribute [rw] filter
|
539
|
+
# @return [::String]
|
540
|
+
# Optional. The filter to apply to list results.
|
541
|
+
# @!attribute [rw] order_by
|
542
|
+
# @return [::String]
|
543
|
+
# Optional. Specify the ordering of results as described in [Sorting
|
544
|
+
# Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
|
545
|
+
# If not specified, the results will be sorted in the default order.
|
546
|
+
class ListMetadataImportsRequest
|
547
|
+
include ::Google::Protobuf::MessageExts
|
548
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
549
|
+
end
|
550
|
+
|
551
|
+
# Response message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_metadata_imports DataprocMetastore.ListMetadataImports}.
|
552
|
+
# @!attribute [rw] metadata_imports
|
553
|
+
# @return [::Array<::Google::Cloud::Metastore::V1::MetadataImport>]
|
554
|
+
# The imports in the specified service.
|
555
|
+
# @!attribute [rw] next_page_token
|
556
|
+
# @return [::String]
|
557
|
+
# A token that can be sent as `page_token` to retrieve the next page. If this
|
558
|
+
# field is omitted, there are no subsequent pages.
|
559
|
+
# @!attribute [rw] unreachable
|
560
|
+
# @return [::Array<::String>]
|
561
|
+
# Locations that could not be reached.
|
562
|
+
class ListMetadataImportsResponse
|
563
|
+
include ::Google::Protobuf::MessageExts
|
564
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
565
|
+
end
|
566
|
+
|
567
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#get_metadata_import DataprocMetastore.GetMetadataImport}.
|
568
|
+
# @!attribute [rw] name
|
569
|
+
# @return [::String]
|
570
|
+
# Required. The relative resource name of the metadata import to retrieve, in the
|
571
|
+
# following form:
|
572
|
+
#
|
573
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`.
|
574
|
+
class GetMetadataImportRequest
|
575
|
+
include ::Google::Protobuf::MessageExts
|
576
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
577
|
+
end
|
578
|
+
|
579
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#create_metadata_import DataprocMetastore.CreateMetadataImport}.
|
580
|
+
# @!attribute [rw] parent
|
581
|
+
# @return [::String]
|
582
|
+
# Required. The relative resource name of the service in which to create a metastore
|
583
|
+
# import, in the following form:
|
584
|
+
#
|
585
|
+
# `projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
586
|
+
# @!attribute [rw] metadata_import_id
|
587
|
+
# @return [::String]
|
588
|
+
# Required. The ID of the metadata import, which is used as the final component of the
|
589
|
+
# metadata import's name.
|
590
|
+
#
|
591
|
+
# This value must be between 1 and 64 characters long, begin with a letter,
|
592
|
+
# end with a letter or number, and consist of alpha-numeric ASCII characters
|
593
|
+
# or hyphens.
|
594
|
+
# @!attribute [rw] metadata_import
|
595
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataImport]
|
596
|
+
# Required. The metadata import to create. The `name` field is ignored. The ID of the
|
597
|
+
# created metadata import must be provided in the request's
|
598
|
+
# `metadata_import_id` field.
|
599
|
+
# @!attribute [rw] request_id
|
600
|
+
# @return [::String]
|
601
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to ignore the
|
602
|
+
# request if it has completed. The server will ignore subsequent requests
|
603
|
+
# that provide a duplicate request ID for at least 60 minutes after the first
|
604
|
+
# request.
|
605
|
+
#
|
606
|
+
# For example, if an initial request times out, followed by another request
|
607
|
+
# with the same request ID, the server ignores the second request to prevent
|
608
|
+
# the creation of duplicate commitments.
|
609
|
+
#
|
610
|
+
# The request ID must be a valid
|
611
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
|
612
|
+
# A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
613
|
+
class CreateMetadataImportRequest
|
614
|
+
include ::Google::Protobuf::MessageExts
|
615
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
616
|
+
end
|
617
|
+
|
618
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#update_metadata_import DataprocMetastore.UpdateMetadataImport}.
|
619
|
+
# @!attribute [rw] update_mask
|
620
|
+
# @return [::Google::Protobuf::FieldMask]
|
621
|
+
# Required. A field mask used to specify the fields to be overwritten in the
|
622
|
+
# metadata import resource by the update.
|
623
|
+
# Fields specified in the `update_mask` are relative to the resource (not
|
624
|
+
# to the full request). A field is overwritten if it is in the mask.
|
625
|
+
# @!attribute [rw] metadata_import
|
626
|
+
# @return [::Google::Cloud::Metastore::V1::MetadataImport]
|
627
|
+
# Required. The metadata import to update. The server only merges fields
|
628
|
+
# in the import if they are specified in `update_mask`.
|
629
|
+
#
|
630
|
+
# The metadata import's `name` field is used to identify the metastore
|
631
|
+
# import to be updated.
|
632
|
+
# @!attribute [rw] request_id
|
633
|
+
# @return [::String]
|
634
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to ignore the
|
635
|
+
# request if it has completed. The server will ignore subsequent requests
|
636
|
+
# that provide a duplicate request ID for at least 60 minutes after the first
|
637
|
+
# request.
|
638
|
+
#
|
639
|
+
# For example, if an initial request times out, followed by another request
|
640
|
+
# with the same request ID, the server ignores the second request to prevent
|
641
|
+
# the creation of duplicate commitments.
|
642
|
+
#
|
643
|
+
# The request ID must be a valid
|
644
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
|
645
|
+
# A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
646
|
+
class UpdateMetadataImportRequest
|
647
|
+
include ::Google::Protobuf::MessageExts
|
648
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
649
|
+
end
|
650
|
+
|
651
|
+
# Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#export_metadata DataprocMetastore.ExportMetadata}.
|
652
|
+
# @!attribute [rw] destination_gcs_folder
|
653
|
+
# @return [::String]
|
654
|
+
# A Cloud Storage URI of a folder, in the format
|
655
|
+
# `gs://<bucket_name>/<path_inside_bucket>`. A sub-folder
|
656
|
+
# `<export_folder>` containing exported files will be created below it.
|
657
|
+
# @!attribute [rw] service
|
658
|
+
# @return [::String]
|
659
|
+
# Required. The relative resource name of the metastore service to run export, in the
|
660
|
+
# following form:
|
661
|
+
#
|
662
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
663
|
+
# @!attribute [rw] request_id
|
664
|
+
# @return [::String]
|
665
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to ignore the
|
666
|
+
# request if it has completed. The server will ignore subsequent requests
|
667
|
+
# that provide a duplicate request ID for at least 60 minutes after the first
|
668
|
+
# request.
|
669
|
+
#
|
670
|
+
# For example, if an initial request times out, followed by another request
|
671
|
+
# with the same request ID, the server ignores the second request to prevent
|
672
|
+
# the creation of duplicate commitments.
|
673
|
+
#
|
674
|
+
# The request ID must be a valid
|
675
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
|
676
|
+
# A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
677
|
+
# @!attribute [rw] database_dump_type
|
678
|
+
# @return [::Google::Cloud::Metastore::V1::DatabaseDumpSpec::Type]
|
679
|
+
# Optional. The type of the database dump. If unspecified, defaults to `MYSQL`.
|
680
|
+
class ExportMetadataRequest
|
681
|
+
include ::Google::Protobuf::MessageExts
|
682
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
683
|
+
end
|
684
|
+
|
685
|
+
# Represents the metadata of a long-running operation.
|
686
|
+
# @!attribute [r] create_time
|
687
|
+
# @return [::Google::Protobuf::Timestamp]
|
688
|
+
# Output only. The time the operation was created.
|
689
|
+
# @!attribute [r] end_time
|
690
|
+
# @return [::Google::Protobuf::Timestamp]
|
691
|
+
# Output only. The time the operation finished running.
|
692
|
+
# @!attribute [r] target
|
693
|
+
# @return [::String]
|
694
|
+
# Output only. Server-defined resource path for the target of the operation.
|
695
|
+
# @!attribute [r] verb
|
696
|
+
# @return [::String]
|
697
|
+
# Output only. Name of the verb executed by the operation.
|
698
|
+
# @!attribute [r] status_message
|
699
|
+
# @return [::String]
|
700
|
+
# Output only. Human-readable status of the operation, if any.
|
701
|
+
# @!attribute [r] requested_cancellation
|
702
|
+
# @return [::Boolean]
|
703
|
+
# Output only. Identifies whether the caller has requested cancellation
|
704
|
+
# of the operation. Operations that have successfully been cancelled
|
705
|
+
# have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
706
|
+
# corresponding to `Code.CANCELLED`.
|
707
|
+
# @!attribute [r] api_version
|
708
|
+
# @return [::String]
|
709
|
+
# Output only. API version used to start the operation.
|
710
|
+
class OperationMetadata
|
711
|
+
include ::Google::Protobuf::MessageExts
|
712
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
713
|
+
end
|
714
|
+
|
715
|
+
# Metadata about the service in a location.
|
716
|
+
# @!attribute [rw] supported_hive_metastore_versions
|
717
|
+
# @return [::Array<::Google::Cloud::Metastore::V1::LocationMetadata::HiveMetastoreVersion>]
|
718
|
+
# The versions of Hive Metastore that can be used when creating a new
|
719
|
+
# metastore service in this location. The server guarantees that exactly one
|
720
|
+
# `HiveMetastoreVersion` in the list will set `is_default`.
|
721
|
+
class LocationMetadata
|
722
|
+
include ::Google::Protobuf::MessageExts
|
723
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
724
|
+
|
725
|
+
# A specification of a supported version of the Hive Metastore software.
|
726
|
+
# @!attribute [rw] version
|
727
|
+
# @return [::String]
|
728
|
+
# The semantic version of the Hive Metastore software.
|
729
|
+
# @!attribute [rw] is_default
|
730
|
+
# @return [::Boolean]
|
731
|
+
# Whether `version` will be chosen by the server if a metastore service is
|
732
|
+
# created with a `HiveMetastoreConfig` that omits the `version`.
|
733
|
+
class HiveMetastoreVersion
|
734
|
+
include ::Google::Protobuf::MessageExts
|
735
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
736
|
+
end
|
737
|
+
end
|
738
|
+
|
739
|
+
# The specification of database dump to import from or export to.
|
740
|
+
class DatabaseDumpSpec
|
741
|
+
include ::Google::Protobuf::MessageExts
|
742
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
743
|
+
|
744
|
+
# The type of the database dump.
|
745
|
+
module Type
|
746
|
+
# The type of the database dump is unknown.
|
747
|
+
TYPE_UNSPECIFIED = 0
|
748
|
+
|
749
|
+
# Database dump is a MySQL dump file.
|
750
|
+
MYSQL = 1
|
751
|
+
end
|
752
|
+
end
|
753
|
+
end
|
754
|
+
end
|
755
|
+
end
|
756
|
+
end
|