Skip to content

Commit 4cc40e4

Browse files
feat: A new field Instance.simulate_maintenance_event is added to message .google.cloud.memorystore.v1. (googleapis#32274)
feat: A new field `satisfies_pzs` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `satisfies_pzi` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `kms_key` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `encryption_info` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `maintenance_version` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `effective_maintenance_version` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `available_maintenance_versions` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `allow_fewer_zones_deployment` is added to message `.google.cloud.memorystore.v1.Instance` feat: A new field `total_backup_size_bytes` is added to message `.google.cloud.memorystore.v1.BackupCollection` feat: A new field `total_backup_count` is added to message `.google.cloud.memorystore.v1.BackupCollection` feat: A new field `last_backup_time` is added to message `.google.cloud.memorystore.v1.BackupCollection` feat: A new field `encryption_info` is added to message `.google.cloud.memorystore.v1.Backup` feat: A new message `EncryptionInfo` is added docs: A comment for field `discovery_endpoints` in message `.google.cloud.memorystore.v1.Instance` is changed PiperOrigin-RevId: 844938993 Source-Link: googleapis/googleapis@b60f5a5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/de5725e065e6dd76489931f643baf5a83ed4e5ff Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLW1lbW9yeXN0b3JlLXYxLy5Pd2xCb3QueWFtbCIsImgiOiJkZTU3MjVlMDY1ZTZkZDc2NDg5OTMxZjY0M2JhZjVhODNlZDRlNWZmIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent bf04570 commit 4cc40e4

3 files changed

Lines changed: 164 additions & 3 deletions

File tree

google-cloud-memorystore-v1/lib/google/cloud/memorystore/v1/memorystore/paths.rb

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,50 @@ def backup_collection_path project:, location:, backup_collection:
6464
"projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}"
6565
end
6666

67+
##
68+
# Create a fully-qualified CryptoKey resource string.
69+
#
70+
# The resource will be in the following format:
71+
#
72+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
73+
#
74+
# @param project [String]
75+
# @param location [String]
76+
# @param key_ring [String]
77+
# @param crypto_key [String]
78+
#
79+
# @return [::String]
80+
def crypto_key_path project:, location:, key_ring:, crypto_key:
81+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
82+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
83+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
84+
85+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
86+
end
87+
88+
##
89+
# Create a fully-qualified CryptoKeyVersion resource string.
90+
#
91+
# The resource will be in the following format:
92+
#
93+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
94+
#
95+
# @param project [String]
96+
# @param location [String]
97+
# @param key_ring [String]
98+
# @param crypto_key [String]
99+
# @param crypto_key_version [String]
100+
#
101+
# @return [::String]
102+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
103+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
104+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
105+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
106+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
107+
108+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
109+
end
110+
67111
##
68112
# Create a fully-qualified ForwardingRule resource string.
69113
#

0 commit comments

Comments
 (0)