Module: Google::Cloud::DeviceStreaming::V1::DirectAccessService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/device_streaming/v1/direct_access_service/paths.rb
Overview
Path helper methods for the DirectAccessService API.
Instance Method Summary collapse
-
#device_session_path(project:, device_session:) ⇒ ::String
Create a fully-qualified DeviceSession resource string.
-
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
Instance Method Details
#device_session_path(project:, device_session:) ⇒ ::String
Create a fully-qualified DeviceSession resource string.
The resource will be in the following format:
projects/{project}/deviceSessions/{device_session}
38 39 40 41 42 |
# File 'lib/google/cloud/device_streaming/v1/direct_access_service/paths.rb', line 38 def device_session_path project:, device_session: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/deviceSessions/#{device_session}" end |
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
The resource will be in the following format:
projects/{project}
54 55 56 |
# File 'lib/google/cloud/device_streaming/v1/direct_access_service/paths.rb', line 54 def project_path project: "projects/#{project}" end |