Module: Google::Cloud::CloudQuotas::V1beta::QuotaAdjusterSettingsManager::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/paths.rb
Overview
Path helper methods for the QuotaAdjusterSettingsManager API.
Instance Method Summary collapse
-
#quota_adjuster_settings_path(**args) ⇒ ::String
Create a fully-qualified QuotaAdjusterSettings resource string.
Instance Method Details
#quota_adjuster_settings_path(project:, location:) ⇒ ::String #quota_adjuster_settings_path(organization:, location:) ⇒ ::String #quota_adjuster_settings_path(folder:, location:) ⇒ ::String
Create a fully-qualified QuotaAdjusterSettings resource string.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/paths.rb', line 55 def quota_adjuster_settings_path **args resources = { "location:project" => (proc do |project:, location:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/quotaAdjusterSettings" end), "location:organization" => (proc do |organization:, location:| raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" "organizations/#{organization}/locations/#{location}/quotaAdjusterSettings" end), "folder:location" => (proc do |folder:, location:| raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/" "folders/#{folder}/locations/#{location}/quotaAdjusterSettings" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |