google-apis-metastore_v1beta 0.2.0 → 0.7.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 +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/metastore_v1beta.rb +1 -1
- data/lib/google/apis/metastore_v1beta/classes.rb +258 -16
- data/lib/google/apis/metastore_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/metastore_v1beta/representations.rb +89 -0
- data/lib/google/apis/metastore_v1beta/service.rb +243 -27
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b407a086a639ab1b9000cef60d11e9a0bb989aa2ba6d150457625975860230d0
|
4
|
+
data.tar.gz: e63a0f38cead7c521a822e9c705b23378410d68a4e2b2e30476015d77311d6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80f3cac4b72815e38ad935be7be5dc50d88fbe3ad058d73acb5bcc574822b5381ce618c33173e75cba67ae78c3b70d2f3eb49e95aac71df92ea97386c1b2b9c8
|
7
|
+
data.tar.gz: 763d42809135f89f9f7084f6149bb3c92506d1e7cb430753008f91de3e37cb61ecc035fe1e564887d4b8d88ccffcc50263ab9e6dd099795ebca0731b53da262d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-metastore_v1beta
|
2
2
|
|
3
|
+
### v0.7.0 (2021-03-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210325
|
6
|
+
|
7
|
+
### v0.6.0 (2021-03-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210318
|
10
|
+
|
11
|
+
### v0.5.0 (2021-03-10)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210305
|
14
|
+
* Regenerated using generator version 0.2.0
|
15
|
+
|
16
|
+
### v0.4.0 (2021-03-04)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210226
|
19
|
+
|
20
|
+
### v0.3.0 (2021-02-24)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210222
|
23
|
+
|
3
24
|
### v0.2.0 (2021-02-11)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210210
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1beta'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
@@ -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
|
@@ -163,6 +214,28 @@ module Google
|
|
163
214
|
end
|
164
215
|
end
|
165
216
|
|
217
|
+
# Specifies how metastore metadata should be integrated with the Data Catalog
|
218
|
+
# service.
|
219
|
+
class DataCatalogConfig
|
220
|
+
include Google::Apis::Core::Hashable
|
221
|
+
|
222
|
+
# Defines whether the metastore metadata should be synced to Data Catalog. The
|
223
|
+
# default value is to disable syncing metastore metadata to Data Catalog.
|
224
|
+
# Corresponds to the JSON property `enabled`
|
225
|
+
# @return [Boolean]
|
226
|
+
attr_accessor :enabled
|
227
|
+
alias_method :enabled?, :enabled
|
228
|
+
|
229
|
+
def initialize(**args)
|
230
|
+
update!(**args)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Update properties of this object
|
234
|
+
def update!(**args)
|
235
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
166
239
|
# A specification of the location of and metadata about a database dump from a
|
167
240
|
# relational database management system.
|
168
241
|
class DatabaseDump
|
@@ -173,8 +246,8 @@ module Google
|
|
173
246
|
# @return [String]
|
174
247
|
attr_accessor :database_type
|
175
248
|
|
176
|
-
# A Cloud Storage object URI that specifies the source from which to
|
177
|
-
# metadata. It must begin with gs://.
|
249
|
+
# A Cloud Storage object or folder URI that specifies the source from which to
|
250
|
+
# import metadata. It must begin with gs://.
|
178
251
|
# Corresponds to the JSON property `gcsUri`
|
179
252
|
# @return [String]
|
180
253
|
attr_accessor :gcs_uri
|
@@ -184,6 +257,11 @@ module Google
|
|
184
257
|
# @return [String]
|
185
258
|
attr_accessor :source_database
|
186
259
|
|
260
|
+
# Optional. The type of the database dump. If unspecified, defaults to MYSQL.
|
261
|
+
# Corresponds to the JSON property `type`
|
262
|
+
# @return [String]
|
263
|
+
attr_accessor :type
|
264
|
+
|
187
265
|
def initialize(**args)
|
188
266
|
update!(**args)
|
189
267
|
end
|
@@ -193,6 +271,7 @@ module Google
|
|
193
271
|
@database_type = args[:database_type] if args.key?(:database_type)
|
194
272
|
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
195
273
|
@source_database = args[:source_database] if args.key?(:source_database)
|
274
|
+
@type = args[:type] if args.key?(:type)
|
196
275
|
end
|
197
276
|
end
|
198
277
|
|
@@ -217,9 +296,13 @@ module Google
|
|
217
296
|
class ExportMetadataRequest
|
218
297
|
include Google::Apis::Core::Hashable
|
219
298
|
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
299
|
+
# Optional. The type of the database dump. If unspecified, defaults to MYSQL.
|
300
|
+
# Corresponds to the JSON property `databaseDumpType`
|
301
|
+
# @return [String]
|
302
|
+
attr_accessor :database_dump_type
|
303
|
+
|
304
|
+
# A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing
|
305
|
+
# exported files will be created below it.
|
223
306
|
# Corresponds to the JSON property `destinationGcsFolder`
|
224
307
|
# @return [String]
|
225
308
|
attr_accessor :destination_gcs_folder
|
@@ -242,6 +325,7 @@ module Google
|
|
242
325
|
|
243
326
|
# Update properties of this object
|
244
327
|
def update!(**args)
|
328
|
+
@database_dump_type = args[:database_dump_type] if args.key?(:database_dump_type)
|
245
329
|
@destination_gcs_folder = args[:destination_gcs_folder] if args.key?(:destination_gcs_folder)
|
246
330
|
@request_id = args[:request_id] if args.key?(:request_id)
|
247
331
|
end
|
@@ -379,7 +463,7 @@ module Google
|
|
379
463
|
attr_accessor :krb5_config_gcs_uri
|
380
464
|
|
381
465
|
# A Kerberos principal that exists in the both the keytab the KDC to
|
382
|
-
# authenticate as. A typical principal is of the form
|
466
|
+
# authenticate as. A typical principal is of the form primary/instance@REALM,
|
383
467
|
# but there is no exact format.
|
384
468
|
# Corresponds to the JSON property `principal`
|
385
469
|
# @return [String]
|
@@ -397,6 +481,38 @@ module Google
|
|
397
481
|
end
|
398
482
|
end
|
399
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
|
+
|
400
516
|
# The response message for Locations.ListLocations.
|
401
517
|
class ListLocationsResponse
|
402
518
|
include Google::Apis::Core::Hashable
|
@@ -609,8 +725,13 @@ module Google
|
|
609
725
|
class MetadataExport
|
610
726
|
include Google::Apis::Core::Hashable
|
611
727
|
|
728
|
+
# Output only. The type of the database dump.
|
729
|
+
# Corresponds to the JSON property `databaseDumpType`
|
730
|
+
# @return [String]
|
731
|
+
attr_accessor :database_dump_type
|
732
|
+
|
612
733
|
# Output only. A Cloud Storage URI of a folder that metadata are exported to, in
|
613
|
-
# the form of gs:////, where
|
734
|
+
# the form of gs:////, where is automatically generated.
|
614
735
|
# Corresponds to the JSON property `destinationGcsUri`
|
615
736
|
# @return [String]
|
616
737
|
attr_accessor :destination_gcs_uri
|
@@ -636,6 +757,7 @@ module Google
|
|
636
757
|
|
637
758
|
# Update properties of this object
|
638
759
|
def update!(**args)
|
760
|
+
@database_dump_type = args[:database_dump_type] if args.key?(:database_dump_type)
|
639
761
|
@destination_gcs_uri = args[:destination_gcs_uri] if args.key?(:destination_gcs_uri)
|
640
762
|
@end_time = args[:end_time] if args.key?(:end_time)
|
641
763
|
@start_time = args[:start_time] if args.key?(:start_time)
|
@@ -663,9 +785,9 @@ module Google
|
|
663
785
|
# @return [String]
|
664
786
|
attr_accessor :description
|
665
787
|
|
666
|
-
# Immutable. The relative resource name of the metadata import, of the form:
|
788
|
+
# Immutable. The relative resource name of the metadata import, of the form:
|
667
789
|
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
668
|
-
# metadataImports/`metadata_import_id
|
790
|
+
# metadataImports/`metadata_import_id`.
|
669
791
|
# Corresponds to the JSON property `name`
|
670
792
|
# @return [String]
|
671
793
|
attr_accessor :name
|
@@ -699,12 +821,19 @@ module Google
|
|
699
821
|
class MetadataIntegration
|
700
822
|
include Google::Apis::Core::Hashable
|
701
823
|
|
824
|
+
# Specifies how metastore metadata should be integrated with the Data Catalog
|
825
|
+
# service.
|
826
|
+
# Corresponds to the JSON property `dataCatalogConfig`
|
827
|
+
# @return [Google::Apis::MetastoreV1beta::DataCatalogConfig]
|
828
|
+
attr_accessor :data_catalog_config
|
829
|
+
|
702
830
|
def initialize(**args)
|
703
831
|
update!(**args)
|
704
832
|
end
|
705
833
|
|
706
834
|
# Update properties of this object
|
707
835
|
def update!(**args)
|
836
|
+
@data_catalog_config = args[:data_catalog_config] if args.key?(:data_catalog_config)
|
708
837
|
end
|
709
838
|
end
|
710
839
|
|
@@ -795,6 +924,65 @@ module Google
|
|
795
924
|
end
|
796
925
|
end
|
797
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
|
+
|
798
986
|
# An Identity and Access Management (IAM) policy, which specifies access
|
799
987
|
# controls for Google Cloud resources.A Policy is a collection of bindings. A
|
800
988
|
# binding binds one or more members to a single role. Members can be user
|
@@ -889,11 +1077,17 @@ module Google
|
|
889
1077
|
|
890
1078
|
# Output only. The relative resource name of the metastore service backup to
|
891
1079
|
# restore from, in the following form:projects/`project_id`/locations/`
|
892
|
-
# location_id`/services/`service_id`/backups/`backup_id
|
1080
|
+
# location_id`/services/`service_id`/backups/`backup_id`.
|
893
1081
|
# Corresponds to the JSON property `backup`
|
894
1082
|
# @return [String]
|
895
1083
|
attr_accessor :backup
|
896
1084
|
|
1085
|
+
# Output only. The restore details containing the revision of the service to be
|
1086
|
+
# restored to, in format of JSON.
|
1087
|
+
# Corresponds to the JSON property `details`
|
1088
|
+
# @return [String]
|
1089
|
+
attr_accessor :details
|
1090
|
+
|
897
1091
|
# Output only. The time when the restore ended.
|
898
1092
|
# Corresponds to the JSON property `endTime`
|
899
1093
|
# @return [String]
|
@@ -921,6 +1115,7 @@ module Google
|
|
921
1115
|
# Update properties of this object
|
922
1116
|
def update!(**args)
|
923
1117
|
@backup = args[:backup] if args.key?(:backup)
|
1118
|
+
@details = args[:details] if args.key?(:details)
|
924
1119
|
@end_time = args[:end_time] if args.key?(:end_time)
|
925
1120
|
@start_time = args[:start_time] if args.key?(:start_time)
|
926
1121
|
@state = args[:state] if args.key?(:state)
|
@@ -928,13 +1123,53 @@ module Google
|
|
928
1123
|
end
|
929
1124
|
end
|
930
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
|
+
|
931
1166
|
# A securely stored value.
|
932
1167
|
class Secret
|
933
1168
|
include Google::Apis::Core::Hashable
|
934
1169
|
|
935
1170
|
# The relative resource name of a Secret Manager secret version, in the
|
936
|
-
# following form:
|
937
|
-
# version_id
|
1171
|
+
# following form:projects/`project_number`/secrets/`secret_id`/versions/`
|
1172
|
+
# version_id`.
|
938
1173
|
# Corresponds to the JSON property `cloudSecret`
|
939
1174
|
# @return [String]
|
940
1175
|
attr_accessor :cloud_secret
|
@@ -996,15 +1231,15 @@ module Google
|
|
996
1231
|
# @return [Google::Apis::MetastoreV1beta::MetadataManagementActivity]
|
997
1232
|
attr_accessor :metadata_management_activity
|
998
1233
|
|
999
|
-
# Immutable. The relative resource name of the metastore service, of the form:
|
1000
|
-
# projects/`project_number`/locations/`location_id`/services/`service_id
|
1234
|
+
# Immutable. The relative resource name of the metastore service, of the form:
|
1235
|
+
# projects/`project_number`/locations/`location_id`/services/`service_id`.
|
1001
1236
|
# Corresponds to the JSON property `name`
|
1002
1237
|
# @return [String]
|
1003
1238
|
attr_accessor :name
|
1004
1239
|
|
1005
1240
|
# Immutable. The relative resource name of the VPC network on which the instance
|
1006
|
-
# can be accessed. It is specified in the following form:
|
1007
|
-
# project_number`/global/networks/`network_id
|
1241
|
+
# can be accessed. It is specified in the following form:projects/`
|
1242
|
+
# project_number`/global/networks/`network_id`.
|
1008
1243
|
# Corresponds to the JSON property `network`
|
1009
1244
|
# @return [String]
|
1010
1245
|
attr_accessor :network
|
@@ -1014,6 +1249,12 @@ module Google
|
|
1014
1249
|
# @return [Fixnum]
|
1015
1250
|
attr_accessor :port
|
1016
1251
|
|
1252
|
+
# Immutable. The release channel of the service. If unspecified, defaults to
|
1253
|
+
# STABLE.
|
1254
|
+
# Corresponds to the JSON property `releaseChannel`
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :release_channel
|
1257
|
+
|
1017
1258
|
# Output only. The current state of the metastore service.
|
1018
1259
|
# Corresponds to the JSON property `state`
|
1019
1260
|
# @return [String]
|
@@ -1057,6 +1298,7 @@ module Google
|
|
1057
1298
|
@name = args[:name] if args.key?(:name)
|
1058
1299
|
@network = args[:network] if args.key?(:network)
|
1059
1300
|
@port = args[:port] if args.key?(:port)
|
1301
|
+
@release_channel = args[:release_channel] if args.key?(:release_channel)
|
1060
1302
|
@state = args[:state] if args.key?(:state)
|
1061
1303
|
@state_message = args[:state_message] if args.key?(:state_message)
|
1062
1304
|
@tier = args[:tier] if args.key?(:tier)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210325"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,12 +34,24 @@ 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
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
49
|
+
class DataCatalogConfig
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
43
55
|
class DatabaseDump
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
@@ -82,6 +94,12 @@ module Google
|
|
82
94
|
include Google::Apis::Core::JsonObjectSupport
|
83
95
|
end
|
84
96
|
|
97
|
+
class ListBackupsResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
85
103
|
class ListLocationsResponse
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
105
|
|
@@ -154,6 +172,12 @@ module Google
|
|
154
172
|
include Google::Apis::Core::JsonObjectSupport
|
155
173
|
end
|
156
174
|
|
175
|
+
class OperationMetadata
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
157
181
|
class Policy
|
158
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
183
|
|
@@ -166,6 +190,12 @@ module Google
|
|
166
190
|
include Google::Apis::Core::JsonObjectSupport
|
167
191
|
end
|
168
192
|
|
193
|
+
class RestoreServiceRequest
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
169
199
|
class Secret
|
170
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
201
|
|
@@ -219,6 +249,19 @@ module Google
|
|
219
249
|
end
|
220
250
|
end
|
221
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
|
+
|
222
265
|
class Binding
|
223
266
|
# @private
|
224
267
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -229,12 +272,20 @@ module Google
|
|
229
272
|
end
|
230
273
|
end
|
231
274
|
|
275
|
+
class DataCatalogConfig
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
property :enabled, as: 'enabled'
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
232
282
|
class DatabaseDump
|
233
283
|
# @private
|
234
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
235
285
|
property :database_type, as: 'databaseType'
|
236
286
|
property :gcs_uri, as: 'gcsUri'
|
237
287
|
property :source_database, as: 'sourceDatabase'
|
288
|
+
property :type, as: 'type'
|
238
289
|
end
|
239
290
|
end
|
240
291
|
|
@@ -247,6 +298,7 @@ module Google
|
|
247
298
|
class ExportMetadataRequest
|
248
299
|
# @private
|
249
300
|
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
+
property :database_dump_type, as: 'databaseDumpType'
|
250
302
|
property :destination_gcs_folder, as: 'destinationGcsFolder'
|
251
303
|
property :request_id, as: 'requestId'
|
252
304
|
end
|
@@ -290,6 +342,16 @@ module Google
|
|
290
342
|
end
|
291
343
|
end
|
292
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
|
+
|
293
355
|
class ListLocationsResponse
|
294
356
|
# @private
|
295
357
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -358,6 +420,7 @@ module Google
|
|
358
420
|
class MetadataExport
|
359
421
|
# @private
|
360
422
|
class Representation < Google::Apis::Core::JsonRepresentation
|
423
|
+
property :database_dump_type, as: 'databaseDumpType'
|
361
424
|
property :destination_gcs_uri, as: 'destinationGcsUri'
|
362
425
|
property :end_time, as: 'endTime'
|
363
426
|
property :start_time, as: 'startTime'
|
@@ -381,6 +444,8 @@ module Google
|
|
381
444
|
class MetadataIntegration
|
382
445
|
# @private
|
383
446
|
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
property :data_catalog_config, as: 'dataCatalogConfig', class: Google::Apis::MetastoreV1beta::DataCatalogConfig, decorator: Google::Apis::MetastoreV1beta::DataCatalogConfig::Representation
|
448
|
+
|
384
449
|
end
|
385
450
|
end
|
386
451
|
|
@@ -406,6 +471,19 @@ module Google
|
|
406
471
|
end
|
407
472
|
end
|
408
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
|
+
|
409
487
|
class Policy
|
410
488
|
# @private
|
411
489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -422,6 +500,7 @@ module Google
|
|
422
500
|
# @private
|
423
501
|
class Representation < Google::Apis::Core::JsonRepresentation
|
424
502
|
property :backup, as: 'backup'
|
503
|
+
property :details, as: 'details'
|
425
504
|
property :end_time, as: 'endTime'
|
426
505
|
property :start_time, as: 'startTime'
|
427
506
|
property :state, as: 'state'
|
@@ -429,6 +508,15 @@ module Google
|
|
429
508
|
end
|
430
509
|
end
|
431
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
|
+
|
432
520
|
class Secret
|
433
521
|
# @private
|
434
522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -454,6 +542,7 @@ module Google
|
|
454
542
|
property :name, as: 'name'
|
455
543
|
property :network, as: 'network'
|
456
544
|
property :port, as: 'port'
|
545
|
+
property :release_channel, as: 'releaseChannel'
|
457
546
|
property :state, as: 'state'
|
458
547
|
property :state_message, as: 'stateMessage'
|
459
548
|
property :tier, as: 'tier'
|
@@ -84,11 +84,15 @@ module Google
|
|
84
84
|
# @param [String] name
|
85
85
|
# The resource that owns the locations collection, if applicable.
|
86
86
|
# @param [String] filter
|
87
|
-
#
|
87
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
88
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in
|
89
|
+
# AIP-160 (https://google.aip.dev/160).
|
88
90
|
# @param [Fixnum] page_size
|
89
|
-
# The
|
91
|
+
# The maximum number of results to return. If not set, the service will select a
|
92
|
+
# default.
|
90
93
|
# @param [String] page_token
|
91
|
-
#
|
94
|
+
# A page token received from the next_page_token field in the response. Send
|
95
|
+
# that page token to receive the subsequent page.
|
92
96
|
# @param [String] fields
|
93
97
|
# Selector specifying which fields to include in a partial response.
|
94
98
|
# @param [String] quota_user
|
@@ -232,8 +236,8 @@ module Google
|
|
232
236
|
# Creates a metastore service in a project and location.
|
233
237
|
# @param [String] parent
|
234
238
|
# Required. The relative resource name of the location in which to create a
|
235
|
-
# metastore service, in the following form:
|
236
|
-
# location_id
|
239
|
+
# metastore service, in the following form:projects/`project_number`/locations/`
|
240
|
+
# location_id`.
|
237
241
|
# @param [Google::Apis::MetastoreV1beta::Service] service_object
|
238
242
|
# @param [String] request_id
|
239
243
|
# Optional. A request ID. Specify a unique request ID to allow the server to
|
@@ -283,8 +287,8 @@ module Google
|
|
283
287
|
# Deletes a single service.
|
284
288
|
# @param [String] name
|
285
289
|
# Required. The relative resource name of the metastore service to delete, in
|
286
|
-
# the following form:
|
287
|
-
#
|
290
|
+
# the following form:projects/`project_number`/locations/`location_id`/services/`
|
291
|
+
# service_id`.
|
288
292
|
# @param [String] request_id
|
289
293
|
# Optional. A request ID. Specify a unique request ID to allow the server to
|
290
294
|
# ignore the request if it has completed. The server will ignore subsequent
|
@@ -325,8 +329,8 @@ module Google
|
|
325
329
|
# Exports metadata from a service.
|
326
330
|
# @param [String] service
|
327
331
|
# Required. The relative resource name of the metastore service to run export,
|
328
|
-
# in the following form:
|
329
|
-
# service_id
|
332
|
+
# in the following form:projects/`project_id`/locations/`location_id`/services/`
|
333
|
+
# service_id`.
|
330
334
|
# @param [Google::Apis::MetastoreV1beta::ExportMetadataRequest] export_metadata_request_object
|
331
335
|
# @param [String] fields
|
332
336
|
# Selector specifying which fields to include in a partial response.
|
@@ -360,8 +364,8 @@ module Google
|
|
360
364
|
# Gets the details of a single service.
|
361
365
|
# @param [String] name
|
362
366
|
# Required. The relative resource name of the metastore service to retrieve, in
|
363
|
-
# the following form:
|
364
|
-
#
|
367
|
+
# the following form:projects/`project_number`/locations/`location_id`/services/`
|
368
|
+
# service_id`.
|
365
369
|
# @param [String] fields
|
366
370
|
# Selector specifying which fields to include in a partial response.
|
367
371
|
# @param [String] quota_user
|
@@ -432,13 +436,13 @@ module Google
|
|
432
436
|
# Lists services in a project and location.
|
433
437
|
# @param [String] parent
|
434
438
|
# Required. The relative resource name of the location of metastore services to
|
435
|
-
# list, in the following form:
|
436
|
-
# .
|
439
|
+
# list, in the following form:projects/`project_number`/locations/`location_id`.
|
437
440
|
# @param [String] filter
|
438
441
|
# Optional. The filter to apply to list results.
|
439
442
|
# @param [String] order_by
|
440
|
-
# Optional. Specify the ordering of results as described in Sorting Order
|
441
|
-
#
|
443
|
+
# Optional. Specify the ordering of results as described in Sorting Order (https:
|
444
|
+
# //cloud.google.com/apis/design/design_patterns#sorting_order). If not
|
445
|
+
# specified, the results will be sorted in the default order.
|
442
446
|
# @param [Fixnum] page_size
|
443
447
|
# Optional. The maximum number of services to return. The response may contain
|
444
448
|
# less than the maximum number. If unspecified, no more than 500 services are
|
@@ -482,8 +486,8 @@ module Google
|
|
482
486
|
|
483
487
|
# Updates the parameters of a single service.
|
484
488
|
# @param [String] name
|
485
|
-
# Immutable. The relative resource name of the metastore service, of the form:
|
486
|
-
# projects/`project_number`/locations/`location_id`/services/`service_id
|
489
|
+
# Immutable. The relative resource name of the metastore service, of the form:
|
490
|
+
# projects/`project_number`/locations/`location_id`/services/`service_id`.
|
487
491
|
# @param [Google::Apis::MetastoreV1beta::Service] service_object
|
488
492
|
# @param [String] request_id
|
489
493
|
# Optional. A request ID. Specify a unique request ID to allow the server to
|
@@ -530,6 +534,41 @@ module Google
|
|
530
534
|
execute_or_queue_command(command, &block)
|
531
535
|
end
|
532
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
|
+
|
533
572
|
# Sets the access control policy on the specified resource. Replaces any
|
534
573
|
# existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
|
535
574
|
# errors.
|
@@ -604,11 +643,187 @@ module Google
|
|
604
643
|
execute_or_queue_command(command, &block)
|
605
644
|
end
|
606
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
|
+
# 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::MetastoreV1beta::ListBackupsResponse] parsed result object
|
801
|
+
# @yieldparam err [StandardError] error object if request failed
|
802
|
+
#
|
803
|
+
# @return [Google::Apis::MetastoreV1beta::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, 'v1beta/{+parent}/backups', options)
|
810
|
+
command.response_representation = Google::Apis::MetastoreV1beta::ListBackupsResponse::Representation
|
811
|
+
command.response_class = Google::Apis::MetastoreV1beta::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
|
+
|
607
822
|
# Creates a new MetadataImport in a given project and location.
|
608
823
|
# @param [String] parent
|
609
824
|
# Required. The relative resource name of the service in which to create a
|
610
|
-
# metastore import, in the following form:
|
611
|
-
# location_id`/services/`service_id
|
825
|
+
# metastore import, in the following form:projects/`project_number`/locations/`
|
826
|
+
# location_id`/services/`service_id`.
|
612
827
|
# @param [Google::Apis::MetastoreV1beta::MetadataImport] metadata_import_object
|
613
828
|
# @param [String] metadata_import_id
|
614
829
|
# Required. The ID of the metadata import, which is used as the final component
|
@@ -658,8 +873,8 @@ module Google
|
|
658
873
|
# Gets details of a single import.
|
659
874
|
# @param [String] name
|
660
875
|
# Required. The relative resource name of the metadata import to retrieve, in
|
661
|
-
# the following form:
|
662
|
-
#
|
876
|
+
# the following form:projects/`project_number`/locations/`location_id`/services/`
|
877
|
+
# service_id`/metadataImports/`import_id`.
|
663
878
|
# @param [String] fields
|
664
879
|
# Selector specifying which fields to include in a partial response.
|
665
880
|
# @param [String] quota_user
|
@@ -690,13 +905,14 @@ module Google
|
|
690
905
|
# Lists imports in a service.
|
691
906
|
# @param [String] parent
|
692
907
|
# Required. The relative resource name of the service whose metadata imports to
|
693
|
-
# list, in the following form:
|
694
|
-
# services/`service_id`/metadataImports
|
908
|
+
# list, in the following form:projects/`project_number`/locations/`location_id`/
|
909
|
+
# services/`service_id`/metadataImports.
|
695
910
|
# @param [String] filter
|
696
911
|
# Optional. The filter to apply to list results.
|
697
912
|
# @param [String] order_by
|
698
|
-
# Optional. Specify the ordering of results as described in Sorting Order
|
699
|
-
#
|
913
|
+
# Optional. Specify the ordering of results as described in Sorting Order (https:
|
914
|
+
# //cloud.google.com/apis/design/design_patterns#sorting_order). If not
|
915
|
+
# specified, the results will be sorted in the default order.
|
700
916
|
# @param [Fixnum] page_size
|
701
917
|
# Optional. The maximum number of imports to return. The response may contain
|
702
918
|
# less than the maximum number. If unspecified, no more than 500 imports are
|
@@ -741,9 +957,9 @@ module Google
|
|
741
957
|
# Updates a single import. Only the description field of MetadataImport is
|
742
958
|
# supported to be updated.
|
743
959
|
# @param [String] name
|
744
|
-
# Immutable. The relative resource name of the metadata import, of the form:
|
960
|
+
# Immutable. The relative resource name of the metadata import, of the form:
|
745
961
|
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
746
|
-
# metadataImports/`metadata_import_id
|
962
|
+
# metadataImports/`metadata_import_id`.
|
747
963
|
# @param [Google::Apis::MetastoreV1beta::MetadataImport] metadata_import_object
|
748
964
|
# @param [String] request_id
|
749
965
|
# Optional. A request ID. Specify a unique request ID to allow the server to
|
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.
|
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-
|
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_v1beta/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.7.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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Dataproc Metastore API V1beta
|