Cloud Firestore Admin V1 API - Module Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Paths (v0.10.0)

Reference documentation and code samples for the Cloud Firestore Admin V1 API module Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Paths.

Path helper methods for the FirestoreAdmin API.

Methods

#collection_group_path

def collection_group_path(project:, database:, collection:) -> ::String

Create a fully-qualified CollectionGroup resource string.

The resource will be in the following format:

projects/{project}/databases/{database}/collectionGroups/{collection}

Parameters
  • project (String)
  • database (String)
  • collection (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#database_path

def database_path(project:, database:) -> ::String

Create a fully-qualified Database resource string.

The resource will be in the following format:

projects/{project}/databases/{database}

Parameters
  • project (String)
  • database (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#field_path

def field_path(project:, database:, collection:, field:) -> ::String

Create a fully-qualified Field resource string.

The resource will be in the following format:

projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}

Parameters
  • project (String)
  • database (String)
  • collection (String)
  • field (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#index_path

def index_path(project:, database:, collection:, index:) -> ::String

Create a fully-qualified Index resource string.

The resource will be in the following format:

projects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}

Parameters
  • project (String)
  • database (String)
  • collection (String)
  • index (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#project_path

def project_path(project:) -> ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
Returns
  • (::String)