Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Memorystore/metadata/V1/Memorystore.php
Binary file not shown.
44 changes: 44 additions & 0 deletions Memorystore/src/V1/Backup.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions Memorystore/src/V1/BackupCollection.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions Memorystore/src/V1/Client/MemorystoreClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,55 @@ public static function backupCollectionName(string $project, string $location, s
]);
}

/**
* Formats a string containing the fully-qualified path to represent a crypto_key
* resource.
*
* @param string $project
* @param string $location
* @param string $keyRing
* @param string $cryptoKey
*
* @return string The formatted crypto_key resource.
*/
public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string
{
return self::getPathTemplate('cryptoKey')->render([
'project' => $project,
'location' => $location,
'key_ring' => $keyRing,
'crypto_key' => $cryptoKey,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* crypto_key_version resource.
*
* @param string $project
* @param string $location
* @param string $keyRing
* @param string $cryptoKey
* @param string $cryptoKeyVersion
*
* @return string The formatted crypto_key_version resource.
*/
public static function cryptoKeyVersionName(
string $project,
string $location,
string $keyRing,
string $cryptoKey,
string $cryptoKeyVersion
): string {
return self::getPathTemplate('cryptoKeyVersion')->render([
'project' => $project,
'location' => $location,
'key_ring' => $keyRing,
'crypto_key' => $cryptoKey,
'crypto_key_version' => $cryptoKeyVersion,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* forwarding_rule resource.
Expand Down Expand Up @@ -338,6 +387,8 @@ public static function serviceAttachmentName(string $project, string $region, st
* Template: Pattern
* - backup: projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}
* - backupCollection: projects/{project}/locations/{location}/backupCollections/{backup_collection}
* - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
* - forwardingRule: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
* - instance: projects/{project}/locations/{location}/instances/{instance}
* - location: projects/{project}/locations/{location}
Expand Down
Loading
Loading