Module: Google::Cloud::Chronicle::V1::RuleService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/chronicle/v1/rule_service/paths.rb
Overview
Path helper methods for the RuleService API.
Instance Method Summary collapse
-
#data_access_scope_path(project:, location:, instance:, data_access_scope:) ⇒ ::String
Create a fully-qualified DataAccessScope resource string.
-
#instance_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
-
#reference_list_path(project:, location:, instance:, reference_list:) ⇒ ::String
Create a fully-qualified ReferenceList resource string.
-
#retrohunt_path(project:, location:, instance:, rule:, retrohunt:) ⇒ ::String
Create a fully-qualified Retrohunt resource string.
-
#rule_deployment_path(project:, location:, instance:, rule:) ⇒ ::String
Create a fully-qualified RuleDeployment resource string.
-
#rule_path(project:, location:, instance:, rule:) ⇒ ::String
Create a fully-qualified Rule resource string.
Instance Method Details
#data_access_scope_path(project:, location:, instance:, data_access_scope:) ⇒ ::String
Create a fully-qualified DataAccessScope resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/chronicle/v1/rule_service/paths.rb', line 40 def data_access_scope_path project:, location:, instance:, data_access_scope: 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}/dataAccessScopes/#{data_access_scope}" end |
#instance_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}
60 61 62 63 64 65 |
# File 'lib/google/cloud/chronicle/v1/rule_service/paths.rb', line 60 def instance_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}" end |
#reference_list_path(project:, location:, instance:, reference_list:) ⇒ ::String
Create a fully-qualified ReferenceList resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}
80 81 82 83 84 85 86 |
# File 'lib/google/cloud/chronicle/v1/rule_service/paths.rb', line 80 def reference_list_path project:, location:, instance:, reference_list: 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}/referenceLists/#{reference_list}" end |
#retrohunt_path(project:, location:, instance:, rule:, retrohunt:) ⇒ ::String
Create a fully-qualified Retrohunt resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}
102 103 104 105 106 107 108 109 |
# File 'lib/google/cloud/chronicle/v1/rule_service/paths.rb', line 102 def retrohunt_path project:, location:, instance:, rule:, retrohunt: 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? "/" raise ::ArgumentError, "rule cannot contain /" if rule.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/rules/#{rule}/retrohunts/#{retrohunt}" end |
#rule_deployment_path(project:, location:, instance:, rule:) ⇒ ::String
Create a fully-qualified RuleDeployment resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment
145 146 147 148 149 150 151 |
# File 'lib/google/cloud/chronicle/v1/rule_service/paths.rb', line 145 def rule_deployment_path project:, location:, instance:, rule: 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}/rules/#{rule}/deployment" end |
#rule_path(project:, location:, instance:, rule:) ⇒ ::String
Create a fully-qualified Rule resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
124 125 126 127 128 129 130 |
# File 'lib/google/cloud/chronicle/v1/rule_service/paths.rb', line 124 def rule_path project:, location:, instance:, rule: 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}/rules/#{rule}" end |