module Google::Area120::Tables::V1alpha1::TablesService::Paths

Path helper methods for the TablesService API.

Public Instance Methods

row_path(table:, row: raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/") click to toggle source

Create a fully-qualified Row resource string.

The resource will be in the following format:

`tables/{table}/rows/{row}`

@param table [String] @param row [String]

@return [::String]

# File lib/google/area120/tables/v1alpha1/tables_service/paths.rb, line 38
def row_path table:, row:
  raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/"

  "tables/#{table}/rows/#{row}"
end
table_path(table: "tables/ click to toggle source

Create a fully-qualified Table resource string.

The resource will be in the following format:

`tables/{table}`

@param table [String]

@return [::String]

# File lib/google/area120/tables/v1alpha1/tables_service/paths.rb, line 54
def table_path table:
  "tables/#{table}"
end
workspace_path(workspace: "workspaces/ click to toggle source

Create a fully-qualified Workspace resource string.

The resource will be in the following format:

`workspaces/{workspace}`

@param workspace [String]

@return [::String]

# File lib/google/area120/tables/v1alpha1/tables_service/paths.rb, line 68
def workspace_path workspace:
  "workspaces/#{workspace}"
end