google-apis-metastore_v1beta 0.6.0 → 0.11.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2c8db76a7c3c029df9a79275cdb640bee5d1b6276213cf0f742f510c23b141f
4
- data.tar.gz: 29a5ed19cffb97ad58c911a4b8c15f05f52fd7e8f559a6002ec97d5d53967d2f
3
+ metadata.gz: f8080213af04d522a81e8746af44b0fc1fa310629a562b4b2950323e48b67a0f
4
+ data.tar.gz: 6f818b1d787cb4a5e510ad23c6fdd2a589531db39dd0c54cc9eacafca56d0bc9
5
5
  SHA512:
6
- metadata.gz: a954a592c0b3ea40587bad13f4c62daaec20ed46d614d3932ac3a1cd7a2ab8bd55de4233f631fed71767f34c7717e46f0afd32bbd1351d138ce8a84a731a8cd2
7
- data.tar.gz: 819e3cb1442cb1288156789506e1efbcd78a0096a473a8bacec3ddd5c9a5561e500ca42992a40950c0420995e522cca2133cc0cb7a9755ace257c9e0e4efc38d
6
+ metadata.gz: dc9a3e6d376a9d7475c7acffc1d6c620047f4c29b99aefcc3b987a13545fb792d98eb3d1fe153895a72fa1864a37b841c373cc73dddb8e47db449b17f43a737b
7
+ data.tar.gz: 5aa6e92e6d070a9ae666f9242a34945bfdf89f2374ea25fdb083ecd718eb471b037e88c5da9a072714a3b2f8fb295933bb8927b2234dc0c0b35c233a2bbc24c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-metastore_v1beta
2
2
 
3
+ ### v0.11.0 (2021-06-18)
4
+
5
+ * Regenerated from discovery document revision 20210615
6
+
7
+ ### v0.10.0 (2021-06-06)
8
+
9
+ * Regenerated from discovery document revision 20210527
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.9.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.8.0 (2021-05-08)
17
+
18
+ * Regenerated from discovery document revision 20210503
19
+
20
+ ### v0.7.0 (2021-03-28)
21
+
22
+ * Regenerated from discovery document revision 20210325
23
+
3
24
  ### v0.6.0 (2021-03-20)
4
25
 
5
26
  * 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::MetastoreV1beta::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::MetastoreV1beta::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
@@ -686,7 +769,7 @@ module Google
686
769
  class MetadataImport
687
770
  include Google::Apis::Core::Hashable
688
771
 
689
- # Output only. The time when the metadata import was created.
772
+ # Output only. The time when the metadata import was started.
690
773
  # Corresponds to the JSON property `createTime`
691
774
  # @return [String]
692
775
  attr_accessor :create_time
@@ -702,6 +785,11 @@ module Google
702
785
  # @return [String]
703
786
  attr_accessor :description
704
787
 
788
+ # Output only. The time when the metadata import finished.
789
+ # Corresponds to the JSON property `endTime`
790
+ # @return [String]
791
+ attr_accessor :end_time
792
+
705
793
  # Immutable. The relative resource name of the metadata import, of the form:
706
794
  # projects/`project_number`/locations/`location_id`/services/`service_id`/
707
795
  # metadataImports/`metadata_import_id`.
@@ -728,6 +816,7 @@ module Google
728
816
  @create_time = args[:create_time] if args.key?(:create_time)
729
817
  @database_dump = args[:database_dump] if args.key?(:database_dump)
730
818
  @description = args[:description] if args.key?(:description)
819
+ @end_time = args[:end_time] if args.key?(:end_time)
731
820
  @name = args[:name] if args.key?(:name)
732
821
  @state = args[:state] if args.key?(:state)
733
822
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -841,6 +930,65 @@ module Google
841
930
  end
842
931
  end
843
932
 
933
+ # Represents the metadata of a long-running operation.
934
+ class OperationMetadata
935
+ include Google::Apis::Core::Hashable
936
+
937
+ # Output only. API version used to start the operation.
938
+ # Corresponds to the JSON property `apiVersion`
939
+ # @return [String]
940
+ attr_accessor :api_version
941
+
942
+ # Output only. The time the operation was created.
943
+ # Corresponds to the JSON property `createTime`
944
+ # @return [String]
945
+ attr_accessor :create_time
946
+
947
+ # Output only. The time the operation finished running.
948
+ # Corresponds to the JSON property `endTime`
949
+ # @return [String]
950
+ attr_accessor :end_time
951
+
952
+ # Output only. Identifies whether the caller has requested cancellation of the
953
+ # operation. Operations that have successfully been cancelled have Operation.
954
+ # error value with a google.rpc.Status.code of 1, corresponding to Code.
955
+ # CANCELLED.
956
+ # Corresponds to the JSON property `requestedCancellation`
957
+ # @return [Boolean]
958
+ attr_accessor :requested_cancellation
959
+ alias_method :requested_cancellation?, :requested_cancellation
960
+
961
+ # Output only. Human-readable status of the operation, if any.
962
+ # Corresponds to the JSON property `statusMessage`
963
+ # @return [String]
964
+ attr_accessor :status_message
965
+
966
+ # Output only. Server-defined resource path for the target of the operation.
967
+ # Corresponds to the JSON property `target`
968
+ # @return [String]
969
+ attr_accessor :target
970
+
971
+ # Output only. Name of the verb executed by the operation.
972
+ # Corresponds to the JSON property `verb`
973
+ # @return [String]
974
+ attr_accessor :verb
975
+
976
+ def initialize(**args)
977
+ update!(**args)
978
+ end
979
+
980
+ # Update properties of this object
981
+ def update!(**args)
982
+ @api_version = args[:api_version] if args.key?(:api_version)
983
+ @create_time = args[:create_time] if args.key?(:create_time)
984
+ @end_time = args[:end_time] if args.key?(:end_time)
985
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
986
+ @status_message = args[:status_message] if args.key?(:status_message)
987
+ @target = args[:target] if args.key?(:target)
988
+ @verb = args[:verb] if args.key?(:verb)
989
+ end
990
+ end
991
+
844
992
  # An Identity and Access Management (IAM) policy, which specifies access
845
993
  # controls for Google Cloud resources.A Policy is a collection of bindings. A
846
994
  # binding binds one or more members to a single role. Members can be user
@@ -981,6 +1129,46 @@ module Google
981
1129
  end
982
1130
  end
983
1131
 
1132
+ # Request message for DataprocMetastore.Restore.
1133
+ class RestoreServiceRequest
1134
+ include Google::Apis::Core::Hashable
1135
+
1136
+ # Required. The relative resource name of the metastore service backup to
1137
+ # restore from, in the following form:projects/`project_id`/locations/`
1138
+ # location_id`/services/`service_id`/backups/`backup_id`.
1139
+ # Corresponds to the JSON property `backup`
1140
+ # @return [String]
1141
+ attr_accessor :backup
1142
+
1143
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1144
+ # ignore the request if it has completed. The server will ignore subsequent
1145
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1146
+ # first request.For example, if an initial request times out, followed by
1147
+ # another request with the same request ID, the server ignores the second
1148
+ # request to prevent the creation of duplicate commitments.The request ID must
1149
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1150
+ # Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1151
+ # Corresponds to the JSON property `requestId`
1152
+ # @return [String]
1153
+ attr_accessor :request_id
1154
+
1155
+ # Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.
1156
+ # Corresponds to the JSON property `restoreType`
1157
+ # @return [String]
1158
+ attr_accessor :restore_type
1159
+
1160
+ def initialize(**args)
1161
+ update!(**args)
1162
+ end
1163
+
1164
+ # Update properties of this object
1165
+ def update!(**args)
1166
+ @backup = args[:backup] if args.key?(:backup)
1167
+ @request_id = args[:request_id] if args.key?(:request_id)
1168
+ @restore_type = args[:restore_type] if args.key?(:restore_type)
1169
+ end
1170
+ end
1171
+
984
1172
  # A securely stored value.
985
1173
  class Secret
986
1174
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1beta
18
18
  # Version of the google-apis-metastore_v1beta gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210318"
25
+ REVISION = "20210615"
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::MetastoreV1beta::Service, decorator: Google::Apis::MetastoreV1beta::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::MetastoreV1beta::Backup, decorator: Google::Apis::MetastoreV1beta::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
@@ -388,6 +435,7 @@ module Google
388
435
  property :database_dump, as: 'databaseDump', class: Google::Apis::MetastoreV1beta::DatabaseDump, decorator: Google::Apis::MetastoreV1beta::DatabaseDump::Representation
389
436
 
390
437
  property :description, as: 'description'
438
+ property :end_time, as: 'endTime'
391
439
  property :name, as: 'name'
392
440
  property :state, as: 'state'
393
441
  property :update_time, as: 'updateTime'
@@ -424,6 +472,19 @@ module Google
424
472
  end
425
473
  end
426
474
 
475
+ class OperationMetadata
476
+ # @private
477
+ class Representation < Google::Apis::Core::JsonRepresentation
478
+ property :api_version, as: 'apiVersion'
479
+ property :create_time, as: 'createTime'
480
+ property :end_time, as: 'endTime'
481
+ property :requested_cancellation, as: 'requestedCancellation'
482
+ property :status_message, as: 'statusMessage'
483
+ property :target, as: 'target'
484
+ property :verb, as: 'verb'
485
+ end
486
+ end
487
+
427
488
  class Policy
428
489
  # @private
429
490
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -448,6 +509,15 @@ module Google
448
509
  end
449
510
  end
450
511
 
512
+ class RestoreServiceRequest
513
+ # @private
514
+ class Representation < Google::Apis::Core::JsonRepresentation
515
+ property :backup, as: 'backup'
516
+ property :request_id, as: 'requestId'
517
+ property :restore_type, as: 'restoreType'
518
+ end
519
+ end
520
+
451
521
  class Secret
452
522
  # @private
453
523
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -88,7 +88,7 @@ module Google
88
88
  # accepts strings like "displayName=tokyo", and is documented in more detail in
89
89
  # AIP-160 (https://google.aip.dev/160).
90
90
  # @param [Fixnum] page_size
91
- # The maximum number of results to return. If not set, the service will select a
91
+ # The maximum number of results to return. If not set, the service selects a
92
92
  # default.
93
93
  # @param [String] page_token
94
94
  # A page token received from the next_page_token field in the response. Send
@@ -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::MetastoreV1beta::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::MetastoreV1beta::Operation] parsed result object
553
+ # @yieldparam err [StandardError] error object if request failed
554
+ #
555
+ # @return [Google::Apis::MetastoreV1beta::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, 'v1beta/{+service}:restore', options)
562
+ command.request_representation = Google::Apis::MetastoreV1beta::RestoreServiceRequest::Representation
563
+ command.request_object = restore_service_request_object
564
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
565
+ command.response_class = Google::Apis::MetastoreV1beta::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,296 @@ 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::MetastoreV1beta::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::MetastoreV1beta::Operation] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::MetastoreV1beta::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, 'v1beta/{+parent}/backups', options)
685
+ command.request_representation = Google::Apis::MetastoreV1beta::Backup::Representation
686
+ command.request_object = backup_object
687
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
688
+ command.response_class = Google::Apis::MetastoreV1beta::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::MetastoreV1beta::Operation] parsed result object
721
+ # @yieldparam err [StandardError] error object if request failed
722
+ #
723
+ # @return [Google::Apis::MetastoreV1beta::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, 'v1beta/{+name}', options)
730
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
731
+ command.response_class = Google::Apis::MetastoreV1beta::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::MetastoreV1beta::Backup] parsed result object
754
+ # @yieldparam err [StandardError] error object if request failed
755
+ #
756
+ # @return [Google::Apis::MetastoreV1beta::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, 'v1beta/{+name}', options)
763
+ command.response_representation = Google::Apis::MetastoreV1beta::Backup::Representation
764
+ command.response_class = Google::Apis::MetastoreV1beta::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
+ # Gets the access control policy for a resource. Returns an empty policy if the
772
+ # resource exists and does not have a policy set.
773
+ # @param [String] resource
774
+ # REQUIRED: The resource for which the policy is being requested. See the
775
+ # operation documentation for the appropriate value for this field.
776
+ # @param [Fixnum] options_requested_policy_version
777
+ # Optional. The policy format version to be returned.Valid values are 0, 1, and
778
+ # 3. Requests specifying an invalid value will be rejected.Requests for policies
779
+ # with any conditional bindings must specify version 3. Policies without any
780
+ # conditional bindings may specify any valid value or leave the field unset.To
781
+ # learn which resources support conditions in their IAM policies, see the IAM
782
+ # documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
783
+ # @param [String] fields
784
+ # Selector specifying which fields to include in a partial response.
785
+ # @param [String] quota_user
786
+ # Available to use for quota purposes for server-side applications. Can be any
787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
788
+ # @param [Google::Apis::RequestOptions] options
789
+ # Request-specific options
790
+ #
791
+ # @yield [result, err] Result & error if block supplied
792
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
793
+ # @yieldparam err [StandardError] error object if request failed
794
+ #
795
+ # @return [Google::Apis::MetastoreV1beta::Policy]
796
+ #
797
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
798
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
799
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
800
+ def get_project_location_service_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
801
+ command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
802
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
803
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
804
+ command.params['resource'] = resource unless resource.nil?
805
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
806
+ command.query['fields'] = fields unless fields.nil?
807
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
808
+ execute_or_queue_command(command, &block)
809
+ end
810
+
811
+ # Lists backups in a service.
812
+ # @param [String] parent
813
+ # Required. The relative resource name of the service whose backups to list, in
814
+ # the following form:projects/`project_number`/locations/`location_id`/services/`
815
+ # service_id`/backups.
816
+ # @param [String] filter
817
+ # Optional. The filter to apply to list results.
818
+ # @param [String] order_by
819
+ # Optional. Specify the ordering of results as described in Sorting Order (https:
820
+ # //cloud.google.com/apis/design/design_patterns#sorting_order). If not
821
+ # specified, the results will be sorted in the default order.
822
+ # @param [Fixnum] page_size
823
+ # Optional. The maximum number of backups to return. The response may contain
824
+ # less than the maximum number. If unspecified, no more than 500 backups are
825
+ # returned. The maximum value is 1000; values above 1000 are changed to 1000.
826
+ # @param [String] page_token
827
+ # Optional. A page token, received from a previous DataprocMetastore.ListBackups
828
+ # call. Provide this token to retrieve the subsequent page.To retrieve the first
829
+ # page, supply an empty page token.When paginating, other parameters provided to
830
+ # DataprocMetastore.ListBackups must match the call that provided the page token.
831
+ # @param [String] fields
832
+ # Selector specifying which fields to include in a partial response.
833
+ # @param [String] quota_user
834
+ # Available to use for quota purposes for server-side applications. Can be any
835
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
836
+ # @param [Google::Apis::RequestOptions] options
837
+ # Request-specific options
838
+ #
839
+ # @yield [result, err] Result & error if block supplied
840
+ # @yieldparam result [Google::Apis::MetastoreV1beta::ListBackupsResponse] parsed result object
841
+ # @yieldparam err [StandardError] error object if request failed
842
+ #
843
+ # @return [Google::Apis::MetastoreV1beta::ListBackupsResponse]
844
+ #
845
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
846
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
847
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
848
+ 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)
849
+ command = make_simple_command(:get, 'v1beta/{+parent}/backups', options)
850
+ command.response_representation = Google::Apis::MetastoreV1beta::ListBackupsResponse::Representation
851
+ command.response_class = Google::Apis::MetastoreV1beta::ListBackupsResponse
852
+ command.params['parent'] = parent unless parent.nil?
853
+ command.query['filter'] = filter unless filter.nil?
854
+ command.query['orderBy'] = order_by unless order_by.nil?
855
+ command.query['pageSize'] = page_size unless page_size.nil?
856
+ command.query['pageToken'] = page_token unless page_token.nil?
857
+ command.query['fields'] = fields unless fields.nil?
858
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
861
+
862
+ # Sets the access control policy on the specified resource. Replaces any
863
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
864
+ # errors.
865
+ # @param [String] resource
866
+ # REQUIRED: The resource for which the policy is being specified. See the
867
+ # operation documentation for the appropriate value for this field.
868
+ # @param [Google::Apis::MetastoreV1beta::SetIamPolicyRequest] set_iam_policy_request_object
869
+ # @param [String] fields
870
+ # Selector specifying which fields to include in a partial response.
871
+ # @param [String] quota_user
872
+ # Available to use for quota purposes for server-side applications. Can be any
873
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
874
+ # @param [Google::Apis::RequestOptions] options
875
+ # Request-specific options
876
+ #
877
+ # @yield [result, err] Result & error if block supplied
878
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
879
+ # @yieldparam err [StandardError] error object if request failed
880
+ #
881
+ # @return [Google::Apis::MetastoreV1beta::Policy]
882
+ #
883
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
886
+ def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
887
+ command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
888
+ command.request_representation = Google::Apis::MetastoreV1beta::SetIamPolicyRequest::Representation
889
+ command.request_object = set_iam_policy_request_object
890
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
891
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
892
+ command.params['resource'] = resource unless resource.nil?
893
+ command.query['fields'] = fields unless fields.nil?
894
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
895
+ execute_or_queue_command(command, &block)
896
+ end
897
+
898
+ # Returns permissions that a caller has on the specified resource. If the
899
+ # resource does not exist, this will return an empty set of permissions, not a
900
+ # NOT_FOUND error.Note: This operation is designed to be used for building
901
+ # permission-aware UIs and command-line tools, not for authorization checking.
902
+ # This operation may "fail open" without warning.
903
+ # @param [String] resource
904
+ # REQUIRED: The resource for which the policy detail is being requested. See the
905
+ # operation documentation for the appropriate value for this field.
906
+ # @param [Google::Apis::MetastoreV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
907
+ # @param [String] fields
908
+ # Selector specifying which fields to include in a partial response.
909
+ # @param [String] quota_user
910
+ # Available to use for quota purposes for server-side applications. Can be any
911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
912
+ # @param [Google::Apis::RequestOptions] options
913
+ # Request-specific options
914
+ #
915
+ # @yield [result, err] Result & error if block supplied
916
+ # @yieldparam result [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse] parsed result object
917
+ # @yieldparam err [StandardError] error object if request failed
918
+ #
919
+ # @return [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse]
920
+ #
921
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
922
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
923
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
924
+ def test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
925
+ command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
926
+ command.request_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsRequest::Representation
927
+ command.request_object = test_iam_permissions_request_object
928
+ command.response_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse::Representation
929
+ command.response_class = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse
930
+ command.params['resource'] = resource unless resource.nil?
931
+ command.query['fields'] = fields unless fields.nil?
932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
933
+ execute_or_queue_command(command, &block)
934
+ end
935
+
611
936
  # Creates a new MetadataImport in a given project and location.
612
937
  # @param [String] parent
613
938
  # 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_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.11.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-06-21 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_v1beta/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.6.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.11.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-metastore_v1beta
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Dataproc Metastore API V1beta