MCPcopy
hub / github.com/google/earthengine-api / createAssetHome

Function createAssetHome

python/ee/data.py:2228–2241  ·  view source on GitHub ↗

Attempts to create a home root folder for the current user ("users/joe"). Results in an error if the user already has a home root folder or the requested ID is unavailable. Args: requestedId: The requested ID of the home folder (e.g., "users/joe").

(requestedId: str)

Source from the content-addressed store, hash-verified

2226
2227
2228def createAssetHome(requestedId: str) -> None:
2229 """Attempts to create a home root folder for the current user ("users/joe").
2230
2231 Results in an error if the user already has a home root folder or the
2232 requested ID is unavailable.
2233
2234 Args:
2235 requestedId: The requested ID of the home folder (e.g., "users/joe").
2236 """
2237 # This is just a special case of folder creation.
2238 createAsset({
2239 'name': _cloud_api_utils.convert_asset_id_to_asset_name(requestedId),
2240 'type': 'FOLDER'
2241 })
2242
2243
2244def _get_config_path() -> str:

Callers

nothing calls this directly

Calls 1

createAssetFunction · 0.85

Tested by

no test coverage detected