github.com/launchdarkly/api-client-go@v5.3.0+incompatible/model_token_body.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 TokenBody struct {
    14  	// A human-friendly name for the access token
    15  	Name string `json:"name,omitempty"`
    16  	// The name of a built-in role for the token
    17  	Role string `json:"role,omitempty"`
    18  	// A list of custom role IDs to use as access limits for the access token
    19  	CustomRoleIds []string `json:"customRoleIds,omitempty"`
    20  	InlineRole []Statement `json:"inlineRole,omitempty"`
    21  	// Whether the token will be a service token https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
    22  	ServiceToken bool `json:"serviceToken,omitempty"`
    23  	// The default API version for this token
    24  	DefaultApiVersion int32 `json:"defaultApiVersion,omitempty"`
    25  }