google-apis-metastore_v1alpha 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcfd25ced3e901e58fa61058efeabdef0cd520a8a5cc4fc21b296661a33a52f9
4
- data.tar.gz: c1e28cd6c806038b85a6abeae6660771a8605bc5e11e96b6dcfe703d22995d2e
3
+ metadata.gz: be9de7ce1a78666c61e3b83ef5e840f0e7c70a7b2087ae07f1108e85ce8bd70c
4
+ data.tar.gz: ae9a4867985d8454d1863a7b1624c243b3a21a55ce78acbc4bf8154f12de51ae
5
5
  SHA512:
6
- metadata.gz: 02340d07b2a533aaedb81bab34432fb32639d089382a29cb3c9069ca025c1b94011732c7bc8076043497f2aaf7578a3b270efc1cb5094bb5d40db87d1dd9c7d2
7
- data.tar.gz: 2c54fd7b3fe537e0b40bebb5f8cdb9033cc7b72fa87321f6069d02ed0c84f7ce2955679b3bc44008a8060de388225be96d780b70b24b3d0289be4f56a6b91fec
6
+ metadata.gz: 84393abaaec6d961a5552d8503be976a80bca59b48df8b596fcd415e9c25fb28ad8b71e17332ed83e5b7d25e00269bc58b2d8ce20f70964033f6183f60e1a16b
7
+ data.tar.gz: 29c59c76e793de4e61ece785098c8140c72a2bd478abe0597012a066b4694a424d5e16d3f543be5ba2cd248697a014529b4723eb5b526789dea8450566a3cb72
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-metastore_v1alpha
2
2
 
3
+ ### v0.7.0 (2021-03-28)
4
+
5
+ * Regenerated from discovery document revision 20210325
6
+
3
7
  ### v0.6.0 (2021-03-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20210318
@@ -93,6 +93,57 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
+ # The details of a backup resource.
97
+ class Backup
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Output only. The time when the backup was started.
101
+ # Corresponds to the JSON property `createTime`
102
+ # @return [String]
103
+ attr_accessor :create_time
104
+
105
+ # The description of the backup.
106
+ # Corresponds to the JSON property `description`
107
+ # @return [String]
108
+ attr_accessor :description
109
+
110
+ # Output only. The time when the backup finished creating.
111
+ # Corresponds to the JSON property `endTime`
112
+ # @return [String]
113
+ attr_accessor :end_time
114
+
115
+ # Immutable. The relative resource name of the backup, in the following form:
116
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
117
+ # backups/`backup_id`
118
+ # Corresponds to the JSON property `name`
119
+ # @return [String]
120
+ attr_accessor :name
121
+
122
+ # A managed metastore service that serves metadata queries.
123
+ # Corresponds to the JSON property `serviceRevision`
124
+ # @return [Google::Apis::MetastoreV1alpha::Service]
125
+ attr_accessor :service_revision
126
+
127
+ # Output only. The current state of the backup.
128
+ # Corresponds to the JSON property `state`
129
+ # @return [String]
130
+ attr_accessor :state
131
+
132
+ def initialize(**args)
133
+ update!(**args)
134
+ end
135
+
136
+ # Update properties of this object
137
+ def update!(**args)
138
+ @create_time = args[:create_time] if args.key?(:create_time)
139
+ @description = args[:description] if args.key?(:description)
140
+ @end_time = args[:end_time] if args.key?(:end_time)
141
+ @name = args[:name] if args.key?(:name)
142
+ @service_revision = args[:service_revision] if args.key?(:service_revision)
143
+ @state = args[:state] if args.key?(:state)
144
+ end
145
+ end
146
+
96
147
  # Associates members with a role.
97
148
  class Binding
98
149
  include Google::Apis::Core::Hashable
@@ -430,6 +481,38 @@ module Google
430
481
  end
431
482
  end
432
483
 
484
+ # Response message for DataprocMetastore.ListBackups.
485
+ class ListBackupsResponse
486
+ include Google::Apis::Core::Hashable
487
+
488
+ # The backups of the specified service.
489
+ # Corresponds to the JSON property `backups`
490
+ # @return [Array<Google::Apis::MetastoreV1alpha::Backup>]
491
+ attr_accessor :backups
492
+
493
+ # A token that can be sent as page_token to retrieve the next page. If this
494
+ # field is omitted, there are no subsequent pages.
495
+ # Corresponds to the JSON property `nextPageToken`
496
+ # @return [String]
497
+ attr_accessor :next_page_token
498
+
499
+ # Locations that could not be reached.
500
+ # Corresponds to the JSON property `unreachable`
501
+ # @return [Array<String>]
502
+ attr_accessor :unreachable
503
+
504
+ def initialize(**args)
505
+ update!(**args)
506
+ end
507
+
508
+ # Update properties of this object
509
+ def update!(**args)
510
+ @backups = args[:backups] if args.key?(:backups)
511
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
512
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
513
+ end
514
+ end
515
+
433
516
  # The response message for Locations.ListLocations.
434
517
  class ListLocationsResponse
435
518
  include Google::Apis::Core::Hashable
@@ -841,6 +924,65 @@ module Google
841
924
  end
842
925
  end
843
926
 
927
+ # Represents the metadata of a long-running operation.
928
+ class OperationMetadata
929
+ include Google::Apis::Core::Hashable
930
+
931
+ # Output only. API version used to start the operation.
932
+ # Corresponds to the JSON property `apiVersion`
933
+ # @return [String]
934
+ attr_accessor :api_version
935
+
936
+ # Output only. The time the operation was created.
937
+ # Corresponds to the JSON property `createTime`
938
+ # @return [String]
939
+ attr_accessor :create_time
940
+
941
+ # Output only. The time the operation finished running.
942
+ # Corresponds to the JSON property `endTime`
943
+ # @return [String]
944
+ attr_accessor :end_time
945
+
946
+ # Output only. Identifies whether the caller has requested cancellation of the
947
+ # operation. Operations that have successfully been cancelled have Operation.
948
+ # error value with a google.rpc.Status.code of 1, corresponding to Code.
949
+ # CANCELLED.
950
+ # Corresponds to the JSON property `requestedCancellation`
951
+ # @return [Boolean]
952
+ attr_accessor :requested_cancellation
953
+ alias_method :requested_cancellation?, :requested_cancellation
954
+
955
+ # Output only. Human-readable status of the operation, if any.
956
+ # Corresponds to the JSON property `statusMessage`
957
+ # @return [String]
958
+ attr_accessor :status_message
959
+
960
+ # Output only. Server-defined resource path for the target of the operation.
961
+ # Corresponds to the JSON property `target`
962
+ # @return [String]
963
+ attr_accessor :target
964
+
965
+ # Output only. Name of the verb executed by the operation.
966
+ # Corresponds to the JSON property `verb`
967
+ # @return [String]
968
+ attr_accessor :verb
969
+
970
+ def initialize(**args)
971
+ update!(**args)
972
+ end
973
+
974
+ # Update properties of this object
975
+ def update!(**args)
976
+ @api_version = args[:api_version] if args.key?(:api_version)
977
+ @create_time = args[:create_time] if args.key?(:create_time)
978
+ @end_time = args[:end_time] if args.key?(:end_time)
979
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
980
+ @status_message = args[:status_message] if args.key?(:status_message)
981
+ @target = args[:target] if args.key?(:target)
982
+ @verb = args[:verb] if args.key?(:verb)
983
+ end
984
+ end
985
+
844
986
  # An Identity and Access Management (IAM) policy, which specifies access
845
987
  # controls for Google Cloud resources.A Policy is a collection of bindings. A
846
988
  # binding binds one or more members to a single role. Members can be user
@@ -981,6 +1123,46 @@ module Google
981
1123
  end
982
1124
  end
983
1125
 
1126
+ # Request message for DataprocMetastore.Restore.
1127
+ class RestoreServiceRequest
1128
+ include Google::Apis::Core::Hashable
1129
+
1130
+ # Required. The relative resource name of the metastore service backup to
1131
+ # restore from, in the following form:projects/`project_id`/locations/`
1132
+ # location_id`/services/`service_id`/backups/`backup_id`.
1133
+ # Corresponds to the JSON property `backup`
1134
+ # @return [String]
1135
+ attr_accessor :backup
1136
+
1137
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1138
+ # ignore the request if it has completed. The server will ignore subsequent
1139
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1140
+ # first request.For example, if an initial request times out, followed by
1141
+ # another request with the same request ID, the server ignores the second
1142
+ # request to prevent the creation of duplicate commitments.The request ID must
1143
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1144
+ # Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1145
+ # Corresponds to the JSON property `requestId`
1146
+ # @return [String]
1147
+ attr_accessor :request_id
1148
+
1149
+ # Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.
1150
+ # Corresponds to the JSON property `restoreType`
1151
+ # @return [String]
1152
+ attr_accessor :restore_type
1153
+
1154
+ def initialize(**args)
1155
+ update!(**args)
1156
+ end
1157
+
1158
+ # Update properties of this object
1159
+ def update!(**args)
1160
+ @backup = args[:backup] if args.key?(:backup)
1161
+ @request_id = args[:request_id] if args.key?(:request_id)
1162
+ @restore_type = args[:restore_type] if args.key?(:restore_type)
1163
+ end
1164
+ end
1165
+
984
1166
  # A securely stored value.
985
1167
  class Secret
986
1168
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1alpha
18
18
  # Version of the google-apis-metastore_v1alpha gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210318"
25
+ REVISION = "20210325"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class Backup
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Binding
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -88,6 +94,12 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ListBackupsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class ListLocationsResponse
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -160,6 +172,12 @@ module Google
160
172
  include Google::Apis::Core::JsonObjectSupport
161
173
  end
162
174
 
175
+ class OperationMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
163
181
  class Policy
164
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
183
 
@@ -172,6 +190,12 @@ module Google
172
190
  include Google::Apis::Core::JsonObjectSupport
173
191
  end
174
192
 
193
+ class RestoreServiceRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
175
199
  class Secret
176
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
201
 
@@ -225,6 +249,19 @@ module Google
225
249
  end
226
250
  end
227
251
 
252
+ class Backup
253
+ # @private
254
+ class Representation < Google::Apis::Core::JsonRepresentation
255
+ property :create_time, as: 'createTime'
256
+ property :description, as: 'description'
257
+ property :end_time, as: 'endTime'
258
+ property :name, as: 'name'
259
+ property :service_revision, as: 'serviceRevision', class: Google::Apis::MetastoreV1alpha::Service, decorator: Google::Apis::MetastoreV1alpha::Service::Representation
260
+
261
+ property :state, as: 'state'
262
+ end
263
+ end
264
+
228
265
  class Binding
229
266
  # @private
230
267
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -305,6 +342,16 @@ module Google
305
342
  end
306
343
  end
307
344
 
345
+ class ListBackupsResponse
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ collection :backups, as: 'backups', class: Google::Apis::MetastoreV1alpha::Backup, decorator: Google::Apis::MetastoreV1alpha::Backup::Representation
349
+
350
+ property :next_page_token, as: 'nextPageToken'
351
+ collection :unreachable, as: 'unreachable'
352
+ end
353
+ end
354
+
308
355
  class ListLocationsResponse
309
356
  # @private
310
357
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -424,6 +471,19 @@ module Google
424
471
  end
425
472
  end
426
473
 
474
+ class OperationMetadata
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :api_version, as: 'apiVersion'
478
+ property :create_time, as: 'createTime'
479
+ property :end_time, as: 'endTime'
480
+ property :requested_cancellation, as: 'requestedCancellation'
481
+ property :status_message, as: 'statusMessage'
482
+ property :target, as: 'target'
483
+ property :verb, as: 'verb'
484
+ end
485
+ end
486
+
427
487
  class Policy
428
488
  # @private
429
489
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -448,6 +508,15 @@ module Google
448
508
  end
449
509
  end
450
510
 
511
+ class RestoreServiceRequest
512
+ # @private
513
+ class Representation < Google::Apis::Core::JsonRepresentation
514
+ property :backup, as: 'backup'
515
+ property :request_id, as: 'requestId'
516
+ property :restore_type, as: 'restoreType'
517
+ end
518
+ end
519
+
451
520
  class Secret
452
521
  # @private
453
522
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -534,6 +534,41 @@ module Google
534
534
  execute_or_queue_command(command, &block)
535
535
  end
536
536
 
537
+ # Restores a service from a backup.
538
+ # @param [String] service
539
+ # Required. The relative resource name of the metastore service to run restore,
540
+ # in the following form:projects/`project_id`/locations/`location_id`/services/`
541
+ # service_id`.
542
+ # @param [Google::Apis::MetastoreV1alpha::RestoreServiceRequest] restore_service_request_object
543
+ # @param [String] fields
544
+ # Selector specifying which fields to include in a partial response.
545
+ # @param [String] quota_user
546
+ # Available to use for quota purposes for server-side applications. Can be any
547
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
548
+ # @param [Google::Apis::RequestOptions] options
549
+ # Request-specific options
550
+ #
551
+ # @yield [result, err] Result & error if block supplied
552
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
553
+ # @yieldparam err [StandardError] error object if request failed
554
+ #
555
+ # @return [Google::Apis::MetastoreV1alpha::Operation]
556
+ #
557
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
558
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
559
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
560
+ def restore_service(service, restore_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
561
+ command = make_simple_command(:post, 'v1alpha/{+service}:restore', options)
562
+ command.request_representation = Google::Apis::MetastoreV1alpha::RestoreServiceRequest::Representation
563
+ command.request_object = restore_service_request_object
564
+ command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
565
+ command.response_class = Google::Apis::MetastoreV1alpha::Operation
566
+ command.params['service'] = service unless service.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ execute_or_queue_command(command, &block)
570
+ end
571
+
537
572
  # Sets the access control policy on the specified resource. Replaces any
538
573
  # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
539
574
  # errors.
@@ -608,6 +643,182 @@ module Google
608
643
  execute_or_queue_command(command, &block)
609
644
  end
610
645
 
646
+ # Creates a new Backup in a given project and location.
647
+ # @param [String] parent
648
+ # Required. The relative resource name of the service in which to create a
649
+ # backup of the following form:projects/`project_number`/locations/`location_id`/
650
+ # services/`service_id`.
651
+ # @param [Google::Apis::MetastoreV1alpha::Backup] backup_object
652
+ # @param [String] backup_id
653
+ # Required. The ID of the backup, which is used as the final component of the
654
+ # backup's name.This value must be between 1 and 64 characters long, begin with
655
+ # a letter, end with a letter or number, and consist of alpha-numeric ASCII
656
+ # characters or hyphens.
657
+ # @param [String] request_id
658
+ # Optional. A request ID. Specify a unique request ID to allow the server to
659
+ # ignore the request if it has completed. The server will ignore subsequent
660
+ # requests that provide a duplicate request ID for at least 60 minutes after the
661
+ # first request.For example, if an initial request times out, followed by
662
+ # another request with the same request ID, the server ignores the second
663
+ # request to prevent the creation of duplicate commitments.The request ID must
664
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
665
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::MetastoreV1alpha::Operation]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def create_project_location_service_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'v1alpha/{+parent}/backups', options)
685
+ command.request_representation = Google::Apis::MetastoreV1alpha::Backup::Representation
686
+ command.request_object = backup_object
687
+ command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
688
+ command.response_class = Google::Apis::MetastoreV1alpha::Operation
689
+ command.params['parent'] = parent unless parent.nil?
690
+ command.query['backupId'] = backup_id unless backup_id.nil?
691
+ command.query['requestId'] = request_id unless request_id.nil?
692
+ command.query['fields'] = fields unless fields.nil?
693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
694
+ execute_or_queue_command(command, &block)
695
+ end
696
+
697
+ # Deletes a single backup.
698
+ # @param [String] name
699
+ # Required. The relative resource name of the backup to delete, in the following
700
+ # form:projects/`project_number`/locations/`location_id`/services/`service_id`/
701
+ # backups/`backup_id`.
702
+ # @param [String] request_id
703
+ # Optional. A request ID. Specify a unique request ID to allow the server to
704
+ # ignore the request if it has completed. The server will ignore subsequent
705
+ # requests that provide a duplicate request ID for at least 60 minutes after the
706
+ # first request.For example, if an initial request times out, followed by
707
+ # another request with the same request ID, the server ignores the second
708
+ # request to prevent the creation of duplicate commitments.The request ID must
709
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
710
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
711
+ # @param [String] fields
712
+ # Selector specifying which fields to include in a partial response.
713
+ # @param [String] quota_user
714
+ # Available to use for quota purposes for server-side applications. Can be any
715
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
716
+ # @param [Google::Apis::RequestOptions] options
717
+ # Request-specific options
718
+ #
719
+ # @yield [result, err] Result & error if block supplied
720
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
721
+ # @yieldparam err [StandardError] error object if request failed
722
+ #
723
+ # @return [Google::Apis::MetastoreV1alpha::Operation]
724
+ #
725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
728
+ def delete_project_location_service_backup(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
729
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
730
+ command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
731
+ command.response_class = Google::Apis::MetastoreV1alpha::Operation
732
+ command.params['name'] = name unless name.nil?
733
+ command.query['requestId'] = request_id unless request_id.nil?
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
739
+ # Gets details of a single backup.
740
+ # @param [String] name
741
+ # Required. The relative resource name of the backup to retrieve, in the
742
+ # following form:projects/`project_number`/locations/`location_id`/services/`
743
+ # service_id`/backups/`backup_id`.
744
+ # @param [String] fields
745
+ # Selector specifying which fields to include in a partial response.
746
+ # @param [String] quota_user
747
+ # Available to use for quota purposes for server-side applications. Can be any
748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
749
+ # @param [Google::Apis::RequestOptions] options
750
+ # Request-specific options
751
+ #
752
+ # @yield [result, err] Result & error if block supplied
753
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Backup] parsed result object
754
+ # @yieldparam err [StandardError] error object if request failed
755
+ #
756
+ # @return [Google::Apis::MetastoreV1alpha::Backup]
757
+ #
758
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
759
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
760
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
761
+ def get_project_location_service_backup(name, fields: nil, quota_user: nil, options: nil, &block)
762
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
763
+ command.response_representation = Google::Apis::MetastoreV1alpha::Backup::Representation
764
+ command.response_class = Google::Apis::MetastoreV1alpha::Backup
765
+ command.params['name'] = name unless name.nil?
766
+ command.query['fields'] = fields unless fields.nil?
767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
768
+ execute_or_queue_command(command, &block)
769
+ end
770
+
771
+ # Lists backups in a service.
772
+ # @param [String] parent
773
+ # Required. The relative resource name of the service whose backups to list, in
774
+ # the following form:projects/`project_number`/locations/`location_id`/services/`
775
+ # service_id`/backups.
776
+ # @param [String] filter
777
+ # Optional. The filter to apply to list results.
778
+ # @param [String] order_by
779
+ # Optional. Specify the ordering of results as described in Sorting Order (https:
780
+ # //cloud.google.com/apis/design/design_patterns#sorting_order). If not
781
+ # specified, the results will be sorted in the default order.
782
+ # @param [Fixnum] page_size
783
+ # Optional. The maximum number of backups to return. The response may contain
784
+ # less than the maximum number. If unspecified, no more than 500 backups are
785
+ # returned. The maximum value is 1000; values above 1000 are changed to 1000.
786
+ # @param [String] page_token
787
+ # Optional. A page token, received from a previous DataprocMetastore.ListBackups
788
+ # call. Provide this token to retrieve the subsequent page.To retrieve the first
789
+ # page, supply an empty page token.When paginating, other parameters provided to
790
+ # DataprocMetastore.ListBackups must match the call that provided the page token.
791
+ # @param [String] fields
792
+ # Selector specifying which fields to include in a partial response.
793
+ # @param [String] quota_user
794
+ # Available to use for quota purposes for server-side applications. Can be any
795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
796
+ # @param [Google::Apis::RequestOptions] options
797
+ # Request-specific options
798
+ #
799
+ # @yield [result, err] Result & error if block supplied
800
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::ListBackupsResponse] parsed result object
801
+ # @yieldparam err [StandardError] error object if request failed
802
+ #
803
+ # @return [Google::Apis::MetastoreV1alpha::ListBackupsResponse]
804
+ #
805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
808
+ def list_project_location_service_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
809
+ command = make_simple_command(:get, 'v1alpha/{+parent}/backups', options)
810
+ command.response_representation = Google::Apis::MetastoreV1alpha::ListBackupsResponse::Representation
811
+ command.response_class = Google::Apis::MetastoreV1alpha::ListBackupsResponse
812
+ command.params['parent'] = parent unless parent.nil?
813
+ command.query['filter'] = filter unless filter.nil?
814
+ command.query['orderBy'] = order_by unless order_by.nil?
815
+ command.query['pageSize'] = page_size unless page_size.nil?
816
+ command.query['pageToken'] = page_token unless page_token.nil?
817
+ command.query['fields'] = fields unless fields.nil?
818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
819
+ execute_or_queue_command(command, &block)
820
+ end
821
+
611
822
  # Creates a new MetadataImport in a given project and location.
612
823
  # @param [String] parent
613
824
  # Required. The relative resource name of the service in which to create a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-metastore_v1alpha/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.6.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-metastore_v1alpha
57
57
  post_install_message:
58
58
  rdoc_options: []