mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1309 lines
36 KiB
Go
1309 lines
36 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
// checks if the IamToken type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IamToken{}
|
|
|
|
// IamToken struct for IamToken
|
|
type IamToken struct {
|
|
AccessToken *string `json:"accessToken,omitempty"`
|
|
AccessTokenHash *string `json:"accessTokenHash,omitempty"`
|
|
// Actor is the SuperAdmin (\"owner/name\") who opened this grant AS its User — impersonation, /v1/iam/impersonate — and Reason is why they said they did. Both empty on every grant a person established themselves. A grant with an Actor mints a short access token that names the actor in `act` and carries `imp`, and never a refresh token (issueTokens), and /v1/iam/signin refuses its code, so it cannot become a session at the issuer.
|
|
Actor *string `json:"actor,omitempty"`
|
|
Application *string `json:"application,omitempty"`
|
|
Code *string `json:"code,omitempty"`
|
|
CodeChallenge *string `json:"codeChallenge,omitempty"`
|
|
CodeChallengeMethod *string `json:"codeChallengeMethod,omitempty"`
|
|
CodeExpireIn *int64 `json:"codeExpireIn,omitempty"`
|
|
CodeIsUsed *bool `json:"codeIsUsed,omitempty"`
|
|
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
|
CreatedTime *string `json:"createdTime,omitempty"`
|
|
Deleted *bool `json:"deleted,omitempty"`
|
|
ExpiresIn *int64 `json:"expiresIn,omitempty"`
|
|
// Persisted fields
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
// Nonce is the OIDC authorize nonce, stored on the code and echoed into the id_token minted at the exchange (OIDC Core §3.1.3.6) so a relying party binds the id_token to its own request and detects replay.
|
|
Nonce *string `json:"nonce,omitempty"`
|
|
Organization *string `json:"organization,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
// PublicGrant records that this grant was established WITHOUT client authentication — a PKCE code exchange from a client that presented no secret. Whether a client is confidential is a property of the GRANT, not only of the registration: `hanzo-cli` and every @hanzo/iam SPA keep a registered secret for a BACKEND path while the surface that actually signs in is a public PKCE client that cannot hold one. authorizationCodeGrant already makes exactly that bounded relaxation; this is the same fact, recorded so refreshTokenGrant can honour it instead of demanding a secret the client never had (which 401s invalid_client and kills the session at the access token's expiry). Carried across rotation, so the second refresh behaves like the first.
|
|
PublicGrant *bool `json:"publicGrant,omitempty"`
|
|
Reason *string `json:"reason,omitempty"`
|
|
// RedirectUri binds the authorization code to the exact redirect URI of the authorize request (RFC 6749 §4.1.3): the token endpoint refuses a code redeemed with a different redirect_uri, closing code-injection across a client's registered URIs.
|
|
RedirectUri *string `json:"redirectUri,omitempty"`
|
|
RefreshConsumed *bool `json:"refreshConsumed,omitempty"`
|
|
RefreshExpireIn *int64 `json:"refreshExpireIn,omitempty"`
|
|
// Refresh-token rotation state (v2). Each refresh belongs to a family (the grant); rotation mints a new row in the same family and marks the prior one consumed. Presenting a consumed refresh is reuse — the whole family is revoked (RFC 9700 §4.14.2). RefreshExpireIn is the refresh token's own absolute expiry (unix), independent of the access token's shorter life.
|
|
RefreshFamily *string `json:"refreshFamily,omitempty"`
|
|
RefreshToken *string `json:"refreshToken,omitempty"`
|
|
RefreshTokenHash *string `json:"refreshTokenHash,omitempty"`
|
|
// RFC 8707 resource indicator
|
|
Resource *string `json:"resource,omitempty"`
|
|
Scope *string `json:"scope,omitempty"`
|
|
TokenType *string `json:"tokenType,omitempty"`
|
|
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
|
User *string `json:"user,omitempty"`
|
|
UserCode *string `json:"userCode,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IamToken IamToken
|
|
|
|
// NewIamToken instantiates a new IamToken object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewIamToken() *IamToken {
|
|
this := IamToken{}
|
|
return &this
|
|
}
|
|
|
|
// NewIamTokenWithDefaults instantiates a new IamToken object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewIamTokenWithDefaults() *IamToken {
|
|
this := IamToken{}
|
|
return &this
|
|
}
|
|
|
|
// GetAccessToken returns the AccessToken field value if set, zero value otherwise.
|
|
func (o *IamToken) GetAccessToken() string {
|
|
if o == nil || IsNil(o.AccessToken) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AccessToken
|
|
}
|
|
|
|
// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetAccessTokenOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AccessToken) {
|
|
return nil, false
|
|
}
|
|
return o.AccessToken, true
|
|
}
|
|
|
|
// HasAccessToken returns a boolean if a field has been set.
|
|
func (o *IamToken) HasAccessToken() bool {
|
|
if o != nil && !IsNil(o.AccessToken) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.
|
|
func (o *IamToken) SetAccessToken(v string) {
|
|
o.AccessToken = &v
|
|
}
|
|
|
|
// GetAccessTokenHash returns the AccessTokenHash field value if set, zero value otherwise.
|
|
func (o *IamToken) GetAccessTokenHash() string {
|
|
if o == nil || IsNil(o.AccessTokenHash) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AccessTokenHash
|
|
}
|
|
|
|
// GetAccessTokenHashOk returns a tuple with the AccessTokenHash field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetAccessTokenHashOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AccessTokenHash) {
|
|
return nil, false
|
|
}
|
|
return o.AccessTokenHash, true
|
|
}
|
|
|
|
// HasAccessTokenHash returns a boolean if a field has been set.
|
|
func (o *IamToken) HasAccessTokenHash() bool {
|
|
if o != nil && !IsNil(o.AccessTokenHash) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccessTokenHash gets a reference to the given string and assigns it to the AccessTokenHash field.
|
|
func (o *IamToken) SetAccessTokenHash(v string) {
|
|
o.AccessTokenHash = &v
|
|
}
|
|
|
|
// GetActor returns the Actor field value if set, zero value otherwise.
|
|
func (o *IamToken) GetActor() string {
|
|
if o == nil || IsNil(o.Actor) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Actor
|
|
}
|
|
|
|
// GetActorOk returns a tuple with the Actor field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetActorOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Actor) {
|
|
return nil, false
|
|
}
|
|
return o.Actor, true
|
|
}
|
|
|
|
// HasActor returns a boolean if a field has been set.
|
|
func (o *IamToken) HasActor() bool {
|
|
if o != nil && !IsNil(o.Actor) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActor gets a reference to the given string and assigns it to the Actor field.
|
|
func (o *IamToken) SetActor(v string) {
|
|
o.Actor = &v
|
|
}
|
|
|
|
// GetApplication returns the Application field value if set, zero value otherwise.
|
|
func (o *IamToken) GetApplication() string {
|
|
if o == nil || IsNil(o.Application) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Application
|
|
}
|
|
|
|
// GetApplicationOk returns a tuple with the Application field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetApplicationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Application) {
|
|
return nil, false
|
|
}
|
|
return o.Application, true
|
|
}
|
|
|
|
// HasApplication returns a boolean if a field has been set.
|
|
func (o *IamToken) HasApplication() bool {
|
|
if o != nil && !IsNil(o.Application) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetApplication gets a reference to the given string and assigns it to the Application field.
|
|
func (o *IamToken) SetApplication(v string) {
|
|
o.Application = &v
|
|
}
|
|
|
|
// GetCode returns the Code field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCode() string {
|
|
if o == nil || IsNil(o.Code) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Code
|
|
}
|
|
|
|
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCodeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Code) {
|
|
return nil, false
|
|
}
|
|
return o.Code, true
|
|
}
|
|
|
|
// HasCode returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCode() bool {
|
|
if o != nil && !IsNil(o.Code) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCode gets a reference to the given string and assigns it to the Code field.
|
|
func (o *IamToken) SetCode(v string) {
|
|
o.Code = &v
|
|
}
|
|
|
|
// GetCodeChallenge returns the CodeChallenge field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCodeChallenge() string {
|
|
if o == nil || IsNil(o.CodeChallenge) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CodeChallenge
|
|
}
|
|
|
|
// GetCodeChallengeOk returns a tuple with the CodeChallenge field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCodeChallengeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CodeChallenge) {
|
|
return nil, false
|
|
}
|
|
return o.CodeChallenge, true
|
|
}
|
|
|
|
// HasCodeChallenge returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCodeChallenge() bool {
|
|
if o != nil && !IsNil(o.CodeChallenge) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCodeChallenge gets a reference to the given string and assigns it to the CodeChallenge field.
|
|
func (o *IamToken) SetCodeChallenge(v string) {
|
|
o.CodeChallenge = &v
|
|
}
|
|
|
|
// GetCodeChallengeMethod returns the CodeChallengeMethod field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCodeChallengeMethod() string {
|
|
if o == nil || IsNil(o.CodeChallengeMethod) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CodeChallengeMethod
|
|
}
|
|
|
|
// GetCodeChallengeMethodOk returns a tuple with the CodeChallengeMethod field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCodeChallengeMethodOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CodeChallengeMethod) {
|
|
return nil, false
|
|
}
|
|
return o.CodeChallengeMethod, true
|
|
}
|
|
|
|
// HasCodeChallengeMethod returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCodeChallengeMethod() bool {
|
|
if o != nil && !IsNil(o.CodeChallengeMethod) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCodeChallengeMethod gets a reference to the given string and assigns it to the CodeChallengeMethod field.
|
|
func (o *IamToken) SetCodeChallengeMethod(v string) {
|
|
o.CodeChallengeMethod = &v
|
|
}
|
|
|
|
// GetCodeExpireIn returns the CodeExpireIn field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCodeExpireIn() int64 {
|
|
if o == nil || IsNil(o.CodeExpireIn) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CodeExpireIn
|
|
}
|
|
|
|
// GetCodeExpireInOk returns a tuple with the CodeExpireIn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCodeExpireInOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CodeExpireIn) {
|
|
return nil, false
|
|
}
|
|
return o.CodeExpireIn, true
|
|
}
|
|
|
|
// HasCodeExpireIn returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCodeExpireIn() bool {
|
|
if o != nil && !IsNil(o.CodeExpireIn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCodeExpireIn gets a reference to the given int64 and assigns it to the CodeExpireIn field.
|
|
func (o *IamToken) SetCodeExpireIn(v int64) {
|
|
o.CodeExpireIn = &v
|
|
}
|
|
|
|
// GetCodeIsUsed returns the CodeIsUsed field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCodeIsUsed() bool {
|
|
if o == nil || IsNil(o.CodeIsUsed) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.CodeIsUsed
|
|
}
|
|
|
|
// GetCodeIsUsedOk returns a tuple with the CodeIsUsed field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCodeIsUsedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.CodeIsUsed) {
|
|
return nil, false
|
|
}
|
|
return o.CodeIsUsed, true
|
|
}
|
|
|
|
// HasCodeIsUsed returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCodeIsUsed() bool {
|
|
if o != nil && !IsNil(o.CodeIsUsed) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCodeIsUsed gets a reference to the given bool and assigns it to the CodeIsUsed field.
|
|
func (o *IamToken) SetCodeIsUsed(v bool) {
|
|
o.CodeIsUsed = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCreatedAt() time.Time {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret time.Time
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCreatedAtOk() (*time.Time, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
|
|
func (o *IamToken) SetCreatedAt(v time.Time) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
|
|
func (o *IamToken) GetCreatedTime() string {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedTime
|
|
}
|
|
|
|
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetCreatedTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedTime, true
|
|
}
|
|
|
|
// HasCreatedTime returns a boolean if a field has been set.
|
|
func (o *IamToken) HasCreatedTime() bool {
|
|
if o != nil && !IsNil(o.CreatedTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
|
|
func (o *IamToken) SetCreatedTime(v string) {
|
|
o.CreatedTime = &v
|
|
}
|
|
|
|
// GetDeleted returns the Deleted field value if set, zero value otherwise.
|
|
func (o *IamToken) GetDeleted() bool {
|
|
if o == nil || IsNil(o.Deleted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Deleted
|
|
}
|
|
|
|
// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetDeletedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Deleted) {
|
|
return nil, false
|
|
}
|
|
return o.Deleted, true
|
|
}
|
|
|
|
// HasDeleted returns a boolean if a field has been set.
|
|
func (o *IamToken) HasDeleted() bool {
|
|
if o != nil && !IsNil(o.Deleted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDeleted gets a reference to the given bool and assigns it to the Deleted field.
|
|
func (o *IamToken) SetDeleted(v bool) {
|
|
o.Deleted = &v
|
|
}
|
|
|
|
// GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise.
|
|
func (o *IamToken) GetExpiresIn() int64 {
|
|
if o == nil || IsNil(o.ExpiresIn) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.ExpiresIn
|
|
}
|
|
|
|
// GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetExpiresInOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.ExpiresIn) {
|
|
return nil, false
|
|
}
|
|
return o.ExpiresIn, true
|
|
}
|
|
|
|
// HasExpiresIn returns a boolean if a field has been set.
|
|
func (o *IamToken) HasExpiresIn() bool {
|
|
if o != nil && !IsNil(o.ExpiresIn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpiresIn gets a reference to the given int64 and assigns it to the ExpiresIn field.
|
|
func (o *IamToken) SetExpiresIn(v int64) {
|
|
o.ExpiresIn = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *IamToken) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *IamToken) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *IamToken) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *IamToken) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *IamToken) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *IamToken) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetNonce returns the Nonce field value if set, zero value otherwise.
|
|
func (o *IamToken) GetNonce() string {
|
|
if o == nil || IsNil(o.Nonce) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Nonce
|
|
}
|
|
|
|
// GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetNonceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Nonce) {
|
|
return nil, false
|
|
}
|
|
return o.Nonce, true
|
|
}
|
|
|
|
// HasNonce returns a boolean if a field has been set.
|
|
func (o *IamToken) HasNonce() bool {
|
|
if o != nil && !IsNil(o.Nonce) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNonce gets a reference to the given string and assigns it to the Nonce field.
|
|
func (o *IamToken) SetNonce(v string) {
|
|
o.Nonce = &v
|
|
}
|
|
|
|
// GetOrganization returns the Organization field value if set, zero value otherwise.
|
|
func (o *IamToken) GetOrganization() string {
|
|
if o == nil || IsNil(o.Organization) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Organization
|
|
}
|
|
|
|
// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetOrganizationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Organization) {
|
|
return nil, false
|
|
}
|
|
return o.Organization, true
|
|
}
|
|
|
|
// HasOrganization returns a boolean if a field has been set.
|
|
func (o *IamToken) HasOrganization() bool {
|
|
if o != nil && !IsNil(o.Organization) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrganization gets a reference to the given string and assigns it to the Organization field.
|
|
func (o *IamToken) SetOrganization(v string) {
|
|
o.Organization = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *IamToken) GetOwner() string {
|
|
if o == nil || IsNil(o.Owner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Owner
|
|
}
|
|
|
|
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetOwnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Owner) {
|
|
return nil, false
|
|
}
|
|
return o.Owner, true
|
|
}
|
|
|
|
// HasOwner returns a boolean if a field has been set.
|
|
func (o *IamToken) HasOwner() bool {
|
|
if o != nil && !IsNil(o.Owner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwner gets a reference to the given string and assigns it to the Owner field.
|
|
func (o *IamToken) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetPublicGrant returns the PublicGrant field value if set, zero value otherwise.
|
|
func (o *IamToken) GetPublicGrant() bool {
|
|
if o == nil || IsNil(o.PublicGrant) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.PublicGrant
|
|
}
|
|
|
|
// GetPublicGrantOk returns a tuple with the PublicGrant field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetPublicGrantOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.PublicGrant) {
|
|
return nil, false
|
|
}
|
|
return o.PublicGrant, true
|
|
}
|
|
|
|
// HasPublicGrant returns a boolean if a field has been set.
|
|
func (o *IamToken) HasPublicGrant() bool {
|
|
if o != nil && !IsNil(o.PublicGrant) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPublicGrant gets a reference to the given bool and assigns it to the PublicGrant field.
|
|
func (o *IamToken) SetPublicGrant(v bool) {
|
|
o.PublicGrant = &v
|
|
}
|
|
|
|
// GetReason returns the Reason field value if set, zero value otherwise.
|
|
func (o *IamToken) GetReason() string {
|
|
if o == nil || IsNil(o.Reason) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Reason
|
|
}
|
|
|
|
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetReasonOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Reason) {
|
|
return nil, false
|
|
}
|
|
return o.Reason, true
|
|
}
|
|
|
|
// HasReason returns a boolean if a field has been set.
|
|
func (o *IamToken) HasReason() bool {
|
|
if o != nil && !IsNil(o.Reason) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReason gets a reference to the given string and assigns it to the Reason field.
|
|
func (o *IamToken) SetReason(v string) {
|
|
o.Reason = &v
|
|
}
|
|
|
|
// GetRedirectUri returns the RedirectUri field value if set, zero value otherwise.
|
|
func (o *IamToken) GetRedirectUri() string {
|
|
if o == nil || IsNil(o.RedirectUri) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RedirectUri
|
|
}
|
|
|
|
// GetRedirectUriOk returns a tuple with the RedirectUri field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetRedirectUriOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RedirectUri) {
|
|
return nil, false
|
|
}
|
|
return o.RedirectUri, true
|
|
}
|
|
|
|
// HasRedirectUri returns a boolean if a field has been set.
|
|
func (o *IamToken) HasRedirectUri() bool {
|
|
if o != nil && !IsNil(o.RedirectUri) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRedirectUri gets a reference to the given string and assigns it to the RedirectUri field.
|
|
func (o *IamToken) SetRedirectUri(v string) {
|
|
o.RedirectUri = &v
|
|
}
|
|
|
|
// GetRefreshConsumed returns the RefreshConsumed field value if set, zero value otherwise.
|
|
func (o *IamToken) GetRefreshConsumed() bool {
|
|
if o == nil || IsNil(o.RefreshConsumed) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.RefreshConsumed
|
|
}
|
|
|
|
// GetRefreshConsumedOk returns a tuple with the RefreshConsumed field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetRefreshConsumedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.RefreshConsumed) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshConsumed, true
|
|
}
|
|
|
|
// HasRefreshConsumed returns a boolean if a field has been set.
|
|
func (o *IamToken) HasRefreshConsumed() bool {
|
|
if o != nil && !IsNil(o.RefreshConsumed) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshConsumed gets a reference to the given bool and assigns it to the RefreshConsumed field.
|
|
func (o *IamToken) SetRefreshConsumed(v bool) {
|
|
o.RefreshConsumed = &v
|
|
}
|
|
|
|
// GetRefreshExpireIn returns the RefreshExpireIn field value if set, zero value otherwise.
|
|
func (o *IamToken) GetRefreshExpireIn() int64 {
|
|
if o == nil || IsNil(o.RefreshExpireIn) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.RefreshExpireIn
|
|
}
|
|
|
|
// GetRefreshExpireInOk returns a tuple with the RefreshExpireIn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetRefreshExpireInOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.RefreshExpireIn) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshExpireIn, true
|
|
}
|
|
|
|
// HasRefreshExpireIn returns a boolean if a field has been set.
|
|
func (o *IamToken) HasRefreshExpireIn() bool {
|
|
if o != nil && !IsNil(o.RefreshExpireIn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshExpireIn gets a reference to the given int64 and assigns it to the RefreshExpireIn field.
|
|
func (o *IamToken) SetRefreshExpireIn(v int64) {
|
|
o.RefreshExpireIn = &v
|
|
}
|
|
|
|
// GetRefreshFamily returns the RefreshFamily field value if set, zero value otherwise.
|
|
func (o *IamToken) GetRefreshFamily() string {
|
|
if o == nil || IsNil(o.RefreshFamily) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RefreshFamily
|
|
}
|
|
|
|
// GetRefreshFamilyOk returns a tuple with the RefreshFamily field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetRefreshFamilyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RefreshFamily) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshFamily, true
|
|
}
|
|
|
|
// HasRefreshFamily returns a boolean if a field has been set.
|
|
func (o *IamToken) HasRefreshFamily() bool {
|
|
if o != nil && !IsNil(o.RefreshFamily) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshFamily gets a reference to the given string and assigns it to the RefreshFamily field.
|
|
func (o *IamToken) SetRefreshFamily(v string) {
|
|
o.RefreshFamily = &v
|
|
}
|
|
|
|
// GetRefreshToken returns the RefreshToken field value if set, zero value otherwise.
|
|
func (o *IamToken) GetRefreshToken() string {
|
|
if o == nil || IsNil(o.RefreshToken) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RefreshToken
|
|
}
|
|
|
|
// GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetRefreshTokenOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RefreshToken) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshToken, true
|
|
}
|
|
|
|
// HasRefreshToken returns a boolean if a field has been set.
|
|
func (o *IamToken) HasRefreshToken() bool {
|
|
if o != nil && !IsNil(o.RefreshToken) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshToken gets a reference to the given string and assigns it to the RefreshToken field.
|
|
func (o *IamToken) SetRefreshToken(v string) {
|
|
o.RefreshToken = &v
|
|
}
|
|
|
|
// GetRefreshTokenHash returns the RefreshTokenHash field value if set, zero value otherwise.
|
|
func (o *IamToken) GetRefreshTokenHash() string {
|
|
if o == nil || IsNil(o.RefreshTokenHash) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RefreshTokenHash
|
|
}
|
|
|
|
// GetRefreshTokenHashOk returns a tuple with the RefreshTokenHash field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetRefreshTokenHashOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RefreshTokenHash) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshTokenHash, true
|
|
}
|
|
|
|
// HasRefreshTokenHash returns a boolean if a field has been set.
|
|
func (o *IamToken) HasRefreshTokenHash() bool {
|
|
if o != nil && !IsNil(o.RefreshTokenHash) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshTokenHash gets a reference to the given string and assigns it to the RefreshTokenHash field.
|
|
func (o *IamToken) SetRefreshTokenHash(v string) {
|
|
o.RefreshTokenHash = &v
|
|
}
|
|
|
|
// GetResource returns the Resource field value if set, zero value otherwise.
|
|
func (o *IamToken) GetResource() string {
|
|
if o == nil || IsNil(o.Resource) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Resource
|
|
}
|
|
|
|
// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetResourceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Resource) {
|
|
return nil, false
|
|
}
|
|
return o.Resource, true
|
|
}
|
|
|
|
// HasResource returns a boolean if a field has been set.
|
|
func (o *IamToken) HasResource() bool {
|
|
if o != nil && !IsNil(o.Resource) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetResource gets a reference to the given string and assigns it to the Resource field.
|
|
func (o *IamToken) SetResource(v string) {
|
|
o.Resource = &v
|
|
}
|
|
|
|
// GetScope returns the Scope field value if set, zero value otherwise.
|
|
func (o *IamToken) GetScope() string {
|
|
if o == nil || IsNil(o.Scope) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Scope
|
|
}
|
|
|
|
// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetScopeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Scope) {
|
|
return nil, false
|
|
}
|
|
return o.Scope, true
|
|
}
|
|
|
|
// HasScope returns a boolean if a field has been set.
|
|
func (o *IamToken) HasScope() bool {
|
|
if o != nil && !IsNil(o.Scope) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetScope gets a reference to the given string and assigns it to the Scope field.
|
|
func (o *IamToken) SetScope(v string) {
|
|
o.Scope = &v
|
|
}
|
|
|
|
// GetTokenType returns the TokenType field value if set, zero value otherwise.
|
|
func (o *IamToken) GetTokenType() string {
|
|
if o == nil || IsNil(o.TokenType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TokenType
|
|
}
|
|
|
|
// GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetTokenTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TokenType) {
|
|
return nil, false
|
|
}
|
|
return o.TokenType, true
|
|
}
|
|
|
|
// HasTokenType returns a boolean if a field has been set.
|
|
func (o *IamToken) HasTokenType() bool {
|
|
if o != nil && !IsNil(o.TokenType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTokenType gets a reference to the given string and assigns it to the TokenType field.
|
|
func (o *IamToken) SetTokenType(v string) {
|
|
o.TokenType = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *IamToken) GetUpdatedAt() time.Time {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret time.Time
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetUpdatedAtOk() (*time.Time, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *IamToken) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
|
|
func (o *IamToken) SetUpdatedAt(v time.Time) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
// GetUser returns the User field value if set, zero value otherwise.
|
|
func (o *IamToken) GetUser() string {
|
|
if o == nil || IsNil(o.User) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.User
|
|
}
|
|
|
|
// GetUserOk returns a tuple with the User field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetUserOk() (*string, bool) {
|
|
if o == nil || IsNil(o.User) {
|
|
return nil, false
|
|
}
|
|
return o.User, true
|
|
}
|
|
|
|
// HasUser returns a boolean if a field has been set.
|
|
func (o *IamToken) HasUser() bool {
|
|
if o != nil && !IsNil(o.User) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUser gets a reference to the given string and assigns it to the User field.
|
|
func (o *IamToken) SetUser(v string) {
|
|
o.User = &v
|
|
}
|
|
|
|
// GetUserCode returns the UserCode field value if set, zero value otherwise.
|
|
func (o *IamToken) GetUserCode() string {
|
|
if o == nil || IsNil(o.UserCode) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserCode
|
|
}
|
|
|
|
// GetUserCodeOk returns a tuple with the UserCode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamToken) GetUserCodeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserCode) {
|
|
return nil, false
|
|
}
|
|
return o.UserCode, true
|
|
}
|
|
|
|
// HasUserCode returns a boolean if a field has been set.
|
|
func (o *IamToken) HasUserCode() bool {
|
|
if o != nil && !IsNil(o.UserCode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserCode gets a reference to the given string and assigns it to the UserCode field.
|
|
func (o *IamToken) SetUserCode(v string) {
|
|
o.UserCode = &v
|
|
}
|
|
|
|
func (o IamToken) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IamToken) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AccessToken) {
|
|
toSerialize["accessToken"] = o.AccessToken
|
|
}
|
|
if !IsNil(o.AccessTokenHash) {
|
|
toSerialize["accessTokenHash"] = o.AccessTokenHash
|
|
}
|
|
if !IsNil(o.Actor) {
|
|
toSerialize["actor"] = o.Actor
|
|
}
|
|
if !IsNil(o.Application) {
|
|
toSerialize["application"] = o.Application
|
|
}
|
|
if !IsNil(o.Code) {
|
|
toSerialize["code"] = o.Code
|
|
}
|
|
if !IsNil(o.CodeChallenge) {
|
|
toSerialize["codeChallenge"] = o.CodeChallenge
|
|
}
|
|
if !IsNil(o.CodeChallengeMethod) {
|
|
toSerialize["codeChallengeMethod"] = o.CodeChallengeMethod
|
|
}
|
|
if !IsNil(o.CodeExpireIn) {
|
|
toSerialize["codeExpireIn"] = o.CodeExpireIn
|
|
}
|
|
if !IsNil(o.CodeIsUsed) {
|
|
toSerialize["codeIsUsed"] = o.CodeIsUsed
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.CreatedTime) {
|
|
toSerialize["createdTime"] = o.CreatedTime
|
|
}
|
|
if !IsNil(o.Deleted) {
|
|
toSerialize["deleted"] = o.Deleted
|
|
}
|
|
if !IsNil(o.ExpiresIn) {
|
|
toSerialize["expiresIn"] = o.ExpiresIn
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Nonce) {
|
|
toSerialize["nonce"] = o.Nonce
|
|
}
|
|
if !IsNil(o.Organization) {
|
|
toSerialize["organization"] = o.Organization
|
|
}
|
|
if !IsNil(o.Owner) {
|
|
toSerialize["owner"] = o.Owner
|
|
}
|
|
if !IsNil(o.PublicGrant) {
|
|
toSerialize["publicGrant"] = o.PublicGrant
|
|
}
|
|
if !IsNil(o.Reason) {
|
|
toSerialize["reason"] = o.Reason
|
|
}
|
|
if !IsNil(o.RedirectUri) {
|
|
toSerialize["redirectUri"] = o.RedirectUri
|
|
}
|
|
if !IsNil(o.RefreshConsumed) {
|
|
toSerialize["refreshConsumed"] = o.RefreshConsumed
|
|
}
|
|
if !IsNil(o.RefreshExpireIn) {
|
|
toSerialize["refreshExpireIn"] = o.RefreshExpireIn
|
|
}
|
|
if !IsNil(o.RefreshFamily) {
|
|
toSerialize["refreshFamily"] = o.RefreshFamily
|
|
}
|
|
if !IsNil(o.RefreshToken) {
|
|
toSerialize["refreshToken"] = o.RefreshToken
|
|
}
|
|
if !IsNil(o.RefreshTokenHash) {
|
|
toSerialize["refreshTokenHash"] = o.RefreshTokenHash
|
|
}
|
|
if !IsNil(o.Resource) {
|
|
toSerialize["resource"] = o.Resource
|
|
}
|
|
if !IsNil(o.Scope) {
|
|
toSerialize["scope"] = o.Scope
|
|
}
|
|
if !IsNil(o.TokenType) {
|
|
toSerialize["tokenType"] = o.TokenType
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
if !IsNil(o.User) {
|
|
toSerialize["user"] = o.User
|
|
}
|
|
if !IsNil(o.UserCode) {
|
|
toSerialize["userCode"] = o.UserCode
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IamToken) UnmarshalJSON(data []byte) (err error) {
|
|
varIamToken := _IamToken{}
|
|
|
|
err = json.Unmarshal(data, &varIamToken)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IamToken(varIamToken)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "accessToken")
|
|
delete(additionalProperties, "accessTokenHash")
|
|
delete(additionalProperties, "actor")
|
|
delete(additionalProperties, "application")
|
|
delete(additionalProperties, "code")
|
|
delete(additionalProperties, "codeChallenge")
|
|
delete(additionalProperties, "codeChallengeMethod")
|
|
delete(additionalProperties, "codeExpireIn")
|
|
delete(additionalProperties, "codeIsUsed")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "createdTime")
|
|
delete(additionalProperties, "deleted")
|
|
delete(additionalProperties, "expiresIn")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "nonce")
|
|
delete(additionalProperties, "organization")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "publicGrant")
|
|
delete(additionalProperties, "reason")
|
|
delete(additionalProperties, "redirectUri")
|
|
delete(additionalProperties, "refreshConsumed")
|
|
delete(additionalProperties, "refreshExpireIn")
|
|
delete(additionalProperties, "refreshFamily")
|
|
delete(additionalProperties, "refreshToken")
|
|
delete(additionalProperties, "refreshTokenHash")
|
|
delete(additionalProperties, "resource")
|
|
delete(additionalProperties, "scope")
|
|
delete(additionalProperties, "tokenType")
|
|
delete(additionalProperties, "updatedAt")
|
|
delete(additionalProperties, "user")
|
|
delete(additionalProperties, "userCode")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIamToken struct {
|
|
value *IamToken
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIamToken) Get() *IamToken {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIamToken) Set(val *IamToken) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIamToken) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIamToken) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIamToken(val *IamToken) *NullableIamToken {
|
|
return &NullableIamToken{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIamToken) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIamToken) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|