lib/google/cloud/monitoring/v3/metric_service/paths.rb in google-cloud-monitoring-v3-0.2.0 vs lib/google/cloud/monitoring/v3/metric_service/paths.rb in google-cloud-monitoring-v3-0.3.0

- old
+ new

@@ -66,21 +66,21 @@ # @param metric_descriptor [String] # # @return [::String] def metric_descriptor_path **args resources = { - "metric_descriptor:project" => (proc do |project:, metric_descriptor:| + "metric_descriptor:project" => (proc do |project:, metric_descriptor:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/metricDescriptors/#{metric_descriptor}" end), "metric_descriptor:organization" => (proc do |organization:, metric_descriptor:| raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" "organizations/#{organization}/metricDescriptors/#{metric_descriptor}" end), - "folder:metric_descriptor" => (proc do |folder:, metric_descriptor:| + "folder:metric_descriptor" => (proc do |folder:, metric_descriptor:| raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/" "folders/#{folder}/metricDescriptors/#{metric_descriptor}" end) } @@ -118,20 +118,20 @@ # @param monitored_resource_descriptor [String] # # @return [::String] def monitored_resource_descriptor_path **args resources = { - "monitored_resource_descriptor:project" => (proc do |project:, monitored_resource_descriptor:| + "monitored_resource_descriptor:project" => (proc do |project:, monitored_resource_descriptor:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/monitoredResourceDescriptors/#{monitored_resource_descriptor}" end), "monitored_resource_descriptor:organization" => (proc do |organization:, monitored_resource_descriptor:| raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" "organizations/#{organization}/monitoredResourceDescriptors/#{monitored_resource_descriptor}" end), - "folder:monitored_resource_descriptor" => (proc do |folder:, monitored_resource_descriptor:| + "folder:monitored_resource_descriptor" => (proc do |folder:, monitored_resource_descriptor:| raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/" "folders/#{folder}/monitoredResourceDescriptors/#{monitored_resource_descriptor}" end) }