google-cloud-dataform-v1beta1 0.3.0 → 0.5.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.
@@ -62,6 +62,27 @@ module Google
62
62
  "projects/#{project}/locations/#{location}"
63
63
  end
64
64
 
65
+ ##
66
+ # Create a fully-qualified ReleaseConfig resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param repository [String]
75
+ # @param release_config [String]
76
+ #
77
+ # @return [::String]
78
+ def release_config_path project:, location:, repository:, release_config:
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, "repository cannot contain /" if repository.to_s.include? "/"
82
+
83
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}"
84
+ end
85
+
65
86
  ##
66
87
  # Create a fully-qualified Repository resource string.
67
88
  #
@@ -100,6 +121,27 @@ module Google
100
121
  "projects/#{project}/secrets/#{secret}/versions/#{version}"
101
122
  end
102
123
 
124
+ ##
125
+ # Create a fully-qualified WorkflowConfig resource string.
126
+ #
127
+ # The resource will be in the following format:
128
+ #
129
+ # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}`
130
+ #
131
+ # @param project [String]
132
+ # @param location [String]
133
+ # @param repository [String]
134
+ # @param workflow_config [String]
135
+ #
136
+ # @return [::String]
137
+ def workflow_config_path project:, location:, repository:, workflow_config:
138
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
139
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
140
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
141
+
142
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}"
143
+ end
144
+
103
145
  ##
104
146
  # Create a fully-qualified WorkflowInvocation resource string.
105
147
  #