google-apis-storage_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-storage_v1.rb +15 -0
- data/lib/google/apis/storage_v1.rb +48 -0
- data/lib/google/apis/storage_v1/classes.rb +2079 -0
- data/lib/google/apis/storage_v1/gem_version.rb +28 -0
- data/lib/google/apis/storage_v1/representations.rb +787 -0
- data/lib/google/apis/storage_v1/service.rb +2869 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module StorageV1
|
18
|
+
# Version of the google-apis-storage_v1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201112"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,787 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module StorageV1
|
24
|
+
|
25
|
+
class Bucket
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
class Billing
|
29
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
|
+
|
31
|
+
include Google::Apis::Core::JsonObjectSupport
|
32
|
+
end
|
33
|
+
|
34
|
+
class CorsConfiguration
|
35
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
36
|
+
|
37
|
+
include Google::Apis::Core::JsonObjectSupport
|
38
|
+
end
|
39
|
+
|
40
|
+
class Encryption
|
41
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
42
|
+
|
43
|
+
include Google::Apis::Core::JsonObjectSupport
|
44
|
+
end
|
45
|
+
|
46
|
+
class IamConfiguration
|
47
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
48
|
+
|
49
|
+
class BucketPolicyOnly
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class UniformBucketLevelAccess
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
include Google::Apis::Core::JsonObjectSupport
|
62
|
+
end
|
63
|
+
|
64
|
+
class Lifecycle
|
65
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
66
|
+
|
67
|
+
class Rule
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
class Action
|
71
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
72
|
+
|
73
|
+
include Google::Apis::Core::JsonObjectSupport
|
74
|
+
end
|
75
|
+
|
76
|
+
class Condition
|
77
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
78
|
+
|
79
|
+
include Google::Apis::Core::JsonObjectSupport
|
80
|
+
end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
include Google::Apis::Core::JsonObjectSupport
|
86
|
+
end
|
87
|
+
|
88
|
+
class Logging
|
89
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
90
|
+
|
91
|
+
include Google::Apis::Core::JsonObjectSupport
|
92
|
+
end
|
93
|
+
|
94
|
+
class Owner
|
95
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
96
|
+
|
97
|
+
include Google::Apis::Core::JsonObjectSupport
|
98
|
+
end
|
99
|
+
|
100
|
+
class RetentionPolicy
|
101
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
102
|
+
|
103
|
+
include Google::Apis::Core::JsonObjectSupport
|
104
|
+
end
|
105
|
+
|
106
|
+
class Versioning
|
107
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
108
|
+
|
109
|
+
include Google::Apis::Core::JsonObjectSupport
|
110
|
+
end
|
111
|
+
|
112
|
+
class Website
|
113
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
114
|
+
|
115
|
+
include Google::Apis::Core::JsonObjectSupport
|
116
|
+
end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class BucketAccessControl
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
class ProjectTeam
|
125
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
126
|
+
|
127
|
+
include Google::Apis::Core::JsonObjectSupport
|
128
|
+
end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class BucketAccessControls
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class Buckets
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class Channel
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class ComposeRequest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
class SourceObject
|
155
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
156
|
+
|
157
|
+
class ObjectPreconditions
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
include Google::Apis::Core::JsonObjectSupport
|
164
|
+
end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class Expr
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class HmacKey
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class HmacKeyMetadata
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class HmacKeysMetadata
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class Notification
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class Notifications
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class Object
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
class CustomerEncryption
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
210
|
+
|
211
|
+
include Google::Apis::Core::JsonObjectSupport
|
212
|
+
end
|
213
|
+
|
214
|
+
class Owner
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
216
|
+
|
217
|
+
include Google::Apis::Core::JsonObjectSupport
|
218
|
+
end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class ObjectAccessControl
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
class ProjectTeam
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
228
|
+
|
229
|
+
include Google::Apis::Core::JsonObjectSupport
|
230
|
+
end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class ObjectAccessControls
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class Objects
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
247
|
+
class Policy
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
class Binding
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
252
|
+
|
253
|
+
include Google::Apis::Core::JsonObjectSupport
|
254
|
+
end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class RewriteResponse
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class ServiceAccount
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class TestIamPermissionsResponse
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class Bucket
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
collection :acl, as: 'acl', class: Google::Apis::StorageV1::BucketAccessControl, decorator: Google::Apis::StorageV1::BucketAccessControl::Representation
|
281
|
+
|
282
|
+
property :billing, as: 'billing', class: Google::Apis::StorageV1::Bucket::Billing, decorator: Google::Apis::StorageV1::Bucket::Billing::Representation
|
283
|
+
|
284
|
+
collection :cors_configurations, as: 'cors', class: Google::Apis::StorageV1::Bucket::CorsConfiguration, decorator: Google::Apis::StorageV1::Bucket::CorsConfiguration::Representation
|
285
|
+
|
286
|
+
property :default_event_based_hold, as: 'defaultEventBasedHold'
|
287
|
+
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
|
288
|
+
|
289
|
+
property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
|
290
|
+
|
291
|
+
property :etag, as: 'etag'
|
292
|
+
property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation
|
293
|
+
|
294
|
+
property :id, as: 'id'
|
295
|
+
property :kind, as: 'kind'
|
296
|
+
hash :labels, as: 'labels'
|
297
|
+
property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1::Bucket::Lifecycle, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Representation
|
298
|
+
|
299
|
+
property :location, as: 'location'
|
300
|
+
property :location_type, as: 'locationType'
|
301
|
+
property :logging, as: 'logging', class: Google::Apis::StorageV1::Bucket::Logging, decorator: Google::Apis::StorageV1::Bucket::Logging::Representation
|
302
|
+
|
303
|
+
property :metageneration, :numeric_string => true, as: 'metageneration'
|
304
|
+
property :name, as: 'name'
|
305
|
+
property :owner, as: 'owner', class: Google::Apis::StorageV1::Bucket::Owner, decorator: Google::Apis::StorageV1::Bucket::Owner::Representation
|
306
|
+
|
307
|
+
property :project_number, :numeric_string => true, as: 'projectNumber'
|
308
|
+
property :retention_policy, as: 'retentionPolicy', class: Google::Apis::StorageV1::Bucket::RetentionPolicy, decorator: Google::Apis::StorageV1::Bucket::RetentionPolicy::Representation
|
309
|
+
|
310
|
+
property :self_link, as: 'selfLink'
|
311
|
+
property :storage_class, as: 'storageClass'
|
312
|
+
property :time_created, as: 'timeCreated', type: DateTime
|
313
|
+
|
314
|
+
property :updated, as: 'updated', type: DateTime
|
315
|
+
|
316
|
+
property :versioning, as: 'versioning', class: Google::Apis::StorageV1::Bucket::Versioning, decorator: Google::Apis::StorageV1::Bucket::Versioning::Representation
|
317
|
+
|
318
|
+
property :website, as: 'website', class: Google::Apis::StorageV1::Bucket::Website, decorator: Google::Apis::StorageV1::Bucket::Website::Representation
|
319
|
+
|
320
|
+
collection :zone_affinity, as: 'zoneAffinity'
|
321
|
+
end
|
322
|
+
|
323
|
+
class Billing
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
property :requester_pays, as: 'requesterPays'
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
class CorsConfiguration
|
331
|
+
# @private
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
+
property :max_age_seconds, as: 'maxAgeSeconds'
|
334
|
+
collection :http_method, as: 'method'
|
335
|
+
collection :origin, as: 'origin'
|
336
|
+
collection :response_header, as: 'responseHeader'
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
class Encryption
|
341
|
+
# @private
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :default_kms_key_name, as: 'defaultKmsKeyName'
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
class IamConfiguration
|
348
|
+
# @private
|
349
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
350
|
+
property :bucket_policy_only, as: 'bucketPolicyOnly', class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly::Representation
|
351
|
+
|
352
|
+
property :public_access_prevention, as: 'publicAccessPrevention'
|
353
|
+
property :uniform_bucket_level_access, as: 'uniformBucketLevelAccess', class: Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess::Representation
|
354
|
+
|
355
|
+
end
|
356
|
+
|
357
|
+
class BucketPolicyOnly
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
property :enabled, as: 'enabled'
|
361
|
+
property :locked_time, as: 'lockedTime', type: DateTime
|
362
|
+
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
class UniformBucketLevelAccess
|
367
|
+
# @private
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
369
|
+
property :enabled, as: 'enabled'
|
370
|
+
property :locked_time, as: 'lockedTime', type: DateTime
|
371
|
+
|
372
|
+
end
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
class Lifecycle
|
377
|
+
# @private
|
378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
379
|
+
collection :rule, as: 'rule', class: Google::Apis::StorageV1::Bucket::Lifecycle::Rule, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Representation
|
380
|
+
|
381
|
+
end
|
382
|
+
|
383
|
+
class Rule
|
384
|
+
# @private
|
385
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
386
|
+
property :action, as: 'action', class: Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action::Representation
|
387
|
+
|
388
|
+
property :condition, as: 'condition', class: Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Condition, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Condition::Representation
|
389
|
+
|
390
|
+
end
|
391
|
+
|
392
|
+
class Action
|
393
|
+
# @private
|
394
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
395
|
+
property :storage_class, as: 'storageClass'
|
396
|
+
property :type, as: 'type'
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
class Condition
|
401
|
+
# @private
|
402
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
403
|
+
property :age, as: 'age'
|
404
|
+
property :created_before, as: 'createdBefore', type: Date
|
405
|
+
|
406
|
+
property :custom_time_before, as: 'customTimeBefore', type: Date
|
407
|
+
|
408
|
+
property :days_since_custom_time, as: 'daysSinceCustomTime'
|
409
|
+
property :days_since_noncurrent_time, as: 'daysSinceNoncurrentTime'
|
410
|
+
property :is_live, as: 'isLive'
|
411
|
+
property :matches_pattern, as: 'matchesPattern'
|
412
|
+
collection :matches_storage_class, as: 'matchesStorageClass'
|
413
|
+
property :noncurrent_time_before, as: 'noncurrentTimeBefore', type: Date
|
414
|
+
|
415
|
+
property :num_newer_versions, as: 'numNewerVersions'
|
416
|
+
end
|
417
|
+
end
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
class Logging
|
422
|
+
# @private
|
423
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
424
|
+
property :log_bucket, as: 'logBucket'
|
425
|
+
property :log_object_prefix, as: 'logObjectPrefix'
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
429
|
+
class Owner
|
430
|
+
# @private
|
431
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
+
property :entity, as: 'entity'
|
433
|
+
property :entity_id, as: 'entityId'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
class RetentionPolicy
|
438
|
+
# @private
|
439
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
440
|
+
property :effective_time, as: 'effectiveTime', type: DateTime
|
441
|
+
|
442
|
+
property :is_locked, as: 'isLocked'
|
443
|
+
property :retention_period, :numeric_string => true, as: 'retentionPeriod'
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
447
|
+
class Versioning
|
448
|
+
# @private
|
449
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
450
|
+
property :enabled, as: 'enabled'
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
class Website
|
455
|
+
# @private
|
456
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
457
|
+
property :main_page_suffix, as: 'mainPageSuffix'
|
458
|
+
property :not_found_page, as: 'notFoundPage'
|
459
|
+
end
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
class BucketAccessControl
|
464
|
+
# @private
|
465
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
466
|
+
property :bucket, as: 'bucket'
|
467
|
+
property :domain, as: 'domain'
|
468
|
+
property :email, as: 'email'
|
469
|
+
property :entity, as: 'entity'
|
470
|
+
property :entity_id, as: 'entityId'
|
471
|
+
property :etag, as: 'etag'
|
472
|
+
property :id, as: 'id'
|
473
|
+
property :kind, as: 'kind'
|
474
|
+
property :project_team, as: 'projectTeam', class: Google::Apis::StorageV1::BucketAccessControl::ProjectTeam, decorator: Google::Apis::StorageV1::BucketAccessControl::ProjectTeam::Representation
|
475
|
+
|
476
|
+
property :role, as: 'role'
|
477
|
+
property :self_link, as: 'selfLink'
|
478
|
+
end
|
479
|
+
|
480
|
+
class ProjectTeam
|
481
|
+
# @private
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
483
|
+
property :project_number, as: 'projectNumber'
|
484
|
+
property :team, as: 'team'
|
485
|
+
end
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
489
|
+
class BucketAccessControls
|
490
|
+
# @private
|
491
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
492
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::BucketAccessControl, decorator: Google::Apis::StorageV1::BucketAccessControl::Representation
|
493
|
+
|
494
|
+
property :kind, as: 'kind'
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
498
|
+
class Buckets
|
499
|
+
# @private
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
501
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::Bucket, decorator: Google::Apis::StorageV1::Bucket::Representation
|
502
|
+
|
503
|
+
property :kind, as: 'kind'
|
504
|
+
property :next_page_token, as: 'nextPageToken'
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
class Channel
|
509
|
+
# @private
|
510
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
511
|
+
property :address, as: 'address'
|
512
|
+
property :expiration, :numeric_string => true, as: 'expiration'
|
513
|
+
property :id, as: 'id'
|
514
|
+
property :kind, as: 'kind'
|
515
|
+
hash :params, as: 'params'
|
516
|
+
property :payload, as: 'payload'
|
517
|
+
property :resource_id, as: 'resourceId'
|
518
|
+
property :resource_uri, as: 'resourceUri'
|
519
|
+
property :token, as: 'token'
|
520
|
+
property :type, as: 'type'
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
class ComposeRequest
|
525
|
+
# @private
|
526
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
527
|
+
property :destination, as: 'destination', class: Google::Apis::StorageV1::Object, decorator: Google::Apis::StorageV1::Object::Representation
|
528
|
+
|
529
|
+
property :kind, as: 'kind'
|
530
|
+
collection :source_objects, as: 'sourceObjects', class: Google::Apis::StorageV1::ComposeRequest::SourceObject, decorator: Google::Apis::StorageV1::ComposeRequest::SourceObject::Representation
|
531
|
+
|
532
|
+
end
|
533
|
+
|
534
|
+
class SourceObject
|
535
|
+
# @private
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
537
|
+
property :generation, :numeric_string => true, as: 'generation'
|
538
|
+
property :name, as: 'name'
|
539
|
+
property :object_preconditions, as: 'objectPreconditions', class: Google::Apis::StorageV1::ComposeRequest::SourceObject::ObjectPreconditions, decorator: Google::Apis::StorageV1::ComposeRequest::SourceObject::ObjectPreconditions::Representation
|
540
|
+
|
541
|
+
end
|
542
|
+
|
543
|
+
class ObjectPreconditions
|
544
|
+
# @private
|
545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
546
|
+
property :if_generation_match, :numeric_string => true, as: 'ifGenerationMatch'
|
547
|
+
end
|
548
|
+
end
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
class Expr
|
553
|
+
# @private
|
554
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
555
|
+
property :description, as: 'description'
|
556
|
+
property :expression, as: 'expression'
|
557
|
+
property :location, as: 'location'
|
558
|
+
property :title, as: 'title'
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
562
|
+
class HmacKey
|
563
|
+
# @private
|
564
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
565
|
+
property :kind, as: 'kind'
|
566
|
+
property :metadata, as: 'metadata', class: Google::Apis::StorageV1::HmacKeyMetadata, decorator: Google::Apis::StorageV1::HmacKeyMetadata::Representation
|
567
|
+
|
568
|
+
property :secret, as: 'secret'
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
class HmacKeyMetadata
|
573
|
+
# @private
|
574
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
575
|
+
property :access_id, as: 'accessId'
|
576
|
+
property :etag, as: 'etag'
|
577
|
+
property :id, as: 'id'
|
578
|
+
property :kind, as: 'kind'
|
579
|
+
property :project_id, as: 'projectId'
|
580
|
+
property :self_link, as: 'selfLink'
|
581
|
+
property :service_account_email, as: 'serviceAccountEmail'
|
582
|
+
property :state, as: 'state'
|
583
|
+
property :time_created, as: 'timeCreated', type: DateTime
|
584
|
+
|
585
|
+
property :updated, as: 'updated', type: DateTime
|
586
|
+
|
587
|
+
end
|
588
|
+
end
|
589
|
+
|
590
|
+
class HmacKeysMetadata
|
591
|
+
# @private
|
592
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
593
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::HmacKeyMetadata, decorator: Google::Apis::StorageV1::HmacKeyMetadata::Representation
|
594
|
+
|
595
|
+
property :kind, as: 'kind'
|
596
|
+
property :next_page_token, as: 'nextPageToken'
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
class Notification
|
601
|
+
# @private
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
603
|
+
hash :custom_attributes, as: 'custom_attributes'
|
604
|
+
property :etag, as: 'etag'
|
605
|
+
collection :event_types, as: 'event_types'
|
606
|
+
property :id, as: 'id'
|
607
|
+
property :kind, as: 'kind'
|
608
|
+
property :object_name_prefix, as: 'object_name_prefix'
|
609
|
+
property :payload_format, as: 'payload_format'
|
610
|
+
property :self_link, as: 'selfLink'
|
611
|
+
property :topic, as: 'topic'
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
class Notifications
|
616
|
+
# @private
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
618
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::Notification, decorator: Google::Apis::StorageV1::Notification::Representation
|
619
|
+
|
620
|
+
property :kind, as: 'kind'
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
624
|
+
class Object
|
625
|
+
# @private
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
627
|
+
collection :acl, as: 'acl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
|
628
|
+
|
629
|
+
property :bucket, as: 'bucket'
|
630
|
+
property :cache_control, as: 'cacheControl'
|
631
|
+
property :component_count, as: 'componentCount'
|
632
|
+
property :content_disposition, as: 'contentDisposition'
|
633
|
+
property :content_encoding, as: 'contentEncoding'
|
634
|
+
property :content_language, as: 'contentLanguage'
|
635
|
+
property :content_type, as: 'contentType'
|
636
|
+
property :crc32c, as: 'crc32c'
|
637
|
+
property :custom_time, as: 'customTime', type: DateTime
|
638
|
+
|
639
|
+
property :customer_encryption, as: 'customerEncryption', class: Google::Apis::StorageV1::Object::CustomerEncryption, decorator: Google::Apis::StorageV1::Object::CustomerEncryption::Representation
|
640
|
+
|
641
|
+
property :etag, as: 'etag'
|
642
|
+
property :event_based_hold, as: 'eventBasedHold'
|
643
|
+
property :generation, :numeric_string => true, as: 'generation'
|
644
|
+
property :id, as: 'id'
|
645
|
+
property :kind, as: 'kind'
|
646
|
+
property :kms_key_name, as: 'kmsKeyName'
|
647
|
+
property :md5_hash, as: 'md5Hash'
|
648
|
+
property :media_link, as: 'mediaLink'
|
649
|
+
hash :metadata, as: 'metadata'
|
650
|
+
property :metageneration, :numeric_string => true, as: 'metageneration'
|
651
|
+
property :name, as: 'name'
|
652
|
+
property :owner, as: 'owner', class: Google::Apis::StorageV1::Object::Owner, decorator: Google::Apis::StorageV1::Object::Owner::Representation
|
653
|
+
|
654
|
+
property :retention_expiration_time, as: 'retentionExpirationTime', type: DateTime
|
655
|
+
|
656
|
+
property :self_link, as: 'selfLink'
|
657
|
+
property :size, :numeric_string => true, as: 'size'
|
658
|
+
property :storage_class, as: 'storageClass'
|
659
|
+
property :temporary_hold, as: 'temporaryHold'
|
660
|
+
property :time_created, as: 'timeCreated', type: DateTime
|
661
|
+
|
662
|
+
property :time_deleted, as: 'timeDeleted', type: DateTime
|
663
|
+
|
664
|
+
property :time_storage_class_updated, as: 'timeStorageClassUpdated', type: DateTime
|
665
|
+
|
666
|
+
property :updated, as: 'updated', type: DateTime
|
667
|
+
|
668
|
+
end
|
669
|
+
|
670
|
+
class CustomerEncryption
|
671
|
+
# @private
|
672
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
673
|
+
property :encryption_algorithm, as: 'encryptionAlgorithm'
|
674
|
+
property :key_sha256, as: 'keySha256'
|
675
|
+
end
|
676
|
+
end
|
677
|
+
|
678
|
+
class Owner
|
679
|
+
# @private
|
680
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
681
|
+
property :entity, as: 'entity'
|
682
|
+
property :entity_id, as: 'entityId'
|
683
|
+
end
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
class ObjectAccessControl
|
688
|
+
# @private
|
689
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
690
|
+
property :bucket, as: 'bucket'
|
691
|
+
property :domain, as: 'domain'
|
692
|
+
property :email, as: 'email'
|
693
|
+
property :entity, as: 'entity'
|
694
|
+
property :entity_id, as: 'entityId'
|
695
|
+
property :etag, as: 'etag'
|
696
|
+
property :generation, :numeric_string => true, as: 'generation'
|
697
|
+
property :id, as: 'id'
|
698
|
+
property :kind, as: 'kind'
|
699
|
+
property :object, as: 'object'
|
700
|
+
property :project_team, as: 'projectTeam', class: Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam, decorator: Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam::Representation
|
701
|
+
|
702
|
+
property :role, as: 'role'
|
703
|
+
property :self_link, as: 'selfLink'
|
704
|
+
end
|
705
|
+
|
706
|
+
class ProjectTeam
|
707
|
+
# @private
|
708
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
709
|
+
property :project_number, as: 'projectNumber'
|
710
|
+
property :team, as: 'team'
|
711
|
+
end
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
class ObjectAccessControls
|
716
|
+
# @private
|
717
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
718
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
|
719
|
+
|
720
|
+
property :kind, as: 'kind'
|
721
|
+
end
|
722
|
+
end
|
723
|
+
|
724
|
+
class Objects
|
725
|
+
# @private
|
726
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
727
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::Object, decorator: Google::Apis::StorageV1::Object::Representation
|
728
|
+
|
729
|
+
property :kind, as: 'kind'
|
730
|
+
property :next_page_token, as: 'nextPageToken'
|
731
|
+
collection :prefixes, as: 'prefixes'
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
735
|
+
class Policy
|
736
|
+
# @private
|
737
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
738
|
+
collection :bindings, as: 'bindings', class: Google::Apis::StorageV1::Policy::Binding, decorator: Google::Apis::StorageV1::Policy::Binding::Representation
|
739
|
+
|
740
|
+
property :etag, :base64 => true, as: 'etag'
|
741
|
+
property :kind, as: 'kind'
|
742
|
+
property :resource_id, as: 'resourceId'
|
743
|
+
property :version, as: 'version'
|
744
|
+
end
|
745
|
+
|
746
|
+
class Binding
|
747
|
+
# @private
|
748
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
749
|
+
property :condition, as: 'condition', class: Google::Apis::StorageV1::Expr, decorator: Google::Apis::StorageV1::Expr::Representation
|
750
|
+
|
751
|
+
collection :members, as: 'members'
|
752
|
+
property :role, as: 'role'
|
753
|
+
end
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
class RewriteResponse
|
758
|
+
# @private
|
759
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
760
|
+
property :done, as: 'done'
|
761
|
+
property :kind, as: 'kind'
|
762
|
+
property :object_size, :numeric_string => true, as: 'objectSize'
|
763
|
+
property :resource, as: 'resource', class: Google::Apis::StorageV1::Object, decorator: Google::Apis::StorageV1::Object::Representation
|
764
|
+
|
765
|
+
property :rewrite_token, as: 'rewriteToken'
|
766
|
+
property :total_bytes_rewritten, :numeric_string => true, as: 'totalBytesRewritten'
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
class ServiceAccount
|
771
|
+
# @private
|
772
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
773
|
+
property :email_address, as: 'email_address'
|
774
|
+
property :kind, as: 'kind'
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
778
|
+
class TestIamPermissionsResponse
|
779
|
+
# @private
|
780
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
781
|
+
property :kind, as: 'kind'
|
782
|
+
collection :permissions, as: 'permissions'
|
783
|
+
end
|
784
|
+
end
|
785
|
+
end
|
786
|
+
end
|
787
|
+
end
|