google-apis-storage_v1 0.56.0 → 0.66.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 +40 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/storage_v1/classes.rb +228 -0
- data/lib/google/apis/storage_v1/gem_version.rb +3 -3
- data/lib/google/apis/storage_v1/representations.rb +80 -0
- data/lib/google/apis/storage_v1/service.rb +294 -85
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d0232f4dbc08b1beac3c40674573210438387d3c08729d3fe922cae13434c09
|
|
4
|
+
data.tar.gz: 99ae97b07dc723638545ef620c6427e1f2a456dbc9fcd9ae9228d95c51421abb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13c2d1b474f335a9ce484ae88842a5b2610657e9d4f3e5e7192312983ae38f5dce418f705b960d19d32b2ff35dc17351eece361190727e46f970da9c6e716de0
|
|
7
|
+
data.tar.gz: 1f685cb88febc43cf2f77231109d838c08dbbf4aa3462e8279ba57b6c7f784951d5a02ec7619541dbbe7158ea1d98d0b764984925d76694a7e0c40a8e96d4cc2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Release history for google-apis-storage_v1
|
|
2
2
|
|
|
3
|
+
### v0.66.0 (2026-08-16)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260805
|
|
6
|
+
|
|
7
|
+
### v0.65.0 (2026-07-05)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260625
|
|
10
|
+
|
|
11
|
+
### v0.64.0 (2026-06-14)
|
|
12
|
+
|
|
13
|
+
* Regenerated using generator version 0.19.0
|
|
14
|
+
|
|
15
|
+
### v0.63.0 (2026-05-31)
|
|
16
|
+
|
|
17
|
+
* Regenerated from discovery document revision 20260524
|
|
18
|
+
|
|
19
|
+
### v0.62.0 (2026-04-19)
|
|
20
|
+
|
|
21
|
+
* Regenerated from discovery document revision 20260408
|
|
22
|
+
|
|
23
|
+
### v0.61.0 (2026-02-15)
|
|
24
|
+
|
|
25
|
+
* Regenerated from discovery document revision 20260204
|
|
26
|
+
|
|
27
|
+
### v0.60.0 (2026-02-08)
|
|
28
|
+
|
|
29
|
+
* Regenerated from discovery document revision 20260131
|
|
30
|
+
|
|
31
|
+
### v0.59.0 (2026-01-18)
|
|
32
|
+
|
|
33
|
+
* Regenerated from discovery document revision 20260111
|
|
34
|
+
|
|
35
|
+
### v0.58.0 (2025-12-07)
|
|
36
|
+
|
|
37
|
+
* Regenerated from discovery document revision 20251118
|
|
38
|
+
|
|
39
|
+
### v0.57.0 (2025-10-05)
|
|
40
|
+
|
|
41
|
+
* Regenerated from discovery document revision 20250925
|
|
42
|
+
|
|
3
43
|
### v0.56.0 (2025-08-24)
|
|
4
44
|
|
|
5
45
|
* Regenerated from discovery document revision 20250814
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/storage/docs/json_api/
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -80,6 +80,12 @@ module Google
|
|
|
80
80
|
# @return [String]
|
|
81
81
|
attr_accessor :id
|
|
82
82
|
|
|
83
|
+
# Specifies whether objects are ingested into the cache upon write.
|
|
84
|
+
# Corresponds to the JSON property `ingestOnWrite`
|
|
85
|
+
# @return [Boolean]
|
|
86
|
+
attr_accessor :ingest_on_write
|
|
87
|
+
alias_method :ingest_on_write?, :ingest_on_write
|
|
88
|
+
|
|
83
89
|
# The kind of item this is. For Anywhere Cache, this is always storage#
|
|
84
90
|
# anywhereCache.
|
|
85
91
|
# Corresponds to the JSON property `kind`
|
|
@@ -128,6 +134,7 @@ module Google
|
|
|
128
134
|
@bucket = args[:bucket] if args.key?(:bucket)
|
|
129
135
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
130
136
|
@id = args[:id] if args.key?(:id)
|
|
137
|
+
@ingest_on_write = args[:ingest_on_write] if args.key?(:ingest_on_write)
|
|
131
138
|
@kind = args[:kind] if args.key?(:kind)
|
|
132
139
|
@pending_update = args[:pending_update] if args.key?(:pending_update)
|
|
133
140
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
@@ -1082,6 +1089,16 @@ module Google
|
|
|
1082
1089
|
# @return [Fixnum]
|
|
1083
1090
|
attr_accessor :num_newer_versions
|
|
1084
1091
|
|
|
1092
|
+
# Objects having a size greater than this value in bytes will be matched.
|
|
1093
|
+
# Corresponds to the JSON property `sizeAboveBytes`
|
|
1094
|
+
# @return [Fixnum]
|
|
1095
|
+
attr_accessor :size_above_bytes
|
|
1096
|
+
|
|
1097
|
+
# Objects having a size less than this value in bytes will be matched.
|
|
1098
|
+
# Corresponds to the JSON property `sizeBelowBytes`
|
|
1099
|
+
# @return [Fixnum]
|
|
1100
|
+
attr_accessor :size_below_bytes
|
|
1101
|
+
|
|
1085
1102
|
def initialize(**args)
|
|
1086
1103
|
update!(**args)
|
|
1087
1104
|
end
|
|
@@ -1100,6 +1117,8 @@ module Google
|
|
|
1100
1117
|
@matches_suffix = args[:matches_suffix] if args.key?(:matches_suffix)
|
|
1101
1118
|
@noncurrent_time_before = args[:noncurrent_time_before] if args.key?(:noncurrent_time_before)
|
|
1102
1119
|
@num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
|
|
1120
|
+
@size_above_bytes = args[:size_above_bytes] if args.key?(:size_above_bytes)
|
|
1121
|
+
@size_below_bytes = args[:size_below_bytes] if args.key?(:size_below_bytes)
|
|
1103
1122
|
end
|
|
1104
1123
|
end
|
|
1105
1124
|
end
|
|
@@ -1552,6 +1571,12 @@ module Google
|
|
|
1552
1571
|
# @return [String]
|
|
1553
1572
|
attr_accessor :next_page_token
|
|
1554
1573
|
|
|
1574
|
+
# The list of bucket resource names that could not be reached during the listing
|
|
1575
|
+
# operation.
|
|
1576
|
+
# Corresponds to the JSON property `unreachable`
|
|
1577
|
+
# @return [Array<String>]
|
|
1578
|
+
attr_accessor :unreachable
|
|
1579
|
+
|
|
1555
1580
|
def initialize(**args)
|
|
1556
1581
|
update!(**args)
|
|
1557
1582
|
end
|
|
@@ -1561,6 +1586,7 @@ module Google
|
|
|
1561
1586
|
@items = args[:items] if args.key?(:items)
|
|
1562
1587
|
@kind = args[:kind] if args.key?(:kind)
|
|
1563
1588
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1589
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
1564
1590
|
end
|
|
1565
1591
|
end
|
|
1566
1592
|
|
|
@@ -1711,6 +1737,12 @@ module Google
|
|
|
1711
1737
|
class ComposeRequest
|
|
1712
1738
|
include Google::Apis::Core::Hashable
|
|
1713
1739
|
|
|
1740
|
+
# If true, the source objects will be deleted.
|
|
1741
|
+
# Corresponds to the JSON property `deleteSourceObjects`
|
|
1742
|
+
# @return [Boolean]
|
|
1743
|
+
attr_accessor :delete_source_objects
|
|
1744
|
+
alias_method :delete_source_objects?, :delete_source_objects
|
|
1745
|
+
|
|
1714
1746
|
# An object.
|
|
1715
1747
|
# Corresponds to the JSON property `destination`
|
|
1716
1748
|
# @return [Google::Apis::StorageV1::Object]
|
|
@@ -1732,6 +1764,7 @@ module Google
|
|
|
1732
1764
|
|
|
1733
1765
|
# Update properties of this object
|
|
1734
1766
|
def update!(**args)
|
|
1767
|
+
@delete_source_objects = args[:delete_source_objects] if args.key?(:delete_source_objects)
|
|
1735
1768
|
@destination = args[:destination] if args.key?(:destination)
|
|
1736
1769
|
@kind = args[:kind] if args.key?(:kind)
|
|
1737
1770
|
@source_objects = args[:source_objects] if args.key?(:source_objects)
|
|
@@ -2274,6 +2307,11 @@ module Google
|
|
|
2274
2307
|
# @return [String]
|
|
2275
2308
|
attr_accessor :name
|
|
2276
2309
|
|
|
2310
|
+
# Configuration options for the rapid cache of a managed folder.
|
|
2311
|
+
# Corresponds to the JSON property `rapidCacheConfig`
|
|
2312
|
+
# @return [Google::Apis::StorageV1::RapidCacheConfig]
|
|
2313
|
+
attr_accessor :rapid_cache_config
|
|
2314
|
+
|
|
2277
2315
|
# The link to this managed folder.
|
|
2278
2316
|
# Corresponds to the JSON property `selfLink`
|
|
2279
2317
|
# @return [String]
|
|
@@ -2296,6 +2334,7 @@ module Google
|
|
|
2296
2334
|
@kind = args[:kind] if args.key?(:kind)
|
|
2297
2335
|
@metageneration = args[:metageneration] if args.key?(:metageneration)
|
|
2298
2336
|
@name = args[:name] if args.key?(:name)
|
|
2337
|
+
@rapid_cache_config = args[:rapid_cache_config] if args.key?(:rapid_cache_config)
|
|
2299
2338
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
2300
2339
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2301
2340
|
end
|
|
@@ -3168,6 +3207,187 @@ module Google
|
|
|
3168
3207
|
end
|
|
3169
3208
|
end
|
|
3170
3209
|
|
|
3210
|
+
# A Rapid Cache instance.
|
|
3211
|
+
class RapidCache
|
|
3212
|
+
include Google::Apis::Core::Hashable
|
|
3213
|
+
|
|
3214
|
+
# The cache-level entry admission policy.
|
|
3215
|
+
# Corresponds to the JSON property `admissionPolicy`
|
|
3216
|
+
# @return [String]
|
|
3217
|
+
attr_accessor :admission_policy
|
|
3218
|
+
|
|
3219
|
+
# The name of the bucket containing this cache instance.
|
|
3220
|
+
# Corresponds to the JSON property `bucket`
|
|
3221
|
+
# @return [String]
|
|
3222
|
+
attr_accessor :bucket
|
|
3223
|
+
|
|
3224
|
+
# The type of Rapid Cache this represents. Valid values include: "rapid-cache"
|
|
3225
|
+
# and "rapid-cache-ultra".
|
|
3226
|
+
# Corresponds to the JSON property `cacheType`
|
|
3227
|
+
# @return [String]
|
|
3228
|
+
attr_accessor :cache_type
|
|
3229
|
+
|
|
3230
|
+
# The creation time of the cache instance in RFC 3339 format.
|
|
3231
|
+
# Corresponds to the JSON property `createTime`
|
|
3232
|
+
# @return [DateTime]
|
|
3233
|
+
attr_accessor :create_time
|
|
3234
|
+
|
|
3235
|
+
# The ID of the resource, including the project number, bucket name and rapid
|
|
3236
|
+
# cache ID.
|
|
3237
|
+
# Corresponds to the JSON property `id`
|
|
3238
|
+
# @return [String]
|
|
3239
|
+
attr_accessor :id
|
|
3240
|
+
|
|
3241
|
+
# Specifies whether objects are ingested into the cache upon write.
|
|
3242
|
+
# Corresponds to the JSON property `ingestOnWrite`
|
|
3243
|
+
# @return [Boolean]
|
|
3244
|
+
attr_accessor :ingest_on_write
|
|
3245
|
+
alias_method :ingest_on_write?, :ingest_on_write
|
|
3246
|
+
|
|
3247
|
+
# The kind of item this is. For Rapid Cache, this is always storage#rapidCache.
|
|
3248
|
+
# Corresponds to the JSON property `kind`
|
|
3249
|
+
# @return [String]
|
|
3250
|
+
attr_accessor :kind
|
|
3251
|
+
|
|
3252
|
+
# True if the cache instance has an active Update long-running operation.
|
|
3253
|
+
# Corresponds to the JSON property `pendingUpdate`
|
|
3254
|
+
# @return [Boolean]
|
|
3255
|
+
attr_accessor :pending_update
|
|
3256
|
+
alias_method :pending_update?, :pending_update
|
|
3257
|
+
|
|
3258
|
+
# The ID of the Rapid cache instance.
|
|
3259
|
+
# Corresponds to the JSON property `rapidCacheId`
|
|
3260
|
+
# @return [String]
|
|
3261
|
+
attr_accessor :rapid_cache_id
|
|
3262
|
+
|
|
3263
|
+
# The link to this cache instance.
|
|
3264
|
+
# Corresponds to the JSON property `selfLink`
|
|
3265
|
+
# @return [String]
|
|
3266
|
+
attr_accessor :self_link
|
|
3267
|
+
|
|
3268
|
+
# The current state of the cache instance.
|
|
3269
|
+
# Corresponds to the JSON property `state`
|
|
3270
|
+
# @return [String]
|
|
3271
|
+
attr_accessor :state
|
|
3272
|
+
|
|
3273
|
+
# The TTL of all cache entries in whole seconds. e.g., "7200s".
|
|
3274
|
+
# Corresponds to the JSON property `ttl`
|
|
3275
|
+
# @return [String]
|
|
3276
|
+
attr_accessor :ttl
|
|
3277
|
+
|
|
3278
|
+
# The modification time of the cache instance metadata in RFC 3339 format.
|
|
3279
|
+
# Corresponds to the JSON property `updateTime`
|
|
3280
|
+
# @return [DateTime]
|
|
3281
|
+
attr_accessor :update_time
|
|
3282
|
+
|
|
3283
|
+
# The zone in which the cache instance is running. For example, us-central1-a.
|
|
3284
|
+
# Corresponds to the JSON property `zone`
|
|
3285
|
+
# @return [String]
|
|
3286
|
+
attr_accessor :zone
|
|
3287
|
+
|
|
3288
|
+
def initialize(**args)
|
|
3289
|
+
update!(**args)
|
|
3290
|
+
end
|
|
3291
|
+
|
|
3292
|
+
# Update properties of this object
|
|
3293
|
+
def update!(**args)
|
|
3294
|
+
@admission_policy = args[:admission_policy] if args.key?(:admission_policy)
|
|
3295
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
|
3296
|
+
@cache_type = args[:cache_type] if args.key?(:cache_type)
|
|
3297
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
3298
|
+
@id = args[:id] if args.key?(:id)
|
|
3299
|
+
@ingest_on_write = args[:ingest_on_write] if args.key?(:ingest_on_write)
|
|
3300
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
3301
|
+
@pending_update = args[:pending_update] if args.key?(:pending_update)
|
|
3302
|
+
@rapid_cache_id = args[:rapid_cache_id] if args.key?(:rapid_cache_id)
|
|
3303
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
|
3304
|
+
@state = args[:state] if args.key?(:state)
|
|
3305
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
3306
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
3307
|
+
@zone = args[:zone] if args.key?(:zone)
|
|
3308
|
+
end
|
|
3309
|
+
end
|
|
3310
|
+
|
|
3311
|
+
# Configuration options for the rapid cache of a managed folder.
|
|
3312
|
+
class RapidCacheConfig
|
|
3313
|
+
include Google::Apis::Core::Hashable
|
|
3314
|
+
|
|
3315
|
+
# A map of rapid cache IDs to the corresponding `RapidCachePolicy`
|
|
3316
|
+
# configurations for a managed folder.
|
|
3317
|
+
# Corresponds to the JSON property `policies`
|
|
3318
|
+
# @return [Hash<String,Google::Apis::StorageV1::RapidCachePolicy>]
|
|
3319
|
+
attr_accessor :policies
|
|
3320
|
+
|
|
3321
|
+
def initialize(**args)
|
|
3322
|
+
update!(**args)
|
|
3323
|
+
end
|
|
3324
|
+
|
|
3325
|
+
# Update properties of this object
|
|
3326
|
+
def update!(**args)
|
|
3327
|
+
@policies = args[:policies] if args.key?(:policies)
|
|
3328
|
+
end
|
|
3329
|
+
end
|
|
3330
|
+
|
|
3331
|
+
# The rapid cache policy configuration for a managed folder.
|
|
3332
|
+
class RapidCachePolicy
|
|
3333
|
+
include Google::Apis::Core::Hashable
|
|
3334
|
+
|
|
3335
|
+
# The ingest-on-write policy for objects in the managed folder. When set to `
|
|
3336
|
+
# enabled`, objects are automatically ingested into the cache when they are
|
|
3337
|
+
# written to the managed folder.
|
|
3338
|
+
# Corresponds to the JSON property `ingestOnWrite`
|
|
3339
|
+
# @return [String]
|
|
3340
|
+
attr_accessor :ingest_on_write
|
|
3341
|
+
|
|
3342
|
+
# The unique identifier of the rapid cache.
|
|
3343
|
+
# Corresponds to the JSON property `rapidCacheId`
|
|
3344
|
+
# @return [String]
|
|
3345
|
+
attr_accessor :rapid_cache_id
|
|
3346
|
+
|
|
3347
|
+
def initialize(**args)
|
|
3348
|
+
update!(**args)
|
|
3349
|
+
end
|
|
3350
|
+
|
|
3351
|
+
# Update properties of this object
|
|
3352
|
+
def update!(**args)
|
|
3353
|
+
@ingest_on_write = args[:ingest_on_write] if args.key?(:ingest_on_write)
|
|
3354
|
+
@rapid_cache_id = args[:rapid_cache_id] if args.key?(:rapid_cache_id)
|
|
3355
|
+
end
|
|
3356
|
+
end
|
|
3357
|
+
|
|
3358
|
+
# A list of Rapid Caches.
|
|
3359
|
+
class RapidCaches
|
|
3360
|
+
include Google::Apis::Core::Hashable
|
|
3361
|
+
|
|
3362
|
+
# The list of items.
|
|
3363
|
+
# Corresponds to the JSON property `items`
|
|
3364
|
+
# @return [Array<Google::Apis::StorageV1::RapidCache>]
|
|
3365
|
+
attr_accessor :items
|
|
3366
|
+
|
|
3367
|
+
# The kind of item this is. For lists of Rapid Caches, this is always storage#
|
|
3368
|
+
# rapidCaches.
|
|
3369
|
+
# Corresponds to the JSON property `kind`
|
|
3370
|
+
# @return [String]
|
|
3371
|
+
attr_accessor :kind
|
|
3372
|
+
|
|
3373
|
+
# The continuation token, used to page through large result sets. Provide this
|
|
3374
|
+
# value in a subsequent request to return the next page of results.
|
|
3375
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
3376
|
+
# @return [String]
|
|
3377
|
+
attr_accessor :next_page_token
|
|
3378
|
+
|
|
3379
|
+
def initialize(**args)
|
|
3380
|
+
update!(**args)
|
|
3381
|
+
end
|
|
3382
|
+
|
|
3383
|
+
# Update properties of this object
|
|
3384
|
+
def update!(**args)
|
|
3385
|
+
@items = args[:items] if args.key?(:items)
|
|
3386
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
3387
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
3388
|
+
end
|
|
3389
|
+
end
|
|
3390
|
+
|
|
3171
3391
|
# A Relocate Bucket request.
|
|
3172
3392
|
class RelocateBucketRequest
|
|
3173
3393
|
include Google::Apis::Core::Hashable
|
|
@@ -3178,6 +3398,13 @@ module Google
|
|
|
3178
3398
|
# @return [Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig]
|
|
3179
3399
|
attr_accessor :destination_custom_placement_config
|
|
3180
3400
|
|
|
3401
|
+
# Resource name of a Cloud KMS key, of the form projects/my-project/locations/
|
|
3402
|
+
# global/keyRings/my-kr/cryptoKeys/my-key. If set, is used to encrypt all
|
|
3403
|
+
# objects in the destination bucket.
|
|
3404
|
+
# Corresponds to the JSON property `destinationKmsKeyName`
|
|
3405
|
+
# @return [String]
|
|
3406
|
+
attr_accessor :destination_kms_key_name
|
|
3407
|
+
|
|
3181
3408
|
# The new location the bucket will be relocated to.
|
|
3182
3409
|
# Corresponds to the JSON property `destinationLocation`
|
|
3183
3410
|
# @return [String]
|
|
@@ -3196,6 +3423,7 @@ module Google
|
|
|
3196
3423
|
# Update properties of this object
|
|
3197
3424
|
def update!(**args)
|
|
3198
3425
|
@destination_custom_placement_config = args[:destination_custom_placement_config] if args.key?(:destination_custom_placement_config)
|
|
3426
|
+
@destination_kms_key_name = args[:destination_kms_key_name] if args.key?(:destination_kms_key_name)
|
|
3199
3427
|
@destination_location = args[:destination_location] if args.key?(:destination_location)
|
|
3200
3428
|
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
|
3201
3429
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module StorageV1
|
|
18
18
|
# Version of the google-apis-storage_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.66.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260805"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -430,6 +430,30 @@ module Google
|
|
|
430
430
|
include Google::Apis::Core::JsonObjectSupport
|
|
431
431
|
end
|
|
432
432
|
|
|
433
|
+
class RapidCache
|
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
435
|
+
|
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
class RapidCacheConfig
|
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
441
|
+
|
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
class RapidCachePolicy
|
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
447
|
+
|
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
class RapidCaches
|
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
453
|
+
|
|
454
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
455
|
+
end
|
|
456
|
+
|
|
433
457
|
class RelocateBucketRequest
|
|
434
458
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
435
459
|
|
|
@@ -478,6 +502,7 @@ module Google
|
|
|
478
502
|
property :create_time, as: 'createTime', type: DateTime
|
|
479
503
|
|
|
480
504
|
property :id, as: 'id'
|
|
505
|
+
property :ingest_on_write, as: 'ingestOnWrite'
|
|
481
506
|
property :kind, as: 'kind'
|
|
482
507
|
property :pending_update, as: 'pendingUpdate'
|
|
483
508
|
property :self_link, as: 'selfLink'
|
|
@@ -746,6 +771,8 @@ module Google
|
|
|
746
771
|
property :noncurrent_time_before, as: 'noncurrentTimeBefore', type: Date
|
|
747
772
|
|
|
748
773
|
property :num_newer_versions, as: 'numNewerVersions'
|
|
774
|
+
property :size_above_bytes, :numeric_string => true, as: 'sizeAboveBytes'
|
|
775
|
+
property :size_below_bytes, :numeric_string => true, as: 'sizeBelowBytes'
|
|
749
776
|
end
|
|
750
777
|
end
|
|
751
778
|
end
|
|
@@ -879,6 +906,7 @@ module Google
|
|
|
879
906
|
|
|
880
907
|
property :kind, as: 'kind'
|
|
881
908
|
property :next_page_token, as: 'nextPageToken'
|
|
909
|
+
collection :unreachable, as: 'unreachable'
|
|
882
910
|
end
|
|
883
911
|
end
|
|
884
912
|
|
|
@@ -918,6 +946,7 @@ module Google
|
|
|
918
946
|
class ComposeRequest
|
|
919
947
|
# @private
|
|
920
948
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
949
|
+
property :delete_source_objects, as: 'deleteSourceObjects'
|
|
921
950
|
property :destination, as: 'destination', class: Google::Apis::StorageV1::Object, decorator: Google::Apis::StorageV1::Object::Representation
|
|
922
951
|
|
|
923
952
|
property :kind, as: 'kind'
|
|
@@ -1069,6 +1098,8 @@ module Google
|
|
|
1069
1098
|
property :kind, as: 'kind'
|
|
1070
1099
|
property :metageneration, :numeric_string => true, as: 'metageneration'
|
|
1071
1100
|
property :name, as: 'name'
|
|
1101
|
+
property :rapid_cache_config, as: 'rapidCacheConfig', class: Google::Apis::StorageV1::RapidCacheConfig, decorator: Google::Apis::StorageV1::RapidCacheConfig::Representation
|
|
1102
|
+
|
|
1072
1103
|
property :self_link, as: 'selfLink'
|
|
1073
1104
|
property :update_time, as: 'updateTime', type: DateTime
|
|
1074
1105
|
|
|
@@ -1281,11 +1312,60 @@ module Google
|
|
|
1281
1312
|
end
|
|
1282
1313
|
end
|
|
1283
1314
|
|
|
1315
|
+
class RapidCache
|
|
1316
|
+
# @private
|
|
1317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1318
|
+
property :admission_policy, as: 'admissionPolicy'
|
|
1319
|
+
property :bucket, as: 'bucket'
|
|
1320
|
+
property :cache_type, as: 'cacheType'
|
|
1321
|
+
property :create_time, as: 'createTime', type: DateTime
|
|
1322
|
+
|
|
1323
|
+
property :id, as: 'id'
|
|
1324
|
+
property :ingest_on_write, as: 'ingestOnWrite'
|
|
1325
|
+
property :kind, as: 'kind'
|
|
1326
|
+
property :pending_update, as: 'pendingUpdate'
|
|
1327
|
+
property :rapid_cache_id, as: 'rapidCacheId'
|
|
1328
|
+
property :self_link, as: 'selfLink'
|
|
1329
|
+
property :state, as: 'state'
|
|
1330
|
+
property :ttl, as: 'ttl'
|
|
1331
|
+
property :update_time, as: 'updateTime', type: DateTime
|
|
1332
|
+
|
|
1333
|
+
property :zone, as: 'zone'
|
|
1334
|
+
end
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
class RapidCacheConfig
|
|
1338
|
+
# @private
|
|
1339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1340
|
+
hash :policies, as: 'policies', class: Google::Apis::StorageV1::RapidCachePolicy, decorator: Google::Apis::StorageV1::RapidCachePolicy::Representation
|
|
1341
|
+
|
|
1342
|
+
end
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
class RapidCachePolicy
|
|
1346
|
+
# @private
|
|
1347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1348
|
+
property :ingest_on_write, as: 'ingestOnWrite'
|
|
1349
|
+
property :rapid_cache_id, as: 'rapidCacheId'
|
|
1350
|
+
end
|
|
1351
|
+
end
|
|
1352
|
+
|
|
1353
|
+
class RapidCaches
|
|
1354
|
+
# @private
|
|
1355
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1356
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::RapidCache, decorator: Google::Apis::StorageV1::RapidCache::Representation
|
|
1357
|
+
|
|
1358
|
+
property :kind, as: 'kind'
|
|
1359
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1360
|
+
end
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1284
1363
|
class RelocateBucketRequest
|
|
1285
1364
|
# @private
|
|
1286
1365
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1287
1366
|
property :destination_custom_placement_config, as: 'destinationCustomPlacementConfig', class: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig, decorator: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig::Representation
|
|
1288
1367
|
|
|
1368
|
+
property :destination_kms_key_name, as: 'destinationKmsKeyName'
|
|
1289
1369
|
property :destination_location, as: 'destinationLocation'
|
|
1290
1370
|
property :validate_only, as: 'validateOnly'
|
|
1291
1371
|
end
|
|
@@ -275,7 +275,7 @@ module Google
|
|
|
275
275
|
execute_or_queue_command(command, &block)
|
|
276
276
|
end
|
|
277
277
|
|
|
278
|
-
# Updates the config
|
|
278
|
+
# Updates the config of an Anywhere Cache instance.
|
|
279
279
|
# @param [String] bucket
|
|
280
280
|
# Name of the parent bucket.
|
|
281
281
|
# @param [String] anywhere_cache_id
|
|
@@ -796,6 +796,9 @@ module Google
|
|
|
796
796
|
# Filter results to buckets whose names begin with this prefix.
|
|
797
797
|
# @param [String] projection
|
|
798
798
|
# Set of properties to return. Defaults to noAcl.
|
|
799
|
+
# @param [Boolean] return_partial_success
|
|
800
|
+
# If true, return a list of bucket resource names for buckets that are in
|
|
801
|
+
# unreachable locations.
|
|
799
802
|
# @param [Boolean] soft_deleted
|
|
800
803
|
# If true, only soft-deleted bucket versions will be returned. The default is
|
|
801
804
|
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
|
@@ -821,7 +824,7 @@ module Google
|
|
|
821
824
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
822
825
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
823
826
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
824
|
-
def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
827
|
+
def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, return_partial_success: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
825
828
|
command = make_simple_command(:get, 'b', options)
|
|
826
829
|
command.response_representation = Google::Apis::StorageV1::Buckets::Representation
|
|
827
830
|
command.response_class = Google::Apis::StorageV1::Buckets
|
|
@@ -830,6 +833,7 @@ module Google
|
|
|
830
833
|
command.query['prefix'] = prefix unless prefix.nil?
|
|
831
834
|
command.query['project'] = project unless project.nil?
|
|
832
835
|
command.query['projection'] = projection unless projection.nil?
|
|
836
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
833
837
|
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
|
834
838
|
command.query['userProject'] = user_project unless user_project.nil?
|
|
835
839
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1471,6 +1475,50 @@ module Google
|
|
|
1471
1475
|
execute_or_queue_command(command, &block)
|
|
1472
1476
|
end
|
|
1473
1477
|
|
|
1478
|
+
# Deletes a folder recursively. Only applicable to buckets with hierarchical
|
|
1479
|
+
# namespace enabled.
|
|
1480
|
+
# @param [String] bucket
|
|
1481
|
+
# Name of the bucket in which the folder resides.
|
|
1482
|
+
# @param [String] folder
|
|
1483
|
+
# Name of a folder.
|
|
1484
|
+
# @param [Fixnum] if_metageneration_match
|
|
1485
|
+
# If set, only deletes the folder if its metageneration matches this value.
|
|
1486
|
+
# @param [Fixnum] if_metageneration_not_match
|
|
1487
|
+
# If set, only deletes the folder if its metageneration does not match this
|
|
1488
|
+
# value.
|
|
1489
|
+
# @param [String] fields
|
|
1490
|
+
# Selector specifying which fields to include in a partial response.
|
|
1491
|
+
# @param [String] quota_user
|
|
1492
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
1493
|
+
# characters.
|
|
1494
|
+
# @param [String] user_ip
|
|
1495
|
+
# Deprecated. Please use quotaUser instead.
|
|
1496
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1497
|
+
# Request-specific options
|
|
1498
|
+
#
|
|
1499
|
+
# @yield [result, err] Result & error if block supplied
|
|
1500
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
|
1501
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1502
|
+
#
|
|
1503
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
|
1504
|
+
#
|
|
1505
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1506
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1507
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1508
|
+
def delete_folder_recursive(bucket, folder, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1509
|
+
command = make_simple_command(:post, 'b/{bucket}/folders/{folder}/deleteRecursive', options)
|
|
1510
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
|
1511
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
|
1512
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
1513
|
+
command.params['folder'] = folder unless folder.nil?
|
|
1514
|
+
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
1515
|
+
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
|
1516
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1517
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1518
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1519
|
+
execute_or_queue_command(command, &block)
|
|
1520
|
+
end
|
|
1521
|
+
|
|
1474
1522
|
# Returns metadata for the specified folder. Only applicable to buckets with
|
|
1475
1523
|
# hierarchical namespace enabled.
|
|
1476
1524
|
# @param [String] bucket
|
|
@@ -1963,6 +2011,53 @@ module Google
|
|
|
1963
2011
|
execute_or_queue_command(command, &block)
|
|
1964
2012
|
end
|
|
1965
2013
|
|
|
2014
|
+
# Updates a managed folder using patch semantics.
|
|
2015
|
+
# @param [String] bucket
|
|
2016
|
+
# The name of the bucket containing the managed folder.
|
|
2017
|
+
# @param [String] managed_folder
|
|
2018
|
+
# The name of the managed folder.
|
|
2019
|
+
# @param [Google::Apis::StorageV1::ManagedFolder] managed_folder_object
|
|
2020
|
+
# @param [Fixnum] if_metageneration_match
|
|
2021
|
+
# Makes the operation conditional on whether the metageneration of the managed
|
|
2022
|
+
# folder matches the specified value.
|
|
2023
|
+
# @param [Fixnum] if_metageneration_not_match
|
|
2024
|
+
# Makes the operation conditional on whether the metageneration of the managed
|
|
2025
|
+
# folder doesn't match the specified value.
|
|
2026
|
+
# @param [String] fields
|
|
2027
|
+
# Selector specifying which fields to include in a partial response.
|
|
2028
|
+
# @param [String] quota_user
|
|
2029
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2030
|
+
# characters.
|
|
2031
|
+
# @param [String] user_ip
|
|
2032
|
+
# Deprecated. Please use quotaUser instead.
|
|
2033
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2034
|
+
# Request-specific options
|
|
2035
|
+
#
|
|
2036
|
+
# @yield [result, err] Result & error if block supplied
|
|
2037
|
+
# @yieldparam result [Google::Apis::StorageV1::ManagedFolder] parsed result object
|
|
2038
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2039
|
+
#
|
|
2040
|
+
# @return [Google::Apis::StorageV1::ManagedFolder]
|
|
2041
|
+
#
|
|
2042
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2043
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2044
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2045
|
+
def update_managed_folder(bucket, managed_folder, managed_folder_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2046
|
+
command = make_simple_command(:patch, 'b/{bucket}/managedFolders/{managedFolder}', options)
|
|
2047
|
+
command.request_representation = Google::Apis::StorageV1::ManagedFolder::Representation
|
|
2048
|
+
command.request_object = managed_folder_object
|
|
2049
|
+
command.response_representation = Google::Apis::StorageV1::ManagedFolder::Representation
|
|
2050
|
+
command.response_class = Google::Apis::StorageV1::ManagedFolder
|
|
2051
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
2052
|
+
command.params['managedFolder'] = managed_folder unless managed_folder.nil?
|
|
2053
|
+
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
2054
|
+
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
|
2055
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2056
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2057
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2058
|
+
execute_or_queue_command(command, &block)
|
|
2059
|
+
end
|
|
2060
|
+
|
|
1966
2061
|
# Permanently deletes a notification subscription.
|
|
1967
2062
|
# @param [String] bucket
|
|
1968
2063
|
# The parent bucket of the notification.
|
|
@@ -2455,6 +2550,9 @@ module Google
|
|
|
2455
2550
|
# @param [Google::Apis::StorageV1::ComposeRequest] compose_request_object
|
|
2456
2551
|
# @param [String] destination_predefined_acl
|
|
2457
2552
|
# Apply a predefined set of access controls to the destination object.
|
|
2553
|
+
# @param [Array<String>, String] drop_context_groups
|
|
2554
|
+
# Specifies which groups of Object Contexts from the source object(s) should be
|
|
2555
|
+
# dropped from the destination object.
|
|
2458
2556
|
# @param [Fixnum] if_generation_match
|
|
2459
2557
|
# Makes the operation conditional on whether the object's current generation
|
|
2460
2558
|
# matches the given value. Setting to 0 makes the operation succeed only if
|
|
@@ -2487,7 +2585,7 @@ module Google
|
|
|
2487
2585
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2488
2586
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2489
2587
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2490
|
-
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2588
|
+
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, drop_context_groups: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2491
2589
|
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
|
2492
2590
|
command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
|
|
2493
2591
|
command.request_object = compose_request_object
|
|
@@ -2496,6 +2594,7 @@ module Google
|
|
|
2496
2594
|
command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
|
|
2497
2595
|
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
|
2498
2596
|
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
|
|
2597
|
+
command.query['dropContextGroups'] = drop_context_groups unless drop_context_groups.nil?
|
|
2499
2598
|
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
|
2500
2599
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
2501
2600
|
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
|
|
@@ -3270,6 +3369,9 @@ module Google
|
|
|
3270
3369
|
# object. Overrides the object metadata's kms_key_name value, if any.
|
|
3271
3370
|
# @param [String] destination_predefined_acl
|
|
3272
3371
|
# Apply a predefined set of access controls to the destination object.
|
|
3372
|
+
# @param [Array<String>, String] drop_context_groups
|
|
3373
|
+
# Specifies which groups of Object Contexts from the source object should be
|
|
3374
|
+
# dropped from the destination object.
|
|
3273
3375
|
# @param [Fixnum] if_generation_match
|
|
3274
3376
|
# Makes the operation conditional on whether the object's current generation
|
|
3275
3377
|
# matches the given value. Setting to 0 makes the operation succeed only if
|
|
@@ -3337,7 +3439,7 @@ module Google
|
|
|
3337
3439
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3338
3440
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3339
3441
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3340
|
-
def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3442
|
+
def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, drop_context_groups: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3341
3443
|
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
|
|
3342
3444
|
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
|
3343
3445
|
command.request_object = object_object
|
|
@@ -3349,6 +3451,7 @@ module Google
|
|
|
3349
3451
|
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
|
3350
3452
|
command.query['destinationKmsKeyName'] = destination_kms_key_name unless destination_kms_key_name.nil?
|
|
3351
3453
|
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
|
|
3454
|
+
command.query['dropContextGroups'] = drop_context_groups unless drop_context_groups.nil?
|
|
3352
3455
|
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
|
3353
3456
|
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
|
3354
3457
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
@@ -3542,87 +3645,6 @@ module Google
|
|
|
3542
3645
|
execute_or_queue_command(command, &block)
|
|
3543
3646
|
end
|
|
3544
3647
|
|
|
3545
|
-
# Watch for changes on all objects in a bucket.
|
|
3546
|
-
# @param [String] bucket
|
|
3547
|
-
# Name of the bucket in which to look for objects.
|
|
3548
|
-
# @param [Google::Apis::StorageV1::Channel] channel_object
|
|
3549
|
-
# @param [String] delimiter
|
|
3550
|
-
# Returns results in a directory-like mode. items will contain only objects
|
|
3551
|
-
# whose names, aside from the prefix, do not contain delimiter. Objects whose
|
|
3552
|
-
# names, aside from the prefix, contain delimiter will have their name,
|
|
3553
|
-
# truncated after the delimiter, returned in prefixes. Duplicate prefixes are
|
|
3554
|
-
# omitted.
|
|
3555
|
-
# @param [String] end_offset
|
|
3556
|
-
# Filter results to objects whose names are lexicographically before endOffset.
|
|
3557
|
-
# If startOffset is also set, the objects listed will have names between
|
|
3558
|
-
# startOffset (inclusive) and endOffset (exclusive).
|
|
3559
|
-
# @param [Boolean] include_trailing_delimiter
|
|
3560
|
-
# If true, objects that end in exactly one instance of delimiter will have their
|
|
3561
|
-
# metadata included in items in addition to prefixes.
|
|
3562
|
-
# @param [Fixnum] max_results
|
|
3563
|
-
# Maximum number of items plus prefixes to return in a single page of responses.
|
|
3564
|
-
# As duplicate prefixes are omitted, fewer total results may be returned than
|
|
3565
|
-
# requested. The service will use this parameter or 1,000 items, whichever is
|
|
3566
|
-
# smaller.
|
|
3567
|
-
# @param [String] page_token
|
|
3568
|
-
# A previously-returned page token representing part of the larger set of
|
|
3569
|
-
# results to view.
|
|
3570
|
-
# @param [String] prefix
|
|
3571
|
-
# Filter results to objects whose names begin with this prefix.
|
|
3572
|
-
# @param [String] projection
|
|
3573
|
-
# Set of properties to return. Defaults to noAcl.
|
|
3574
|
-
# @param [String] start_offset
|
|
3575
|
-
# Filter results to objects whose names are lexicographically equal to or after
|
|
3576
|
-
# startOffset. If endOffset is also set, the objects listed will have names
|
|
3577
|
-
# between startOffset (inclusive) and endOffset (exclusive).
|
|
3578
|
-
# @param [String] user_project
|
|
3579
|
-
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
3580
|
-
# @param [Boolean] versions
|
|
3581
|
-
# If true, lists all versions of an object as distinct results. The default is
|
|
3582
|
-
# false. For more information, see [Object Versioning](https://cloud.google.com/
|
|
3583
|
-
# storage/docs/object-versioning).
|
|
3584
|
-
# @param [String] fields
|
|
3585
|
-
# Selector specifying which fields to include in a partial response.
|
|
3586
|
-
# @param [String] quota_user
|
|
3587
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
3588
|
-
# characters.
|
|
3589
|
-
# @param [String] user_ip
|
|
3590
|
-
# Deprecated. Please use quotaUser instead.
|
|
3591
|
-
# @param [Google::Apis::RequestOptions] options
|
|
3592
|
-
# Request-specific options
|
|
3593
|
-
#
|
|
3594
|
-
# @yield [result, err] Result & error if block supplied
|
|
3595
|
-
# @yieldparam result [Google::Apis::StorageV1::Channel] parsed result object
|
|
3596
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
3597
|
-
#
|
|
3598
|
-
# @return [Google::Apis::StorageV1::Channel]
|
|
3599
|
-
#
|
|
3600
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3601
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3602
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3603
|
-
def watch_all_objects(bucket, channel_object = nil, delimiter: nil, end_offset: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3604
|
-
command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
|
|
3605
|
-
command.request_representation = Google::Apis::StorageV1::Channel::Representation
|
|
3606
|
-
command.request_object = channel_object
|
|
3607
|
-
command.response_representation = Google::Apis::StorageV1::Channel::Representation
|
|
3608
|
-
command.response_class = Google::Apis::StorageV1::Channel
|
|
3609
|
-
command.params['bucket'] = bucket unless bucket.nil?
|
|
3610
|
-
command.query['delimiter'] = delimiter unless delimiter.nil?
|
|
3611
|
-
command.query['endOffset'] = end_offset unless end_offset.nil?
|
|
3612
|
-
command.query['includeTrailingDelimiter'] = include_trailing_delimiter unless include_trailing_delimiter.nil?
|
|
3613
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
3614
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
3615
|
-
command.query['prefix'] = prefix unless prefix.nil?
|
|
3616
|
-
command.query['projection'] = projection unless projection.nil?
|
|
3617
|
-
command.query['startOffset'] = start_offset unless start_offset.nil?
|
|
3618
|
-
command.query['userProject'] = user_project unless user_project.nil?
|
|
3619
|
-
command.query['versions'] = versions unless versions.nil?
|
|
3620
|
-
command.query['fields'] = fields unless fields.nil?
|
|
3621
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3622
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3623
|
-
execute_or_queue_command(command, &block)
|
|
3624
|
-
end
|
|
3625
|
-
|
|
3626
3648
|
# Starts asynchronous advancement of the relocate bucket operation in the case
|
|
3627
3649
|
# of required write downtime, to allow it to lock the bucket at the source
|
|
3628
3650
|
# location, and proceed with the bucket location swap. The server makes a best
|
|
@@ -4027,6 +4049,193 @@ module Google
|
|
|
4027
4049
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4028
4050
|
execute_or_queue_command(command, &block)
|
|
4029
4051
|
end
|
|
4052
|
+
|
|
4053
|
+
# Disables a Rapid Cache instance.
|
|
4054
|
+
# @param [String] bucket
|
|
4055
|
+
# Name of the parent bucket.
|
|
4056
|
+
# @param [String] rapid_cache_id
|
|
4057
|
+
# The ID of the requested Rapid Cache instance.
|
|
4058
|
+
# @param [String] fields
|
|
4059
|
+
# Selector specifying which fields to include in a partial response.
|
|
4060
|
+
# @param [String] quota_user
|
|
4061
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
4062
|
+
# characters.
|
|
4063
|
+
# @param [String] user_ip
|
|
4064
|
+
# Deprecated. Please use quotaUser instead.
|
|
4065
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4066
|
+
# Request-specific options
|
|
4067
|
+
#
|
|
4068
|
+
# @yield [result, err] Result & error if block supplied
|
|
4069
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
|
4070
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4071
|
+
#
|
|
4072
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
|
4073
|
+
#
|
|
4074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4077
|
+
def disable_rapid_cach(bucket, rapid_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4078
|
+
command = make_simple_command(:post, 'b/{bucket}/rapidCaches/{rapidCacheId}/disable', options)
|
|
4079
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
|
4080
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
|
4081
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
4082
|
+
command.params['rapidCacheId'] = rapid_cache_id unless rapid_cache_id.nil?
|
|
4083
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4084
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4085
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4086
|
+
execute_or_queue_command(command, &block)
|
|
4087
|
+
end
|
|
4088
|
+
|
|
4089
|
+
# Returns the metadata of a Rapid Cache instance.
|
|
4090
|
+
# @param [String] bucket
|
|
4091
|
+
# Name of the parent bucket.
|
|
4092
|
+
# @param [String] rapid_cache_id
|
|
4093
|
+
# The ID of the requested Rapid Cache instance.
|
|
4094
|
+
# @param [String] fields
|
|
4095
|
+
# Selector specifying which fields to include in a partial response.
|
|
4096
|
+
# @param [String] quota_user
|
|
4097
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
4098
|
+
# characters.
|
|
4099
|
+
# @param [String] user_ip
|
|
4100
|
+
# Deprecated. Please use quotaUser instead.
|
|
4101
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4102
|
+
# Request-specific options
|
|
4103
|
+
#
|
|
4104
|
+
# @yield [result, err] Result & error if block supplied
|
|
4105
|
+
# @yieldparam result [Google::Apis::StorageV1::RapidCache] parsed result object
|
|
4106
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4107
|
+
#
|
|
4108
|
+
# @return [Google::Apis::StorageV1::RapidCache]
|
|
4109
|
+
#
|
|
4110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4113
|
+
def get_rapid_cach(bucket, rapid_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4114
|
+
command = make_simple_command(:get, 'b/{bucket}/rapidCaches/{rapidCacheId}', options)
|
|
4115
|
+
command.response_representation = Google::Apis::StorageV1::RapidCache::Representation
|
|
4116
|
+
command.response_class = Google::Apis::StorageV1::RapidCache
|
|
4117
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
4118
|
+
command.params['rapidCacheId'] = rapid_cache_id unless rapid_cache_id.nil?
|
|
4119
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4121
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4122
|
+
execute_or_queue_command(command, &block)
|
|
4123
|
+
end
|
|
4124
|
+
|
|
4125
|
+
# Creates a Rapid Cache instance.
|
|
4126
|
+
# @param [String] bucket
|
|
4127
|
+
# Name of the parent bucket.
|
|
4128
|
+
# @param [Google::Apis::StorageV1::RapidCache] rapid_cache_object
|
|
4129
|
+
# @param [String] fields
|
|
4130
|
+
# Selector specifying which fields to include in a partial response.
|
|
4131
|
+
# @param [String] quota_user
|
|
4132
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
4133
|
+
# characters.
|
|
4134
|
+
# @param [String] user_ip
|
|
4135
|
+
# Deprecated. Please use quotaUser instead.
|
|
4136
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4137
|
+
# Request-specific options
|
|
4138
|
+
#
|
|
4139
|
+
# @yield [result, err] Result & error if block supplied
|
|
4140
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
|
4141
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4142
|
+
#
|
|
4143
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
|
4144
|
+
#
|
|
4145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4148
|
+
def insert_rapid_cach(bucket, rapid_cache_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4149
|
+
command = make_simple_command(:post, 'b/{bucket}/rapidCaches', options)
|
|
4150
|
+
command.request_representation = Google::Apis::StorageV1::RapidCache::Representation
|
|
4151
|
+
command.request_object = rapid_cache_object
|
|
4152
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
|
4153
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
|
4154
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
4155
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4157
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4158
|
+
execute_or_queue_command(command, &block)
|
|
4159
|
+
end
|
|
4160
|
+
|
|
4161
|
+
# Returns a list of Rapid Cache instances of the bucket.
|
|
4162
|
+
# @param [String] bucket
|
|
4163
|
+
# Name of the parent bucket.
|
|
4164
|
+
# @param [Fixnum] page_size
|
|
4165
|
+
# Maximum number of items to return in a single page of responses.
|
|
4166
|
+
# @param [String] page_token
|
|
4167
|
+
# A previously-returned page token representing part of the larger set of
|
|
4168
|
+
# results to view.
|
|
4169
|
+
# @param [String] fields
|
|
4170
|
+
# Selector specifying which fields to include in a partial response.
|
|
4171
|
+
# @param [String] quota_user
|
|
4172
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
4173
|
+
# characters.
|
|
4174
|
+
# @param [String] user_ip
|
|
4175
|
+
# Deprecated. Please use quotaUser instead.
|
|
4176
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4177
|
+
# Request-specific options
|
|
4178
|
+
#
|
|
4179
|
+
# @yield [result, err] Result & error if block supplied
|
|
4180
|
+
# @yieldparam result [Google::Apis::StorageV1::RapidCaches] parsed result object
|
|
4181
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4182
|
+
#
|
|
4183
|
+
# @return [Google::Apis::StorageV1::RapidCaches]
|
|
4184
|
+
#
|
|
4185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4188
|
+
def list_rapid_caches(bucket, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4189
|
+
command = make_simple_command(:get, 'b/{bucket}/rapidCaches', options)
|
|
4190
|
+
command.response_representation = Google::Apis::StorageV1::RapidCaches::Representation
|
|
4191
|
+
command.response_class = Google::Apis::StorageV1::RapidCaches
|
|
4192
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
4193
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
4194
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
4195
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4197
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4198
|
+
execute_or_queue_command(command, &block)
|
|
4199
|
+
end
|
|
4200
|
+
|
|
4201
|
+
# Updates the configuration of a Rapid Cache instance.
|
|
4202
|
+
# @param [String] bucket
|
|
4203
|
+
# Name of the parent bucket.
|
|
4204
|
+
# @param [String] rapid_cache_id
|
|
4205
|
+
# The ID of the requested Rapid Cache instance.
|
|
4206
|
+
# @param [Google::Apis::StorageV1::RapidCache] rapid_cache_object
|
|
4207
|
+
# @param [String] fields
|
|
4208
|
+
# Selector specifying which fields to include in a partial response.
|
|
4209
|
+
# @param [String] quota_user
|
|
4210
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
4211
|
+
# characters.
|
|
4212
|
+
# @param [String] user_ip
|
|
4213
|
+
# Deprecated. Please use quotaUser instead.
|
|
4214
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4215
|
+
# Request-specific options
|
|
4216
|
+
#
|
|
4217
|
+
# @yield [result, err] Result & error if block supplied
|
|
4218
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
|
4219
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4220
|
+
#
|
|
4221
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
|
4222
|
+
#
|
|
4223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4226
|
+
def update_rapid_cach(bucket, rapid_cache_id, rapid_cache_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4227
|
+
command = make_simple_command(:patch, 'b/{bucket}/rapidCaches/{rapidCacheId}', options)
|
|
4228
|
+
command.request_representation = Google::Apis::StorageV1::RapidCache::Representation
|
|
4229
|
+
command.request_object = rapid_cache_object
|
|
4230
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
|
4231
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
|
4232
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
4233
|
+
command.params['rapidCacheId'] = rapid_cache_id unless rapid_cache_id.nil?
|
|
4234
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4236
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4237
|
+
execute_or_queue_command(command, &block)
|
|
4238
|
+
end
|
|
4030
4239
|
|
|
4031
4240
|
protected
|
|
4032
4241
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-storage_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.66.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.66.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|