module Google::Cloud::Iot::V1::DeviceManager::Paths
Path helper methods for the DeviceManager
API.
Public Instance Methods
Create a fully-qualified Device resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/registries/{registry}/devices/{device}`
@param project [String] @param location [String] @param registry [String] @param device [String]
@return [::String]
# File lib/google/cloud/iot/v1/device_manager/paths.rb, line 40 def device_path project:, location:, registry:, device: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "registry cannot contain /" if registry.to_s.include? "/" "projects/#{project}/locations/#{location}/registries/#{registry}/devices/#{device}" end
Create a fully-qualified Location resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# File lib/google/cloud/iot/v1/device_manager/paths.rb, line 59 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
Create a fully-qualified Registry resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/registries/{registry}`
@param project [String] @param location [String] @param registry [String]
@return [::String]
# File lib/google/cloud/iot/v1/device_manager/paths.rb, line 77 def registry_path project:, location:, registry: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/registries/#{registry}" end