google-cloud-metastore-v1 0.1.2 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -235,6 +235,9 @@ module Google
235
235
  # @!attribute [r] metadata_exports
236
236
  # @return [::Array<::Google::Cloud::Metastore::V1::MetadataExport>]
237
237
  # Output only. The latest metadata exports of the metastore service.
238
+ # @!attribute [r] restores
239
+ # @return [::Array<::Google::Cloud::Metastore::V1::Restore>]
240
+ # Output only. The latest restores of the metastore service.
238
241
  class MetadataManagementActivity
239
242
  include ::Google::Protobuf::MessageExts
240
243
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -254,10 +257,13 @@ module Google
254
257
  # The description of the metadata import.
255
258
  # @!attribute [r] create_time
256
259
  # @return [::Google::Protobuf::Timestamp]
257
- # Output only. The time when the metadata import was created.
260
+ # Output only. The time when the metadata import was started.
258
261
  # @!attribute [r] update_time
259
262
  # @return [::Google::Protobuf::Timestamp]
260
263
  # Output only. The time when the metadata import was last updated.
264
+ # @!attribute [r] end_time
265
+ # @return [::Google::Protobuf::Timestamp]
266
+ # Output only. The time when the metadata import finished.
261
267
  # @!attribute [r] state
262
268
  # @return [::Google::Cloud::Metastore::V1::MetadataImport::State]
263
269
  # Output only. The current state of the metadata import.
@@ -352,6 +358,114 @@ module Google
352
358
  end
353
359
  end
354
360
 
361
+ # The details of a backup resource.
362
+ # @!attribute [rw] name
363
+ # @return [::String]
364
+ # Immutable. The relative resource name of the backup, in the following form:
365
+ #
366
+ # `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`
367
+ # @!attribute [r] create_time
368
+ # @return [::Google::Protobuf::Timestamp]
369
+ # Output only. The time when the backup was started.
370
+ # @!attribute [r] end_time
371
+ # @return [::Google::Protobuf::Timestamp]
372
+ # Output only. The time when the backup finished creating.
373
+ # @!attribute [r] state
374
+ # @return [::Google::Cloud::Metastore::V1::Backup::State]
375
+ # Output only. The current state of the backup.
376
+ # @!attribute [r] service_revision
377
+ # @return [::Google::Cloud::Metastore::V1::Service]
378
+ # Output only. The revision of the service at the time of backup.
379
+ # @!attribute [rw] description
380
+ # @return [::String]
381
+ # The description of the backup.
382
+ # @!attribute [r] restoring_services
383
+ # @return [::Array<::String>]
384
+ # Output only. Services that are restoring from the backup.
385
+ class Backup
386
+ include ::Google::Protobuf::MessageExts
387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
388
+
389
+ # The current state of the backup.
390
+ module State
391
+ # The state of the backup is unknown.
392
+ STATE_UNSPECIFIED = 0
393
+
394
+ # The backup is being created.
395
+ CREATING = 1
396
+
397
+ # The backup is being deleted.
398
+ DELETING = 2
399
+
400
+ # The backup is active and ready to use.
401
+ ACTIVE = 3
402
+
403
+ # The backup failed.
404
+ FAILED = 4
405
+
406
+ # The backup is being restored.
407
+ RESTORING = 5
408
+ end
409
+ end
410
+
411
+ # The details of a metadata restore operation.
412
+ # @!attribute [r] start_time
413
+ # @return [::Google::Protobuf::Timestamp]
414
+ # Output only. The time when the restore started.
415
+ # @!attribute [r] end_time
416
+ # @return [::Google::Protobuf::Timestamp]
417
+ # Output only. The time when the restore ended.
418
+ # @!attribute [r] state
419
+ # @return [::Google::Cloud::Metastore::V1::Restore::State]
420
+ # Output only. The current state of the restore.
421
+ # @!attribute [r] backup
422
+ # @return [::String]
423
+ # Output only. The relative resource name of the metastore service backup to restore
424
+ # from, in the following form:
425
+ #
426
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
427
+ # @!attribute [r] type
428
+ # @return [::Google::Cloud::Metastore::V1::Restore::RestoreType]
429
+ # Output only. The type of restore.
430
+ # @!attribute [r] details
431
+ # @return [::String]
432
+ # Output only. The restore details containing the revision of the service to be restored
433
+ # to, in format of JSON.
434
+ class Restore
435
+ include ::Google::Protobuf::MessageExts
436
+ extend ::Google::Protobuf::MessageExts::ClassMethods
437
+
438
+ # The current state of the restore.
439
+ module State
440
+ # The state of the metadata restore is unknown.
441
+ STATE_UNSPECIFIED = 0
442
+
443
+ # The metadata restore is running.
444
+ RUNNING = 1
445
+
446
+ # The metadata restore completed successfully.
447
+ SUCCEEDED = 2
448
+
449
+ # The metadata restore failed.
450
+ FAILED = 3
451
+
452
+ # The metadata restore is cancelled.
453
+ CANCELLED = 4
454
+ end
455
+
456
+ # The type of restore. If unspecified, defaults to `METADATA_ONLY`.
457
+ module RestoreType
458
+ # The restore type is unknown.
459
+ RESTORE_TYPE_UNSPECIFIED = 0
460
+
461
+ # The service's metadata and configuration are restored.
462
+ FULL = 1
463
+
464
+ # Only the service's metadata is restored.
465
+ METADATA_ONLY = 2
466
+ end
467
+ end
468
+
355
469
  # Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_services DataprocMetastore.ListServices}.
356
470
  # @!attribute [rw] parent
357
471
  # @return [::String]
@@ -648,6 +762,133 @@ module Google
648
762
  extend ::Google::Protobuf::MessageExts::ClassMethods
649
763
  end
650
764
 
765
+ # Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_backups DataprocMetastore.ListBackups}.
766
+ # @!attribute [rw] parent
767
+ # @return [::String]
768
+ # Required. The relative resource name of the service whose backups to
769
+ # list, in the following form:
770
+ #
771
+ # `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.
772
+ # @!attribute [rw] page_size
773
+ # @return [::Integer]
774
+ # Optional. The maximum number of backups to return. The response may contain less
775
+ # than the maximum number. If unspecified, no more than 500 backups are
776
+ # returned. The maximum value is 1000; values above 1000 are changed to 1000.
777
+ # @!attribute [rw] page_token
778
+ # @return [::String]
779
+ # Optional. A page token, received from a previous {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_backups DataprocMetastore.ListBackups}
780
+ # call. Provide this token to retrieve the subsequent page.
781
+ #
782
+ # To retrieve the first page, supply an empty page token.
783
+ #
784
+ # When paginating, other parameters provided to
785
+ # {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_backups DataprocMetastore.ListBackups} must match the call that provided the
786
+ # page token.
787
+ # @!attribute [rw] filter
788
+ # @return [::String]
789
+ # Optional. The filter to apply to list results.
790
+ # @!attribute [rw] order_by
791
+ # @return [::String]
792
+ # Optional. Specify the ordering of results as described in [Sorting
793
+ # Order](https://cloud.google.com/apis/design/design_patterns#sorting_order).
794
+ # If not specified, the results will be sorted in the default order.
795
+ class ListBackupsRequest
796
+ include ::Google::Protobuf::MessageExts
797
+ extend ::Google::Protobuf::MessageExts::ClassMethods
798
+ end
799
+
800
+ # Response message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#list_backups DataprocMetastore.ListBackups}.
801
+ # @!attribute [rw] backups
802
+ # @return [::Array<::Google::Cloud::Metastore::V1::Backup>]
803
+ # The backups of the specified service.
804
+ # @!attribute [rw] next_page_token
805
+ # @return [::String]
806
+ # A token that can be sent as `page_token` to retrieve the next page. If this
807
+ # field is omitted, there are no subsequent pages.
808
+ # @!attribute [rw] unreachable
809
+ # @return [::Array<::String>]
810
+ # Locations that could not be reached.
811
+ class ListBackupsResponse
812
+ include ::Google::Protobuf::MessageExts
813
+ extend ::Google::Protobuf::MessageExts::ClassMethods
814
+ end
815
+
816
+ # Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#get_backup DataprocMetastore.GetBackup}.
817
+ # @!attribute [rw] name
818
+ # @return [::String]
819
+ # Required. The relative resource name of the backup to retrieve, in the
820
+ # following form:
821
+ #
822
+ # `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
823
+ class GetBackupRequest
824
+ include ::Google::Protobuf::MessageExts
825
+ extend ::Google::Protobuf::MessageExts::ClassMethods
826
+ end
827
+
828
+ # Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#create_backup DataprocMetastore.CreateBackup}.
829
+ # @!attribute [rw] parent
830
+ # @return [::String]
831
+ # Required. The relative resource name of the service in which to create a backup
832
+ # of the following form:
833
+ #
834
+ # `projects/{project_number}/locations/{location_id}/services/{service_id}`.
835
+ # @!attribute [rw] backup_id
836
+ # @return [::String]
837
+ # Required. The ID of the backup, which is used as the final component of the
838
+ # backup's name.
839
+ #
840
+ # This value must be between 1 and 64 characters long, begin with a letter,
841
+ # end with a letter or number, and consist of alpha-numeric ASCII characters
842
+ # or hyphens.
843
+ # @!attribute [rw] backup
844
+ # @return [::Google::Cloud::Metastore::V1::Backup]
845
+ # Required. The backup to create. The `name` field is ignored. The ID of the created
846
+ # backup must be provided in the request's `backup_id` field.
847
+ # @!attribute [rw] request_id
848
+ # @return [::String]
849
+ # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
850
+ # request if it has completed. The server will ignore subsequent requests
851
+ # that provide a duplicate request ID for at least 60 minutes after the first
852
+ # request.
853
+ #
854
+ # For example, if an initial request times out, followed by another request
855
+ # with the same request ID, the server ignores the second request to prevent
856
+ # the creation of duplicate commitments.
857
+ #
858
+ # The request ID must be a valid
859
+ # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
860
+ # A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
861
+ class CreateBackupRequest
862
+ include ::Google::Protobuf::MessageExts
863
+ extend ::Google::Protobuf::MessageExts::ClassMethods
864
+ end
865
+
866
+ # Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#delete_backup DataprocMetastore.DeleteBackup}.
867
+ # @!attribute [rw] name
868
+ # @return [::String]
869
+ # Required. The relative resource name of the backup to delete, in the
870
+ # following form:
871
+ #
872
+ # `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
873
+ # @!attribute [rw] request_id
874
+ # @return [::String]
875
+ # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
876
+ # request if it has completed. The server will ignore subsequent requests
877
+ # that provide a duplicate request ID for at least 60 minutes after the first
878
+ # request.
879
+ #
880
+ # For example, if an initial request times out, followed by another request
881
+ # with the same request ID, the server ignores the second request to prevent
882
+ # the creation of duplicate commitments.
883
+ #
884
+ # The request ID must be a valid
885
+ # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format)
886
+ # A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
887
+ class DeleteBackupRequest
888
+ include ::Google::Protobuf::MessageExts
889
+ extend ::Google::Protobuf::MessageExts::ClassMethods
890
+ end
891
+
651
892
  # Request message for {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#export_metadata DataprocMetastore.ExportMetadata}.
652
893
  # @!attribute [rw] destination_gcs_folder
653
894
  # @return [::String]
@@ -682,6 +923,41 @@ module Google
682
923
  extend ::Google::Protobuf::MessageExts::ClassMethods
683
924
  end
684
925
 
926
+ # Request message for [DataprocMetastore.Restore][].
927
+ # @!attribute [rw] service
928
+ # @return [::String]
929
+ # Required. The relative resource name of the metastore service to run restore, in the
930
+ # following form:
931
+ #
932
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}`.
933
+ # @!attribute [rw] backup
934
+ # @return [::String]
935
+ # Required. The relative resource name of the metastore service backup to restore
936
+ # from, in the following form:
937
+ #
938
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
939
+ # @!attribute [rw] restore_type
940
+ # @return [::Google::Cloud::Metastore::V1::Restore::RestoreType]
941
+ # Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`.
942
+ # @!attribute [rw] request_id
943
+ # @return [::String]
944
+ # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
945
+ # request if it has completed. The server will ignore subsequent requests
946
+ # that provide a duplicate request ID for at least 60 minutes after the first
947
+ # request.
948
+ #
949
+ # For example, if an initial request times out, followed by another request
950
+ # with the same request ID, the server ignores the second request to prevent
951
+ # the creation of duplicate commitments.
952
+ #
953
+ # The request ID must be a valid
954
+ # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
955
+ # A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
956
+ class RestoreServiceRequest
957
+ include ::Google::Protobuf::MessageExts
958
+ extend ::Google::Protobuf::MessageExts::ClassMethods
959
+ end
960
+
685
961
  # Represents the metadata of a long-running operation.
686
962
  # @!attribute [r] create_time
687
963
  # @return [::Google::Protobuf::Timestamp]
@@ -748,6 +1024,9 @@ module Google
748
1024
 
749
1025
  # Database dump is a MySQL dump file.
750
1026
  MYSQL = 1
1027
+
1028
+ # Database dump contains Avro files.
1029
+ AVRO = 2
751
1030
  end
752
1031
  end
753
1032
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-metastore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.2.17
217
+ rubygems_version: 3.3.4
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: API Client library for the Dataproc Metastore V1 API