Skip to content

Commit

Permalink
feat: Automated regeneration of redis v1 client (#21347)
Browse files Browse the repository at this point in the history
Auto-created at 2025-01-12 09:59:46 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 12, 2025
1 parent 37d9c42 commit 1f45e50
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 5 deletions.
10 changes: 10 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292657,6 +292657,7 @@
"/redis:v1/Backup/cluster": cluster
"/redis:v1/Backup/clusterUid": cluster_uid
"/redis:v1/Backup/createTime": create_time
"/redis:v1/Backup/encryptionInfo": encryption_info
"/redis:v1/Backup/engineVersion": engine_version
"/redis:v1/Backup/expireTime": expire_time
"/redis:v1/Backup/name": name
Expand All @@ -292672,6 +292673,7 @@
"/redis:v1/BackupCollection": backup_collection
"/redis:v1/BackupCollection/cluster": cluster
"/redis:v1/BackupCollection/clusterUid": cluster_uid
"/redis:v1/BackupCollection/kmsKey": kms_key
"/redis:v1/BackupCollection/name": name
"/redis:v1/BackupCollection/uid": uid
"/redis:v1/BackupConfiguration": backup_configuration
Expand Down Expand Up @@ -292717,9 +292719,11 @@
"/redis:v1/Cluster/discoveryEndpoints": discovery_endpoints
"/redis:v1/Cluster/discoveryEndpoints/discovery_endpoint": discovery_endpoint
"/redis:v1/Cluster/displayName": display_name
"/redis:v1/Cluster/encryptionInfo": encryption_info
"/redis:v1/Cluster/endpoints": endpoints
"/redis:v1/Cluster/endpoints/endpoint": endpoint
"/redis:v1/Cluster/gcsSource": gcs_source
"/redis:v1/Cluster/kmsKey": kms_key
"/redis:v1/Cluster/maintenancePolicy": maintenance_policy
"/redis:v1/Cluster/maintenanceSchedule": maintenance_schedule
"/redis:v1/Cluster/managedBackupSource": managed_backup_source
Expand Down Expand Up @@ -292869,6 +292873,12 @@
"/redis:v1/DiscoveryEndpoint/port": port
"/redis:v1/DiscoveryEndpoint/pscConfig": psc_config
"/redis:v1/Empty": empty
"/redis:v1/EncryptionInfo": encryption_info
"/redis:v1/EncryptionInfo/encryptionType": encryption_type
"/redis:v1/EncryptionInfo/kmsKeyPrimaryState": kms_key_primary_state
"/redis:v1/EncryptionInfo/kmsKeyVersions": kms_key_versions
"/redis:v1/EncryptionInfo/kmsKeyVersions/kms_key_version": kms_key_version
"/redis:v1/EncryptionInfo/lastUpdateTime": last_update_time
"/redis:v1/Endpoint": endpoint
"/redis:v1/Endpoint/host": host
"/redis:v1/Endpoint/port": port
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-redis_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-redis_v1

### v0.66.0 (2025-01-12)

* Regenerated from discovery document revision 20250104
* Regenerated using generator version 0.16.0

### v0.65.0 (2024-12-08)

* Regenerated from discovery document revision 20241203
Expand Down
67 changes: 65 additions & 2 deletions generated/google-apis-redis_v1/lib/google/apis/redis_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ class Backup
# @return [String]
attr_accessor :create_time

# EncryptionInfo describes the encryption information of a cluster or a backup.
# Corresponds to the JSON property `encryptionInfo`
# @return [Google::Apis::RedisV1::EncryptionInfo]
attr_accessor :encryption_info

# Output only. redis-7.2, valkey-7.5
# Corresponds to the JSON property `engineVersion`
# @return [String]
Expand Down Expand Up @@ -216,6 +221,7 @@ def update!(**args)
@cluster = args[:cluster] if args.key?(:cluster)
@cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
@create_time = args[:create_time] if args.key?(:create_time)
@encryption_info = args[:encryption_info] if args.key?(:encryption_info)
@engine_version = args[:engine_version] if args.key?(:engine_version)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@name = args[:name] if args.key?(:name)
Expand Down Expand Up @@ -270,6 +276,12 @@ class BackupCollection
# @return [String]
attr_accessor :cluster_uid

# Output only. The KMS key used to encrypt the backups under this backup
# collection.
# Corresponds to the JSON property `kmsKey`
# @return [String]
attr_accessor :kms_key

# Identifier. Full resource path of the backup collection.
# Corresponds to the JSON property `name`
# @return [String]
Expand All @@ -288,6 +300,7 @@ def initialize(**args)
def update!(**args)
@cluster = args[:cluster] if args.key?(:cluster)
@cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
@kms_key = args[:kms_key] if args.key?(:kms_key)
@name = args[:name] if args.key?(:name)
@uid = args[:uid] if args.key?(:uid)
end
Expand Down Expand Up @@ -490,12 +503,22 @@ class Cluster
# @return [Array<Google::Apis::RedisV1::DiscoveryEndpoint>]
attr_accessor :discovery_endpoints

# EncryptionInfo describes the encryption information of a cluster or a backup.
# Corresponds to the JSON property `encryptionInfo`
# @return [Google::Apis::RedisV1::EncryptionInfo]
attr_accessor :encryption_info

# Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be
# the same region as the clusters.
# Corresponds to the JSON property `gcsSource`
# @return [Google::Apis::RedisV1::GcsBackupSource]
attr_accessor :gcs_source

# Optional. The KMS key used to encrypt the at-rest data of the cluster.
# Corresponds to the JSON property `kmsKey`
# @return [String]
attr_accessor :kms_key

# Maintenance policy per cluster.
# Corresponds to the JSON property `maintenancePolicy`
# @return [Google::Apis::RedisV1::ClusterMaintenancePolicy]
Expand Down Expand Up @@ -614,7 +637,9 @@ def update!(**args)
@cross_cluster_replication_config = args[:cross_cluster_replication_config] if args.key?(:cross_cluster_replication_config)
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
@discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
@encryption_info = args[:encryption_info] if args.key?(:encryption_info)
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
@kms_key = args[:kms_key] if args.key?(:kms_key)
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
@managed_backup_source = args[:managed_backup_source] if args.key?(:managed_backup_source)
Expand Down Expand Up @@ -1389,6 +1414,44 @@ def update!(**args)
end
end

# EncryptionInfo describes the encryption information of a cluster or a backup.
class EncryptionInfo
include Google::Apis::Core::Hashable

# Output only. Type of encryption.
# Corresponds to the JSON property `encryptionType`
# @return [String]
attr_accessor :encryption_type

# Output only. The state of the primary version of the KMS key perceived by the
# system. This field is not populated in backups.
# Corresponds to the JSON property `kmsKeyPrimaryState`
# @return [String]
attr_accessor :kms_key_primary_state

# Output only. KMS key versions that are being used to protect the data at-rest.
# Corresponds to the JSON property `kmsKeyVersions`
# @return [Array<String>]
attr_accessor :kms_key_versions

# Output only. The most recent time when the encryption info was updated.
# Corresponds to the JSON property `lastUpdateTime`
# @return [String]
attr_accessor :last_update_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@encryption_type = args[:encryption_type] if args.key?(:encryption_type)
@kms_key_primary_state = args[:kms_key_primary_state] if args.key?(:kms_key_primary_state)
@kms_key_versions = args[:kms_key_versions] if args.key?(:kms_key_versions)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
end
end

# Proto representing the access that a user has to a specific feature/service.
# NextId: 3.
class Entitlement
Expand Down Expand Up @@ -2299,8 +2362,8 @@ def update!(**args)
class MachineConfiguration
include Google::Apis::Core::Hashable

# The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again
# after bug fix.
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
# 342346271) add proto validations again after bug fix.
# Corresponds to the JSON property `cpuCount`
# @return [Fixnum]
attr_accessor :cpu_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module RedisV1
# Version of the google-apis-redis_v1 gem
GEM_VERSION = "0.65.0"
GEM_VERSION = "0.66.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"
GENERATOR_VERSION = "0.16.0"

# Revision of the discovery document this client was generated from
REVISION = "20241203"
REVISION = "20250104"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class EncryptionInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Entitlement
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -575,6 +581,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :cluster, as: 'cluster'
property :cluster_uid, as: 'clusterUid'
property :create_time, as: 'createTime'
property :encryption_info, as: 'encryptionInfo', class: Google::Apis::RedisV1::EncryptionInfo, decorator: Google::Apis::RedisV1::EncryptionInfo::Representation

property :engine_version, as: 'engineVersion'
property :expire_time, as: 'expireTime'
property :name, as: 'name'
Expand All @@ -600,6 +608,7 @@ class BackupCollection
class Representation < Google::Apis::Core::JsonRepresentation
property :cluster, as: 'cluster'
property :cluster_uid, as: 'clusterUid'
property :kms_key, as: 'kmsKey'
property :name, as: 'name'
property :uid, as: 'uid'
end
Expand Down Expand Up @@ -666,8 +675,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1::DiscoveryEndpoint::Representation

property :encryption_info, as: 'encryptionInfo', class: Google::Apis::RedisV1::EncryptionInfo, decorator: Google::Apis::RedisV1::EncryptionInfo::Representation

property :gcs_source, as: 'gcsSource', class: Google::Apis::RedisV1::GcsBackupSource, decorator: Google::Apis::RedisV1::GcsBackupSource::Representation

property :kms_key, as: 'kmsKey'
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::RedisV1::ClusterMaintenancePolicy, decorator: Google::Apis::RedisV1::ClusterMaintenancePolicy::Representation

property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::RedisV1::ClusterMaintenanceSchedule, decorator: Google::Apis::RedisV1::ClusterMaintenanceSchedule::Representation
Expand Down Expand Up @@ -902,6 +914,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class EncryptionInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :encryption_type, as: 'encryptionType'
property :kms_key_primary_state, as: 'kmsKeyPrimaryState'
collection :kms_key_versions, as: 'kmsKeyVersions'
property :last_update_time, as: 'lastUpdateTime'
end
end

class Entitlement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 1f45e50

Please sign in to comment.