google-apis-metastore_v1alpha 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 MetastoreV1alpha
18
+ # Version of the google-apis-metastore_v1alpha 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,498 @@
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
+ 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 GoogleCloudMetastoreV1alphaOperationMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class HiveMetastoreConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class HiveMetastoreVersion
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class KerberosConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListLocationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListMetadataImportsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListOperationsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListServicesResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Location
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class LocationMetadata
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class MaintenanceWindow
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class MetadataExport
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class MetadataImport
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class MetadataIntegration
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class MetadataManagementActivity
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Operation
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Policy
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Secret
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Service
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class SetIamPolicyRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Status
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TestIamPermissionsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class AuditConfig
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MetastoreV1alpha::AuditLogConfig, decorator: Google::Apis::MetastoreV1alpha::AuditLogConfig::Representation
209
+
210
+ property :service, as: 'service'
211
+ end
212
+ end
213
+
214
+ class AuditLogConfig
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ collection :exempted_members, as: 'exemptedMembers'
218
+ property :log_type, as: 'logType'
219
+ end
220
+ end
221
+
222
+ class Binding
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :condition, as: 'condition', class: Google::Apis::MetastoreV1alpha::Expr, decorator: Google::Apis::MetastoreV1alpha::Expr::Representation
226
+
227
+ collection :members, as: 'members'
228
+ property :role, as: 'role'
229
+ end
230
+ end
231
+
232
+ class DatabaseDump
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :database_type, as: 'databaseType'
236
+ property :gcs_uri, as: 'gcsUri'
237
+ property :source_database, as: 'sourceDatabase'
238
+ end
239
+ end
240
+
241
+ class Empty
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ end
245
+ end
246
+
247
+ class ExportMetadataRequest
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ property :destination_gcs_folder, as: 'destinationGcsFolder'
251
+ property :request_id, as: 'requestId'
252
+ end
253
+ end
254
+
255
+ class Expr
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :description, as: 'description'
259
+ property :expression, as: 'expression'
260
+ property :location, as: 'location'
261
+ property :title, as: 'title'
262
+ end
263
+ end
264
+
265
+ class GoogleCloudMetastoreV1alphaOperationMetadata
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :api_version, as: 'apiVersion'
269
+ property :create_time, as: 'createTime'
270
+ property :end_time, as: 'endTime'
271
+ property :requested_cancellation, as: 'requestedCancellation'
272
+ property :status_message, as: 'statusMessage'
273
+ property :target, as: 'target'
274
+ property :verb, as: 'verb'
275
+ end
276
+ end
277
+
278
+ class HiveMetastoreConfig
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ hash :config_overrides, as: 'configOverrides'
282
+ property :kerberos_config, as: 'kerberosConfig', class: Google::Apis::MetastoreV1alpha::KerberosConfig, decorator: Google::Apis::MetastoreV1alpha::KerberosConfig::Representation
283
+
284
+ property :version, as: 'version'
285
+ end
286
+ end
287
+
288
+ class HiveMetastoreVersion
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :is_default, as: 'isDefault'
292
+ property :version, as: 'version'
293
+ end
294
+ end
295
+
296
+ class KerberosConfig
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ property :keytab, as: 'keytab', class: Google::Apis::MetastoreV1alpha::Secret, decorator: Google::Apis::MetastoreV1alpha::Secret::Representation
300
+
301
+ property :krb5_config_gcs_uri, as: 'krb5ConfigGcsUri'
302
+ property :principal, as: 'principal'
303
+ end
304
+ end
305
+
306
+ class ListLocationsResponse
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ collection :locations, as: 'locations', class: Google::Apis::MetastoreV1alpha::Location, decorator: Google::Apis::MetastoreV1alpha::Location::Representation
310
+
311
+ property :next_page_token, as: 'nextPageToken'
312
+ end
313
+ end
314
+
315
+ class ListMetadataImportsResponse
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ collection :metadata_imports, as: 'metadataImports', class: Google::Apis::MetastoreV1alpha::MetadataImport, decorator: Google::Apis::MetastoreV1alpha::MetadataImport::Representation
319
+
320
+ property :next_page_token, as: 'nextPageToken'
321
+ collection :unreachable, as: 'unreachable'
322
+ end
323
+ end
324
+
325
+ class ListOperationsResponse
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :next_page_token, as: 'nextPageToken'
329
+ collection :operations, as: 'operations', class: Google::Apis::MetastoreV1alpha::Operation, decorator: Google::Apis::MetastoreV1alpha::Operation::Representation
330
+
331
+ end
332
+ end
333
+
334
+ class ListServicesResponse
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :next_page_token, as: 'nextPageToken'
338
+ collection :services, as: 'services', class: Google::Apis::MetastoreV1alpha::Service, decorator: Google::Apis::MetastoreV1alpha::Service::Representation
339
+
340
+ collection :unreachable, as: 'unreachable'
341
+ end
342
+ end
343
+
344
+ class Location
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ property :display_name, as: 'displayName'
348
+ hash :labels, as: 'labels'
349
+ property :location_id, as: 'locationId'
350
+ hash :metadata, as: 'metadata'
351
+ property :name, as: 'name'
352
+ end
353
+ end
354
+
355
+ class LocationMetadata
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ collection :supported_hive_metastore_versions, as: 'supportedHiveMetastoreVersions', class: Google::Apis::MetastoreV1alpha::HiveMetastoreVersion, decorator: Google::Apis::MetastoreV1alpha::HiveMetastoreVersion::Representation
359
+
360
+ end
361
+ end
362
+
363
+ class MaintenanceWindow
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ property :day_of_week, as: 'dayOfWeek'
367
+ property :hour_of_day, as: 'hourOfDay'
368
+ end
369
+ end
370
+
371
+ class MetadataExport
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ property :destination_gcs_uri, as: 'destinationGcsUri'
375
+ property :end_time, as: 'endTime'
376
+ property :start_time, as: 'startTime'
377
+ property :state, as: 'state'
378
+ end
379
+ end
380
+
381
+ class MetadataImport
382
+ # @private
383
+ class Representation < Google::Apis::Core::JsonRepresentation
384
+ property :create_time, as: 'createTime'
385
+ property :database_dump, as: 'databaseDump', class: Google::Apis::MetastoreV1alpha::DatabaseDump, decorator: Google::Apis::MetastoreV1alpha::DatabaseDump::Representation
386
+
387
+ property :description, as: 'description'
388
+ property :name, as: 'name'
389
+ property :state, as: 'state'
390
+ property :update_time, as: 'updateTime'
391
+ end
392
+ end
393
+
394
+ class MetadataIntegration
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ end
398
+ end
399
+
400
+ class MetadataManagementActivity
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ collection :metadata_exports, as: 'metadataExports', class: Google::Apis::MetastoreV1alpha::MetadataExport, decorator: Google::Apis::MetastoreV1alpha::MetadataExport::Representation
404
+
405
+ end
406
+ end
407
+
408
+ class Operation
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :done, as: 'done'
412
+ property :error, as: 'error', class: Google::Apis::MetastoreV1alpha::Status, decorator: Google::Apis::MetastoreV1alpha::Status::Representation
413
+
414
+ hash :metadata, as: 'metadata'
415
+ property :name, as: 'name'
416
+ hash :response, as: 'response'
417
+ end
418
+ end
419
+
420
+ class Policy
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MetastoreV1alpha::AuditConfig, decorator: Google::Apis::MetastoreV1alpha::AuditConfig::Representation
424
+
425
+ collection :bindings, as: 'bindings', class: Google::Apis::MetastoreV1alpha::Binding, decorator: Google::Apis::MetastoreV1alpha::Binding::Representation
426
+
427
+ property :etag, :base64 => true, as: 'etag'
428
+ property :version, as: 'version'
429
+ end
430
+ end
431
+
432
+ class Secret
433
+ # @private
434
+ class Representation < Google::Apis::Core::JsonRepresentation
435
+ property :cloud_secret, as: 'cloudSecret'
436
+ end
437
+ end
438
+
439
+ class Service
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :artifact_gcs_uri, as: 'artifactGcsUri'
443
+ property :create_time, as: 'createTime'
444
+ property :endpoint_uri, as: 'endpointUri'
445
+ property :hive_metastore_config, as: 'hiveMetastoreConfig', class: Google::Apis::MetastoreV1alpha::HiveMetastoreConfig, decorator: Google::Apis::MetastoreV1alpha::HiveMetastoreConfig::Representation
446
+
447
+ hash :labels, as: 'labels'
448
+ property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::MetastoreV1alpha::MaintenanceWindow, decorator: Google::Apis::MetastoreV1alpha::MaintenanceWindow::Representation
449
+
450
+ property :metadata_integration, as: 'metadataIntegration', class: Google::Apis::MetastoreV1alpha::MetadataIntegration, decorator: Google::Apis::MetastoreV1alpha::MetadataIntegration::Representation
451
+
452
+ property :metadata_management_activity, as: 'metadataManagementActivity', class: Google::Apis::MetastoreV1alpha::MetadataManagementActivity, decorator: Google::Apis::MetastoreV1alpha::MetadataManagementActivity::Representation
453
+
454
+ property :name, as: 'name'
455
+ property :network, as: 'network'
456
+ property :port, as: 'port'
457
+ property :state, as: 'state'
458
+ property :state_message, as: 'stateMessage'
459
+ property :tier, as: 'tier'
460
+ property :uid, as: 'uid'
461
+ property :update_time, as: 'updateTime'
462
+ end
463
+ end
464
+
465
+ class SetIamPolicyRequest
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :policy, as: 'policy', class: Google::Apis::MetastoreV1alpha::Policy, decorator: Google::Apis::MetastoreV1alpha::Policy::Representation
469
+
470
+ property :update_mask, as: 'updateMask'
471
+ end
472
+ end
473
+
474
+ class Status
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :code, as: 'code'
478
+ collection :details, as: 'details'
479
+ property :message, as: 'message'
480
+ end
481
+ end
482
+
483
+ class TestIamPermissionsRequest
484
+ # @private
485
+ class Representation < Google::Apis::Core::JsonRepresentation
486
+ collection :permissions, as: 'permissions'
487
+ end
488
+ end
489
+
490
+ class TestIamPermissionsResponse
491
+ # @private
492
+ class Representation < Google::Apis::Core::JsonRepresentation
493
+ collection :permissions, as: 'permissions'
494
+ end
495
+ end
496
+ end
497
+ end
498
+ end