Module: Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb
Overview
Path helper methods for the FeaturedContentNativeDashboardService API.
Instance Method Summary collapse
-
#content_hub_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified ContentHub resource string.
-
#dashboard_chart_path(project:, location:, instance:, chart:) ⇒ ::String
Create a fully-qualified DashboardChart resource string.
-
#dashboard_query_path(project:, location:, instance:, query:) ⇒ ::String
Create a fully-qualified DashboardQuery resource string.
-
#featured_content_native_dashboard_path(project:, location:, instance:, featured_content_native_dashboard:) ⇒ ::String
Create a fully-qualified FeaturedContentNativeDashboard resource string.
-
#native_dashboard_path(project:, location:, instance:, dashboard:) ⇒ ::String
Create a fully-qualified NativeDashboard resource string.
Instance Method Details
#content_hub_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified ContentHub resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/contentHub
39 40 41 42 43 44 |
# File 'lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb', line 39 def content_hub_path project:, location:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/contentHub" end |
#dashboard_chart_path(project:, location:, instance:, chart:) ⇒ ::String
Create a fully-qualified DashboardChart resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb', line 59 def dashboard_chart_path project:, location:, instance:, chart: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dashboardCharts/#{chart}" end |
#dashboard_query_path(project:, location:, instance:, query:) ⇒ ::String
Create a fully-qualified DashboardQuery resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}
80 81 82 83 84 85 86 |
# File 'lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb', line 80 def dashboard_query_path project:, location:, instance:, query: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dashboardQueries/#{query}" end |
#featured_content_native_dashboard_path(project:, location:, instance:, featured_content_native_dashboard:) ⇒ ::String
Create a fully-qualified FeaturedContentNativeDashboard resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}
101 102 103 104 105 106 107 |
# File 'lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb', line 101 def featured_content_native_dashboard_path project:, location:, instance:, featured_content_native_dashboard: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/contentHub/featuredContentNativeDashboards/#{featured_content_native_dashboard}" end |
#native_dashboard_path(project:, location:, instance:, dashboard:) ⇒ ::String
Create a fully-qualified NativeDashboard resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
122 123 124 125 126 127 128 |
# File 'lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb', line 122 def native_dashboard_path project:, location:, instance:, dashboard: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/nativeDashboards/#{dashboard}" end |