Skip to content

Commit

Permalink
Merge pull request #346 from platformsh/add-last-used-api-token
Browse files Browse the repository at this point in the history
added the field last used at for api token
  • Loading branch information
shakaman authored Sep 26, 2024
2 parents 9712dd8 + 9445515 commit 14e5566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/ApiToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const createableField = [
"name",
"created_at",
"updated_at",
"updated_at",
"last_used_at",
"token"
];

Expand All @@ -31,6 +31,7 @@ export class ApiToken extends Ressource {
name: string;
created_at: string;
update_at: string;
last_used_at: string | null;
token: string;

constructor(apiToken: APIObject, params: ParamsType) {
Expand All @@ -45,6 +46,7 @@ export class ApiToken extends Ressource {
this.name = apiToken.name;
this.created_at = apiToken.created_at;
this.update_at = apiToken.update_at;
this.last_used_at = apiToken.last_used_at;
this.token = apiToken.token;
}

Expand Down

0 comments on commit 14e5566

Please sign in to comment.