google-cloud-dataform-v1beta1 0.10.0 → 0.11.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.
@@ -26,6 +26,7 @@ module Google
26
26
  # Credentials for the Dataform API.
27
27
  class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
+ "https://www.googleapis.com/auth/bigquery",
29
30
  "https://www.googleapis.com/auth/cloud-platform"
30
31
  ]
31
32
  self.env_vars = [
@@ -45,6 +45,67 @@ module Google
45
45
  "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}"
46
46
  end
47
47
 
48
+ ##
49
+ # Create a fully-qualified Config resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/config`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ #
58
+ # @return [::String]
59
+ def config_path project:, location:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/config"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified CryptoKey resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param key_ring [String]
75
+ # @param crypto_key [String]
76
+ #
77
+ # @return [::String]
78
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
79
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
80
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
81
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
82
+
83
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
84
+ end
85
+
86
+ ##
87
+ # Create a fully-qualified CryptoKeyVersion resource string.
88
+ #
89
+ # The resource will be in the following format:
90
+ #
91
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
92
+ #
93
+ # @param project [String]
94
+ # @param location [String]
95
+ # @param key_ring [String]
96
+ # @param crypto_key [String]
97
+ # @param crypto_key_version [String]
98
+ #
99
+ # @return [::String]
100
+ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
101
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
103
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
104
+ raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
105
+
106
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
107
+ end
108
+
48
109
  ##
49
110
  # Create a fully-qualified Location resource string.
50
111
  #