google-apis-storage_v1 0.40.0 → 0.47.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 +29 -0
- data/lib/google/apis/storage_v1/classes.rb +220 -14
- data/lib/google/apis/storage_v1/gem_version.rb +3 -3
- data/lib/google/apis/storage_v1/representations.rb +97 -0
- data/lib/google/apis/storage_v1/service.rb +159 -12
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef8b5adcdb3729a4eb973fca4db7833a049cf192d1143b51c65a8fa9052fa15e
|
|
4
|
+
data.tar.gz: 4bceace55bc99a4dce993779048757d5092e5b56f04230519a95b8fabe35d53f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08ca145fa5900879fc2c04c59228785e90132215b7255c08e1c4fe10898afb7d34390e3d80814baa1040ddc11e7d46ad1d94e7bda508d1810e4cc8a370a4400e'
|
|
7
|
+
data.tar.gz: e913f80e5dd886a4abf5637c9c7c0d51bf075471c5ec070c3d0c0a41a2e56a1f7b11382100d8439980590664ea94e0d5a3f4da3c470a0e902dd234a6e3349053
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Release history for google-apis-storage_v1
|
|
2
2
|
|
|
3
|
+
### v0.47.0 (2024-10-13)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20241008
|
|
6
|
+
|
|
7
|
+
### v0.46.0 (2024-09-29)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20240924
|
|
10
|
+
|
|
11
|
+
### v0.45.0 (2024-09-22)
|
|
12
|
+
|
|
13
|
+
* Regenerated from discovery document revision 20240916
|
|
14
|
+
|
|
15
|
+
### v0.44.0 (2024-08-25)
|
|
16
|
+
|
|
17
|
+
* Regenerated from discovery document revision 20240819
|
|
18
|
+
|
|
19
|
+
### v0.43.0 (2024-08-18)
|
|
20
|
+
|
|
21
|
+
* Regenerated from discovery document revision 20240809
|
|
22
|
+
|
|
23
|
+
### v0.42.0 (2024-08-11)
|
|
24
|
+
|
|
25
|
+
* Regenerated from discovery document revision 20240805
|
|
26
|
+
* Regenerated using generator version 0.15.1
|
|
27
|
+
|
|
28
|
+
### v0.41.0 (2024-07-25)
|
|
29
|
+
|
|
30
|
+
* Regenerated from discovery document revision 20240706
|
|
31
|
+
|
|
3
32
|
### v0.40.0 (2024-06-26)
|
|
4
33
|
|
|
5
34
|
* Regenerated from discovery document revision 20240621
|
|
@@ -22,6 +22,34 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module StorageV1
|
|
24
24
|
|
|
25
|
+
# An AdvanceRelocateBucketOperation request.
|
|
26
|
+
class AdvanceRelocateBucketOperationRequest
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Specifies the time when the relocation will revert to the sync stage if the
|
|
30
|
+
# relocation hasn't succeeded.
|
|
31
|
+
# Corresponds to the JSON property `expireTime`
|
|
32
|
+
# @return [DateTime]
|
|
33
|
+
attr_accessor :expire_time
|
|
34
|
+
|
|
35
|
+
# Specifies the duration after which the relocation will revert to the sync
|
|
36
|
+
# stage if the relocation hasn't succeeded. Optional, if not supplied, a default
|
|
37
|
+
# value of 12h will be used.
|
|
38
|
+
# Corresponds to the JSON property `ttl`
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :ttl
|
|
41
|
+
|
|
42
|
+
def initialize(**args)
|
|
43
|
+
update!(**args)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Update properties of this object
|
|
47
|
+
def update!(**args)
|
|
48
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
49
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
25
53
|
# An Anywhere Cache instance.
|
|
26
54
|
class AnywhereCache
|
|
27
55
|
include Google::Apis::Core::Hashable
|
|
@@ -204,6 +232,16 @@ module Google
|
|
|
204
232
|
# @return [String]
|
|
205
233
|
attr_accessor :etag
|
|
206
234
|
|
|
235
|
+
# The generation of this bucket.
|
|
236
|
+
# Corresponds to the JSON property `generation`
|
|
237
|
+
# @return [Fixnum]
|
|
238
|
+
attr_accessor :generation
|
|
239
|
+
|
|
240
|
+
# The hard delete time of the bucket in RFC 3339 format.
|
|
241
|
+
# Corresponds to the JSON property `hardDeleteTime`
|
|
242
|
+
# @return [DateTime]
|
|
243
|
+
attr_accessor :hard_delete_time
|
|
244
|
+
|
|
207
245
|
# The bucket's hierarchical namespace configuration.
|
|
208
246
|
# Corresponds to the JSON property `hierarchicalNamespace`
|
|
209
247
|
# @return [Google::Apis::StorageV1::Bucket::HierarchicalNamespace]
|
|
@@ -219,6 +257,13 @@ module Google
|
|
|
219
257
|
# @return [String]
|
|
220
258
|
attr_accessor :id
|
|
221
259
|
|
|
260
|
+
# The bucket's IP filter configuration. Specifies the network sources that are
|
|
261
|
+
# allowed to access the operations on the bucket, as well as its underlying
|
|
262
|
+
# objects. Only enforced when the mode is set to 'Enabled'.
|
|
263
|
+
# Corresponds to the JSON property `ipFilter`
|
|
264
|
+
# @return [Google::Apis::StorageV1::Bucket::IpFilter]
|
|
265
|
+
attr_accessor :ip_filter
|
|
266
|
+
|
|
222
267
|
# The kind of item this is. For buckets, this is always storage#bucket.
|
|
223
268
|
# Corresponds to the JSON property `kind`
|
|
224
269
|
# @return [String]
|
|
@@ -229,15 +274,16 @@ module Google
|
|
|
229
274
|
# @return [Hash<String,String>]
|
|
230
275
|
attr_accessor :labels
|
|
231
276
|
|
|
232
|
-
# The bucket's lifecycle configuration. See
|
|
233
|
-
# information.
|
|
277
|
+
# The bucket's lifecycle configuration. See [Lifecycle Management](https://cloud.
|
|
278
|
+
# google.com/storage/docs/lifecycle) for more information.
|
|
234
279
|
# Corresponds to the JSON property `lifecycle`
|
|
235
280
|
# @return [Google::Apis::StorageV1::Bucket::Lifecycle]
|
|
236
281
|
attr_accessor :lifecycle
|
|
237
282
|
|
|
238
283
|
# The location of the bucket. Object data for objects in the bucket resides in
|
|
239
|
-
# physical storage within this region. Defaults to US. See the
|
|
240
|
-
# for the authoritative
|
|
284
|
+
# physical storage within this region. Defaults to US. See the [Developer's
|
|
285
|
+
# Guide](https://cloud.google.com/storage/docs/locations) for the authoritative
|
|
286
|
+
# list.
|
|
241
287
|
# Corresponds to the JSON property `location`
|
|
242
288
|
# @return [String]
|
|
243
289
|
attr_accessor :location
|
|
@@ -297,6 +343,12 @@ module Google
|
|
|
297
343
|
# @return [String]
|
|
298
344
|
attr_accessor :rpo
|
|
299
345
|
|
|
346
|
+
# Reserved for future use.
|
|
347
|
+
# Corresponds to the JSON property `satisfiesPZI`
|
|
348
|
+
# @return [Boolean]
|
|
349
|
+
attr_accessor :satisfies_pzi
|
|
350
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
|
351
|
+
|
|
300
352
|
# Reserved for future use.
|
|
301
353
|
# Corresponds to the JSON property `satisfiesPZS`
|
|
302
354
|
# @return [Boolean]
|
|
@@ -314,13 +366,18 @@ module Google
|
|
|
314
366
|
# @return [Google::Apis::StorageV1::Bucket::SoftDeletePolicy]
|
|
315
367
|
attr_accessor :soft_delete_policy
|
|
316
368
|
|
|
369
|
+
# The soft delete time of the bucket in RFC 3339 format.
|
|
370
|
+
# Corresponds to the JSON property `softDeleteTime`
|
|
371
|
+
# @return [DateTime]
|
|
372
|
+
attr_accessor :soft_delete_time
|
|
373
|
+
|
|
317
374
|
# The bucket's default storage class, used whenever no storageClass is specified
|
|
318
375
|
# for a newly-created object. This defines how objects in the bucket are stored
|
|
319
376
|
# and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
|
|
320
377
|
# REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and
|
|
321
378
|
# DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket
|
|
322
|
-
# is created, it will default to STANDARD. For more information, see
|
|
323
|
-
# classes.
|
|
379
|
+
# is created, it will default to STANDARD. For more information, see [Storage
|
|
380
|
+
# Classes](https://cloud.google.com/storage/docs/storage-classes).
|
|
324
381
|
# Corresponds to the JSON property `storageClass`
|
|
325
382
|
# @return [String]
|
|
326
383
|
attr_accessor :storage_class
|
|
@@ -341,8 +398,8 @@ module Google
|
|
|
341
398
|
attr_accessor :versioning
|
|
342
399
|
|
|
343
400
|
# The bucket's website configuration, controlling how the service behaves when
|
|
344
|
-
# accessing bucket contents as a web site. See the Static Website Examples
|
|
345
|
-
# more information.
|
|
401
|
+
# accessing bucket contents as a web site. See the [Static Website Examples](
|
|
402
|
+
# https://cloud.google.com/storage/docs/static-website) for more information.
|
|
346
403
|
# Corresponds to the JSON property `website`
|
|
347
404
|
# @return [Google::Apis::StorageV1::Bucket::Website]
|
|
348
405
|
attr_accessor :website
|
|
@@ -362,9 +419,12 @@ module Google
|
|
|
362
419
|
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
|
|
363
420
|
@encryption = args[:encryption] if args.key?(:encryption)
|
|
364
421
|
@etag = args[:etag] if args.key?(:etag)
|
|
422
|
+
@generation = args[:generation] if args.key?(:generation)
|
|
423
|
+
@hard_delete_time = args[:hard_delete_time] if args.key?(:hard_delete_time)
|
|
365
424
|
@hierarchical_namespace = args[:hierarchical_namespace] if args.key?(:hierarchical_namespace)
|
|
366
425
|
@iam_configuration = args[:iam_configuration] if args.key?(:iam_configuration)
|
|
367
426
|
@id = args[:id] if args.key?(:id)
|
|
427
|
+
@ip_filter = args[:ip_filter] if args.key?(:ip_filter)
|
|
368
428
|
@kind = args[:kind] if args.key?(:kind)
|
|
369
429
|
@labels = args[:labels] if args.key?(:labels)
|
|
370
430
|
@lifecycle = args[:lifecycle] if args.key?(:lifecycle)
|
|
@@ -378,9 +438,11 @@ module Google
|
|
|
378
438
|
@project_number = args[:project_number] if args.key?(:project_number)
|
|
379
439
|
@retention_policy = args[:retention_policy] if args.key?(:retention_policy)
|
|
380
440
|
@rpo = args[:rpo] if args.key?(:rpo)
|
|
441
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
|
381
442
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
|
382
443
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
383
444
|
@soft_delete_policy = args[:soft_delete_policy] if args.key?(:soft_delete_policy)
|
|
445
|
+
@soft_delete_time = args[:soft_delete_time] if args.key?(:soft_delete_time)
|
|
384
446
|
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
|
385
447
|
@time_created = args[:time_created] if args.key?(:time_created)
|
|
386
448
|
@updated = args[:updated] if args.key?(:updated)
|
|
@@ -649,8 +711,89 @@ module Google
|
|
|
649
711
|
end
|
|
650
712
|
end
|
|
651
713
|
|
|
652
|
-
# The bucket's
|
|
653
|
-
#
|
|
714
|
+
# The bucket's IP filter configuration. Specifies the network sources that are
|
|
715
|
+
# allowed to access the operations on the bucket, as well as its underlying
|
|
716
|
+
# objects. Only enforced when the mode is set to 'Enabled'.
|
|
717
|
+
class IpFilter
|
|
718
|
+
include Google::Apis::Core::Hashable
|
|
719
|
+
|
|
720
|
+
# The mode of the IP filter. Valid values are 'Enabled' and 'Disabled'.
|
|
721
|
+
# Corresponds to the JSON property `mode`
|
|
722
|
+
# @return [String]
|
|
723
|
+
attr_accessor :mode
|
|
724
|
+
|
|
725
|
+
# The public network source of the bucket's IP filter.
|
|
726
|
+
# Corresponds to the JSON property `publicNetworkSource`
|
|
727
|
+
# @return [Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource]
|
|
728
|
+
attr_accessor :public_network_source
|
|
729
|
+
|
|
730
|
+
# The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of
|
|
731
|
+
# the bucket's IP filter.
|
|
732
|
+
# Corresponds to the JSON property `vpcNetworkSources`
|
|
733
|
+
# @return [Array<Google::Apis::StorageV1::Bucket::IpFilter::VpcNetworkSource>]
|
|
734
|
+
attr_accessor :vpc_network_sources
|
|
735
|
+
|
|
736
|
+
def initialize(**args)
|
|
737
|
+
update!(**args)
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
# Update properties of this object
|
|
741
|
+
def update!(**args)
|
|
742
|
+
@mode = args[:mode] if args.key?(:mode)
|
|
743
|
+
@public_network_source = args[:public_network_source] if args.key?(:public_network_source)
|
|
744
|
+
@vpc_network_sources = args[:vpc_network_sources] if args.key?(:vpc_network_sources)
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# The public network source of the bucket's IP filter.
|
|
748
|
+
class PublicNetworkSource
|
|
749
|
+
include Google::Apis::Core::Hashable
|
|
750
|
+
|
|
751
|
+
# The list of public IPv4, IPv6 cidr ranges that are allowed to access the
|
|
752
|
+
# bucket.
|
|
753
|
+
# Corresponds to the JSON property `allowedIpCidrRanges`
|
|
754
|
+
# @return [Array<String>]
|
|
755
|
+
attr_accessor :allowed_ip_cidr_ranges
|
|
756
|
+
|
|
757
|
+
def initialize(**args)
|
|
758
|
+
update!(**args)
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
# Update properties of this object
|
|
762
|
+
def update!(**args)
|
|
763
|
+
@allowed_ip_cidr_ranges = args[:allowed_ip_cidr_ranges] if args.key?(:allowed_ip_cidr_ranges)
|
|
764
|
+
end
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
#
|
|
768
|
+
class VpcNetworkSource
|
|
769
|
+
include Google::Apis::Core::Hashable
|
|
770
|
+
|
|
771
|
+
# The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the
|
|
772
|
+
# bucket.
|
|
773
|
+
# Corresponds to the JSON property `allowedIpCidrRanges`
|
|
774
|
+
# @return [Array<String>]
|
|
775
|
+
attr_accessor :allowed_ip_cidr_ranges
|
|
776
|
+
|
|
777
|
+
# Name of the network. Format: projects/`PROJECT_ID`/global/networks/`
|
|
778
|
+
# NETWORK_NAME`
|
|
779
|
+
# Corresponds to the JSON property `network`
|
|
780
|
+
# @return [String]
|
|
781
|
+
attr_accessor :network
|
|
782
|
+
|
|
783
|
+
def initialize(**args)
|
|
784
|
+
update!(**args)
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# Update properties of this object
|
|
788
|
+
def update!(**args)
|
|
789
|
+
@allowed_ip_cidr_ranges = args[:allowed_ip_cidr_ranges] if args.key?(:allowed_ip_cidr_ranges)
|
|
790
|
+
@network = args[:network] if args.key?(:network)
|
|
791
|
+
end
|
|
792
|
+
end
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
# The bucket's lifecycle configuration. See [Lifecycle Management](https://cloud.
|
|
796
|
+
# google.com/storage/docs/lifecycle) for more information.
|
|
654
797
|
class Lifecycle
|
|
655
798
|
include Google::Apis::Core::Hashable
|
|
656
799
|
|
|
@@ -994,8 +1137,8 @@ module Google
|
|
|
994
1137
|
end
|
|
995
1138
|
|
|
996
1139
|
# The bucket's website configuration, controlling how the service behaves when
|
|
997
|
-
# accessing bucket contents as a web site. See the Static Website Examples
|
|
998
|
-
# more information.
|
|
1140
|
+
# accessing bucket contents as a web site. See the [Static Website Examples](
|
|
1141
|
+
# https://cloud.google.com/storage/docs/static-website) for more information.
|
|
999
1142
|
class Website
|
|
1000
1143
|
include Google::Apis::Core::Hashable
|
|
1001
1144
|
|
|
@@ -2195,7 +2338,8 @@ module Google
|
|
|
2195
2338
|
|
|
2196
2339
|
# CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
|
|
2197
2340
|
# big-endian byte order. For more information about using the CRC32c checksum,
|
|
2198
|
-
# see
|
|
2341
|
+
# see [Data Validation and Change Detection](https://cloud.google.com/storage/
|
|
2342
|
+
# docs/data-validation).
|
|
2199
2343
|
# Corresponds to the JSON property `crc32c`
|
|
2200
2344
|
# @return [String]
|
|
2201
2345
|
attr_accessor :crc32c
|
|
@@ -2262,7 +2406,8 @@ module Google
|
|
|
2262
2406
|
attr_accessor :kms_key_name
|
|
2263
2407
|
|
|
2264
2408
|
# MD5 hash of the data; encoded using base64. For more information about using
|
|
2265
|
-
# the MD5 hash, see
|
|
2409
|
+
# the MD5 hash, see [Data Validation and Change Detection](https://cloud.google.
|
|
2410
|
+
# com/storage/docs/data-validation).
|
|
2266
2411
|
# Corresponds to the JSON property `md5Hash`
|
|
2267
2412
|
# @return [String]
|
|
2268
2413
|
attr_accessor :md5_hash
|
|
@@ -2295,6 +2440,13 @@ module Google
|
|
|
2295
2440
|
# @return [Google::Apis::StorageV1::Object::Owner]
|
|
2296
2441
|
attr_accessor :owner
|
|
2297
2442
|
|
|
2443
|
+
# Restore token used to differentiate deleted objects with the same name and
|
|
2444
|
+
# generation. This field is only returned for deleted objects in hierarchical
|
|
2445
|
+
# namespace buckets.
|
|
2446
|
+
# Corresponds to the JSON property `restoreToken`
|
|
2447
|
+
# @return [String]
|
|
2448
|
+
attr_accessor :restore_token
|
|
2449
|
+
|
|
2298
2450
|
# A collection of object level retention parameters.
|
|
2299
2451
|
# Corresponds to the JSON property `retention`
|
|
2300
2452
|
# @return [Google::Apis::StorageV1::Object::Retention]
|
|
@@ -2396,6 +2548,7 @@ module Google
|
|
|
2396
2548
|
@metageneration = args[:metageneration] if args.key?(:metageneration)
|
|
2397
2549
|
@name = args[:name] if args.key?(:name)
|
|
2398
2550
|
@owner = args[:owner] if args.key?(:owner)
|
|
2551
|
+
@restore_token = args[:restore_token] if args.key?(:restore_token)
|
|
2399
2552
|
@retention = args[:retention] if args.key?(:retention)
|
|
2400
2553
|
@retention_expiration_time = args[:retention_expiration_time] if args.key?(:retention_expiration_time)
|
|
2401
2554
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
@@ -2806,6 +2959,59 @@ module Google
|
|
|
2806
2959
|
end
|
|
2807
2960
|
end
|
|
2808
2961
|
|
|
2962
|
+
# A Relocate Bucket request.
|
|
2963
|
+
class RelocateBucketRequest
|
|
2964
|
+
include Google::Apis::Core::Hashable
|
|
2965
|
+
|
|
2966
|
+
# The bucket's new custom placement configuration if relocating to a Custom Dual
|
|
2967
|
+
# Region.
|
|
2968
|
+
# Corresponds to the JSON property `destinationCustomPlacementConfig`
|
|
2969
|
+
# @return [Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig]
|
|
2970
|
+
attr_accessor :destination_custom_placement_config
|
|
2971
|
+
|
|
2972
|
+
# The new location the bucket will be relocated to.
|
|
2973
|
+
# Corresponds to the JSON property `destinationLocation`
|
|
2974
|
+
# @return [String]
|
|
2975
|
+
attr_accessor :destination_location
|
|
2976
|
+
|
|
2977
|
+
# If true, validate the operation, but do not actually relocate the bucket.
|
|
2978
|
+
# Corresponds to the JSON property `validateOnly`
|
|
2979
|
+
# @return [Boolean]
|
|
2980
|
+
attr_accessor :validate_only
|
|
2981
|
+
alias_method :validate_only?, :validate_only
|
|
2982
|
+
|
|
2983
|
+
def initialize(**args)
|
|
2984
|
+
update!(**args)
|
|
2985
|
+
end
|
|
2986
|
+
|
|
2987
|
+
# Update properties of this object
|
|
2988
|
+
def update!(**args)
|
|
2989
|
+
@destination_custom_placement_config = args[:destination_custom_placement_config] if args.key?(:destination_custom_placement_config)
|
|
2990
|
+
@destination_location = args[:destination_location] if args.key?(:destination_location)
|
|
2991
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
|
2992
|
+
end
|
|
2993
|
+
|
|
2994
|
+
# The bucket's new custom placement configuration if relocating to a Custom Dual
|
|
2995
|
+
# Region.
|
|
2996
|
+
class DestinationCustomPlacementConfig
|
|
2997
|
+
include Google::Apis::Core::Hashable
|
|
2998
|
+
|
|
2999
|
+
# The list of regional locations in which data is placed.
|
|
3000
|
+
# Corresponds to the JSON property `dataLocations`
|
|
3001
|
+
# @return [Array<String>]
|
|
3002
|
+
attr_accessor :data_locations
|
|
3003
|
+
|
|
3004
|
+
def initialize(**args)
|
|
3005
|
+
update!(**args)
|
|
3006
|
+
end
|
|
3007
|
+
|
|
3008
|
+
# Update properties of this object
|
|
3009
|
+
def update!(**args)
|
|
3010
|
+
@data_locations = args[:data_locations] if args.key?(:data_locations)
|
|
3011
|
+
end
|
|
3012
|
+
end
|
|
3013
|
+
end
|
|
3014
|
+
|
|
2809
3015
|
# A rewrite response.
|
|
2810
3016
|
class RewriteResponse
|
|
2811
3017
|
include Google::Apis::Core::Hashable
|
|
@@ -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.47.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.15.
|
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20241008"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,6 +22,12 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module StorageV1
|
|
24
24
|
|
|
25
|
+
class AdvanceRelocateBucketOperationRequest
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
25
31
|
class AnywhereCache
|
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
33
|
|
|
@@ -91,6 +97,24 @@ module Google
|
|
|
91
97
|
include Google::Apis::Core::JsonObjectSupport
|
|
92
98
|
end
|
|
93
99
|
|
|
100
|
+
class IpFilter
|
|
101
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
102
|
+
|
|
103
|
+
class PublicNetworkSource
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class VpcNetworkSource
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
116
|
+
end
|
|
117
|
+
|
|
94
118
|
class Lifecycle
|
|
95
119
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
96
120
|
|
|
@@ -376,6 +400,18 @@ module Google
|
|
|
376
400
|
include Google::Apis::Core::JsonObjectSupport
|
|
377
401
|
end
|
|
378
402
|
|
|
403
|
+
class RelocateBucketRequest
|
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
405
|
+
|
|
406
|
+
class DestinationCustomPlacementConfig
|
|
407
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
408
|
+
|
|
409
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
413
|
+
end
|
|
414
|
+
|
|
379
415
|
class RewriteResponse
|
|
380
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
381
417
|
|
|
@@ -394,6 +430,15 @@ module Google
|
|
|
394
430
|
include Google::Apis::Core::JsonObjectSupport
|
|
395
431
|
end
|
|
396
432
|
|
|
433
|
+
class AdvanceRelocateBucketOperationRequest
|
|
434
|
+
# @private
|
|
435
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
436
|
+
property :expire_time, as: 'expireTime', type: DateTime
|
|
437
|
+
|
|
438
|
+
property :ttl, as: 'ttl'
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
|
|
397
442
|
class AnywhereCache
|
|
398
443
|
# @private
|
|
399
444
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -443,11 +488,16 @@ module Google
|
|
|
443
488
|
property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
|
|
444
489
|
|
|
445
490
|
property :etag, as: 'etag'
|
|
491
|
+
property :generation, :numeric_string => true, as: 'generation'
|
|
492
|
+
property :hard_delete_time, as: 'hardDeleteTime', type: DateTime
|
|
493
|
+
|
|
446
494
|
property :hierarchical_namespace, as: 'hierarchicalNamespace', class: Google::Apis::StorageV1::Bucket::HierarchicalNamespace, decorator: Google::Apis::StorageV1::Bucket::HierarchicalNamespace::Representation
|
|
447
495
|
|
|
448
496
|
property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation
|
|
449
497
|
|
|
450
498
|
property :id, as: 'id'
|
|
499
|
+
property :ip_filter, as: 'ipFilter', class: Google::Apis::StorageV1::Bucket::IpFilter, decorator: Google::Apis::StorageV1::Bucket::IpFilter::Representation
|
|
500
|
+
|
|
451
501
|
property :kind, as: 'kind'
|
|
452
502
|
hash :labels, as: 'labels'
|
|
453
503
|
property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1::Bucket::Lifecycle, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Representation
|
|
@@ -466,10 +516,13 @@ module Google
|
|
|
466
516
|
property :retention_policy, as: 'retentionPolicy', class: Google::Apis::StorageV1::Bucket::RetentionPolicy, decorator: Google::Apis::StorageV1::Bucket::RetentionPolicy::Representation
|
|
467
517
|
|
|
468
518
|
property :rpo, as: 'rpo'
|
|
519
|
+
property :satisfies_pzi, as: 'satisfiesPZI'
|
|
469
520
|
property :satisfies_pzs, as: 'satisfiesPZS'
|
|
470
521
|
property :self_link, as: 'selfLink'
|
|
471
522
|
property :soft_delete_policy, as: 'softDeletePolicy', class: Google::Apis::StorageV1::Bucket::SoftDeletePolicy, decorator: Google::Apis::StorageV1::Bucket::SoftDeletePolicy::Representation
|
|
472
523
|
|
|
524
|
+
property :soft_delete_time, as: 'softDeleteTime', type: DateTime
|
|
525
|
+
|
|
473
526
|
property :storage_class, as: 'storageClass'
|
|
474
527
|
property :time_created, as: 'timeCreated', type: DateTime
|
|
475
528
|
|
|
@@ -560,6 +613,32 @@ module Google
|
|
|
560
613
|
end
|
|
561
614
|
end
|
|
562
615
|
|
|
616
|
+
class IpFilter
|
|
617
|
+
# @private
|
|
618
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
619
|
+
property :mode, as: 'mode'
|
|
620
|
+
property :public_network_source, as: 'publicNetworkSource', class: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource, decorator: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource::Representation
|
|
621
|
+
|
|
622
|
+
collection :vpc_network_sources, as: 'vpcNetworkSources', class: Google::Apis::StorageV1::Bucket::IpFilter::VpcNetworkSource, decorator: Google::Apis::StorageV1::Bucket::IpFilter::VpcNetworkSource::Representation
|
|
623
|
+
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
class PublicNetworkSource
|
|
627
|
+
# @private
|
|
628
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
629
|
+
collection :allowed_ip_cidr_ranges, as: 'allowedIpCidrRanges'
|
|
630
|
+
end
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
class VpcNetworkSource
|
|
634
|
+
# @private
|
|
635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
636
|
+
collection :allowed_ip_cidr_ranges, as: 'allowedIpCidrRanges'
|
|
637
|
+
property :network, as: 'network'
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
end
|
|
641
|
+
|
|
563
642
|
class Lifecycle
|
|
564
643
|
# @private
|
|
565
644
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -993,6 +1072,7 @@ module Google
|
|
|
993
1072
|
property :name, as: 'name'
|
|
994
1073
|
property :owner, as: 'owner', class: Google::Apis::StorageV1::Object::Owner, decorator: Google::Apis::StorageV1::Object::Owner::Representation
|
|
995
1074
|
|
|
1075
|
+
property :restore_token, as: 'restoreToken'
|
|
996
1076
|
property :retention, as: 'retention', class: Google::Apis::StorageV1::Object::Retention, decorator: Google::Apis::StorageV1::Object::Retention::Representation
|
|
997
1077
|
|
|
998
1078
|
property :retention_expiration_time, as: 'retentionExpirationTime', type: DateTime
|
|
@@ -1109,6 +1189,23 @@ module Google
|
|
|
1109
1189
|
end
|
|
1110
1190
|
end
|
|
1111
1191
|
|
|
1192
|
+
class RelocateBucketRequest
|
|
1193
|
+
# @private
|
|
1194
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1195
|
+
property :destination_custom_placement_config, as: 'destinationCustomPlacementConfig', class: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig, decorator: Google::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig::Representation
|
|
1196
|
+
|
|
1197
|
+
property :destination_location, as: 'destinationLocation'
|
|
1198
|
+
property :validate_only, as: 'validateOnly'
|
|
1199
|
+
end
|
|
1200
|
+
|
|
1201
|
+
class DestinationCustomPlacementConfig
|
|
1202
|
+
# @private
|
|
1203
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1204
|
+
collection :data_locations, as: 'dataLocations'
|
|
1205
|
+
end
|
|
1206
|
+
end
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1112
1209
|
class RewriteResponse
|
|
1113
1210
|
# @private
|
|
1114
1211
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -554,7 +554,8 @@ module Google
|
|
|
554
554
|
execute_or_queue_command(command, &block)
|
|
555
555
|
end
|
|
556
556
|
|
|
557
|
-
#
|
|
557
|
+
# Deletes an empty bucket. Deletions are permanent unless soft delete is enabled
|
|
558
|
+
# on the bucket.
|
|
558
559
|
# @param [String] bucket
|
|
559
560
|
# Name of a bucket.
|
|
560
561
|
# @param [Fixnum] if_metageneration_match
|
|
@@ -598,6 +599,9 @@ module Google
|
|
|
598
599
|
# Returns metadata for the specified bucket.
|
|
599
600
|
# @param [String] bucket
|
|
600
601
|
# Name of a bucket.
|
|
602
|
+
# @param [Fixnum] generation
|
|
603
|
+
# If present, specifies the generation of the bucket. This is required if
|
|
604
|
+
# softDeleted is true.
|
|
601
605
|
# @param [Fixnum] if_metageneration_match
|
|
602
606
|
# Makes the return of the bucket metadata conditional on whether the bucket's
|
|
603
607
|
# current metageneration matches the given value.
|
|
@@ -606,6 +610,10 @@ module Google
|
|
|
606
610
|
# current metageneration does not match the given value.
|
|
607
611
|
# @param [String] projection
|
|
608
612
|
# Set of properties to return. Defaults to noAcl.
|
|
613
|
+
# @param [Boolean] soft_deleted
|
|
614
|
+
# If true, return the soft-deleted version of this bucket. The default is false.
|
|
615
|
+
# For more information, see [Soft Delete](https://cloud.google.com/storage/docs/
|
|
616
|
+
# soft-delete).
|
|
609
617
|
# @param [String] user_project
|
|
610
618
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
611
619
|
# @param [String] fields
|
|
@@ -627,14 +635,16 @@ module Google
|
|
|
627
635
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
628
636
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
629
637
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
630
|
-
def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
638
|
+
def get_bucket(bucket, generation: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
631
639
|
command = make_simple_command(:get, 'b/{bucket}', options)
|
|
632
640
|
command.response_representation = Google::Apis::StorageV1::Bucket::Representation
|
|
633
641
|
command.response_class = Google::Apis::StorageV1::Bucket
|
|
634
642
|
command.params['bucket'] = bucket unless bucket.nil?
|
|
643
|
+
command.query['generation'] = generation unless generation.nil?
|
|
635
644
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
636
645
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
|
637
646
|
command.query['projection'] = projection unless projection.nil?
|
|
647
|
+
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
|
638
648
|
command.query['userProject'] = user_project unless user_project.nil?
|
|
639
649
|
command.query['fields'] = fields unless fields.nil?
|
|
640
650
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -786,6 +796,10 @@ module Google
|
|
|
786
796
|
# Filter results to buckets whose names begin with this prefix.
|
|
787
797
|
# @param [String] projection
|
|
788
798
|
# Set of properties to return. Defaults to noAcl.
|
|
799
|
+
# @param [Boolean] soft_deleted
|
|
800
|
+
# If true, only soft-deleted bucket versions will be returned. The default is
|
|
801
|
+
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
|
802
|
+
# storage/docs/soft-delete).
|
|
789
803
|
# @param [String] user_project
|
|
790
804
|
# The project to be billed for this request.
|
|
791
805
|
# @param [String] fields
|
|
@@ -807,7 +821,7 @@ module Google
|
|
|
807
821
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
808
822
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
809
823
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
810
|
-
def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
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)
|
|
811
825
|
command = make_simple_command(:get, 'b', options)
|
|
812
826
|
command.response_representation = Google::Apis::StorageV1::Buckets::Representation
|
|
813
827
|
command.response_class = Google::Apis::StorageV1::Buckets
|
|
@@ -816,6 +830,7 @@ module Google
|
|
|
816
830
|
command.query['prefix'] = prefix unless prefix.nil?
|
|
817
831
|
command.query['project'] = project unless project.nil?
|
|
818
832
|
command.query['projection'] = projection unless projection.nil?
|
|
833
|
+
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
|
819
834
|
command.query['userProject'] = user_project unless user_project.nil?
|
|
820
835
|
command.query['fields'] = fields unless fields.nil?
|
|
821
836
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -920,6 +935,79 @@ module Google
|
|
|
920
935
|
execute_or_queue_command(command, &block)
|
|
921
936
|
end
|
|
922
937
|
|
|
938
|
+
# Initiates a long-running Relocate Bucket operation on the specified bucket.
|
|
939
|
+
# @param [String] bucket
|
|
940
|
+
# Name of the bucket to be moved.
|
|
941
|
+
# @param [Google::Apis::StorageV1::RelocateBucketRequest] relocate_bucket_request_object
|
|
942
|
+
# @param [String] fields
|
|
943
|
+
# Selector specifying which fields to include in a partial response.
|
|
944
|
+
# @param [String] quota_user
|
|
945
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
946
|
+
# characters.
|
|
947
|
+
# @param [String] user_ip
|
|
948
|
+
# Deprecated. Please use quotaUser instead.
|
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
|
950
|
+
# Request-specific options
|
|
951
|
+
#
|
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
|
953
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
955
|
+
#
|
|
956
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
|
957
|
+
#
|
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
961
|
+
def relocate_bucket(bucket, relocate_bucket_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
962
|
+
command = make_simple_command(:post, 'b/{bucket}/relocate', options)
|
|
963
|
+
command.request_representation = Google::Apis::StorageV1::RelocateBucketRequest::Representation
|
|
964
|
+
command.request_object = relocate_bucket_request_object
|
|
965
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
|
966
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
|
967
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
971
|
+
execute_or_queue_command(command, &block)
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
# Restores a soft-deleted bucket.
|
|
975
|
+
# @param [String] bucket
|
|
976
|
+
# Name of a bucket.
|
|
977
|
+
# @param [Fixnum] generation
|
|
978
|
+
# Generation of a bucket.
|
|
979
|
+
# @param [String] user_project
|
|
980
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
981
|
+
# @param [String] fields
|
|
982
|
+
# Selector specifying which fields to include in a partial response.
|
|
983
|
+
# @param [String] quota_user
|
|
984
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
985
|
+
# characters.
|
|
986
|
+
# @param [String] user_ip
|
|
987
|
+
# Deprecated. Please use quotaUser instead.
|
|
988
|
+
# @param [Google::Apis::RequestOptions] options
|
|
989
|
+
# Request-specific options
|
|
990
|
+
#
|
|
991
|
+
# @yield [result, err] Result & error if block supplied
|
|
992
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
993
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
994
|
+
#
|
|
995
|
+
# @return [void]
|
|
996
|
+
#
|
|
997
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
998
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
999
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1000
|
+
def restore_bucket(bucket, generation, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1001
|
+
command = make_simple_command(:post, 'b/{bucket}/restore', options)
|
|
1002
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
1003
|
+
command.query['generation'] = generation unless generation.nil?
|
|
1004
|
+
command.query['userProject'] = user_project unless user_project.nil?
|
|
1005
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1006
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1007
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1008
|
+
execute_or_queue_command(command, &block)
|
|
1009
|
+
end
|
|
1010
|
+
|
|
923
1011
|
# Updates an IAM policy for the specified bucket.
|
|
924
1012
|
# @param [String] bucket
|
|
925
1013
|
# Name of a bucket.
|
|
@@ -2608,9 +2696,16 @@ module Google
|
|
|
2608
2696
|
# does not match the given value.
|
|
2609
2697
|
# @param [String] projection
|
|
2610
2698
|
# Set of properties to return. Defaults to noAcl.
|
|
2699
|
+
# @param [String] restore_token
|
|
2700
|
+
# Restore token used to differentiate soft-deleted objects with the same name
|
|
2701
|
+
# and generation. Only applicable for hierarchical namespace buckets and if
|
|
2702
|
+
# softDeleted is set to true. This parameter is optional, and is only required
|
|
2703
|
+
# in the rare case when there are multiple soft-deleted objects with the same
|
|
2704
|
+
# name and generation.
|
|
2611
2705
|
# @param [Boolean] soft_deleted
|
|
2612
2706
|
# If true, only soft-deleted object versions will be listed. The default is
|
|
2613
|
-
# false. For more information, see Soft Delete.
|
|
2707
|
+
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
|
2708
|
+
# storage/docs/soft-delete).
|
|
2614
2709
|
# @param [String] user_project
|
|
2615
2710
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2616
2711
|
# @param [String] fields
|
|
@@ -2634,7 +2729,7 @@ module Google
|
|
|
2634
2729
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2635
2730
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2636
2731
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2637
|
-
def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
2732
|
+
def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, restore_token: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
2638
2733
|
|
|
2639
2734
|
if download_dest.nil?
|
|
2640
2735
|
command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
|
|
@@ -2652,6 +2747,7 @@ module Google
|
|
|
2652
2747
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
2653
2748
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
|
2654
2749
|
command.query['projection'] = projection unless projection.nil?
|
|
2750
|
+
command.query['restoreToken'] = restore_token unless restore_token.nil?
|
|
2655
2751
|
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
|
2656
2752
|
command.query['userProject'] = user_project unless user_project.nil?
|
|
2657
2753
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -2834,7 +2930,8 @@ module Google
|
|
|
2834
2930
|
# Set of properties to return. Defaults to noAcl.
|
|
2835
2931
|
# @param [Boolean] soft_deleted
|
|
2836
2932
|
# If true, only soft-deleted object versions will be listed. The default is
|
|
2837
|
-
# false. For more information, see Soft Delete.
|
|
2933
|
+
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
|
2934
|
+
# storage/docs/soft-delete).
|
|
2838
2935
|
# @param [String] start_offset
|
|
2839
2936
|
# Filter results to objects whose names are lexicographically equal to or after
|
|
2840
2937
|
# startOffset. If endOffset is also set, the objects listed will have names
|
|
@@ -2843,7 +2940,8 @@ module Google
|
|
|
2843
2940
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2844
2941
|
# @param [Boolean] versions
|
|
2845
2942
|
# If true, lists all versions of an object as distinct results. The default is
|
|
2846
|
-
# false. For more information, see Object Versioning.
|
|
2943
|
+
# false. For more information, see [Object Versioning](https://cloud.google.com/
|
|
2944
|
+
# storage/docs/object-versioning).
|
|
2847
2945
|
# @param [String] fields
|
|
2848
2946
|
# Selector specifying which fields to include in a partial response.
|
|
2849
2947
|
# @param [String] quota_user
|
|
@@ -2969,7 +3067,8 @@ module Google
|
|
|
2969
3067
|
# Name of the bucket in which the object resides.
|
|
2970
3068
|
# @param [String] object
|
|
2971
3069
|
# Name of the object. For information about how to URL encode object names to be
|
|
2972
|
-
# path safe, see Encoding URI Path Parts.
|
|
3070
|
+
# path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/
|
|
3071
|
+
# request-endpoints#encoding).
|
|
2973
3072
|
# @param [Fixnum] generation
|
|
2974
3073
|
# Selects a specific revision of this object.
|
|
2975
3074
|
# @param [Boolean] copy_source_acl
|
|
@@ -2992,6 +3091,11 @@ module Google
|
|
|
2992
3091
|
# metagenerations match the given value.
|
|
2993
3092
|
# @param [String] projection
|
|
2994
3093
|
# Set of properties to return. Defaults to full.
|
|
3094
|
+
# @param [String] restore_token
|
|
3095
|
+
# Restore token used to differentiate sof-deleted objects with the same name and
|
|
3096
|
+
# generation. Only applicable for hierarchical namespace buckets. This parameter
|
|
3097
|
+
# is optional, and is only required in the rare case when there are multiple
|
|
3098
|
+
# soft-deleted objects with the same name and generation.
|
|
2995
3099
|
# @param [String] user_project
|
|
2996
3100
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2997
3101
|
# @param [String] fields
|
|
@@ -3013,7 +3117,7 @@ module Google
|
|
|
3013
3117
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3014
3118
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3015
3119
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3016
|
-
def restore_object(bucket, object, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3120
|
+
def restore_object(bucket, object, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, restore_token: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3017
3121
|
command = make_simple_command(:post, 'b/{bucket}/o/{object}/restore', options)
|
|
3018
3122
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
|
3019
3123
|
command.response_class = Google::Apis::StorageV1::Object
|
|
@@ -3026,6 +3130,7 @@ module Google
|
|
|
3026
3130
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
|
3027
3131
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
|
3028
3132
|
command.query['projection'] = projection unless projection.nil?
|
|
3133
|
+
command.query['restoreToken'] = restore_token unless restore_token.nil?
|
|
3029
3134
|
command.query['userProject'] = user_project unless user_project.nil?
|
|
3030
3135
|
command.query['fields'] = fields unless fields.nil?
|
|
3031
3136
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -3365,7 +3470,8 @@ module Google
|
|
|
3365
3470
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
3366
3471
|
# @param [Boolean] versions
|
|
3367
3472
|
# If true, lists all versions of an object as distinct results. The default is
|
|
3368
|
-
# false. For more information, see Object Versioning.
|
|
3473
|
+
# false. For more information, see [Object Versioning](https://cloud.google.com/
|
|
3474
|
+
# storage/docs/object-versioning).
|
|
3369
3475
|
# @param [String] fields
|
|
3370
3476
|
# Selector specifying which fields to include in a partial response.
|
|
3371
3477
|
# @param [String] quota_user
|
|
@@ -3408,6 +3514,46 @@ module Google
|
|
|
3408
3514
|
execute_or_queue_command(command, &block)
|
|
3409
3515
|
end
|
|
3410
3516
|
|
|
3517
|
+
# Starts asynchronous advancement of the relocate bucket operation in the case
|
|
3518
|
+
# of required write downtime, to allow it to lock the bucket at the source
|
|
3519
|
+
# location, and proceed with the bucket location swap. The server makes a best
|
|
3520
|
+
# effort to advance the relocate bucket operation, but success is not guaranteed.
|
|
3521
|
+
# @param [String] bucket
|
|
3522
|
+
# Name of the bucket to advance the relocate for.
|
|
3523
|
+
# @param [String] operation_id
|
|
3524
|
+
# ID of the operation resource.
|
|
3525
|
+
# @param [Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest] advance_relocate_bucket_operation_request_object
|
|
3526
|
+
# @param [String] fields
|
|
3527
|
+
# Selector specifying which fields to include in a partial response.
|
|
3528
|
+
# @param [String] quota_user
|
|
3529
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
3530
|
+
# characters.
|
|
3531
|
+
# @param [String] user_ip
|
|
3532
|
+
# Deprecated. Please use quotaUser instead.
|
|
3533
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3534
|
+
# Request-specific options
|
|
3535
|
+
#
|
|
3536
|
+
# @yield [result, err] Result & error if block supplied
|
|
3537
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
3538
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3539
|
+
#
|
|
3540
|
+
# @return [void]
|
|
3541
|
+
#
|
|
3542
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3543
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3544
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3545
|
+
def advance_relocate_bucket_operation(bucket, operation_id, advance_relocate_bucket_operation_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3546
|
+
command = make_simple_command(:post, 'b/{bucket}/operations/{operationId}/advanceRelocateBucket', options)
|
|
3547
|
+
command.request_representation = Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest::Representation
|
|
3548
|
+
command.request_object = advance_relocate_bucket_operation_request_object
|
|
3549
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
|
3550
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
|
3551
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3552
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3553
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3554
|
+
execute_or_queue_command(command, &block)
|
|
3555
|
+
end
|
|
3556
|
+
|
|
3411
3557
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
3412
3558
|
# a best effort to cancel the operation, but success is not guaranteed.
|
|
3413
3559
|
# @param [String] bucket
|
|
@@ -3693,8 +3839,9 @@ module Google
|
|
|
3693
3839
|
execute_or_queue_command(command, &block)
|
|
3694
3840
|
end
|
|
3695
3841
|
|
|
3696
|
-
# Updates the state of an HMAC key. See the HMAC Key resource descriptor
|
|
3697
|
-
#
|
|
3842
|
+
# Updates the state of an HMAC key. See the [HMAC Key resource descriptor](https:
|
|
3843
|
+
# //cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-
|
|
3844
|
+
# body) for valid states.
|
|
3698
3845
|
# @param [String] project_id
|
|
3699
3846
|
# Project ID owning the service account of the updated key.
|
|
3700
3847
|
# @param [String] access_id
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.47.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-10-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -58,7 +58,7 @@ licenses:
|
|
|
58
58
|
metadata:
|
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.47.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
76
|
version: '0'
|
|
77
77
|
requirements: []
|
|
78
|
-
rubygems_version: 3.5.
|
|
78
|
+
rubygems_version: 3.5.21
|
|
79
79
|
signing_key:
|
|
80
80
|
specification_version: 4
|
|
81
81
|
summary: Simple REST client for Cloud Storage JSON API V1
|