Module: Google::Cloud::Chronicle::V1::DataAccessControlService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/chronicle/v1/data_access_control_service/paths.rb
Overview
Path helper methods for the DataAccessControlService API.
Instance Method Summary collapse
-
#data_access_label_path(project:, location:, instance:, data_access_label:) ⇒ ::String
Create a fully-qualified DataAccessLabel resource string.
-
#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.
Instance Method Details
#data_access_label_path(project:, location:, instance:, data_access_label:) ⇒ ::String
Create a fully-qualified DataAccessLabel resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/chronicle/v1/data_access_control_service/paths.rb', line 40 def data_access_label_path project:, location:, instance:, data_access_label: 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}/dataAccessLabels/#{data_access_label}" end |
#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}
61 62 63 64 65 66 67 |
# File 'lib/google/cloud/chronicle/v1/data_access_control_service/paths.rb', line 61 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}
81 82 83 84 85 86 |
# File 'lib/google/cloud/chronicle/v1/data_access_control_service/paths.rb', line 81 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 |