Skip to content

TokenRequest

Properties

Name Type Description Notes
ClientId string OAuth client ID
ClientSecret string OAuth client secret
OmadacId Pointer to string Omada Controller ID (required for client_credentials grant) [optional]

Methods

NewTokenRequest

func NewTokenRequest(clientId string, clientSecret string, ) *TokenRequest

NewTokenRequest instantiates a new TokenRequest 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

NewTokenRequestWithDefaults

func NewTokenRequestWithDefaults() *TokenRequest

NewTokenRequestWithDefaults instantiates a new TokenRequest 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

GetClientId

func (o *TokenRequest) GetClientId() string

GetClientId returns the ClientId field if non-nil, zero value otherwise.

GetClientIdOk

func (o *TokenRequest) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetClientId

func (o *TokenRequest) SetClientId(v string)

SetClientId sets ClientId field to given value.

GetClientSecret

func (o *TokenRequest) GetClientSecret() string

GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.

GetClientSecretOk

func (o *TokenRequest) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetClientSecret

func (o *TokenRequest) SetClientSecret(v string)

SetClientSecret sets ClientSecret field to given value.

GetOmadacId

func (o *TokenRequest) GetOmadacId() string

GetOmadacId returns the OmadacId field if non-nil, zero value otherwise.

GetOmadacIdOk

func (o *TokenRequest) GetOmadacIdOk() (*string, bool)

GetOmadacIdOk returns a tuple with the OmadacId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOmadacId

func (o *TokenRequest) SetOmadacId(v string)

SetOmadacId sets OmadacId field to given value.

HasOmadacId

func (o *TokenRequest) HasOmadacId() bool

HasOmadacId returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]