Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.21 KB

File metadata and controls

32 lines (24 loc) · 1.21 KB

CreateAPITokenRequest

Properties

Name Type Description Notes
name str Name of the API token.
workspace_id ID [optional]
token_type TokenType [optional] [default to TokenType.UNSPECIFIED]
agent_id ID [optional]
expiry_days int [optional]

Example

from ri.apiclient.models.create_api_token_request import CreateAPITokenRequest

# TODO update the JSON string below
json = "{}"
# create an instance of CreateAPITokenRequest from a JSON string
create_api_token_request_instance = CreateAPITokenRequest.from_json(json)
# print the JSON string representation of the object
print(CreateAPITokenRequest.to_json())

# convert the object into a dict
create_api_token_request_dict = create_api_token_request_instance.to_dict()
# create an instance of CreateAPITokenRequest from a dict
create_api_token_request_from_dict = CreateAPITokenRequest.from_dict(create_api_token_request_dict)

[Back to Model list] [Back to API list] [Back to README]