cesium-native 0.43.0
Loading...
Searching...
No Matches
Token.h
1#pragma once
2
3#include <cstdint>
4#include <optional>
5#include <string>
6#include <vector>
7
8namespace CesiumIonClient {
12struct Token {
16 std::string id{};
17
21 std::string name{};
22
26 std::string token{};
27
31 std::string dateAdded{};
32
37 std::string dateModified{};
38
42 std::string dateLastUsed{};
43
49 std::optional<std::vector<int64_t>> assetIds{};
50
54 bool isDefault{};
55
61 std::optional<std::vector<std::string>> allowedUrls{};
62
66 std::vector<std::string> scopes{};
67};
68} // namespace CesiumIonClient
Classes for working with Cesium ion clients.
A Cesium ion access token.
Definition Token.h:12
std::string token
The token value.
Definition Token.h:26
std::optional< std::vector< std::string > > allowedUrls
The URLs from which this token can be accessed.
Definition Token.h:61
std::string dateModified
The date and time that this token was last modified, in RFC 3339 format.
Definition Token.h:37
std::optional< std::vector< int64_t > > assetIds
The IDs of the assets that can be accessed using this token.
Definition Token.h:49
std::string name
The name of the token.
Definition Token.h:21
std::vector< std::string > scopes
The scopes granted by this token.
Definition Token.h:66
bool isDefault
True if this is the default token.
Definition Token.h:54
std::string dateAdded
The date and time that this token was created, in RFC 3339 format.
Definition Token.h:31
std::string dateLastUsed
The date and time that this token was last used, in RFC 3339 format.
Definition Token.h:42