Skip to content

resource_identifier

Types that identify a ressource in the Geo Engine

class MlModelName()

A wrapper for an MlModel name

@classmethod
def from_response(
cls, response: geoengine_api_client.models.MlModelNameResponse
) -> MlModelName

Parse a http response to an DatasetName

def __eq__(other) -> bool

Checks if two dataset names are equal

class DatasetName()

A wrapper for a dataset name

@classmethod
def from_response(
cls,
response: geoengine_api_client.DatasetNameResponse) -> DatasetName

Parse a http response to an DatasetName

def __eq__(other) -> bool

Checks if two dataset names are equal

class UploadId()

A wrapper for an upload id

@classmethod
def from_response(cls, response: geoengine_api_client.IdResponse) -> UploadId

Parse a http response to an UploadId

def __eq__(other) -> bool

Checks if two upload ids are equal

def to_api_dict() -> geoengine_api_client.IdResponse

Converts the upload id to a dict for the api

class Resource()

A wrapper for a resource id

def __init__(resource_type: Literal["dataset", "layer", "layerCollection",
"mlModel", "project"],
resource_id: str | UUID) -> None

Create a resource id

@classmethod
def from_layer_id(cls, layer_id: LayerId) -> Resource

Create a resource id from a layer id

@classmethod
def from_layer_collection_id(
cls, layer_collection_id: LayerCollectionId) -> Resource

Create a resource id from a layer collection id

@classmethod
def from_dataset_name(cls, dataset_name: DatasetName | str) -> Resource

Create a resource id from a dataset name

@classmethod
def from_ml_model_name(cls, ml_model_name: MlModelName | str) -> Resource

Create a resource from an ml model name

def to_api_dict() -> geoengine_api_client.Resource

Convert to a dict for the API

@classmethod
def from_response(cls, response: geoengine_api_client.Resource) -> Resource

Convert to a dict for the API

def __eq__(value)

Checks if two listings are equal