google-apis-storage_v1 0.50.0 → 0.55.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 +22 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/storage_v1/classes.rb +191 -0
- data/lib/google/apis/storage_v1/gem_version.rb +3 -3
- data/lib/google/apis/storage_v1/representations.rb +86 -0
- data/lib/google/apis/storage_v1/service.rb +9 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e333e2216ef01585673681364a1f62ae580635db8a9d0f251f88112be0370b
|
4
|
+
data.tar.gz: cea61a6a402ea10d90d6ad9017682aa98f756542575e823b56bad4a154dcf85a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed00c5eb2b68f5789285511bb645ccd9934d96fd31e8c8013f6ac3e5b043264570d398c70eda6b62a60b8f87e0fc4aa69fa1e308636b68adb083e86aab54297
|
7
|
+
data.tar.gz: 0151da3405000d63b8f950ee760423ee478d2a8e50e36f371c99b27ef374b606ad2fe8e7c5bdc57bd73d1834ffa7dc148b69366280919f70d1f66b0db9bce83a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.55.0 (2025-07-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250718
|
6
|
+
|
7
|
+
### v0.54.0 (2025-07-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250629
|
10
|
+
|
11
|
+
### v0.53.0 (2025-06-15)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20250605
|
14
|
+
|
15
|
+
### v0.52.0 (2025-06-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20250524
|
18
|
+
* Regenerated using generator version 0.18.0
|
19
|
+
|
20
|
+
### v0.51.0 (2025-05-04)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20250424
|
23
|
+
* Regenerated using generator version 0.17.0
|
24
|
+
|
3
25
|
### v0.50.0 (2025-03-02)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20250224
|
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
|
86
|
+
This library is supported on Ruby 3.1+.
|
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
|
|
@@ -577,19 +577,135 @@ module Google
|
|
577
577
|
class Encryption
|
578
578
|
include Google::Apis::Core::Hashable
|
579
579
|
|
580
|
+
# If set, the new objects created in this bucket must comply with this
|
581
|
+
# enforcement config. Changing this has no effect on existing objects; it
|
582
|
+
# applies to new objects only. If omitted, the new objects are allowed to be
|
583
|
+
# encrypted with Customer Managed Encryption type by default.
|
584
|
+
# Corresponds to the JSON property `customerManagedEncryptionEnforcementConfig`
|
585
|
+
# @return [Google::Apis::StorageV1::Bucket::Encryption::CustomerManagedEncryptionEnforcementConfig]
|
586
|
+
attr_accessor :customer_managed_encryption_enforcement_config
|
587
|
+
|
588
|
+
# If set, the new objects created in this bucket must comply with this
|
589
|
+
# enforcement config. Changing this has no effect on existing objects; it
|
590
|
+
# applies to new objects only. If omitted, the new objects are allowed to be
|
591
|
+
# encrypted with Customer Supplied Encryption type by default.
|
592
|
+
# Corresponds to the JSON property `customerSuppliedEncryptionEnforcementConfig`
|
593
|
+
# @return [Google::Apis::StorageV1::Bucket::Encryption::CustomerSuppliedEncryptionEnforcementConfig]
|
594
|
+
attr_accessor :customer_supplied_encryption_enforcement_config
|
595
|
+
|
580
596
|
# A Cloud KMS key that will be used to encrypt objects inserted into this bucket,
|
581
597
|
# if no encryption method is specified.
|
582
598
|
# Corresponds to the JSON property `defaultKmsKeyName`
|
583
599
|
# @return [String]
|
584
600
|
attr_accessor :default_kms_key_name
|
585
601
|
|
602
|
+
# If set, the new objects created in this bucket must comply with this
|
603
|
+
# enforcement config. Changing this has no effect on existing objects; it
|
604
|
+
# applies to new objects only. If omitted, the new objects are allowed to be
|
605
|
+
# encrypted with Google Managed Encryption type by default.
|
606
|
+
# Corresponds to the JSON property `googleManagedEncryptionEnforcementConfig`
|
607
|
+
# @return [Google::Apis::StorageV1::Bucket::Encryption::GoogleManagedEncryptionEnforcementConfig]
|
608
|
+
attr_accessor :google_managed_encryption_enforcement_config
|
609
|
+
|
586
610
|
def initialize(**args)
|
587
611
|
update!(**args)
|
588
612
|
end
|
589
613
|
|
590
614
|
# Update properties of this object
|
591
615
|
def update!(**args)
|
616
|
+
@customer_managed_encryption_enforcement_config = args[:customer_managed_encryption_enforcement_config] if args.key?(:customer_managed_encryption_enforcement_config)
|
617
|
+
@customer_supplied_encryption_enforcement_config = args[:customer_supplied_encryption_enforcement_config] if args.key?(:customer_supplied_encryption_enforcement_config)
|
592
618
|
@default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
|
619
|
+
@google_managed_encryption_enforcement_config = args[:google_managed_encryption_enforcement_config] if args.key?(:google_managed_encryption_enforcement_config)
|
620
|
+
end
|
621
|
+
|
622
|
+
# If set, the new objects created in this bucket must comply with this
|
623
|
+
# enforcement config. Changing this has no effect on existing objects; it
|
624
|
+
# applies to new objects only. If omitted, the new objects are allowed to be
|
625
|
+
# encrypted with Customer Managed Encryption type by default.
|
626
|
+
class CustomerManagedEncryptionEnforcementConfig
|
627
|
+
include Google::Apis::Core::Hashable
|
628
|
+
|
629
|
+
# Server-determined value that indicates the time from which configuration was
|
630
|
+
# enforced and effective. This value is in RFC 3339 format.
|
631
|
+
# Corresponds to the JSON property `effectiveTime`
|
632
|
+
# @return [DateTime]
|
633
|
+
attr_accessor :effective_time
|
634
|
+
|
635
|
+
# Restriction mode for Customer-Managed Encryption Keys. Defaults to
|
636
|
+
# NotRestricted.
|
637
|
+
# Corresponds to the JSON property `restrictionMode`
|
638
|
+
# @return [String]
|
639
|
+
attr_accessor :restriction_mode
|
640
|
+
|
641
|
+
def initialize(**args)
|
642
|
+
update!(**args)
|
643
|
+
end
|
644
|
+
|
645
|
+
# Update properties of this object
|
646
|
+
def update!(**args)
|
647
|
+
@effective_time = args[:effective_time] if args.key?(:effective_time)
|
648
|
+
@restriction_mode = args[:restriction_mode] if args.key?(:restriction_mode)
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
# If set, the new objects created in this bucket must comply with this
|
653
|
+
# enforcement config. Changing this has no effect on existing objects; it
|
654
|
+
# applies to new objects only. If omitted, the new objects are allowed to be
|
655
|
+
# encrypted with Customer Supplied Encryption type by default.
|
656
|
+
class CustomerSuppliedEncryptionEnforcementConfig
|
657
|
+
include Google::Apis::Core::Hashable
|
658
|
+
|
659
|
+
# Server-determined value that indicates the time from which configuration was
|
660
|
+
# enforced and effective. This value is in RFC 3339 format.
|
661
|
+
# Corresponds to the JSON property `effectiveTime`
|
662
|
+
# @return [DateTime]
|
663
|
+
attr_accessor :effective_time
|
664
|
+
|
665
|
+
# Restriction mode for Customer-Supplied Encryption Keys. Defaults to
|
666
|
+
# NotRestricted.
|
667
|
+
# Corresponds to the JSON property `restrictionMode`
|
668
|
+
# @return [String]
|
669
|
+
attr_accessor :restriction_mode
|
670
|
+
|
671
|
+
def initialize(**args)
|
672
|
+
update!(**args)
|
673
|
+
end
|
674
|
+
|
675
|
+
# Update properties of this object
|
676
|
+
def update!(**args)
|
677
|
+
@effective_time = args[:effective_time] if args.key?(:effective_time)
|
678
|
+
@restriction_mode = args[:restriction_mode] if args.key?(:restriction_mode)
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
# If set, the new objects created in this bucket must comply with this
|
683
|
+
# enforcement config. Changing this has no effect on existing objects; it
|
684
|
+
# applies to new objects only. If omitted, the new objects are allowed to be
|
685
|
+
# encrypted with Google Managed Encryption type by default.
|
686
|
+
class GoogleManagedEncryptionEnforcementConfig
|
687
|
+
include Google::Apis::Core::Hashable
|
688
|
+
|
689
|
+
# Server-determined value that indicates the time from which configuration was
|
690
|
+
# enforced and effective. This value is in RFC 3339 format.
|
691
|
+
# Corresponds to the JSON property `effectiveTime`
|
692
|
+
# @return [DateTime]
|
693
|
+
attr_accessor :effective_time
|
694
|
+
|
695
|
+
# Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
|
696
|
+
# Corresponds to the JSON property `restrictionMode`
|
697
|
+
# @return [String]
|
698
|
+
attr_accessor :restriction_mode
|
699
|
+
|
700
|
+
def initialize(**args)
|
701
|
+
update!(**args)
|
702
|
+
end
|
703
|
+
|
704
|
+
# Update properties of this object
|
705
|
+
def update!(**args)
|
706
|
+
@effective_time = args[:effective_time] if args.key?(:effective_time)
|
707
|
+
@restriction_mode = args[:restriction_mode] if args.key?(:restriction_mode)
|
708
|
+
end
|
593
709
|
end
|
594
710
|
end
|
595
711
|
|
@@ -717,6 +833,19 @@ module Google
|
|
717
833
|
class IpFilter
|
718
834
|
include Google::Apis::Core::Hashable
|
719
835
|
|
836
|
+
# Whether to allow all service agents to access the bucket regardless of the IP
|
837
|
+
# filter configuration.
|
838
|
+
# Corresponds to the JSON property `allowAllServiceAgentAccess`
|
839
|
+
# @return [Boolean]
|
840
|
+
attr_accessor :allow_all_service_agent_access
|
841
|
+
alias_method :allow_all_service_agent_access?, :allow_all_service_agent_access
|
842
|
+
|
843
|
+
# Whether to allow cross-org VPCs in the bucket's IP filter configuration.
|
844
|
+
# Corresponds to the JSON property `allowCrossOrgVpcs`
|
845
|
+
# @return [Boolean]
|
846
|
+
attr_accessor :allow_cross_org_vpcs
|
847
|
+
alias_method :allow_cross_org_vpcs?, :allow_cross_org_vpcs
|
848
|
+
|
720
849
|
# The mode of the IP filter. Valid values are 'Enabled' and 'Disabled'.
|
721
850
|
# Corresponds to the JSON property `mode`
|
722
851
|
# @return [String]
|
@@ -739,6 +868,8 @@ module Google
|
|
739
868
|
|
740
869
|
# Update properties of this object
|
741
870
|
def update!(**args)
|
871
|
+
@allow_all_service_agent_access = args[:allow_all_service_agent_access] if args.key?(:allow_all_service_agent_access)
|
872
|
+
@allow_cross_org_vpcs = args[:allow_cross_org_vpcs] if args.key?(:allow_cross_org_vpcs)
|
742
873
|
@mode = args[:mode] if args.key?(:mode)
|
743
874
|
@public_network_source = args[:public_network_source] if args.key?(:public_network_source)
|
744
875
|
@vpc_network_sources = args[:vpc_network_sources] if args.key?(:vpc_network_sources)
|
@@ -2336,6 +2467,13 @@ module Google
|
|
2336
2467
|
# @return [String]
|
2337
2468
|
attr_accessor :content_type
|
2338
2469
|
|
2470
|
+
# User-defined or system-defined object contexts. Each object context is a key-
|
2471
|
+
# payload pair, where the key provides the identification and the payload holds
|
2472
|
+
# the associated value and additional metadata.
|
2473
|
+
# Corresponds to the JSON property `contexts`
|
2474
|
+
# @return [Google::Apis::StorageV1::Object::Contexts]
|
2475
|
+
attr_accessor :contexts
|
2476
|
+
|
2339
2477
|
# CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
|
2340
2478
|
# big-endian byte order. For more information about using the CRC32c checksum,
|
2341
2479
|
# see [Data Validation and Change Detection](https://cloud.google.com/storage/
|
@@ -2537,6 +2675,7 @@ module Google
|
|
2537
2675
|
@content_encoding = args[:content_encoding] if args.key?(:content_encoding)
|
2538
2676
|
@content_language = args[:content_language] if args.key?(:content_language)
|
2539
2677
|
@content_type = args[:content_type] if args.key?(:content_type)
|
2678
|
+
@contexts = args[:contexts] if args.key?(:contexts)
|
2540
2679
|
@crc32c = args[:crc32c] if args.key?(:crc32c)
|
2541
2680
|
@custom_time = args[:custom_time] if args.key?(:custom_time)
|
2542
2681
|
@customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption)
|
@@ -2568,6 +2707,27 @@ module Google
|
|
2568
2707
|
@updated = args[:updated] if args.key?(:updated)
|
2569
2708
|
end
|
2570
2709
|
|
2710
|
+
# User-defined or system-defined object contexts. Each object context is a key-
|
2711
|
+
# payload pair, where the key provides the identification and the payload holds
|
2712
|
+
# the associated value and additional metadata.
|
2713
|
+
class Contexts
|
2714
|
+
include Google::Apis::Core::Hashable
|
2715
|
+
|
2716
|
+
# User-defined object contexts.
|
2717
|
+
# Corresponds to the JSON property `custom`
|
2718
|
+
# @return [Hash<String,Google::Apis::StorageV1::ObjectCustomContextPayload>]
|
2719
|
+
attr_accessor :custom
|
2720
|
+
|
2721
|
+
def initialize(**args)
|
2722
|
+
update!(**args)
|
2723
|
+
end
|
2724
|
+
|
2725
|
+
# Update properties of this object
|
2726
|
+
def update!(**args)
|
2727
|
+
@custom = args[:custom] if args.key?(:custom)
|
2728
|
+
end
|
2729
|
+
end
|
2730
|
+
|
2571
2731
|
# Metadata of customer-supplied encryption key, if the object is encrypted by
|
2572
2732
|
# such a key.
|
2573
2733
|
class CustomerEncryption
|
@@ -2800,6 +2960,37 @@ module Google
|
|
2800
2960
|
end
|
2801
2961
|
end
|
2802
2962
|
|
2963
|
+
# The payload of a single user-defined object context.
|
2964
|
+
class ObjectCustomContextPayload
|
2965
|
+
include Google::Apis::Core::Hashable
|
2966
|
+
|
2967
|
+
# The time at which the object context was created in RFC 3339 format.
|
2968
|
+
# Corresponds to the JSON property `createTime`
|
2969
|
+
# @return [DateTime]
|
2970
|
+
attr_accessor :create_time
|
2971
|
+
|
2972
|
+
# The time at which the object context was last updated in RFC 3339 format.
|
2973
|
+
# Corresponds to the JSON property `updateTime`
|
2974
|
+
# @return [DateTime]
|
2975
|
+
attr_accessor :update_time
|
2976
|
+
|
2977
|
+
# The value of the object context.
|
2978
|
+
# Corresponds to the JSON property `value`
|
2979
|
+
# @return [String]
|
2980
|
+
attr_accessor :value
|
2981
|
+
|
2982
|
+
def initialize(**args)
|
2983
|
+
update!(**args)
|
2984
|
+
end
|
2985
|
+
|
2986
|
+
# Update properties of this object
|
2987
|
+
def update!(**args)
|
2988
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2989
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2990
|
+
@value = args[:value] if args.key?(:value)
|
2991
|
+
end
|
2992
|
+
end
|
2993
|
+
|
2803
2994
|
# A list of objects.
|
2804
2995
|
class Objects
|
2805
2996
|
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.55.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250718"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -69,6 +69,24 @@ module Google
|
|
69
69
|
|
70
70
|
class Encryption
|
71
71
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
72
|
+
|
73
|
+
class CustomerManagedEncryptionEnforcementConfig
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class CustomerSuppliedEncryptionEnforcementConfig
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleManagedEncryptionEnforcementConfig
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
72
90
|
|
73
91
|
include Google::Apis::Core::JsonObjectSupport
|
74
92
|
end
|
@@ -343,6 +361,12 @@ module Google
|
|
343
361
|
class Object
|
344
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
363
|
|
364
|
+
class Contexts
|
365
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
366
|
+
|
367
|
+
include Google::Apis::Core::JsonObjectSupport
|
368
|
+
end
|
369
|
+
|
346
370
|
class CustomerEncryption
|
347
371
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
348
372
|
|
@@ -382,6 +406,12 @@ module Google
|
|
382
406
|
include Google::Apis::Core::JsonObjectSupport
|
383
407
|
end
|
384
408
|
|
409
|
+
class ObjectCustomContextPayload
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
385
415
|
class Objects
|
386
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
417
|
|
@@ -573,7 +603,40 @@ module Google
|
|
573
603
|
class Encryption
|
574
604
|
# @private
|
575
605
|
class Representation < Google::Apis::Core::JsonRepresentation
|
606
|
+
property :customer_managed_encryption_enforcement_config, as: 'customerManagedEncryptionEnforcementConfig', class: Google::Apis::StorageV1::Bucket::Encryption::CustomerManagedEncryptionEnforcementConfig, decorator: Google::Apis::StorageV1::Bucket::Encryption::CustomerManagedEncryptionEnforcementConfig::Representation
|
607
|
+
|
608
|
+
property :customer_supplied_encryption_enforcement_config, as: 'customerSuppliedEncryptionEnforcementConfig', class: Google::Apis::StorageV1::Bucket::Encryption::CustomerSuppliedEncryptionEnforcementConfig, decorator: Google::Apis::StorageV1::Bucket::Encryption::CustomerSuppliedEncryptionEnforcementConfig::Representation
|
609
|
+
|
576
610
|
property :default_kms_key_name, as: 'defaultKmsKeyName'
|
611
|
+
property :google_managed_encryption_enforcement_config, as: 'googleManagedEncryptionEnforcementConfig', class: Google::Apis::StorageV1::Bucket::Encryption::GoogleManagedEncryptionEnforcementConfig, decorator: Google::Apis::StorageV1::Bucket::Encryption::GoogleManagedEncryptionEnforcementConfig::Representation
|
612
|
+
|
613
|
+
end
|
614
|
+
|
615
|
+
class CustomerManagedEncryptionEnforcementConfig
|
616
|
+
# @private
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
618
|
+
property :effective_time, as: 'effectiveTime', type: DateTime
|
619
|
+
|
620
|
+
property :restriction_mode, as: 'restrictionMode'
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
624
|
+
class CustomerSuppliedEncryptionEnforcementConfig
|
625
|
+
# @private
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
627
|
+
property :effective_time, as: 'effectiveTime', type: DateTime
|
628
|
+
|
629
|
+
property :restriction_mode, as: 'restrictionMode'
|
630
|
+
end
|
631
|
+
end
|
632
|
+
|
633
|
+
class GoogleManagedEncryptionEnforcementConfig
|
634
|
+
# @private
|
635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
636
|
+
property :effective_time, as: 'effectiveTime', type: DateTime
|
637
|
+
|
638
|
+
property :restriction_mode, as: 'restrictionMode'
|
639
|
+
end
|
577
640
|
end
|
578
641
|
end
|
579
642
|
|
@@ -616,6 +679,8 @@ module Google
|
|
616
679
|
class IpFilter
|
617
680
|
# @private
|
618
681
|
class Representation < Google::Apis::Core::JsonRepresentation
|
682
|
+
property :allow_all_service_agent_access, as: 'allowAllServiceAgentAccess'
|
683
|
+
property :allow_cross_org_vpcs, as: 'allowCrossOrgVpcs'
|
619
684
|
property :mode, as: 'mode'
|
620
685
|
property :public_network_source, as: 'publicNetworkSource', class: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource, decorator: Google::Apis::StorageV1::Bucket::IpFilter::PublicNetworkSource::Representation
|
621
686
|
|
@@ -1052,6 +1117,8 @@ module Google
|
|
1052
1117
|
property :content_encoding, as: 'contentEncoding'
|
1053
1118
|
property :content_language, as: 'contentLanguage'
|
1054
1119
|
property :content_type, as: 'contentType'
|
1120
|
+
property :contexts, as: 'contexts', class: Google::Apis::StorageV1::Object::Contexts, decorator: Google::Apis::StorageV1::Object::Contexts::Representation
|
1121
|
+
|
1055
1122
|
property :crc32c, as: 'crc32c'
|
1056
1123
|
property :custom_time, as: 'customTime', type: DateTime
|
1057
1124
|
|
@@ -1095,6 +1162,14 @@ module Google
|
|
1095
1162
|
|
1096
1163
|
end
|
1097
1164
|
|
1165
|
+
class Contexts
|
1166
|
+
# @private
|
1167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1168
|
+
hash :custom, as: 'custom', class: Google::Apis::StorageV1::ObjectCustomContextPayload, decorator: Google::Apis::StorageV1::ObjectCustomContextPayload::Representation
|
1169
|
+
|
1170
|
+
end
|
1171
|
+
end
|
1172
|
+
|
1098
1173
|
class CustomerEncryption
|
1099
1174
|
# @private
|
1100
1175
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1158,6 +1233,17 @@ module Google
|
|
1158
1233
|
end
|
1159
1234
|
end
|
1160
1235
|
|
1236
|
+
class ObjectCustomContextPayload
|
1237
|
+
# @private
|
1238
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1239
|
+
property :create_time, as: 'createTime', type: DateTime
|
1240
|
+
|
1241
|
+
property :update_time, as: 'updateTime', type: DateTime
|
1242
|
+
|
1243
|
+
property :value, as: 'value'
|
1244
|
+
end
|
1245
|
+
end
|
1246
|
+
|
1161
1247
|
class Objects
|
1162
1248
|
# @private
|
1163
1249
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2913,6 +2913,9 @@ module Google
|
|
2913
2913
|
# Filter results to objects whose names are lexicographically before endOffset.
|
2914
2914
|
# If startOffset is also set, the objects listed will have names between
|
2915
2915
|
# startOffset (inclusive) and endOffset (exclusive).
|
2916
|
+
# @param [String] filter
|
2917
|
+
# Filter the returned objects. Currently only supported for the contexts field.
|
2918
|
+
# If delimiter is set, the returned prefixes are exempt from this filter.
|
2916
2919
|
# @param [Boolean] include_folders_as_prefixes
|
2917
2920
|
# Only applicable if delimiter is set to '/'. If true, will also include folders
|
2918
2921
|
# and managed folders (besides objects) in the returned prefixes.
|
@@ -2966,13 +2969,14 @@ module Google
|
|
2966
2969
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2967
2970
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2968
2971
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2969
|
-
def list_objects(bucket, delimiter: nil, end_offset: nil, include_folders_as_prefixes: nil, include_trailing_delimiter: nil, match_glob: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2972
|
+
def list_objects(bucket, delimiter: nil, end_offset: nil, filter: nil, include_folders_as_prefixes: nil, include_trailing_delimiter: nil, match_glob: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2970
2973
|
command = make_simple_command(:get, 'b/{bucket}/o', options)
|
2971
2974
|
command.response_representation = Google::Apis::StorageV1::Objects::Representation
|
2972
2975
|
command.response_class = Google::Apis::StorageV1::Objects
|
2973
2976
|
command.params['bucket'] = bucket unless bucket.nil?
|
2974
2977
|
command.query['delimiter'] = delimiter unless delimiter.nil?
|
2975
2978
|
command.query['endOffset'] = end_offset unless end_offset.nil?
|
2979
|
+
command.query['filter'] = filter unless filter.nil?
|
2976
2980
|
command.query['includeFoldersAsPrefixes'] = include_folders_as_prefixes unless include_folders_as_prefixes.nil?
|
2977
2981
|
command.query['includeTrailingDelimiter'] = include_trailing_delimiter unless include_trailing_delimiter.nil?
|
2978
2982
|
command.query['matchGlob'] = match_glob unless match_glob.nil?
|
@@ -3044,6 +3048,8 @@ module Google
|
|
3044
3048
|
# metageneration does not match the given value. `ifSourceMetagenerationMatch`
|
3045
3049
|
# and `ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's
|
3046
3050
|
# an error for both of them to be set in the request.
|
3051
|
+
# @param [String] projection
|
3052
|
+
# Set of properties to return. Defaults to noAcl.
|
3047
3053
|
# @param [String] user_project
|
3048
3054
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
3049
3055
|
# @param [String] fields
|
@@ -3065,7 +3071,7 @@ module Google
|
|
3065
3071
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3066
3072
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3067
3073
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3068
|
-
def move_object(bucket, source_object, destination_object, 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3074
|
+
def move_object(bucket, source_object, destination_object, 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, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3069
3075
|
command = make_simple_command(:post, 'b/{bucket}/o/{sourceObject}/moveTo/o/{destinationObject}', options)
|
3070
3076
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
3071
3077
|
command.response_class = Google::Apis::StorageV1::Object
|
@@ -3080,6 +3086,7 @@ module Google
|
|
3080
3086
|
command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
|
3081
3087
|
command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
|
3082
3088
|
command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
|
3089
|
+
command.query['projection'] = projection unless projection.nil?
|
3083
3090
|
command.query['userProject'] = user_project unless user_project.nil?
|
3084
3091
|
command.query['fields'] = fields unless fields.nil?
|
3085
3092
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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.55.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,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Storage JSON API V1
|
79
79
|
test_files: []
|