Method: Google::Cloud::Monitoring::V3::ServiceMonitoringService::Paths#workspace_path
- Defined in:
- lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb
permalink #workspace_path(project: ) ⇒ ::String #workspace_path(workspace: ) ⇒ ::String
Create a fully-qualified Workspace resource string.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb', line 197 def workspace_path **args resources = { "project" => (proc do |project:| "projects/#{project}" end), "workspace" => (proc do |workspace:| "workspaces/#{workspace}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |