chore: upgrade to latest OpenAPI (#357)

This commit is contained in:
Dane Strandboge
2022-02-01 14:53:34 -06:00
committed by GitHub
parent 5cd1c9d037
commit 981be7872d
18 changed files with 145 additions and 114 deletions

View File

@ -17,24 +17,24 @@ import (
// Authorization struct for Authorization
type Authorization struct {
// If inactive the token is inactive and requests using the token will be rejected.
// Status of the token. If `inactive`, requests using the token will be rejected.
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// A description of the token.
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// ID of org that authorization is scoped to.
// ID of the organization that the authorization is scoped to.
OrgID string `json:"orgID" yaml:"orgID"`
// List of permissions for an auth. An auth must have at least one Permission.
// List of permissions for an authorization. An authorization must have at least one permission.
Permissions []Permission `json:"permissions" yaml:"permissions"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Passed via the Authorization Header and Token Authentication type.
// Token used to authenticate API requests.
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
// ID of user that created and owns the token.
// ID of the user that created and owns the token.
UserID *string `json:"userID,omitempty" yaml:"userID,omitempty"`
// Name of user that created and owns the token.
// Name of the user that created and owns the token.
User *string `json:"user,omitempty" yaml:"user,omitempty"`
// Name of the org token is scoped to.
// Name of the organization that the token is scoped to.
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
}