google-apis-metastore_v1beta 0.5.0 → 0.10.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 +203 -15
- data/lib/google/apis/metastore_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/metastore_v1beta/representations.rb +70 -0
- data/lib/google/apis/metastore_v1beta/service.rb +357 -27
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1c7e82264977290122e6059f786767c5d7a247307bf6b38a3a017c798ed506b
|
4
|
+
data.tar.gz: ff2d0d12731ab7b4f6d401f554a932f094919f9364d343bf6513bd540d4152f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ad4b26009d2ac00e6fb65e67866515c126b1286c7f4a4c90611eab63bd045a0dcec37162352c2ff45b11ed851785f2ff98b035b82d62221cef78d0859004077
|
7
|
+
data.tar.gz: 435bfa979a7a09f2c4c82330ab06d3ef1f7cac995f02855a993d63c4219049b3152d44dee4bd61e264568707d7be0a86f53860f68247e5fb9b6f69fcf24964ea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-metastore_v1beta
|
2
2
|
|
3
|
+
### v0.10.0 (2021-06-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210527
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.9.0 (2021-05-19)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.8.0 (2021-05-08)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210503
|
15
|
+
|
16
|
+
### v0.7.0 (2021-03-28)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210325
|
19
|
+
|
20
|
+
### v0.6.0 (2021-03-20)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210318
|
23
|
+
|
3
24
|
### v0.5.0 (2021-03-10)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210305
|
@@ -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
|
@@ -250,9 +301,8 @@ module Google
|
|
250
301
|
# @return [String]
|
251
302
|
attr_accessor :database_dump_type
|
252
303
|
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# below it.
|
304
|
+
# A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing
|
305
|
+
# exported files will be created below it.
|
256
306
|
# Corresponds to the JSON property `destinationGcsFolder`
|
257
307
|
# @return [String]
|
258
308
|
attr_accessor :destination_gcs_folder
|
@@ -413,7 +463,7 @@ module Google
|
|
413
463
|
attr_accessor :krb5_config_gcs_uri
|
414
464
|
|
415
465
|
# A Kerberos principal that exists in the both the keytab the KDC to
|
416
|
-
# authenticate as. A typical principal is of the form
|
466
|
+
# authenticate as. A typical principal is of the form primary/instance@REALM,
|
417
467
|
# but there is no exact format.
|
418
468
|
# Corresponds to the JSON property `principal`
|
419
469
|
# @return [String]
|
@@ -431,6 +481,38 @@ module Google
|
|
431
481
|
end
|
432
482
|
end
|
433
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
|
+
|
434
516
|
# The response message for Locations.ListLocations.
|
435
517
|
class ListLocationsResponse
|
436
518
|
include Google::Apis::Core::Hashable
|
@@ -649,7 +731,7 @@ module Google
|
|
649
731
|
attr_accessor :database_dump_type
|
650
732
|
|
651
733
|
# Output only. A Cloud Storage URI of a folder that metadata are exported to, in
|
652
|
-
# the form of gs:////, where
|
734
|
+
# the form of gs:////, where is automatically generated.
|
653
735
|
# Corresponds to the JSON property `destinationGcsUri`
|
654
736
|
# @return [String]
|
655
737
|
attr_accessor :destination_gcs_uri
|
@@ -687,7 +769,7 @@ module Google
|
|
687
769
|
class MetadataImport
|
688
770
|
include Google::Apis::Core::Hashable
|
689
771
|
|
690
|
-
# Output only. The time when the metadata import was
|
772
|
+
# Output only. The time when the metadata import was started.
|
691
773
|
# Corresponds to the JSON property `createTime`
|
692
774
|
# @return [String]
|
693
775
|
attr_accessor :create_time
|
@@ -703,9 +785,9 @@ module Google
|
|
703
785
|
# @return [String]
|
704
786
|
attr_accessor :description
|
705
787
|
|
706
|
-
# 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:
|
707
789
|
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
708
|
-
# metadataImports/`metadata_import_id
|
790
|
+
# metadataImports/`metadata_import_id`.
|
709
791
|
# Corresponds to the JSON property `name`
|
710
792
|
# @return [String]
|
711
793
|
attr_accessor :name
|
@@ -842,6 +924,65 @@ module Google
|
|
842
924
|
end
|
843
925
|
end
|
844
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
|
+
|
845
986
|
# An Identity and Access Management (IAM) policy, which specifies access
|
846
987
|
# controls for Google Cloud resources.A Policy is a collection of bindings. A
|
847
988
|
# binding binds one or more members to a single role. Members can be user
|
@@ -936,7 +1077,7 @@ module Google
|
|
936
1077
|
|
937
1078
|
# Output only. The relative resource name of the metastore service backup to
|
938
1079
|
# restore from, in the following form:projects/`project_id`/locations/`
|
939
|
-
# location_id`/services/`service_id`/backups/`backup_id
|
1080
|
+
# location_id`/services/`service_id`/backups/`backup_id`.
|
940
1081
|
# Corresponds to the JSON property `backup`
|
941
1082
|
# @return [String]
|
942
1083
|
attr_accessor :backup
|
@@ -982,13 +1123,53 @@ module Google
|
|
982
1123
|
end
|
983
1124
|
end
|
984
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
|
+
|
985
1166
|
# A securely stored value.
|
986
1167
|
class Secret
|
987
1168
|
include Google::Apis::Core::Hashable
|
988
1169
|
|
989
1170
|
# The relative resource name of a Secret Manager secret version, in the
|
990
|
-
# following form:
|
991
|
-
# version_id
|
1171
|
+
# following form:projects/`project_number`/secrets/`secret_id`/versions/`
|
1172
|
+
# version_id`.
|
992
1173
|
# Corresponds to the JSON property `cloudSecret`
|
993
1174
|
# @return [String]
|
994
1175
|
attr_accessor :cloud_secret
|
@@ -1050,15 +1231,15 @@ module Google
|
|
1050
1231
|
# @return [Google::Apis::MetastoreV1beta::MetadataManagementActivity]
|
1051
1232
|
attr_accessor :metadata_management_activity
|
1052
1233
|
|
1053
|
-
# Immutable. The relative resource name of the metastore service, of the form:
|
1054
|
-
# 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`.
|
1055
1236
|
# Corresponds to the JSON property `name`
|
1056
1237
|
# @return [String]
|
1057
1238
|
attr_accessor :name
|
1058
1239
|
|
1059
1240
|
# Immutable. The relative resource name of the VPC network on which the instance
|
1060
|
-
# can be accessed. It is specified in the following form:
|
1061
|
-
# 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`.
|
1062
1243
|
# Corresponds to the JSON property `network`
|
1063
1244
|
# @return [String]
|
1064
1245
|
attr_accessor :network
|
@@ -1068,6 +1249,12 @@ module Google
|
|
1068
1249
|
# @return [Fixnum]
|
1069
1250
|
attr_accessor :port
|
1070
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
|
+
|
1071
1258
|
# Output only. The current state of the metastore service.
|
1072
1259
|
# Corresponds to the JSON property `state`
|
1073
1260
|
# @return [String]
|
@@ -1111,6 +1298,7 @@ module Google
|
|
1111
1298
|
@name = args[:name] if args.key?(:name)
|
1112
1299
|
@network = args[:network] if args.key?(:network)
|
1113
1300
|
@port = args[:port] if args.key?(:port)
|
1301
|
+
@release_channel = args[:release_channel] if args.key?(:release_channel)
|
1114
1302
|
@state = args[:state] if args.key?(:state)
|
1115
1303
|
@state_message = args[:state_message] if args.key?(:state_message)
|
1116
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.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210527"
|
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
|
@@ -424,6 +471,19 @@ module Google
|
|
424
471
|
end
|
425
472
|
end
|
426
473
|
|
474
|
+
class OperationMetadata
|
475
|
+
# @private
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
477
|
+
property :api_version, as: 'apiVersion'
|
478
|
+
property :create_time, as: 'createTime'
|
479
|
+
property :end_time, as: 'endTime'
|
480
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
481
|
+
property :status_message, as: 'statusMessage'
|
482
|
+
property :target, as: 'target'
|
483
|
+
property :verb, as: 'verb'
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
427
487
|
class Policy
|
428
488
|
# @private
|
429
489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -448,6 +508,15 @@ module Google
|
|
448
508
|
end
|
449
509
|
end
|
450
510
|
|
511
|
+
class RestoreServiceRequest
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :backup, as: 'backup'
|
515
|
+
property :request_id, as: 'requestId'
|
516
|
+
property :restore_type, as: 'restoreType'
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
451
520
|
class Secret
|
452
521
|
# @private
|
453
522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -473,6 +542,7 @@ module Google
|
|
473
542
|
property :name, as: 'name'
|
474
543
|
property :network, as: 'network'
|
475
544
|
property :port, as: 'port'
|
545
|
+
property :release_channel, as: 'releaseChannel'
|
476
546
|
property :state, as: 'state'
|
477
547
|
property :state_message, as: 'stateMessage'
|
478
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 selects 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,301 @@ 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
|
+
# 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
|
+
|
607
936
|
# Creates a new MetadataImport in a given project and location.
|
608
937
|
# @param [String] parent
|
609
938
|
# 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
|
939
|
+
# metastore import, in the following form:projects/`project_number`/locations/`
|
940
|
+
# location_id`/services/`service_id`.
|
612
941
|
# @param [Google::Apis::MetastoreV1beta::MetadataImport] metadata_import_object
|
613
942
|
# @param [String] metadata_import_id
|
614
943
|
# Required. The ID of the metadata import, which is used as the final component
|
@@ -658,8 +987,8 @@ module Google
|
|
658
987
|
# Gets details of a single import.
|
659
988
|
# @param [String] name
|
660
989
|
# Required. The relative resource name of the metadata import to retrieve, in
|
661
|
-
# the following form:
|
662
|
-
#
|
990
|
+
# the following form:projects/`project_number`/locations/`location_id`/services/`
|
991
|
+
# service_id`/metadataImports/`import_id`.
|
663
992
|
# @param [String] fields
|
664
993
|
# Selector specifying which fields to include in a partial response.
|
665
994
|
# @param [String] quota_user
|
@@ -690,13 +1019,14 @@ module Google
|
|
690
1019
|
# Lists imports in a service.
|
691
1020
|
# @param [String] parent
|
692
1021
|
# Required. The relative resource name of the service whose metadata imports to
|
693
|
-
# list, in the following form:
|
694
|
-
# services/`service_id`/metadataImports
|
1022
|
+
# list, in the following form:projects/`project_number`/locations/`location_id`/
|
1023
|
+
# services/`service_id`/metadataImports.
|
695
1024
|
# @param [String] filter
|
696
1025
|
# Optional. The filter to apply to list results.
|
697
1026
|
# @param [String] order_by
|
698
|
-
# Optional. Specify the ordering of results as described in Sorting Order
|
699
|
-
#
|
1027
|
+
# Optional. Specify the ordering of results as described in Sorting Order (https:
|
1028
|
+
# //cloud.google.com/apis/design/design_patterns#sorting_order). If not
|
1029
|
+
# specified, the results will be sorted in the default order.
|
700
1030
|
# @param [Fixnum] page_size
|
701
1031
|
# Optional. The maximum number of imports to return. The response may contain
|
702
1032
|
# less than the maximum number. If unspecified, no more than 500 imports are
|
@@ -741,9 +1071,9 @@ module Google
|
|
741
1071
|
# Updates a single import. Only the description field of MetadataImport is
|
742
1072
|
# supported to be updated.
|
743
1073
|
# @param [String] name
|
744
|
-
# Immutable. The relative resource name of the metadata import, of the form:
|
1074
|
+
# Immutable. The relative resource name of the metadata import, of the form:
|
745
1075
|
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
746
|
-
# metadataImports/`metadata_import_id
|
1076
|
+
# metadataImports/`metadata_import_id`.
|
747
1077
|
# @param [Google::Apis::MetastoreV1beta::MetadataImport] metadata_import_object
|
748
1078
|
# @param [String] request_id
|
749
1079
|
# 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.10.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-06-07 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.10.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.
|
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
|