Skip to content

Commit 5320723

Browse files
feat: Automated regeneration of storage v1 client (googleapis#23782)
Auto-created at 2025-07-27 10:11:49 +0000 using the toys pull request generator.
1 parent c6d466e commit 5320723

File tree

5 files changed

+182
-2
lines changed

5 files changed

+182
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349743,7 +349743,16 @@
349743349743
"/storage:v1/Bucket/defaultObjectAcl": default_object_acl
349744349744
"/storage:v1/Bucket/defaultObjectAcl/default_object_acl": default_object_acl
349745349745
"/storage:v1/Bucket/encryption": encryption
349746+
"/storage:v1/Bucket/encryption/customerManagedEncryptionEnforcementConfig": customer_managed_encryption_enforcement_config
349747+
"/storage:v1/Bucket/encryption/customerManagedEncryptionEnforcementConfig/effectiveTime": effective_time
349748+
"/storage:v1/Bucket/encryption/customerManagedEncryptionEnforcementConfig/restrictionMode": restriction_mode
349749+
"/storage:v1/Bucket/encryption/customerSuppliedEncryptionEnforcementConfig": customer_supplied_encryption_enforcement_config
349750+
"/storage:v1/Bucket/encryption/customerSuppliedEncryptionEnforcementConfig/effectiveTime": effective_time
349751+
"/storage:v1/Bucket/encryption/customerSuppliedEncryptionEnforcementConfig/restrictionMode": restriction_mode
349746349752
"/storage:v1/Bucket/encryption/defaultKmsKeyName": default_kms_key_name
349753+
"/storage:v1/Bucket/encryption/googleManagedEncryptionEnforcementConfig": google_managed_encryption_enforcement_config
349754+
"/storage:v1/Bucket/encryption/googleManagedEncryptionEnforcementConfig/effectiveTime": effective_time
349755+
"/storage:v1/Bucket/encryption/googleManagedEncryptionEnforcementConfig/restrictionMode": restriction_mode
349747349756
"/storage:v1/Bucket/etag": etag
349748349757
"/storage:v1/Bucket/generation": generation
349749349758
"/storage:v1/Bucket/hardDeleteTime": hard_delete_time

generated/google-apis-storage_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-storage_v1
22

3+
### v0.55.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250718
6+
37
### v0.54.0 (2025-07-06)
48

59
* Regenerated from discovery document revision 20250629

generated/google-apis-storage_v1/lib/google/apis/storage_v1/classes.rb

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,19 +577,135 @@ def update!(**args)
577577
class Encryption
578578
include Google::Apis::Core::Hashable
579579

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+
580596
# A Cloud KMS key that will be used to encrypt objects inserted into this bucket,
581597
# if no encryption method is specified.
582598
# Corresponds to the JSON property `defaultKmsKeyName`
583599
# @return [String]
584600
attr_accessor :default_kms_key_name
585601

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+
586610
def initialize(**args)
587611
update!(**args)
588612
end
589613

590614
# Update properties of this object
591615
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)
592618
@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
593709
end
594710
end
595711

generated/google-apis-storage_v1/lib/google/apis/storage_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module StorageV1
1818
# Version of the google-apis-storage_v1 gem
19-
GEM_VERSION = "0.54.0"
19+
GEM_VERSION = "0.55.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250629"
25+
REVISION = "20250718"
2626
end
2727
end
2828
end

generated/google-apis-storage_v1/lib/google/apis/storage_v1/representations.rb

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
6969

7070
class Encryption
7171
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
7290

7391
include Google::Apis::Core::JsonObjectSupport
7492
end
@@ -585,7 +603,40 @@ class Representation < Google::Apis::Core::JsonRepresentation
585603
class Encryption
586604
# @private
587605
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+
588610
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
589640
end
590641
end
591642

0 commit comments

Comments
 (0)