apitokens

package
v1.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIToken

type APIToken struct {
	ID                  *string  `json:"id,omitempty"`                  // The ID of the api token
	Name                string   `json:"name"`                          // The name of the token.
	Enabled             *bool    `json:"enabled,omitempty"`             // The token is enabled (true) or disabled (false), default disabled (false).
	PersonalAccessToken *bool    `json:"personalAccessToken,omitempty"` // The token is a personal access token (true) or an API token (false).
	ExpirationDate      *string  `json:"expirationDate,omitempty"`      // The expiration date of the token.
	Owner               *string  `json:"owner,omitempty"`               // The owner of the token
	CreationDate        *string  `json:"creationDate,omitempty"`        // Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
	ModifiedDate        *string  `json:"modifiedDate,omitempty"`        // Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
	LastUsedDate        *string  `json:"lastUsedDate,omitempty"`        // Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
	LastUsedIpAddress   *string  `json:"lastUsedIpAddress,omitempty"`   // Token last used IP address.
	Scopes              []string `json:"scopes"`                        // A list of the scopes to be assigned to the token.
	Token               *string  `json:"token,omitempty"`               // The secret of the token.
}

func (*APIToken) Equals

func (me *APIToken) Equals(v any) (string, bool)

func (*APIToken) MarshalHCL

func (me *APIToken) MarshalHCL(properties hcl.Properties) error

func (*APIToken) Schema

func (me *APIToken) Schema() map[string]*schema.Schema

func (*APIToken) UnmarshalHCL

func (me *APIToken) UnmarshalHCL(decoder hcl.Decoder) error

type TokenList

type TokenList struct {
	APITokens []*struct {
		APIToken
		ID *string `json:"id,omitempty"`
	} `json:"apiTokens"` // An ordered list of api tokens
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL