google-apis-metastore_v1beta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module MetastoreV1beta
18
+ # Version of the google-apis-metastore_v1beta gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201212"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,479 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module MetastoreV1beta
24
+
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DatabaseDump
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Empty
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ExportMetadataRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class HiveMetastoreConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class HiveMetastoreVersion
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class KerberosConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListLocationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListMetadataImportsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListOperationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListServicesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Location
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class LocationMetadata
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class MaintenanceWindow
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class MetadataExport
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class MetadataImport
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class MetadataIntegration
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class MetadataManagementActivity
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Operation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Policy
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Secret
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Service
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class SetIamPolicyRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Status
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class TestIamPermissionsRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class AuditConfig
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MetastoreV1beta::AuditLogConfig, decorator: Google::Apis::MetastoreV1beta::AuditLogConfig::Representation
203
+
204
+ property :service, as: 'service'
205
+ end
206
+ end
207
+
208
+ class AuditLogConfig
209
+ # @private
210
+ class Representation < Google::Apis::Core::JsonRepresentation
211
+ collection :exempted_members, as: 'exemptedMembers'
212
+ property :log_type, as: 'logType'
213
+ end
214
+ end
215
+
216
+ class Binding
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :condition, as: 'condition', class: Google::Apis::MetastoreV1beta::Expr, decorator: Google::Apis::MetastoreV1beta::Expr::Representation
220
+
221
+ collection :members, as: 'members'
222
+ property :role, as: 'role'
223
+ end
224
+ end
225
+
226
+ class DatabaseDump
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :database_type, as: 'databaseType'
230
+ property :gcs_uri, as: 'gcsUri'
231
+ property :source_database, as: 'sourceDatabase'
232
+ end
233
+ end
234
+
235
+ class Empty
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ end
239
+ end
240
+
241
+ class ExportMetadataRequest
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :destination_gcs_folder, as: 'destinationGcsFolder'
245
+ property :request_id, as: 'requestId'
246
+ end
247
+ end
248
+
249
+ class Expr
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :description, as: 'description'
253
+ property :expression, as: 'expression'
254
+ property :location, as: 'location'
255
+ property :title, as: 'title'
256
+ end
257
+ end
258
+
259
+ class HiveMetastoreConfig
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ hash :config_overrides, as: 'configOverrides'
263
+ property :kerberos_config, as: 'kerberosConfig', class: Google::Apis::MetastoreV1beta::KerberosConfig, decorator: Google::Apis::MetastoreV1beta::KerberosConfig::Representation
264
+
265
+ property :version, as: 'version'
266
+ end
267
+ end
268
+
269
+ class HiveMetastoreVersion
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :is_default, as: 'isDefault'
273
+ property :version, as: 'version'
274
+ end
275
+ end
276
+
277
+ class KerberosConfig
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ property :keytab, as: 'keytab', class: Google::Apis::MetastoreV1beta::Secret, decorator: Google::Apis::MetastoreV1beta::Secret::Representation
281
+
282
+ property :krb5_config_gcs_uri, as: 'krb5ConfigGcsUri'
283
+ property :principal, as: 'principal'
284
+ end
285
+ end
286
+
287
+ class ListLocationsResponse
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ collection :locations, as: 'locations', class: Google::Apis::MetastoreV1beta::Location, decorator: Google::Apis::MetastoreV1beta::Location::Representation
291
+
292
+ property :next_page_token, as: 'nextPageToken'
293
+ end
294
+ end
295
+
296
+ class ListMetadataImportsResponse
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ collection :metadata_imports, as: 'metadataImports', class: Google::Apis::MetastoreV1beta::MetadataImport, decorator: Google::Apis::MetastoreV1beta::MetadataImport::Representation
300
+
301
+ property :next_page_token, as: 'nextPageToken'
302
+ collection :unreachable, as: 'unreachable'
303
+ end
304
+ end
305
+
306
+ class ListOperationsResponse
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :next_page_token, as: 'nextPageToken'
310
+ collection :operations, as: 'operations', class: Google::Apis::MetastoreV1beta::Operation, decorator: Google::Apis::MetastoreV1beta::Operation::Representation
311
+
312
+ end
313
+ end
314
+
315
+ class ListServicesResponse
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :next_page_token, as: 'nextPageToken'
319
+ collection :services, as: 'services', class: Google::Apis::MetastoreV1beta::Service, decorator: Google::Apis::MetastoreV1beta::Service::Representation
320
+
321
+ collection :unreachable, as: 'unreachable'
322
+ end
323
+ end
324
+
325
+ class Location
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :display_name, as: 'displayName'
329
+ hash :labels, as: 'labels'
330
+ property :location_id, as: 'locationId'
331
+ hash :metadata, as: 'metadata'
332
+ property :name, as: 'name'
333
+ end
334
+ end
335
+
336
+ class LocationMetadata
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ collection :supported_hive_metastore_versions, as: 'supportedHiveMetastoreVersions', class: Google::Apis::MetastoreV1beta::HiveMetastoreVersion, decorator: Google::Apis::MetastoreV1beta::HiveMetastoreVersion::Representation
340
+
341
+ end
342
+ end
343
+
344
+ class MaintenanceWindow
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ property :day_of_week, as: 'dayOfWeek'
348
+ property :hour_of_day, as: 'hourOfDay'
349
+ end
350
+ end
351
+
352
+ class MetadataExport
353
+ # @private
354
+ class Representation < Google::Apis::Core::JsonRepresentation
355
+ property :destination_gcs_uri, as: 'destinationGcsUri'
356
+ property :end_time, as: 'endTime'
357
+ property :start_time, as: 'startTime'
358
+ property :state, as: 'state'
359
+ end
360
+ end
361
+
362
+ class MetadataImport
363
+ # @private
364
+ class Representation < Google::Apis::Core::JsonRepresentation
365
+ property :create_time, as: 'createTime'
366
+ property :database_dump, as: 'databaseDump', class: Google::Apis::MetastoreV1beta::DatabaseDump, decorator: Google::Apis::MetastoreV1beta::DatabaseDump::Representation
367
+
368
+ property :description, as: 'description'
369
+ property :name, as: 'name'
370
+ property :state, as: 'state'
371
+ property :update_time, as: 'updateTime'
372
+ end
373
+ end
374
+
375
+ class MetadataIntegration
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ end
379
+ end
380
+
381
+ class MetadataManagementActivity
382
+ # @private
383
+ class Representation < Google::Apis::Core::JsonRepresentation
384
+ collection :metadata_exports, as: 'metadataExports', class: Google::Apis::MetastoreV1beta::MetadataExport, decorator: Google::Apis::MetastoreV1beta::MetadataExport::Representation
385
+
386
+ end
387
+ end
388
+
389
+ class Operation
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :done, as: 'done'
393
+ property :error, as: 'error', class: Google::Apis::MetastoreV1beta::Status, decorator: Google::Apis::MetastoreV1beta::Status::Representation
394
+
395
+ hash :metadata, as: 'metadata'
396
+ property :name, as: 'name'
397
+ hash :response, as: 'response'
398
+ end
399
+ end
400
+
401
+ class Policy
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MetastoreV1beta::AuditConfig, decorator: Google::Apis::MetastoreV1beta::AuditConfig::Representation
405
+
406
+ collection :bindings, as: 'bindings', class: Google::Apis::MetastoreV1beta::Binding, decorator: Google::Apis::MetastoreV1beta::Binding::Representation
407
+
408
+ property :etag, :base64 => true, as: 'etag'
409
+ property :version, as: 'version'
410
+ end
411
+ end
412
+
413
+ class Secret
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ property :cloud_secret, as: 'cloudSecret'
417
+ end
418
+ end
419
+
420
+ class Service
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ property :artifact_gcs_uri, as: 'artifactGcsUri'
424
+ property :create_time, as: 'createTime'
425
+ property :endpoint_uri, as: 'endpointUri'
426
+ property :hive_metastore_config, as: 'hiveMetastoreConfig', class: Google::Apis::MetastoreV1beta::HiveMetastoreConfig, decorator: Google::Apis::MetastoreV1beta::HiveMetastoreConfig::Representation
427
+
428
+ hash :labels, as: 'labels'
429
+ property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::MetastoreV1beta::MaintenanceWindow, decorator: Google::Apis::MetastoreV1beta::MaintenanceWindow::Representation
430
+
431
+ property :metadata_integration, as: 'metadataIntegration', class: Google::Apis::MetastoreV1beta::MetadataIntegration, decorator: Google::Apis::MetastoreV1beta::MetadataIntegration::Representation
432
+
433
+ property :metadata_management_activity, as: 'metadataManagementActivity', class: Google::Apis::MetastoreV1beta::MetadataManagementActivity, decorator: Google::Apis::MetastoreV1beta::MetadataManagementActivity::Representation
434
+
435
+ property :name, as: 'name'
436
+ property :network, as: 'network'
437
+ property :port, as: 'port'
438
+ property :state, as: 'state'
439
+ property :state_message, as: 'stateMessage'
440
+ property :tier, as: 'tier'
441
+ property :uid, as: 'uid'
442
+ property :update_time, as: 'updateTime'
443
+ end
444
+ end
445
+
446
+ class SetIamPolicyRequest
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ property :policy, as: 'policy', class: Google::Apis::MetastoreV1beta::Policy, decorator: Google::Apis::MetastoreV1beta::Policy::Representation
450
+
451
+ property :update_mask, as: 'updateMask'
452
+ end
453
+ end
454
+
455
+ class Status
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ property :code, as: 'code'
459
+ collection :details, as: 'details'
460
+ property :message, as: 'message'
461
+ end
462
+ end
463
+
464
+ class TestIamPermissionsRequest
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ collection :permissions, as: 'permissions'
468
+ end
469
+ end
470
+
471
+ class TestIamPermissionsResponse
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ collection :permissions, as: 'permissions'
475
+ end
476
+ end
477
+ end
478
+ end
479
+ end