google-cloud-metastore-v1beta 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,307 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 V1beta
24
+ # Represents a federation of multiple backend metastores.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Immutable. The relative resource name of the federation, of the
28
+ # form:
29
+ # projects/\\{project_number}/locations/\\{location_id}/federations/\\{federation_id}`.
30
+ # @!attribute [r] create_time
31
+ # @return [::Google::Protobuf::Timestamp]
32
+ # Output only. The time when the metastore federation was created.
33
+ # @!attribute [r] update_time
34
+ # @return [::Google::Protobuf::Timestamp]
35
+ # Output only. The time when the metastore federation was last updated.
36
+ # @!attribute [rw] labels
37
+ # @return [::Google::Protobuf::Map{::String => ::String}]
38
+ # User-defined labels for the metastore federation.
39
+ # @!attribute [rw] version
40
+ # @return [::String]
41
+ # Immutable. The Apache Hive metastore version of the federation. All backend
42
+ # metastore versions must be compatible with the federation version.
43
+ # @!attribute [rw] backend_metastores
44
+ # @return [::Google::Protobuf::Map{::Integer => ::Google::Cloud::Metastore::V1beta::BackendMetastore}]
45
+ # A map from `BackendMetastore` rank to `BackendMetastore`s from which the
46
+ # federation service serves metadata at query time. The map key represents
47
+ # the order in which `BackendMetastore`s should be evaluated to resolve
48
+ # database names at query time and should be greater than or equal to zero. A
49
+ # `BackendMetastore` with a lower number will be evaluated before a
50
+ # `BackendMetastore` with a higher number.
51
+ # @!attribute [r] endpoint_uri
52
+ # @return [::String]
53
+ # Output only. The federation endpoint.
54
+ # @!attribute [r] state
55
+ # @return [::Google::Cloud::Metastore::V1beta::Federation::State]
56
+ # Output only. The current state of the federation.
57
+ # @!attribute [r] state_message
58
+ # @return [::String]
59
+ # Output only. Additional information about the current state of the
60
+ # metastore federation, if available.
61
+ # @!attribute [r] uid
62
+ # @return [::String]
63
+ # Output only. The globally unique resource identifier of the metastore
64
+ # federation.
65
+ class Federation
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+
69
+ # @!attribute [rw] key
70
+ # @return [::String]
71
+ # @!attribute [rw] value
72
+ # @return [::String]
73
+ class LabelsEntry
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+
78
+ # @!attribute [rw] key
79
+ # @return [::Integer]
80
+ # @!attribute [rw] value
81
+ # @return [::Google::Cloud::Metastore::V1beta::BackendMetastore]
82
+ class BackendMetastoresEntry
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # The current state of the federation.
88
+ module State
89
+ # The state of the metastore federation is unknown.
90
+ STATE_UNSPECIFIED = 0
91
+
92
+ # The metastore federation is in the process of being created.
93
+ CREATING = 1
94
+
95
+ # The metastore federation is running and ready to serve queries.
96
+ ACTIVE = 2
97
+
98
+ # The metastore federation is being updated. It remains usable but cannot
99
+ # accept additional update requests or be deleted at this time.
100
+ UPDATING = 3
101
+
102
+ # The metastore federation is undergoing deletion. It cannot be used.
103
+ DELETING = 4
104
+
105
+ # The metastore federation has encountered an error and cannot be used. The
106
+ # metastore federation should be deleted.
107
+ ERROR = 5
108
+ end
109
+ end
110
+
111
+ # Represents a backend metastore for the federation.
112
+ # @!attribute [rw] name
113
+ # @return [::String]
114
+ # The relative resource name of the metastore that is being federated.
115
+ # The formats of the relative resource names for the currently supported
116
+ # metastores are listed below:
117
+ #
118
+ # * Dataplex
119
+ # * `projects/{project_id}/locations/{location}/lakes/{lake_id}`
120
+ # * BigQuery
121
+ # * `projects/{project_id}`
122
+ # * Dataproc Metastore
123
+ # * `projects/{project_id}/locations/{location}/services/{service_id}`
124
+ # @!attribute [rw] metastore_type
125
+ # @return [::Google::Cloud::Metastore::V1beta::BackendMetastore::MetastoreType]
126
+ # The type of the backend metastore.
127
+ class BackendMetastore
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+
131
+ # The type of the backend metastore.
132
+ module MetastoreType
133
+ # The metastore type is not set.
134
+ METASTORE_TYPE_UNSPECIFIED = 0
135
+
136
+ # The backend metastore is BigQuery.
137
+ BIGQUERY = 2
138
+
139
+ # The backend metastore is Dataproc Metastore.
140
+ DATAPROC_METASTORE = 3
141
+ end
142
+ end
143
+
144
+ # Request message for ListFederations.
145
+ # @!attribute [rw] parent
146
+ # @return [::String]
147
+ # Required. The relative resource name of the location of metastore
148
+ # federations to list, in the following form:
149
+ # `projects/{project_number}/locations/{location_id}`.
150
+ # @!attribute [rw] page_size
151
+ # @return [::Integer]
152
+ # Optional. The maximum number of federations to return. The response may
153
+ # contain less than the maximum number. If unspecified, no more than 500
154
+ # services are returned. The maximum value is 1000; values above 1000 are
155
+ # changed to 1000.
156
+ # @!attribute [rw] page_token
157
+ # @return [::String]
158
+ # Optional. A page token, received from a previous ListFederationServices
159
+ # call. Provide this token to retrieve the subsequent page.
160
+ #
161
+ # To retrieve the first page, supply an empty page token.
162
+ #
163
+ # When paginating, other parameters provided to
164
+ # ListFederationServices must match the call that provided the
165
+ # page token.
166
+ # @!attribute [rw] filter
167
+ # @return [::String]
168
+ # Optional. The filter to apply to list results.
169
+ # @!attribute [rw] order_by
170
+ # @return [::String]
171
+ # Optional. Specify the ordering of results as described in [Sorting
172
+ # Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
173
+ # If not specified, the results will be sorted in the default order.
174
+ class ListFederationsRequest
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+ end
178
+
179
+ # Response message for ListFederations
180
+ # @!attribute [rw] federations
181
+ # @return [::Array<::Google::Cloud::Metastore::V1beta::Federation>]
182
+ # The services in the specified location.
183
+ # @!attribute [rw] next_page_token
184
+ # @return [::String]
185
+ # A token that can be sent as `page_token` to retrieve the next page. If this
186
+ # field is omitted, there are no subsequent pages.
187
+ # @!attribute [rw] unreachable
188
+ # @return [::Array<::String>]
189
+ # Locations that could not be reached.
190
+ class ListFederationsResponse
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
+ end
194
+
195
+ # Request message for GetFederation.
196
+ # @!attribute [rw] name
197
+ # @return [::String]
198
+ # Required. The relative resource name of the metastore federation to
199
+ # retrieve, in the following form:
200
+ #
201
+ # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
202
+ class GetFederationRequest
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # Request message for CreateFederation.
208
+ # @!attribute [rw] parent
209
+ # @return [::String]
210
+ # Required. The relative resource name of the location in which to create a
211
+ # federation service, in the following form:
212
+ #
213
+ # `projects/{project_number}/locations/{location_id}`.
214
+ # @!attribute [rw] federation_id
215
+ # @return [::String]
216
+ # Required. The ID of the metastore federation, which is used as the final
217
+ # component of the metastore federation's name.
218
+ #
219
+ # This value must be between 2 and 63 characters long inclusive, begin with a
220
+ # letter, end with a letter or number, and consist of alpha-numeric
221
+ # ASCII characters or hyphens.
222
+ # @!attribute [rw] federation
223
+ # @return [::Google::Cloud::Metastore::V1beta::Federation]
224
+ # Required. The Metastore Federation to create. The `name` field is
225
+ # ignored. The ID of the created metastore federation must be
226
+ # provided in the request's `federation_id` field.
227
+ # @!attribute [rw] request_id
228
+ # @return [::String]
229
+ # Optional. A request ID. Specify a unique request ID to allow the server to
230
+ # ignore the request if it has completed. The server will ignore subsequent
231
+ # requests that provide a duplicate request ID for at least 60 minutes after
232
+ # the first request.
233
+ #
234
+ # For example, if an initial request times out, followed by another request
235
+ # with the same request ID, the server ignores the second request to prevent
236
+ # the creation of duplicate commitments.
237
+ #
238
+ # The request ID must be a valid
239
+ # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
240
+ # A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
241
+ class CreateFederationRequest
242
+ include ::Google::Protobuf::MessageExts
243
+ extend ::Google::Protobuf::MessageExts::ClassMethods
244
+ end
245
+
246
+ # Request message for UpdateFederation.
247
+ # @!attribute [rw] update_mask
248
+ # @return [::Google::Protobuf::FieldMask]
249
+ # Required. A field mask used to specify the fields to be overwritten in the
250
+ # metastore federation resource by the update.
251
+ # Fields specified in the `update_mask` are relative to the resource (not
252
+ # to the full request). A field is overwritten if it is in the mask.
253
+ # @!attribute [rw] federation
254
+ # @return [::Google::Cloud::Metastore::V1beta::Federation]
255
+ # Required. The metastore federation to update. The server only merges fields
256
+ # in the service if they are specified in `update_mask`.
257
+ #
258
+ # The metastore federation's `name` field is used to identify the
259
+ # metastore service to be updated.
260
+ # @!attribute [rw] request_id
261
+ # @return [::String]
262
+ # Optional. A request ID. Specify a unique request ID to allow the server to
263
+ # ignore the request if it has completed. The server will ignore subsequent
264
+ # requests that provide a duplicate request ID for at least 60 minutes after
265
+ # the first request.
266
+ #
267
+ # For example, if an initial request times out, followed by another request
268
+ # with the same request ID, the server ignores the second request to prevent
269
+ # the creation of duplicate commitments.
270
+ #
271
+ # The request ID must be a valid
272
+ # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
273
+ # A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
274
+ class UpdateFederationRequest
275
+ include ::Google::Protobuf::MessageExts
276
+ extend ::Google::Protobuf::MessageExts::ClassMethods
277
+ end
278
+
279
+ # Request message for DeleteFederation.
280
+ # @!attribute [rw] name
281
+ # @return [::String]
282
+ # Required. The relative resource name of the metastore federation to delete,
283
+ # in the following form:
284
+ #
285
+ # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
286
+ # @!attribute [rw] request_id
287
+ # @return [::String]
288
+ # Optional. A request ID. Specify a unique request ID to allow the server to
289
+ # ignore the request if it has completed. The server will ignore subsequent
290
+ # requests that provide a duplicate request ID for at least 60 minutes after
291
+ # the first request.
292
+ #
293
+ # For example, if an initial request times out, followed by another request
294
+ # with the same request ID, the server ignores the second request to prevent
295
+ # the creation of duplicate commitments.
296
+ #
297
+ # The request ID must be a valid
298
+ # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
299
+ # A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
300
+ class DeleteFederationRequest
301
+ include ::Google::Protobuf::MessageExts
302
+ extend ::Google::Protobuf::MessageExts::ClassMethods
303
+ end
304
+ end
305
+ end
306
+ end
307
+ end
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -28,12 +28,14 @@ module Google
28
28
  # [API Design Guide](https://cloud.google.com/apis/design/errors).
29
29
  # @!attribute [rw] code
30
30
  # @return [::Integer]
31
- # The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
31
+ # The status code, which should be an enum value of
32
+ # [google.rpc.Code][google.rpc.Code].
32
33
  # @!attribute [rw] message
33
34
  # @return [::String]
34
35
  # A developer-facing error message, which should be in English. Any
35
36
  # user-facing error message should be localized and sent in the
36
- # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
37
+ # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
38
+ # by the client.
37
39
  # @!attribute [rw] details
38
40
  # @return [::Array<::Google::Protobuf::Any>]
39
41
  # A list of messages that carry the error details. There is a common set of
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-metastore-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-05 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: 0.16.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: 0.16.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -179,13 +179,23 @@ files:
179
179
  - lib/google/cloud/metastore/v1beta/dataproc_metastore/credentials.rb
180
180
  - lib/google/cloud/metastore/v1beta/dataproc_metastore/operations.rb
181
181
  - lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb
182
+ - lib/google/cloud/metastore/v1beta/dataproc_metastore_federation.rb
183
+ - lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/client.rb
184
+ - lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/credentials.rb
185
+ - lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/operations.rb
186
+ - lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/paths.rb
187
+ - lib/google/cloud/metastore/v1beta/metastore_federation_pb.rb
188
+ - lib/google/cloud/metastore/v1beta/metastore_federation_services_pb.rb
182
189
  - lib/google/cloud/metastore/v1beta/metastore_pb.rb
183
190
  - lib/google/cloud/metastore/v1beta/metastore_services_pb.rb
184
191
  - lib/google/cloud/metastore/v1beta/version.rb
185
192
  - proto_docs/README.md
193
+ - proto_docs/google/api/client.rb
186
194
  - proto_docs/google/api/field_behavior.rb
195
+ - proto_docs/google/api/launch_stage.rb
187
196
  - proto_docs/google/api/resource.rb
188
197
  - proto_docs/google/cloud/metastore/v1beta/metastore.rb
198
+ - proto_docs/google/cloud/metastore/v1beta/metastore_federation.rb
189
199
  - proto_docs/google/longrunning/operations.rb
190
200
  - proto_docs/google/protobuf/any.rb
191
201
  - proto_docs/google/protobuf/duration.rb