Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Commit 55e1584

Browse files
author
LaunchDarklyCI
committed
Version 3.4.0 automatically generated from ld-openapi@003892e.
1 parent de1ade2 commit 55e1584

File tree

10 files changed

+1065
-11
lines changed

10 files changed

+1065
-11
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ All URIs are relative to */api/v2*
9999

100100
Class | Method | HTTP request | Description
101101
------------ | ------------- | ------------- | -------------
102+
*AccessTokensApi* | [**deleteToken**](docs/AccessTokensApi.md#deletetoken) | **DELETE** /tokens/{tokenId} | Delete an access token by ID.
103+
*AccessTokensApi* | [**getToken**](docs/AccessTokensApi.md#gettoken) | **GET** /tokens/{tokenId} | Get a single access token by ID.
104+
*AccessTokensApi* | [**getTokens**](docs/AccessTokensApi.md#gettokens) | **GET** /tokens | Returns a list of tokens in the account.
105+
*AccessTokensApi* | [**patchToken**](docs/AccessTokensApi.md#patchtoken) | **PATCH** /tokens/{tokenId} | Modify an access tokenby ID.
106+
*AccessTokensApi* | [**postToken**](docs/AccessTokensApi.md#posttoken) | **POST** /tokens | Create a new token.
107+
*AccessTokensApi* | [**resetToken**](docs/AccessTokensApi.md#resettoken) | **POST** /tokens/{tokenId}/reset | Reset an access token's secret key with an optional expiry time for the old key.
102108
*AuditLogApi* | [**getAuditLogEntries**](docs/AuditLogApi.md#getauditlogentries) | **GET** /auditlog | Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
103109
*AuditLogApi* | [**getAuditLogEntry**](docs/AuditLogApi.md#getauditlogentry) | **GET** /auditlog/{resourceId} | Use this endpoint to fetch a single audit log entry by its resouce ID.
104110
*CustomRolesApi* | [**deleteCustomRole**](docs/CustomRolesApi.md#deletecustomrole) | **DELETE** /roles/{customRoleKey} | Delete a custom role by key.
@@ -243,6 +249,9 @@ Class | Method | HTTP request | Description
243249
- [StreamUsageSeries](docs/StreamUsageSeries.md)
244250
- [Streams](docs/Streams.md)
245251
- [Target](docs/Target.md)
252+
- [Token](docs/Token.md)
253+
- [TokenBody](docs/TokenBody.md)
254+
- [Tokens](docs/Tokens.md)
246255
- [Usage](docs/Usage.md)
247256
- [UsageError](docs/UsageError.md)
248257
- [UsageLinks](docs/UsageLinks.md)

_client.sh

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ case $state in
296296
ops)
297297
# Operations
298298
_values "Operations" \
299-
"getAuditLogEntries[Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.]" \
299+
"deleteToken[Delete an access token by ID.]" \
300+
"getToken[Get a single access token by ID.]" \
301+
"getTokens[Returns a list of tokens in the account.]" \
302+
"patchToken[Modify an access tokenby ID.]" \
303+
"postToken[Create a new token.]" \
304+
"resetToken[Reset an access token's secret key with an optional expiry time for the old key.]" "getAuditLogEntries[Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.]" \
300305
"getAuditLogEntry[Use this endpoint to fetch a single audit log entry by its resouce ID.]" "deleteCustomRole[Delete a custom role by key.]" \
301306
"getCustomRole[Get one custom role by key.]" \
302307
"getCustomRoles[Return a complete list of custom roles.]" \
@@ -360,6 +365,49 @@ case $state in
360365
;;
361366
args)
362367
case $line[1] in
368+
deleteToken)
369+
local -a _op_arguments
370+
_op_arguments=(
371+
"tokenId=:[PATH] The access token ID."
372+
)
373+
_describe -t actions 'operations' _op_arguments -S '' && ret=0
374+
;;
375+
getToken)
376+
local -a _op_arguments
377+
_op_arguments=(
378+
"tokenId=:[PATH] The access token ID."
379+
)
380+
_describe -t actions 'operations' _op_arguments -S '' && ret=0
381+
;;
382+
getTokens)
383+
local -a _op_arguments
384+
_op_arguments=(
385+
"showAll=true:[QUERY] If set to true, and the authentication access token has the \"Admin\" role, personal access tokens for all members will be retrieved."
386+
"showAll=false:[QUERY] If set to true, and the authentication access token has the \"Admin\" role, personal access tokens for all members will be retrieved."
387+
)
388+
_describe -t actions 'operations' _op_arguments -S '' && ret=0
389+
;;
390+
patchToken)
391+
local -a _op_arguments
392+
_op_arguments=(
393+
"tokenId=:[PATH] The access token ID."
394+
)
395+
_describe -t actions 'operations' _op_arguments -S '' && ret=0
396+
;;
397+
postToken)
398+
local -a _op_arguments
399+
_op_arguments=(
400+
)
401+
_describe -t actions 'operations' _op_arguments -S '' && ret=0
402+
;;
403+
resetToken)
404+
local -a _op_arguments
405+
_op_arguments=(
406+
"tokenId=:[PATH] The access token ID."
407+
"expiry=:[QUERY] An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately."
408+
)
409+
_describe -t actions 'operations' _op_arguments -S '' && ret=0
410+
;;
363411
getAuditLogEntries)
364412
local -a _op_arguments
365413
_op_arguments=(
@@ -615,8 +663,8 @@ case $state in
615663
"env=:[QUERY] By default, each feature will include configurations for each environment. You can filter environments with the env query parameter. For example, setting env=[\"production\"] will restrict the returned configurations to just your production environment."
616664
"summary=true:[QUERY] By default in api version >= 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary=0 to include these fields for each flag returned."
617665
"summary=false:[QUERY] By default in api version >= 1, flags will _not_ include their list of prerequisites, targets or rules. Set summary=0 to include these fields for each flag returned."
618-
"archived=true:[QUERY] When set to 1, archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags."
619-
"archived=false:[QUERY] When set to 1, archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags."
666+
"archived=true:[QUERY] When set to 1, only archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags."
667+
"archived=false:[QUERY] When set to 1, only archived flags will be included in the list of flags returned. By default, archived flags are not included in the list of flags."
620668
"limit=:[QUERY] The number of objects to return. Defaults to -1, which returns everything."
621669
"offset=:[QUERY] Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first 10 items and then return the next limit items."
622670
"filter=:[QUERY] A comma-separated list of filters. Each filter is of the form field:value."

0 commit comments

Comments
 (0)