Token#
- class geodesic.account.tokens.Token(**token)[source]#
The token class represents the share tokens created when a user shares a dataset through Ted
- Parameters:
**token – values corresponding to the token and the dataset it shares
Attributes
dataset
(str) - the dataset shared by the token
feature_service_url
gets a url to an GeoServices FeatureService
image_service_url
gets a url to an GeoServices ImageService
project
(str) - the project of the dataset shared by the token
servicer
(str) - the servicer of the dataset shared by the token
token
(str) - unique 32-bit token created by Ted and used to access a shared dataset
ttl
(str) - the remaining time in seconds until the token expires
url
Returns the URL that can be used to access a datset shared through Ted on the current environment
vector_tile_service_url
gets a url to an GeoServices VectorTileService
Methods
clear
()copy
()feature_layer_url
([layer_id, service_name])Deprecated in 1.0.0
fromkeys
([value])Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])Return the value for key if key is in the dictionary, else default.
get_feature_layer_url
([layer_id, service_name])gets a url to an GeoServices Feature Layer
get_feature_service_url
([service_name])gets a url to an GeoServices FeatureService
get_image_service_url
([service_name])gets a url to an GeoServices ImageService
get_ogc_raster_tile_url
([collection, ...])gets a url to an OGC API: Tiles service
get_ogc_vector_tile_url
([collection, ...])gets a url to an OGC API: Tiles service
get_vector_tile_service_url
([service_name])gets a url to an GeoServices VectorTileService
items
()keys
()pop
(k[,d])If key is not found, default is returned if given, otherwise KeyError is raised
popitem
()Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])Insert key with a value of default if key is not in the dictionary.
unshare
()Expires an active token created by the user, revoking access from anyone using the token
update
(*mapping, **kwargs)update_ttl
(ttl)Update the time to live of a token in redis
values
()