Token#
- class geodesic.account.tokens.Token(**token)[source]#
Represents the share tokens created when a user shares a dataset through Vertex.
- Parameters:
**token – values corresponding to the token and the dataset it shares
Attributes
alias
(str) - the alias/nickname of the token
category
(str) - the category of the dataset shared by the token
created_at
(str,
datetime
,datetime64
) - the time the token was createddataset_hash
(str) - the hash of the dataset shared by the token
dataset_name
(str) - the name of the dataset shared by the token
description
(str) - the description of the token
domain
(str) - the domain of the dataset shared by the token
expires_at
(str,
datetime
,datetime64
) - the time the token expiresextra_settings
(dict) - extra settings for the token
feature_service_url
Gets a url to an GeoServices FeatureService.
geometry
(str, dict, bytes,
BaseGeometry
) - the geometry of the extent shared by the tokenimage_service_url
Gets a url to an GeoServices ImageService.
last_used_at
(str,
datetime
,datetime64
) - the time the token was last usedproject
the hash (uid) of the project of the dataset shared by the token
qualifiers
(dict) - qualifiers of the dataset shared by the token
servicer_name
(str) - the servicer of the dataset shared by the token
token
(str) - unique 32-bit token created by Vertex and used to access a shared dataset
ttl
(str) - the remaining time in seconds until the token expires
type
(str) - the type of the dataset shared by the token
updated_at
(str,
datetime
,datetime64
) - the time the token was last updatedurl
Returns the URL that can be used to access a datset shared through Vertex.
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_url
([url_style])Returns the URL that can be used to access a datset shared through Vertex.
get_vector_tile_service_url
([service_name])Gets a url to an GeoServices VectorTileService.
items
()keys
()pop
(k[,d])If the key is not found, return the default if given; otherwise, raise a KeyError.
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
()