google-cloud-memorystore-v1 1.1.1 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbed90ded73bc90c4c278402c8232482ab858428f11fcf5cbc2fdd35e7d7ce4e
4
- data.tar.gz: a7f10ac6ed615bc89aedc8f8488db4401a70ecb46812255282bf2449dde4054b
3
+ metadata.gz: 66427baf7d1e0b74ca740ded2ae8c85985f2db2e783aa823bdc22f4a5fe31302
4
+ data.tar.gz: fb8557a14f566d6a14c762c6287abb069e96655e26d170abeb4669d39ec85c9a
5
5
  SHA512:
6
- metadata.gz: 1aae2669257ebc406ba266b77f720e67db3fb7959f76ef4cf225d1e2d9dbc1d6bef1b8f2d006b14147066cf95358d80f45012f85aedf9b6451ae1abcd0c7419b
7
- data.tar.gz: c8c42adc5a59f60e55c62d1e94a0477833a7a3af5c7bac445475fdc92f2c68f4553cddd92981de76eae57dab7c075e3104af0b49c446a9e1f9656aa484b85ad2
6
+ metadata.gz: 7eb52944660a9bc2bd727137c45a37e4b7074f2f8ccaac8e1859fa1edcc9c6a034c597ffe8e6ab0a3d1cd184ac9a97481de5cd9e65cbf672311cad4c473f86b9
7
+ data.tar.gz: 4703e864cdd54a9952cb4587621732faf19493e15b11bc49d9410d5d69f60b86cd193eaae4f790d7b9cb270a6f7e804d6f7d4394d9806e7f109d350025490f3d
@@ -24,6 +24,46 @@ module Google
24
24
  module Memorystore
25
25
  # Path helper methods for the Memorystore API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified Backup resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param backup_collection [String]
37
+ # @param backup [String]
38
+ #
39
+ # @return [::String]
40
+ def backup_path project:, location:, backup_collection:, backup:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "backup_collection cannot contain /" if backup_collection.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}/backups/#{backup}"
46
+ end
47
+
48
+ ##
49
+ # Create a fully-qualified BackupCollection resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/backupCollections/{backup_collection}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param backup_collection [String]
58
+ #
59
+ # @return [::String]
60
+ def backup_collection_path project:, location:, backup_collection:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}"
65
+ end
66
+
27
67
  ##
28
68
  # Create a fully-qualified ForwardingRule resource string.
29
69
  #