google-cloud-container-v1beta1 0.46.0 → 0.47.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.
@@ -24,6 +24,48 @@ module Google
24
24
  module ClusterManager
25
25
  # Path helper methods for the ClusterManager API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified CaPool resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/caPools/{ca_pool}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param ca_pool [String]
37
+ #
38
+ # @return [::String]
39
+ def ca_pool_path project:, location:, ca_pool:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/caPools/#{ca_pool}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified CryptoKeyVersion resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param key_ring [String]
56
+ # @param crypto_key [String]
57
+ # @param crypto_key_version [String]
58
+ #
59
+ # @return [::String]
60
+ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
64
+ raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
65
+
66
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
67
+ end
68
+
27
69
  ##
28
70
  # Create a fully-qualified Topic resource string.
29
71
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1beta1
24
- VERSION = "0.46.0"
24
+ VERSION = "0.47.0"
25
25
  end
26
26
  end
27
27
  end