google-apis-metastore_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1715 @@
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 MetastoreV2
24
+
25
+ # Response message for DataprocMetastore.AlterMetadataResourceLocation.
26
+ class GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # Metadata about a custom region. This is only populated if the region is a
39
+ # custom region. For single/multi regions, it will be empty.
40
+ class GoogleCloudMetastoreV1CustomRegionMetadata
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The read-only regions for this custom region.
44
+ # Corresponds to the JSON property `optionalReadOnlyRegions`
45
+ # @return [Array<String>]
46
+ attr_accessor :optional_read_only_regions
47
+
48
+ # The read-write regions for this custom region.
49
+ # Corresponds to the JSON property `requiredReadWriteRegions`
50
+ # @return [Array<String>]
51
+ attr_accessor :required_read_write_regions
52
+
53
+ # The Spanner witness region for this custom region.
54
+ # Corresponds to the JSON property `witnessRegion`
55
+ # @return [String]
56
+ attr_accessor :witness_region
57
+
58
+ def initialize(**args)
59
+ update!(**args)
60
+ end
61
+
62
+ # Update properties of this object
63
+ def update!(**args)
64
+ @optional_read_only_regions = args[:optional_read_only_regions] if args.key?(:optional_read_only_regions)
65
+ @required_read_write_regions = args[:required_read_write_regions] if args.key?(:required_read_write_regions)
66
+ @witness_region = args[:witness_region] if args.key?(:witness_region)
67
+ end
68
+ end
69
+
70
+ # Error details in public error message for DataprocMetastore.QueryMetadata.
71
+ class GoogleCloudMetastoreV1ErrorDetails
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Additional structured details about this error.Keys define the failure items.
75
+ # Value describes the exception or details of the item.
76
+ # Corresponds to the JSON property `details`
77
+ # @return [Hash<String,String>]
78
+ attr_accessor :details
79
+
80
+ def initialize(**args)
81
+ update!(**args)
82
+ end
83
+
84
+ # Update properties of this object
85
+ def update!(**args)
86
+ @details = args[:details] if args.key?(:details)
87
+ end
88
+ end
89
+
90
+ # A specification of a supported version of the Hive Metastore software.
91
+ class GoogleCloudMetastoreV1HiveMetastoreVersion
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # Whether version will be chosen by the server if a metastore service is created
95
+ # with a HiveMetastoreConfig that omits the version.
96
+ # Corresponds to the JSON property `isDefault`
97
+ # @return [Boolean]
98
+ attr_accessor :is_default
99
+ alias_method :is_default?, :is_default
100
+
101
+ # The semantic version of the Hive Metastore software.
102
+ # Corresponds to the JSON property `version`
103
+ # @return [String]
104
+ attr_accessor :version
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ @is_default = args[:is_default] if args.key?(:is_default)
113
+ @version = args[:version] if args.key?(:version)
114
+ end
115
+ end
116
+
117
+ # Metadata about the service in a location.
118
+ class GoogleCloudMetastoreV1LocationMetadata
119
+ include Google::Apis::Core::Hashable
120
+
121
+ # Possible configurations supported if the current region is a custom region.
122
+ # Corresponds to the JSON property `customRegionMetadata`
123
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV1CustomRegionMetadata>]
124
+ attr_accessor :custom_region_metadata
125
+
126
+ # The metadata for the multi-region that includes the constituent regions. The
127
+ # metadata is only populated if the region is multi-region. For single region or
128
+ # custom dual region, it will be empty.
129
+ # Corresponds to the JSON property `multiRegionMetadata`
130
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV1MultiRegionMetadata]
131
+ attr_accessor :multi_region_metadata
132
+
133
+ # The versions of Hive Metastore that can be used when creating a new metastore
134
+ # service in this location. The server guarantees that exactly one
135
+ # HiveMetastoreVersion in the list will set is_default.
136
+ # Corresponds to the JSON property `supportedHiveMetastoreVersions`
137
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV1HiveMetastoreVersion>]
138
+ attr_accessor :supported_hive_metastore_versions
139
+
140
+ def initialize(**args)
141
+ update!(**args)
142
+ end
143
+
144
+ # Update properties of this object
145
+ def update!(**args)
146
+ @custom_region_metadata = args[:custom_region_metadata] if args.key?(:custom_region_metadata)
147
+ @multi_region_metadata = args[:multi_region_metadata] if args.key?(:multi_region_metadata)
148
+ @supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
149
+ end
150
+ end
151
+
152
+ # Response message for DataprocMetastore.MoveTableToDatabase.
153
+ class GoogleCloudMetastoreV1MoveTableToDatabaseResponse
154
+ include Google::Apis::Core::Hashable
155
+
156
+ def initialize(**args)
157
+ update!(**args)
158
+ end
159
+
160
+ # Update properties of this object
161
+ def update!(**args)
162
+ end
163
+ end
164
+
165
+ # The metadata for the multi-region that includes the constituent regions. The
166
+ # metadata is only populated if the region is multi-region. For single region or
167
+ # custom dual region, it will be empty.
168
+ class GoogleCloudMetastoreV1MultiRegionMetadata
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The regions constituting the multi-region.
172
+ # Corresponds to the JSON property `constituentRegions`
173
+ # @return [Array<String>]
174
+ attr_accessor :constituent_regions
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @constituent_regions = args[:constituent_regions] if args.key?(:constituent_regions)
183
+ end
184
+ end
185
+
186
+ # Represents the metadata of a long-running operation.
187
+ class GoogleCloudMetastoreV1OperationMetadata
188
+ include Google::Apis::Core::Hashable
189
+
190
+ # Output only. API version used to start the operation.
191
+ # Corresponds to the JSON property `apiVersion`
192
+ # @return [String]
193
+ attr_accessor :api_version
194
+
195
+ # Output only. The time the operation was created.
196
+ # Corresponds to the JSON property `createTime`
197
+ # @return [String]
198
+ attr_accessor :create_time
199
+
200
+ # Output only. The time the operation finished running.
201
+ # Corresponds to the JSON property `endTime`
202
+ # @return [String]
203
+ attr_accessor :end_time
204
+
205
+ # Output only. Identifies whether the caller has requested cancellation of the
206
+ # operation. Operations that have successfully been cancelled have google.
207
+ # longrunning.Operation.error value with a google.rpc.Status.code of 1,
208
+ # corresponding to Code.CANCELLED.
209
+ # Corresponds to the JSON property `requestedCancellation`
210
+ # @return [Boolean]
211
+ attr_accessor :requested_cancellation
212
+ alias_method :requested_cancellation?, :requested_cancellation
213
+
214
+ # Output only. Human-readable status of the operation, if any.
215
+ # Corresponds to the JSON property `statusMessage`
216
+ # @return [String]
217
+ attr_accessor :status_message
218
+
219
+ # Output only. Server-defined resource path for the target of the operation.
220
+ # Corresponds to the JSON property `target`
221
+ # @return [String]
222
+ attr_accessor :target
223
+
224
+ # Output only. Name of the verb executed by the operation.
225
+ # Corresponds to the JSON property `verb`
226
+ # @return [String]
227
+ attr_accessor :verb
228
+
229
+ def initialize(**args)
230
+ update!(**args)
231
+ end
232
+
233
+ # Update properties of this object
234
+ def update!(**args)
235
+ @api_version = args[:api_version] if args.key?(:api_version)
236
+ @create_time = args[:create_time] if args.key?(:create_time)
237
+ @end_time = args[:end_time] if args.key?(:end_time)
238
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
239
+ @status_message = args[:status_message] if args.key?(:status_message)
240
+ @target = args[:target] if args.key?(:target)
241
+ @verb = args[:verb] if args.key?(:verb)
242
+ end
243
+ end
244
+
245
+ # Response message for DataprocMetastore.QueryMetadata.
246
+ class GoogleCloudMetastoreV1QueryMetadataResponse
247
+ include Google::Apis::Core::Hashable
248
+
249
+ # The manifest URI is link to a JSON instance in Cloud Storage. This instance
250
+ # manifests immediately along with QueryMetadataResponse. The content of the URI
251
+ # is not retriable until the long-running operation query against the metadata
252
+ # finishes.
253
+ # Corresponds to the JSON property `resultManifestUri`
254
+ # @return [String]
255
+ attr_accessor :result_manifest_uri
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @result_manifest_uri = args[:result_manifest_uri] if args.key?(:result_manifest_uri)
264
+ end
265
+ end
266
+
267
+ # Response message for DataprocMetastore.AlterMetadataResourceLocation.
268
+ class GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse
269
+ include Google::Apis::Core::Hashable
270
+
271
+ def initialize(**args)
272
+ update!(**args)
273
+ end
274
+
275
+ # Update properties of this object
276
+ def update!(**args)
277
+ end
278
+ end
279
+
280
+ # Response message for DataprocMetastore.CancelMigration.
281
+ class GoogleCloudMetastoreV1alphaCancelMigrationResponse
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # The relative resource name of the migration execution, in the following form:
285
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
286
+ # migrationExecutions/`migration_execution_id`.
287
+ # Corresponds to the JSON property `migrationExecution`
288
+ # @return [String]
289
+ attr_accessor :migration_execution
290
+
291
+ def initialize(**args)
292
+ update!(**args)
293
+ end
294
+
295
+ # Update properties of this object
296
+ def update!(**args)
297
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
298
+ end
299
+ end
300
+
301
+ # Response message for DataprocMetastore.CompleteMigration.
302
+ class GoogleCloudMetastoreV1alphaCompleteMigrationResponse
303
+ include Google::Apis::Core::Hashable
304
+
305
+ # The relative resource name of the migration execution, in the following form:
306
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
307
+ # migrationExecutions/`migration_execution_id`.
308
+ # Corresponds to the JSON property `migrationExecution`
309
+ # @return [String]
310
+ attr_accessor :migration_execution
311
+
312
+ def initialize(**args)
313
+ update!(**args)
314
+ end
315
+
316
+ # Update properties of this object
317
+ def update!(**args)
318
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
319
+ end
320
+ end
321
+
322
+ # Metadata about a custom region. This is only populated if the region is a
323
+ # custom region. For single/multi regions, it will be empty.
324
+ class GoogleCloudMetastoreV1alphaCustomRegionMetadata
325
+ include Google::Apis::Core::Hashable
326
+
327
+ # The read-only regions for this custom region.
328
+ # Corresponds to the JSON property `optionalReadOnlyRegions`
329
+ # @return [Array<String>]
330
+ attr_accessor :optional_read_only_regions
331
+
332
+ # The read-write regions for this custom region.
333
+ # Corresponds to the JSON property `requiredReadWriteRegions`
334
+ # @return [Array<String>]
335
+ attr_accessor :required_read_write_regions
336
+
337
+ # The Spanner witness region for this custom region.
338
+ # Corresponds to the JSON property `witnessRegion`
339
+ # @return [String]
340
+ attr_accessor :witness_region
341
+
342
+ def initialize(**args)
343
+ update!(**args)
344
+ end
345
+
346
+ # Update properties of this object
347
+ def update!(**args)
348
+ @optional_read_only_regions = args[:optional_read_only_regions] if args.key?(:optional_read_only_regions)
349
+ @required_read_write_regions = args[:required_read_write_regions] if args.key?(:required_read_write_regions)
350
+ @witness_region = args[:witness_region] if args.key?(:witness_region)
351
+ end
352
+ end
353
+
354
+ # Error details in public error message for DataprocMetastore.QueryMetadata.
355
+ class GoogleCloudMetastoreV1alphaErrorDetails
356
+ include Google::Apis::Core::Hashable
357
+
358
+ # Additional structured details about this error.Keys define the failure items.
359
+ # Value describes the exception or details of the item.
360
+ # Corresponds to the JSON property `details`
361
+ # @return [Hash<String,String>]
362
+ attr_accessor :details
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ @details = args[:details] if args.key?(:details)
371
+ end
372
+ end
373
+
374
+ # A specification of a supported version of the Hive Metastore software.
375
+ class GoogleCloudMetastoreV1alphaHiveMetastoreVersion
376
+ include Google::Apis::Core::Hashable
377
+
378
+ # Whether version will be chosen by the server if a metastore service is created
379
+ # with a HiveMetastoreConfig that omits the version.
380
+ # Corresponds to the JSON property `isDefault`
381
+ # @return [Boolean]
382
+ attr_accessor :is_default
383
+ alias_method :is_default?, :is_default
384
+
385
+ # The semantic version of the Hive Metastore software.
386
+ # Corresponds to the JSON property `version`
387
+ # @return [String]
388
+ attr_accessor :version
389
+
390
+ def initialize(**args)
391
+ update!(**args)
392
+ end
393
+
394
+ # Update properties of this object
395
+ def update!(**args)
396
+ @is_default = args[:is_default] if args.key?(:is_default)
397
+ @version = args[:version] if args.key?(:version)
398
+ end
399
+ end
400
+
401
+ # Metadata about the service in a location.
402
+ class GoogleCloudMetastoreV1alphaLocationMetadata
403
+ include Google::Apis::Core::Hashable
404
+
405
+ # Possible configurations supported if the current region is a custom region.
406
+ # Corresponds to the JSON property `customRegionMetadata`
407
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV1alphaCustomRegionMetadata>]
408
+ attr_accessor :custom_region_metadata
409
+
410
+ # The metadata for the multi-region that includes the constituent regions. The
411
+ # metadata is only populated if the region is multi-region. For single region or
412
+ # custom dual region, it will be empty.
413
+ # Corresponds to the JSON property `multiRegionMetadata`
414
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV1alphaMultiRegionMetadata]
415
+ attr_accessor :multi_region_metadata
416
+
417
+ # The versions of Hive Metastore that can be used when creating a new metastore
418
+ # service in this location. The server guarantees that exactly one
419
+ # HiveMetastoreVersion in the list will set is_default.
420
+ # Corresponds to the JSON property `supportedHiveMetastoreVersions`
421
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV1alphaHiveMetastoreVersion>]
422
+ attr_accessor :supported_hive_metastore_versions
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @custom_region_metadata = args[:custom_region_metadata] if args.key?(:custom_region_metadata)
431
+ @multi_region_metadata = args[:multi_region_metadata] if args.key?(:multi_region_metadata)
432
+ @supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
433
+ end
434
+ end
435
+
436
+ # Response message for DataprocMetastore.MoveTableToDatabase.
437
+ class GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse
438
+ include Google::Apis::Core::Hashable
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ end
447
+ end
448
+
449
+ # The metadata for the multi-region that includes the constituent regions. The
450
+ # metadata is only populated if the region is multi-region. For single region or
451
+ # custom dual region, it will be empty.
452
+ class GoogleCloudMetastoreV1alphaMultiRegionMetadata
453
+ include Google::Apis::Core::Hashable
454
+
455
+ # The regions constituting the multi-region.
456
+ # Corresponds to the JSON property `constituentRegions`
457
+ # @return [Array<String>]
458
+ attr_accessor :constituent_regions
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @constituent_regions = args[:constituent_regions] if args.key?(:constituent_regions)
467
+ end
468
+ end
469
+
470
+ # Represents the metadata of a long-running operation.
471
+ class GoogleCloudMetastoreV1alphaOperationMetadata
472
+ include Google::Apis::Core::Hashable
473
+
474
+ # Output only. API version used to start the operation.
475
+ # Corresponds to the JSON property `apiVersion`
476
+ # @return [String]
477
+ attr_accessor :api_version
478
+
479
+ # Output only. The time the operation was created.
480
+ # Corresponds to the JSON property `createTime`
481
+ # @return [String]
482
+ attr_accessor :create_time
483
+
484
+ # Output only. The time the operation finished running.
485
+ # Corresponds to the JSON property `endTime`
486
+ # @return [String]
487
+ attr_accessor :end_time
488
+
489
+ # Output only. Identifies whether the caller has requested cancellation of the
490
+ # operation. Operations that have successfully been cancelled have google.
491
+ # longrunning.Operation.error value with a google.rpc.Status.code of 1,
492
+ # corresponding to Code.CANCELLED.
493
+ # Corresponds to the JSON property `requestedCancellation`
494
+ # @return [Boolean]
495
+ attr_accessor :requested_cancellation
496
+ alias_method :requested_cancellation?, :requested_cancellation
497
+
498
+ # Output only. Human-readable status of the operation, if any.
499
+ # Corresponds to the JSON property `statusMessage`
500
+ # @return [String]
501
+ attr_accessor :status_message
502
+
503
+ # Output only. Server-defined resource path for the target of the operation.
504
+ # Corresponds to the JSON property `target`
505
+ # @return [String]
506
+ attr_accessor :target
507
+
508
+ # Output only. Name of the verb executed by the operation.
509
+ # Corresponds to the JSON property `verb`
510
+ # @return [String]
511
+ attr_accessor :verb
512
+
513
+ def initialize(**args)
514
+ update!(**args)
515
+ end
516
+
517
+ # Update properties of this object
518
+ def update!(**args)
519
+ @api_version = args[:api_version] if args.key?(:api_version)
520
+ @create_time = args[:create_time] if args.key?(:create_time)
521
+ @end_time = args[:end_time] if args.key?(:end_time)
522
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
523
+ @status_message = args[:status_message] if args.key?(:status_message)
524
+ @target = args[:target] if args.key?(:target)
525
+ @verb = args[:verb] if args.key?(:verb)
526
+ end
527
+ end
528
+
529
+ # Response message for DataprocMetastore.QueryMetadata.
530
+ class GoogleCloudMetastoreV1alphaQueryMetadataResponse
531
+ include Google::Apis::Core::Hashable
532
+
533
+ # The manifest URI is link to a JSON instance in Cloud Storage. This instance
534
+ # manifests immediately along with QueryMetadataResponse. The content of the URI
535
+ # is not retriable until the long-running operation query against the metadata
536
+ # finishes.
537
+ # Corresponds to the JSON property `resultManifestUri`
538
+ # @return [String]
539
+ attr_accessor :result_manifest_uri
540
+
541
+ def initialize(**args)
542
+ update!(**args)
543
+ end
544
+
545
+ # Update properties of this object
546
+ def update!(**args)
547
+ @result_manifest_uri = args[:result_manifest_uri] if args.key?(:result_manifest_uri)
548
+ end
549
+ end
550
+
551
+ # Response message for DataprocMetastore.AlterMetadataResourceLocation.
552
+ class GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse
553
+ include Google::Apis::Core::Hashable
554
+
555
+ def initialize(**args)
556
+ update!(**args)
557
+ end
558
+
559
+ # Update properties of this object
560
+ def update!(**args)
561
+ end
562
+ end
563
+
564
+ # Response message for DataprocMetastore.CancelMigration.
565
+ class GoogleCloudMetastoreV1betaCancelMigrationResponse
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # The relative resource name of the migration execution, in the following form:
569
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
570
+ # migrationExecutions/`migration_execution_id`.
571
+ # Corresponds to the JSON property `migrationExecution`
572
+ # @return [String]
573
+ attr_accessor :migration_execution
574
+
575
+ def initialize(**args)
576
+ update!(**args)
577
+ end
578
+
579
+ # Update properties of this object
580
+ def update!(**args)
581
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
582
+ end
583
+ end
584
+
585
+ # Response message for DataprocMetastore.CompleteMigration.
586
+ class GoogleCloudMetastoreV1betaCompleteMigrationResponse
587
+ include Google::Apis::Core::Hashable
588
+
589
+ # The relative resource name of the migration execution, in the following form:
590
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
591
+ # migrationExecutions/`migration_execution_id`.
592
+ # Corresponds to the JSON property `migrationExecution`
593
+ # @return [String]
594
+ attr_accessor :migration_execution
595
+
596
+ def initialize(**args)
597
+ update!(**args)
598
+ end
599
+
600
+ # Update properties of this object
601
+ def update!(**args)
602
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
603
+ end
604
+ end
605
+
606
+ # Metadata about a custom region. This is only populated if the region is a
607
+ # custom region. For single/multi regions, it will be empty.
608
+ class GoogleCloudMetastoreV1betaCustomRegionMetadata
609
+ include Google::Apis::Core::Hashable
610
+
611
+ # The read-only regions for this custom region.
612
+ # Corresponds to the JSON property `optionalReadOnlyRegions`
613
+ # @return [Array<String>]
614
+ attr_accessor :optional_read_only_regions
615
+
616
+ # The read-write regions for this custom region.
617
+ # Corresponds to the JSON property `requiredReadWriteRegions`
618
+ # @return [Array<String>]
619
+ attr_accessor :required_read_write_regions
620
+
621
+ # The Spanner witness region for this custom region.
622
+ # Corresponds to the JSON property `witnessRegion`
623
+ # @return [String]
624
+ attr_accessor :witness_region
625
+
626
+ def initialize(**args)
627
+ update!(**args)
628
+ end
629
+
630
+ # Update properties of this object
631
+ def update!(**args)
632
+ @optional_read_only_regions = args[:optional_read_only_regions] if args.key?(:optional_read_only_regions)
633
+ @required_read_write_regions = args[:required_read_write_regions] if args.key?(:required_read_write_regions)
634
+ @witness_region = args[:witness_region] if args.key?(:witness_region)
635
+ end
636
+ end
637
+
638
+ # Error details in public error message for DataprocMetastore.QueryMetadata.
639
+ class GoogleCloudMetastoreV1betaErrorDetails
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # Additional structured details about this error.Keys define the failure items.
643
+ # Value describes the exception or details of the item.
644
+ # Corresponds to the JSON property `details`
645
+ # @return [Hash<String,String>]
646
+ attr_accessor :details
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @details = args[:details] if args.key?(:details)
655
+ end
656
+ end
657
+
658
+ # A specification of a supported version of the Hive Metastore software.
659
+ class GoogleCloudMetastoreV1betaHiveMetastoreVersion
660
+ include Google::Apis::Core::Hashable
661
+
662
+ # Whether version will be chosen by the server if a metastore service is created
663
+ # with a HiveMetastoreConfig that omits the version.
664
+ # Corresponds to the JSON property `isDefault`
665
+ # @return [Boolean]
666
+ attr_accessor :is_default
667
+ alias_method :is_default?, :is_default
668
+
669
+ # The semantic version of the Hive Metastore software.
670
+ # Corresponds to the JSON property `version`
671
+ # @return [String]
672
+ attr_accessor :version
673
+
674
+ def initialize(**args)
675
+ update!(**args)
676
+ end
677
+
678
+ # Update properties of this object
679
+ def update!(**args)
680
+ @is_default = args[:is_default] if args.key?(:is_default)
681
+ @version = args[:version] if args.key?(:version)
682
+ end
683
+ end
684
+
685
+ # Metadata about the service in a location.
686
+ class GoogleCloudMetastoreV1betaLocationMetadata
687
+ include Google::Apis::Core::Hashable
688
+
689
+ # Possible configurations supported if the current region is a custom region.
690
+ # Corresponds to the JSON property `customRegionMetadata`
691
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV1betaCustomRegionMetadata>]
692
+ attr_accessor :custom_region_metadata
693
+
694
+ # The metadata for the multi-region that includes the constituent regions. The
695
+ # metadata is only populated if the region is multi-region. For single region or
696
+ # custom dual region, it will be empty.
697
+ # Corresponds to the JSON property `multiRegionMetadata`
698
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV1betaMultiRegionMetadata]
699
+ attr_accessor :multi_region_metadata
700
+
701
+ # The versions of Hive Metastore that can be used when creating a new metastore
702
+ # service in this location. The server guarantees that exactly one
703
+ # HiveMetastoreVersion in the list will set is_default.
704
+ # Corresponds to the JSON property `supportedHiveMetastoreVersions`
705
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV1betaHiveMetastoreVersion>]
706
+ attr_accessor :supported_hive_metastore_versions
707
+
708
+ def initialize(**args)
709
+ update!(**args)
710
+ end
711
+
712
+ # Update properties of this object
713
+ def update!(**args)
714
+ @custom_region_metadata = args[:custom_region_metadata] if args.key?(:custom_region_metadata)
715
+ @multi_region_metadata = args[:multi_region_metadata] if args.key?(:multi_region_metadata)
716
+ @supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
717
+ end
718
+ end
719
+
720
+ # Response message for DataprocMetastore.MoveTableToDatabase.
721
+ class GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse
722
+ include Google::Apis::Core::Hashable
723
+
724
+ def initialize(**args)
725
+ update!(**args)
726
+ end
727
+
728
+ # Update properties of this object
729
+ def update!(**args)
730
+ end
731
+ end
732
+
733
+ # The metadata for the multi-region that includes the constituent regions. The
734
+ # metadata is only populated if the region is multi-region. For single region or
735
+ # custom dual region, it will be empty.
736
+ class GoogleCloudMetastoreV1betaMultiRegionMetadata
737
+ include Google::Apis::Core::Hashable
738
+
739
+ # The regions constituting the multi-region.
740
+ # Corresponds to the JSON property `constituentRegions`
741
+ # @return [Array<String>]
742
+ attr_accessor :constituent_regions
743
+
744
+ def initialize(**args)
745
+ update!(**args)
746
+ end
747
+
748
+ # Update properties of this object
749
+ def update!(**args)
750
+ @constituent_regions = args[:constituent_regions] if args.key?(:constituent_regions)
751
+ end
752
+ end
753
+
754
+ # Represents the metadata of a long-running operation.
755
+ class GoogleCloudMetastoreV1betaOperationMetadata
756
+ include Google::Apis::Core::Hashable
757
+
758
+ # Output only. API version used to start the operation.
759
+ # Corresponds to the JSON property `apiVersion`
760
+ # @return [String]
761
+ attr_accessor :api_version
762
+
763
+ # Output only. The time the operation was created.
764
+ # Corresponds to the JSON property `createTime`
765
+ # @return [String]
766
+ attr_accessor :create_time
767
+
768
+ # Output only. The time the operation finished running.
769
+ # Corresponds to the JSON property `endTime`
770
+ # @return [String]
771
+ attr_accessor :end_time
772
+
773
+ # Output only. Identifies whether the caller has requested cancellation of the
774
+ # operation. Operations that have successfully been cancelled have google.
775
+ # longrunning.Operation.error value with a google.rpc.Status.code of 1,
776
+ # corresponding to Code.CANCELLED.
777
+ # Corresponds to the JSON property `requestedCancellation`
778
+ # @return [Boolean]
779
+ attr_accessor :requested_cancellation
780
+ alias_method :requested_cancellation?, :requested_cancellation
781
+
782
+ # Output only. Human-readable status of the operation, if any.
783
+ # Corresponds to the JSON property `statusMessage`
784
+ # @return [String]
785
+ attr_accessor :status_message
786
+
787
+ # Output only. Server-defined resource path for the target of the operation.
788
+ # Corresponds to the JSON property `target`
789
+ # @return [String]
790
+ attr_accessor :target
791
+
792
+ # Output only. Name of the verb executed by the operation.
793
+ # Corresponds to the JSON property `verb`
794
+ # @return [String]
795
+ attr_accessor :verb
796
+
797
+ def initialize(**args)
798
+ update!(**args)
799
+ end
800
+
801
+ # Update properties of this object
802
+ def update!(**args)
803
+ @api_version = args[:api_version] if args.key?(:api_version)
804
+ @create_time = args[:create_time] if args.key?(:create_time)
805
+ @end_time = args[:end_time] if args.key?(:end_time)
806
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
807
+ @status_message = args[:status_message] if args.key?(:status_message)
808
+ @target = args[:target] if args.key?(:target)
809
+ @verb = args[:verb] if args.key?(:verb)
810
+ end
811
+ end
812
+
813
+ # Response message for DataprocMetastore.QueryMetadata.
814
+ class GoogleCloudMetastoreV1betaQueryMetadataResponse
815
+ include Google::Apis::Core::Hashable
816
+
817
+ # The manifest URI is link to a JSON instance in Cloud Storage. This instance
818
+ # manifests immediately along with QueryMetadataResponse. The content of the URI
819
+ # is not retriable until the long-running operation query against the metadata
820
+ # finishes.
821
+ # Corresponds to the JSON property `resultManifestUri`
822
+ # @return [String]
823
+ attr_accessor :result_manifest_uri
824
+
825
+ def initialize(**args)
826
+ update!(**args)
827
+ end
828
+
829
+ # Update properties of this object
830
+ def update!(**args)
831
+ @result_manifest_uri = args[:result_manifest_uri] if args.key?(:result_manifest_uri)
832
+ end
833
+ end
834
+
835
+ # Request message for DataprocMetastore.AlterMetadataResourceLocation.
836
+ class GoogleCloudMetastoreV2AlterMetadataResourceLocationRequest
837
+ include Google::Apis::Core::Hashable
838
+
839
+ # Required. The new location URI for the metadata resource.
840
+ # Corresponds to the JSON property `locationUri`
841
+ # @return [String]
842
+ attr_accessor :location_uri
843
+
844
+ # Required. The relative metadata resource name in the following format.
845
+ # databases/`database_id` or databases/`database_id`/tables/`table_id` or
846
+ # databases/`database_id`/tables/`table_id`/partitions/`partition_id`
847
+ # Corresponds to the JSON property `resourceName`
848
+ # @return [String]
849
+ attr_accessor :resource_name
850
+
851
+ def initialize(**args)
852
+ update!(**args)
853
+ end
854
+
855
+ # Update properties of this object
856
+ def update!(**args)
857
+ @location_uri = args[:location_uri] if args.key?(:location_uri)
858
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
859
+ end
860
+ end
861
+
862
+ # Request message for DataprocMetastore.AlterTableProperties.
863
+ class GoogleCloudMetastoreV2AlterTablePropertiesRequest
864
+ include Google::Apis::Core::Hashable
865
+
866
+ # A map that describes the desired values to mutate. If update_mask is empty,
867
+ # the properties will not update. Otherwise, the properties only alters the
868
+ # value whose associated paths exist in the update mask
869
+ # Corresponds to the JSON property `properties`
870
+ # @return [Hash<String,String>]
871
+ attr_accessor :properties
872
+
873
+ # Required. The name of the table containing the properties you're altering in
874
+ # the following format.databases/`database_id`/tables/`table_id`
875
+ # Corresponds to the JSON property `tableName`
876
+ # @return [String]
877
+ attr_accessor :table_name
878
+
879
+ # A field mask that specifies the metadata table properties that are overwritten
880
+ # by the update. Fields specified in the update_mask are relative to the
881
+ # resource (not to the full request). A field is overwritten if it is in the
882
+ # mask.For example, given the target properties: properties ` a: 1 b: 2 ` And an
883
+ # update properties: properties ` a: 2 b: 3 c: 4 ` then if the field mask is:
884
+ # paths: "properties.b", "properties.c"then the result will be: properties ` a:
885
+ # 1 b: 3 c: 4 `
886
+ # Corresponds to the JSON property `updateMask`
887
+ # @return [String]
888
+ attr_accessor :update_mask
889
+
890
+ def initialize(**args)
891
+ update!(**args)
892
+ end
893
+
894
+ # Update properties of this object
895
+ def update!(**args)
896
+ @properties = args[:properties] if args.key?(:properties)
897
+ @table_name = args[:table_name] if args.key?(:table_name)
898
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
899
+ end
900
+ end
901
+
902
+ # Configuration information for the auxiliary service versions.
903
+ class GoogleCloudMetastoreV2AuxiliaryVersionConfig
904
+ include Google::Apis::Core::Hashable
905
+
906
+ # A mapping of Hive metastore configuration key-value pairs to apply to the
907
+ # auxiliary Hive metastore (configured in hive-site.xml) in addition to the
908
+ # primary version's overrides. If keys are present in both the auxiliary version'
909
+ # s overrides and the primary version's overrides, the value from the auxiliary
910
+ # version's overrides takes precedence.
911
+ # Corresponds to the JSON property `configOverrides`
912
+ # @return [Hash<String,String>]
913
+ attr_accessor :config_overrides
914
+
915
+ # Output only. The list of endpoints used to access the auxiliary metastore
916
+ # service, includes version and region data.
917
+ # Corresponds to the JSON property `endpoints`
918
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV2Endpoint>]
919
+ attr_accessor :endpoints
920
+
921
+ # The Hive metastore version of the auxiliary service. It must be less than the
922
+ # primary Hive metastore service's version.
923
+ # Corresponds to the JSON property `version`
924
+ # @return [String]
925
+ attr_accessor :version
926
+
927
+ def initialize(**args)
928
+ update!(**args)
929
+ end
930
+
931
+ # Update properties of this object
932
+ def update!(**args)
933
+ @config_overrides = args[:config_overrides] if args.key?(:config_overrides)
934
+ @endpoints = args[:endpoints] if args.key?(:endpoints)
935
+ @version = args[:version] if args.key?(:version)
936
+ end
937
+ end
938
+
939
+ # The details of a backup resource.
940
+ class GoogleCloudMetastoreV2Backup
941
+ include Google::Apis::Core::Hashable
942
+
943
+ # Output only. The time when the backup was started.
944
+ # Corresponds to the JSON property `createTime`
945
+ # @return [String]
946
+ attr_accessor :create_time
947
+
948
+ # The description of the backup.
949
+ # Corresponds to the JSON property `description`
950
+ # @return [String]
951
+ attr_accessor :description
952
+
953
+ # Output only. The time when the backup finished creating.
954
+ # Corresponds to the JSON property `endTime`
955
+ # @return [String]
956
+ attr_accessor :end_time
957
+
958
+ # Immutable. The relative resource name of the backup, in the following form:
959
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
960
+ # backups/`backup_id`
961
+ # Corresponds to the JSON property `name`
962
+ # @return [String]
963
+ attr_accessor :name
964
+
965
+ # Output only. Services that are restoring from the backup.
966
+ # Corresponds to the JSON property `restoringServices`
967
+ # @return [Array<String>]
968
+ attr_accessor :restoring_services
969
+
970
+ # A managed metastore service that serves metadata queries.
971
+ # Corresponds to the JSON property `serviceRevision`
972
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2Service]
973
+ attr_accessor :service_revision
974
+
975
+ # Output only. The current state of the backup.
976
+ # Corresponds to the JSON property `state`
977
+ # @return [String]
978
+ attr_accessor :state
979
+
980
+ def initialize(**args)
981
+ update!(**args)
982
+ end
983
+
984
+ # Update properties of this object
985
+ def update!(**args)
986
+ @create_time = args[:create_time] if args.key?(:create_time)
987
+ @description = args[:description] if args.key?(:description)
988
+ @end_time = args[:end_time] if args.key?(:end_time)
989
+ @name = args[:name] if args.key?(:name)
990
+ @restoring_services = args[:restoring_services] if args.key?(:restoring_services)
991
+ @service_revision = args[:service_revision] if args.key?(:service_revision)
992
+ @state = args[:state] if args.key?(:state)
993
+ end
994
+ end
995
+
996
+ # Specifies how metastore metadata should be integrated with the Data Catalog
997
+ # service.
998
+ class GoogleCloudMetastoreV2DataCatalogConfig
999
+ include Google::Apis::Core::Hashable
1000
+
1001
+ # Optional. Defines whether the metastore metadata should be synced to Data
1002
+ # Catalog. The default value is to disable syncing metastore metadata to Data
1003
+ # Catalog.
1004
+ # Corresponds to the JSON property `enabled`
1005
+ # @return [Boolean]
1006
+ attr_accessor :enabled
1007
+ alias_method :enabled?, :enabled
1008
+
1009
+ def initialize(**args)
1010
+ update!(**args)
1011
+ end
1012
+
1013
+ # Update properties of this object
1014
+ def update!(**args)
1015
+ @enabled = args[:enabled] if args.key?(:enabled)
1016
+ end
1017
+ end
1018
+
1019
+ # A specification of the location of and metadata about a database dump from a
1020
+ # relational database management system.
1021
+ class GoogleCloudMetastoreV2DatabaseDump
1022
+ include Google::Apis::Core::Hashable
1023
+
1024
+ # Required. A Cloud Storage object or folder URI that specifies the source from
1025
+ # which to import metadata. It must begin with gs://.
1026
+ # Corresponds to the JSON property `gcsUri`
1027
+ # @return [String]
1028
+ attr_accessor :gcs_uri
1029
+
1030
+ # Optional. The type of the database dump. If unspecified, defaults to MYSQL.
1031
+ # Corresponds to the JSON property `type`
1032
+ # @return [String]
1033
+ attr_accessor :type
1034
+
1035
+ def initialize(**args)
1036
+ update!(**args)
1037
+ end
1038
+
1039
+ # Update properties of this object
1040
+ def update!(**args)
1041
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
1042
+ @type = args[:type] if args.key?(:type)
1043
+ end
1044
+ end
1045
+
1046
+ # Encryption settings for the service.
1047
+ class GoogleCloudMetastoreV2EncryptionConfig
1048
+ include Google::Apis::Core::Hashable
1049
+
1050
+ def initialize(**args)
1051
+ update!(**args)
1052
+ end
1053
+
1054
+ # Update properties of this object
1055
+ def update!(**args)
1056
+ end
1057
+ end
1058
+
1059
+ # An endpoint used to access the metastore service.
1060
+ class GoogleCloudMetastoreV2Endpoint
1061
+ include Google::Apis::Core::Hashable
1062
+
1063
+ # Output only. The URI of the endpoint used to access the metastore service.
1064
+ # Corresponds to the JSON property `endpointUri`
1065
+ # @return [String]
1066
+ attr_accessor :endpoint_uri
1067
+
1068
+ # Output only. The region where the endpoint is located.
1069
+ # Corresponds to the JSON property `region`
1070
+ # @return [String]
1071
+ attr_accessor :region
1072
+
1073
+ def initialize(**args)
1074
+ update!(**args)
1075
+ end
1076
+
1077
+ # Update properties of this object
1078
+ def update!(**args)
1079
+ @endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
1080
+ @region = args[:region] if args.key?(:region)
1081
+ end
1082
+ end
1083
+
1084
+ # Request message for DataprocMetastore.ExportMetadata.
1085
+ class GoogleCloudMetastoreV2ExportMetadataRequest
1086
+ include Google::Apis::Core::Hashable
1087
+
1088
+ # Optional. The type of the database dump. If unspecified, defaults to MYSQL.
1089
+ # Corresponds to the JSON property `databaseDumpType`
1090
+ # @return [String]
1091
+ attr_accessor :database_dump_type
1092
+
1093
+ # A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing
1094
+ # exported files will be created below it.
1095
+ # Corresponds to the JSON property `destinationGcsFolder`
1096
+ # @return [String]
1097
+ attr_accessor :destination_gcs_folder
1098
+
1099
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1100
+ # ignore the request if it has completed. The server will ignore subsequent
1101
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1102
+ # first request.For example, if an initial request times out, followed by
1103
+ # another request with the same request ID, the server ignores the second
1104
+ # request to prevent the creation of duplicate commitments.The request ID must
1105
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1106
+ # Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1107
+ # Corresponds to the JSON property `requestId`
1108
+ # @return [String]
1109
+ attr_accessor :request_id
1110
+
1111
+ def initialize(**args)
1112
+ update!(**args)
1113
+ end
1114
+
1115
+ # Update properties of this object
1116
+ def update!(**args)
1117
+ @database_dump_type = args[:database_dump_type] if args.key?(:database_dump_type)
1118
+ @destination_gcs_folder = args[:destination_gcs_folder] if args.key?(:destination_gcs_folder)
1119
+ @request_id = args[:request_id] if args.key?(:request_id)
1120
+ end
1121
+ end
1122
+
1123
+ # Specifies configuration information specific to running Hive metastore
1124
+ # software as the metastore service.
1125
+ class GoogleCloudMetastoreV2HiveMetastoreConfig
1126
+ include Google::Apis::Core::Hashable
1127
+
1128
+ # Optional. A mapping of Hive metastore version to the auxiliary version
1129
+ # configuration. When specified, a secondary Hive metastore service is created
1130
+ # along with the primary service. All auxiliary versions must be less than the
1131
+ # service's primary version. The key is the auxiliary service name and it must
1132
+ # match the regular expression a-z?. This means that the first character must be
1133
+ # a lowercase letter, and all the following characters must be hyphens,
1134
+ # lowercase letters, or digits, except the last character, which cannot be a
1135
+ # hyphen.
1136
+ # Corresponds to the JSON property `auxiliaryVersions`
1137
+ # @return [Hash<String,Google::Apis::MetastoreV2::GoogleCloudMetastoreV2AuxiliaryVersionConfig>]
1138
+ attr_accessor :auxiliary_versions
1139
+
1140
+ # Optional. A mapping of Hive metastore configuration key-value pairs to apply
1141
+ # to the Hive metastore (configured in hive-site.xml). The mappings override
1142
+ # system defaults (some keys cannot be overridden). These overrides are also
1143
+ # applied to auxiliary versions and can be further customized in the auxiliary
1144
+ # version's AuxiliaryVersionConfig.
1145
+ # Corresponds to the JSON property `configOverrides`
1146
+ # @return [Hash<String,String>]
1147
+ attr_accessor :config_overrides
1148
+
1149
+ # Optional. The protocol to use for the metastore service endpoint. If
1150
+ # unspecified, defaults to GRPC.
1151
+ # Corresponds to the JSON property `endpointProtocol`
1152
+ # @return [String]
1153
+ attr_accessor :endpoint_protocol
1154
+
1155
+ # Immutable. The Hive metastore schema version.
1156
+ # Corresponds to the JSON property `version`
1157
+ # @return [String]
1158
+ attr_accessor :version
1159
+
1160
+ def initialize(**args)
1161
+ update!(**args)
1162
+ end
1163
+
1164
+ # Update properties of this object
1165
+ def update!(**args)
1166
+ @auxiliary_versions = args[:auxiliary_versions] if args.key?(:auxiliary_versions)
1167
+ @config_overrides = args[:config_overrides] if args.key?(:config_overrides)
1168
+ @endpoint_protocol = args[:endpoint_protocol] if args.key?(:endpoint_protocol)
1169
+ @version = args[:version] if args.key?(:version)
1170
+ end
1171
+ end
1172
+
1173
+ # Request message for DataprocMetastore.CreateMetadataImport.
1174
+ class GoogleCloudMetastoreV2ImportMetadataRequest
1175
+ include Google::Apis::Core::Hashable
1176
+
1177
+ # A specification of the location of and metadata about a database dump from a
1178
+ # relational database management system.
1179
+ # Corresponds to the JSON property `databaseDump`
1180
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2DatabaseDump]
1181
+ attr_accessor :database_dump
1182
+
1183
+ # Optional. The description of the metadata import.
1184
+ # Corresponds to the JSON property `description`
1185
+ # @return [String]
1186
+ attr_accessor :description
1187
+
1188
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1189
+ # ignore the request if it has completed. The server will ignore subsequent
1190
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1191
+ # first request.For example, if an initial request times out, followed by
1192
+ # another request with the same request ID, the server ignores the second
1193
+ # request to prevent the creation of duplicate commitments.The request ID must
1194
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1195
+ # Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1196
+ # Corresponds to the JSON property `requestId`
1197
+ # @return [String]
1198
+ attr_accessor :request_id
1199
+
1200
+ def initialize(**args)
1201
+ update!(**args)
1202
+ end
1203
+
1204
+ # Update properties of this object
1205
+ def update!(**args)
1206
+ @database_dump = args[:database_dump] if args.key?(:database_dump)
1207
+ @description = args[:description] if args.key?(:description)
1208
+ @request_id = args[:request_id] if args.key?(:request_id)
1209
+ end
1210
+ end
1211
+
1212
+ # The details of the latest scheduled backup.
1213
+ class GoogleCloudMetastoreV2LatestBackup
1214
+ include Google::Apis::Core::Hashable
1215
+
1216
+ # Output only. The ID of an in-progress scheduled backup. Empty if no backup is
1217
+ # in progress.
1218
+ # Corresponds to the JSON property `backupId`
1219
+ # @return [String]
1220
+ attr_accessor :backup_id
1221
+
1222
+ # Output only. The duration of the backup completion.
1223
+ # Corresponds to the JSON property `duration`
1224
+ # @return [String]
1225
+ attr_accessor :duration
1226
+
1227
+ # Output only. The time when the backup was started.
1228
+ # Corresponds to the JSON property `startTime`
1229
+ # @return [String]
1230
+ attr_accessor :start_time
1231
+
1232
+ # Output only. The current state of the backup.
1233
+ # Corresponds to the JSON property `state`
1234
+ # @return [String]
1235
+ attr_accessor :state
1236
+
1237
+ def initialize(**args)
1238
+ update!(**args)
1239
+ end
1240
+
1241
+ # Update properties of this object
1242
+ def update!(**args)
1243
+ @backup_id = args[:backup_id] if args.key?(:backup_id)
1244
+ @duration = args[:duration] if args.key?(:duration)
1245
+ @start_time = args[:start_time] if args.key?(:start_time)
1246
+ @state = args[:state] if args.key?(:state)
1247
+ end
1248
+ end
1249
+
1250
+ # Response message for DataprocMetastore.ListBackups.
1251
+ class GoogleCloudMetastoreV2ListBackupsResponse
1252
+ include Google::Apis::Core::Hashable
1253
+
1254
+ # The backups of the specified service.
1255
+ # Corresponds to the JSON property `backups`
1256
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV2Backup>]
1257
+ attr_accessor :backups
1258
+
1259
+ # A token that can be sent as page_token to retrieve the next page. If this
1260
+ # field is omitted, there are no subsequent pages.
1261
+ # Corresponds to the JSON property `nextPageToken`
1262
+ # @return [String]
1263
+ attr_accessor :next_page_token
1264
+
1265
+ # Locations that could not be reached.
1266
+ # Corresponds to the JSON property `unreachable`
1267
+ # @return [Array<String>]
1268
+ attr_accessor :unreachable
1269
+
1270
+ def initialize(**args)
1271
+ update!(**args)
1272
+ end
1273
+
1274
+ # Update properties of this object
1275
+ def update!(**args)
1276
+ @backups = args[:backups] if args.key?(:backups)
1277
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1278
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1279
+ end
1280
+ end
1281
+
1282
+ # Response message for DataprocMetastore.ListServices.
1283
+ class GoogleCloudMetastoreV2ListServicesResponse
1284
+ include Google::Apis::Core::Hashable
1285
+
1286
+ # A token that can be sent as page_token to retrieve the next page. If this
1287
+ # field is omitted, there are no subsequent pages.
1288
+ # Corresponds to the JSON property `nextPageToken`
1289
+ # @return [String]
1290
+ attr_accessor :next_page_token
1291
+
1292
+ # The services in the specified location.
1293
+ # Corresponds to the JSON property `services`
1294
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV2Service>]
1295
+ attr_accessor :services
1296
+
1297
+ # Locations that could not be reached.
1298
+ # Corresponds to the JSON property `unreachable`
1299
+ # @return [Array<String>]
1300
+ attr_accessor :unreachable
1301
+
1302
+ def initialize(**args)
1303
+ update!(**args)
1304
+ end
1305
+
1306
+ # Update properties of this object
1307
+ def update!(**args)
1308
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1309
+ @services = args[:services] if args.key?(:services)
1310
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1311
+ end
1312
+ end
1313
+
1314
+ # Specifies how metastore metadata should be integrated with external services.
1315
+ class GoogleCloudMetastoreV2MetadataIntegration
1316
+ include Google::Apis::Core::Hashable
1317
+
1318
+ # Specifies how metastore metadata should be integrated with the Data Catalog
1319
+ # service.
1320
+ # Corresponds to the JSON property `dataCatalogConfig`
1321
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2DataCatalogConfig]
1322
+ attr_accessor :data_catalog_config
1323
+
1324
+ def initialize(**args)
1325
+ update!(**args)
1326
+ end
1327
+
1328
+ # Update properties of this object
1329
+ def update!(**args)
1330
+ @data_catalog_config = args[:data_catalog_config] if args.key?(:data_catalog_config)
1331
+ end
1332
+ end
1333
+
1334
+ # Request message for DataprocMetastore.MoveTableToDatabase.
1335
+ class GoogleCloudMetastoreV2MoveTableToDatabaseRequest
1336
+ include Google::Apis::Core::Hashable
1337
+
1338
+ # Required. The name of the database where the table resides.
1339
+ # Corresponds to the JSON property `dbName`
1340
+ # @return [String]
1341
+ attr_accessor :db_name
1342
+
1343
+ # Required. The name of the database where the table should be moved.
1344
+ # Corresponds to the JSON property `destinationDbName`
1345
+ # @return [String]
1346
+ attr_accessor :destination_db_name
1347
+
1348
+ # Required. The name of the table to be moved.
1349
+ # Corresponds to the JSON property `tableName`
1350
+ # @return [String]
1351
+ attr_accessor :table_name
1352
+
1353
+ def initialize(**args)
1354
+ update!(**args)
1355
+ end
1356
+
1357
+ # Update properties of this object
1358
+ def update!(**args)
1359
+ @db_name = args[:db_name] if args.key?(:db_name)
1360
+ @destination_db_name = args[:destination_db_name] if args.key?(:destination_db_name)
1361
+ @table_name = args[:table_name] if args.key?(:table_name)
1362
+ end
1363
+ end
1364
+
1365
+ # Request message for DataprocMetastore.QueryMetadata.
1366
+ class GoogleCloudMetastoreV2QueryMetadataRequest
1367
+ include Google::Apis::Core::Hashable
1368
+
1369
+ # Required. A read-only SQL query to execute against the metadata database. The
1370
+ # query cannot change or mutate the data.
1371
+ # Corresponds to the JSON property `query`
1372
+ # @return [String]
1373
+ attr_accessor :query
1374
+
1375
+ def initialize(**args)
1376
+ update!(**args)
1377
+ end
1378
+
1379
+ # Update properties of this object
1380
+ def update!(**args)
1381
+ @query = args[:query] if args.key?(:query)
1382
+ end
1383
+ end
1384
+
1385
+ # Request message for DataprocMetastore.Restore.
1386
+ class GoogleCloudMetastoreV2RestoreServiceRequest
1387
+ include Google::Apis::Core::Hashable
1388
+
1389
+ # Optional. The relative resource name of the metastore service backup to
1390
+ # restore from, in the following form:projects/`project_id`/locations/`
1391
+ # location_id`/services/`service_id`/backups/`backup_id`. Mutually exclusive
1392
+ # with backup_location, and exactly one of the two must be set.
1393
+ # Corresponds to the JSON property `backup`
1394
+ # @return [String]
1395
+ attr_accessor :backup
1396
+
1397
+ # Optional. A Cloud Storage URI specifying the location of the backup artifacts,
1398
+ # namely - backup avro files under "avro/", backup_metastore.json and service.
1399
+ # json, in the following form:gs://. Mutually exclusive with backup, and exactly
1400
+ # one of the two must be set.
1401
+ # Corresponds to the JSON property `backupLocation`
1402
+ # @return [String]
1403
+ attr_accessor :backup_location
1404
+
1405
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1406
+ # ignore the request if it has completed. The server will ignore subsequent
1407
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1408
+ # first request.For example, if an initial request times out, followed by
1409
+ # another request with the same request ID, the server ignores the second
1410
+ # request to prevent the creation of duplicate commitments.The request ID must
1411
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1412
+ # Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1413
+ # Corresponds to the JSON property `requestId`
1414
+ # @return [String]
1415
+ attr_accessor :request_id
1416
+
1417
+ # Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.
1418
+ # Corresponds to the JSON property `restoreType`
1419
+ # @return [String]
1420
+ attr_accessor :restore_type
1421
+
1422
+ def initialize(**args)
1423
+ update!(**args)
1424
+ end
1425
+
1426
+ # Update properties of this object
1427
+ def update!(**args)
1428
+ @backup = args[:backup] if args.key?(:backup)
1429
+ @backup_location = args[:backup_location] if args.key?(:backup_location)
1430
+ @request_id = args[:request_id] if args.key?(:request_id)
1431
+ @restore_type = args[:restore_type] if args.key?(:restore_type)
1432
+ end
1433
+ end
1434
+
1435
+ # Represents the scaling configuration of a metastore service.
1436
+ class GoogleCloudMetastoreV2ScalingConfig
1437
+ include Google::Apis::Core::Hashable
1438
+
1439
+ # Optional. Scaling factor from 1 to 5, increments of 1.
1440
+ # Corresponds to the JSON property `scalingFactor`
1441
+ # @return [Fixnum]
1442
+ attr_accessor :scaling_factor
1443
+
1444
+ def initialize(**args)
1445
+ update!(**args)
1446
+ end
1447
+
1448
+ # Update properties of this object
1449
+ def update!(**args)
1450
+ @scaling_factor = args[:scaling_factor] if args.key?(:scaling_factor)
1451
+ end
1452
+ end
1453
+
1454
+ # This specifies the configuration of scheduled backup.
1455
+ class GoogleCloudMetastoreV2ScheduledBackup
1456
+ include Google::Apis::Core::Hashable
1457
+
1458
+ # Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder
1459
+ # containing backup files will be stored below it.
1460
+ # Corresponds to the JSON property `backupLocation`
1461
+ # @return [String]
1462
+ attr_accessor :backup_location
1463
+
1464
+ # Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/
1465
+ # wiki/Cron The default is empty: scheduled backup is not enabled. Must be
1466
+ # specified to enable scheduled backups.
1467
+ # Corresponds to the JSON property `cronSchedule`
1468
+ # @return [String]
1469
+ attr_accessor :cron_schedule
1470
+
1471
+ # Optional. Defines whether the scheduled backup is enabled. The default value
1472
+ # is false.
1473
+ # Corresponds to the JSON property `enabled`
1474
+ # @return [Boolean]
1475
+ attr_accessor :enabled
1476
+ alias_method :enabled?, :enabled
1477
+
1478
+ # The details of the latest scheduled backup.
1479
+ # Corresponds to the JSON property `latestBackup`
1480
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2LatestBackup]
1481
+ attr_accessor :latest_backup
1482
+
1483
+ # Output only. The time when the next backups execution is scheduled to start.
1484
+ # Corresponds to the JSON property `nextScheduledTime`
1485
+ # @return [String]
1486
+ attr_accessor :next_scheduled_time
1487
+
1488
+ # Optional. Specifies the time zone to be used when interpreting cron_schedule.
1489
+ # Must be a time zone name from the time zone database (https://en.wikipedia.org/
1490
+ # wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/
1491
+ # Abidjan. If left unspecified, the default is UTC.
1492
+ # Corresponds to the JSON property `timeZone`
1493
+ # @return [String]
1494
+ attr_accessor :time_zone
1495
+
1496
+ def initialize(**args)
1497
+ update!(**args)
1498
+ end
1499
+
1500
+ # Update properties of this object
1501
+ def update!(**args)
1502
+ @backup_location = args[:backup_location] if args.key?(:backup_location)
1503
+ @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
1504
+ @enabled = args[:enabled] if args.key?(:enabled)
1505
+ @latest_backup = args[:latest_backup] if args.key?(:latest_backup)
1506
+ @next_scheduled_time = args[:next_scheduled_time] if args.key?(:next_scheduled_time)
1507
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1508
+ end
1509
+ end
1510
+
1511
+ # A managed metastore service that serves metadata queries.
1512
+ class GoogleCloudMetastoreV2Service
1513
+ include Google::Apis::Core::Hashable
1514
+
1515
+ # Output only. The time when the metastore service was created.
1516
+ # Corresponds to the JSON property `createTime`
1517
+ # @return [String]
1518
+ attr_accessor :create_time
1519
+
1520
+ # Encryption settings for the service.
1521
+ # Corresponds to the JSON property `encryptionConfig`
1522
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2EncryptionConfig]
1523
+ attr_accessor :encryption_config
1524
+
1525
+ # Output only. The list of endpoints used to access the metastore service.
1526
+ # Corresponds to the JSON property `endpoints`
1527
+ # @return [Array<Google::Apis::MetastoreV2::GoogleCloudMetastoreV2Endpoint>]
1528
+ attr_accessor :endpoints
1529
+
1530
+ # Specifies configuration information specific to running Hive metastore
1531
+ # software as the metastore service.
1532
+ # Corresponds to the JSON property `hiveMetastoreConfig`
1533
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2HiveMetastoreConfig]
1534
+ attr_accessor :hive_metastore_config
1535
+
1536
+ # User-defined labels for the metastore service.
1537
+ # Corresponds to the JSON property `labels`
1538
+ # @return [Hash<String,String>]
1539
+ attr_accessor :labels
1540
+
1541
+ # Specifies how metastore metadata should be integrated with external services.
1542
+ # Corresponds to the JSON property `metadataIntegration`
1543
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2MetadataIntegration]
1544
+ attr_accessor :metadata_integration
1545
+
1546
+ # Immutable. The relative resource name of the metastore service, in the
1547
+ # following format:projects/`project_number`/locations/`location_id`/services/`
1548
+ # service_id`.
1549
+ # Corresponds to the JSON property `name`
1550
+ # @return [String]
1551
+ attr_accessor :name
1552
+
1553
+ # Represents the scaling configuration of a metastore service.
1554
+ # Corresponds to the JSON property `scalingConfig`
1555
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2ScalingConfig]
1556
+ attr_accessor :scaling_config
1557
+
1558
+ # This specifies the configuration of scheduled backup.
1559
+ # Corresponds to the JSON property `scheduledBackup`
1560
+ # @return [Google::Apis::MetastoreV2::GoogleCloudMetastoreV2ScheduledBackup]
1561
+ attr_accessor :scheduled_backup
1562
+
1563
+ # Output only. The current state of the metastore service.
1564
+ # Corresponds to the JSON property `state`
1565
+ # @return [String]
1566
+ attr_accessor :state
1567
+
1568
+ # Output only. Additional information about the current state of the metastore
1569
+ # service, if available.
1570
+ # Corresponds to the JSON property `stateMessage`
1571
+ # @return [String]
1572
+ attr_accessor :state_message
1573
+
1574
+ # Output only. The globally unique resource identifier of the metastore service.
1575
+ # Corresponds to the JSON property `uid`
1576
+ # @return [String]
1577
+ attr_accessor :uid
1578
+
1579
+ # Output only. The time when the metastore service was last updated.
1580
+ # Corresponds to the JSON property `updateTime`
1581
+ # @return [String]
1582
+ attr_accessor :update_time
1583
+
1584
+ # Required. A Cloud Storage URI (starting with gs://) that specifies the default
1585
+ # warehouse directory of the Hive Metastore.
1586
+ # Corresponds to the JSON property `warehouseGcsUri`
1587
+ # @return [String]
1588
+ attr_accessor :warehouse_gcs_uri
1589
+
1590
+ def initialize(**args)
1591
+ update!(**args)
1592
+ end
1593
+
1594
+ # Update properties of this object
1595
+ def update!(**args)
1596
+ @create_time = args[:create_time] if args.key?(:create_time)
1597
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
1598
+ @endpoints = args[:endpoints] if args.key?(:endpoints)
1599
+ @hive_metastore_config = args[:hive_metastore_config] if args.key?(:hive_metastore_config)
1600
+ @labels = args[:labels] if args.key?(:labels)
1601
+ @metadata_integration = args[:metadata_integration] if args.key?(:metadata_integration)
1602
+ @name = args[:name] if args.key?(:name)
1603
+ @scaling_config = args[:scaling_config] if args.key?(:scaling_config)
1604
+ @scheduled_backup = args[:scheduled_backup] if args.key?(:scheduled_backup)
1605
+ @state = args[:state] if args.key?(:state)
1606
+ @state_message = args[:state_message] if args.key?(:state_message)
1607
+ @uid = args[:uid] if args.key?(:uid)
1608
+ @update_time = args[:update_time] if args.key?(:update_time)
1609
+ @warehouse_gcs_uri = args[:warehouse_gcs_uri] if args.key?(:warehouse_gcs_uri)
1610
+ end
1611
+ end
1612
+
1613
+ # This resource represents a long-running operation that is the result of a
1614
+ # network API call.
1615
+ class GoogleLongrunningOperation
1616
+ include Google::Apis::Core::Hashable
1617
+
1618
+ # If the value is false, it means the operation is still in progress. If true,
1619
+ # the operation is completed, and either error or response is available.
1620
+ # Corresponds to the JSON property `done`
1621
+ # @return [Boolean]
1622
+ attr_accessor :done
1623
+ alias_method :done?, :done
1624
+
1625
+ # The Status type defines a logical error model that is suitable for different
1626
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1627
+ # (https://github.com/grpc). Each Status message contains three pieces of data:
1628
+ # error code, error message, and error details.You can find out more about this
1629
+ # error model and how to work with it in the API Design Guide (https://cloud.
1630
+ # google.com/apis/design/errors).
1631
+ # Corresponds to the JSON property `error`
1632
+ # @return [Google::Apis::MetastoreV2::GoogleRpcStatus]
1633
+ attr_accessor :error
1634
+
1635
+ # Service-specific metadata associated with the operation. It typically contains
1636
+ # progress information and common metadata such as create time. Some services
1637
+ # might not provide such metadata. Any method that returns a long-running
1638
+ # operation should document the metadata type, if any.
1639
+ # Corresponds to the JSON property `metadata`
1640
+ # @return [Hash<String,Object>]
1641
+ attr_accessor :metadata
1642
+
1643
+ # The server-assigned name, which is only unique within the same service that
1644
+ # originally returns it. If you use the default HTTP mapping, the name should be
1645
+ # a resource name ending with operations/`unique_id`.
1646
+ # Corresponds to the JSON property `name`
1647
+ # @return [String]
1648
+ attr_accessor :name
1649
+
1650
+ # The normal, successful response of the operation. If the original method
1651
+ # returns no data on success, such as Delete, the response is google.protobuf.
1652
+ # Empty. If the original method is standard Get/Create/Update, the response
1653
+ # should be the resource. For other methods, the response should have the type
1654
+ # XxxResponse, where Xxx is the original method name. For example, if the
1655
+ # original method name is TakeSnapshot(), the inferred response type is
1656
+ # TakeSnapshotResponse.
1657
+ # Corresponds to the JSON property `response`
1658
+ # @return [Hash<String,Object>]
1659
+ attr_accessor :response
1660
+
1661
+ def initialize(**args)
1662
+ update!(**args)
1663
+ end
1664
+
1665
+ # Update properties of this object
1666
+ def update!(**args)
1667
+ @done = args[:done] if args.key?(:done)
1668
+ @error = args[:error] if args.key?(:error)
1669
+ @metadata = args[:metadata] if args.key?(:metadata)
1670
+ @name = args[:name] if args.key?(:name)
1671
+ @response = args[:response] if args.key?(:response)
1672
+ end
1673
+ end
1674
+
1675
+ # The Status type defines a logical error model that is suitable for different
1676
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1677
+ # (https://github.com/grpc). Each Status message contains three pieces of data:
1678
+ # error code, error message, and error details.You can find out more about this
1679
+ # error model and how to work with it in the API Design Guide (https://cloud.
1680
+ # google.com/apis/design/errors).
1681
+ class GoogleRpcStatus
1682
+ include Google::Apis::Core::Hashable
1683
+
1684
+ # The status code, which should be an enum value of google.rpc.Code.
1685
+ # Corresponds to the JSON property `code`
1686
+ # @return [Fixnum]
1687
+ attr_accessor :code
1688
+
1689
+ # A list of messages that carry the error details. There is a common set of
1690
+ # message types for APIs to use.
1691
+ # Corresponds to the JSON property `details`
1692
+ # @return [Array<Hash<String,Object>>]
1693
+ attr_accessor :details
1694
+
1695
+ # A developer-facing error message, which should be in English. Any user-facing
1696
+ # error message should be localized and sent in the google.rpc.Status.details
1697
+ # field, or localized by the client.
1698
+ # Corresponds to the JSON property `message`
1699
+ # @return [String]
1700
+ attr_accessor :message
1701
+
1702
+ def initialize(**args)
1703
+ update!(**args)
1704
+ end
1705
+
1706
+ # Update properties of this object
1707
+ def update!(**args)
1708
+ @code = args[:code] if args.key?(:code)
1709
+ @details = args[:details] if args.key?(:details)
1710
+ @message = args[:message] if args.key?(:message)
1711
+ end
1712
+ end
1713
+ end
1714
+ end
1715
+ end