github.com/launchdarkly/api-client-go@v5.3.0+incompatible/model_token.go (about)

     1  /*
     2   * LaunchDarkly REST API
     3   *
     4   * Build custom integrations with the LaunchDarkly REST API
     5   *
     6   * API version: 5.3.0
     7   * Contact: support@launchdarkly.com
     8   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     9   */
    10  
    11  package ldapi
    12  
    13  type Token struct {
    14  	Links *Links `json:"_links,omitempty"`
    15  	// The unique resource id.
    16  	Id string `json:"_id,omitempty"`
    17  	// The unique resource id.
    18  	OwnerId string `json:"ownerId,omitempty"`
    19  	// The unique resource id.
    20  	MemberId string `json:"memberId,omitempty"`
    21  	Member *Member `json:"_member,omitempty"`
    22  	// A unix epoch time in milliseconds specifying the creation time of this access token.
    23  	CreationDate int64 `json:"creationDate,omitempty"`
    24  	// A unix epoch time in milliseconds specifying the last time this access token was modified.
    25  	LastModified int64 `json:"lastModified,omitempty"`
    26  	// A unix epoch time in milliseconds specifying the last time this access token was used to authorize access to the LaunchDarkly REST API.
    27  	LastUsed int64 `json:"lastUsed,omitempty"`
    28  	// The last 4 digits of the unique secret key for this access token. If creating or resetting the token, this will be the full token secret.
    29  	Token string `json:"token,omitempty"`
    30  	// A human-friendly name for the access token
    31  	Name string `json:"name,omitempty"`
    32  	// The name of a built-in role for the token
    33  	Role string `json:"role,omitempty"`
    34  	// A list of custom role IDs to use as access limits for the access token
    35  	CustomRoleIds []string `json:"customRoleIds,omitempty"`
    36  	InlineRole []Statement `json:"inlineRole,omitempty"`
    37  	// Whether the token will be a service token https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
    38  	ServiceToken bool `json:"serviceToken,omitempty"`
    39  	// The default API version for this token
    40  	DefaultApiVersion int32 `json:"defaultApiVersion,omitempty"`
    41  }