Documentation ¶
Index ¶
- Constants
- func AddPinnedCert(transport *http.Transport, pkFingerprint string)
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type ApiTokensDeleteByCriteriaRequest
- func (r ApiTokensDeleteByCriteriaRequest) Criteria(criteria string) ApiTokensDeleteByCriteriaRequest
- func (r ApiTokensDeleteByCriteriaRequest) Execute() (DeleteResponse, *shared.APIResponse, error)
- func (r ApiTokensDeleteByCriteriaRequest) XContractNumber(xContractNumber int32) ApiTokensDeleteByCriteriaRequest
- type ApiTokensDeleteByIdRequest
- type ApiTokensFindByIdRequest
- type ApiTokensGenerateRequest
- type ApiTokensGetRequest
- type DeleteResponse
- type Error
- func (o *Error) GetHttpStatus() *int32
- func (o *Error) GetHttpStatusOk() (*int32, bool)
- func (o *Error) GetMessages() *[]ErrorMessages
- func (o *Error) GetMessagesOk() (*[]ErrorMessages, bool)
- func (o *Error) HasHttpStatus() bool
- func (o *Error) HasMessages() bool
- func (o Error) MarshalJSON() ([]byte, error)
- func (o *Error) SetHttpStatus(v int32)
- func (o *Error) SetMessages(v []ErrorMessages)
- type ErrorMessages
- func (o *ErrorMessages) GetErrorCode() *string
- func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)
- func (o *ErrorMessages) GetMessage() *string
- func (o *ErrorMessages) GetMessageOk() (*string, bool)
- func (o *ErrorMessages) HasErrorCode() bool
- func (o *ErrorMessages) HasMessage() bool
- func (o ErrorMessages) MarshalJSON() ([]byte, error)
- func (o *ErrorMessages) SetErrorCode(v string)
- func (o *ErrorMessages) SetMessage(v string)
- type IonosTime
- type Jwt
- type NullableDeleteResponse
- func (v NullableDeleteResponse) Get() *DeleteResponse
- func (v NullableDeleteResponse) IsSet() bool
- func (v NullableDeleteResponse) MarshalJSON() ([]byte, error)
- func (v *NullableDeleteResponse) Set(val *DeleteResponse)
- func (v *NullableDeleteResponse) UnmarshalJSON(src []byte) error
- func (v *NullableDeleteResponse) Unset()
- type NullableError
- type NullableErrorMessages
- func (v NullableErrorMessages) Get() *ErrorMessages
- func (v NullableErrorMessages) IsSet() bool
- func (v NullableErrorMessages) MarshalJSON() ([]byte, error)
- func (v *NullableErrorMessages) Set(val *ErrorMessages)
- func (v *NullableErrorMessages) UnmarshalJSON(src []byte) error
- func (v *NullableErrorMessages) Unset()
- type NullableJwt
- type NullableToken
- type NullableTokens
- type TLSDial
- type Token
- func (o *Token) GetCreatedDate() *string
- func (o *Token) GetCreatedDateOk() (*string, bool)
- func (o *Token) GetExpirationDate() *string
- func (o *Token) GetExpirationDateOk() (*string, bool)
- func (o *Token) GetHref() *string
- func (o *Token) GetHrefOk() (*string, bool)
- func (o *Token) GetId() *string
- func (o *Token) GetIdOk() (*string, bool)
- func (o *Token) HasCreatedDate() bool
- func (o *Token) HasExpirationDate() bool
- func (o *Token) HasHref() bool
- func (o *Token) HasId() bool
- func (o Token) MarshalJSON() ([]byte, error)
- func (o *Token) SetCreatedDate(v string)
- func (o *Token) SetExpirationDate(v string)
- func (o *Token) SetHref(v string)
- func (o *Token) SetId(v string)
- type Tokens
- type TokensApiService
- func (a *TokensApiService) TokensDeleteByCriteria(ctx _context.Context) ApiTokensDeleteByCriteriaRequest
- func (a *TokensApiService) TokensDeleteByCriteriaExecute(r ApiTokensDeleteByCriteriaRequest) (DeleteResponse, *shared.APIResponse, error)
- func (a *TokensApiService) TokensDeleteById(ctx _context.Context, tokenId string) ApiTokensDeleteByIdRequest
- func (a *TokensApiService) TokensDeleteByIdExecute(r ApiTokensDeleteByIdRequest) (DeleteResponse, *shared.APIResponse, error)
- func (a *TokensApiService) TokensFindById(ctx _context.Context, tokenId string) ApiTokensFindByIdRequest
- func (a *TokensApiService) TokensFindByIdExecute(r ApiTokensFindByIdRequest) (Token, *shared.APIResponse, error)
- func (a *TokensApiService) TokensGenerate(ctx _context.Context) ApiTokensGenerateRequest
- func (a *TokensApiService) TokensGenerateExecute(r ApiTokensGenerateRequest) (Jwt, *shared.APIResponse, error)
- func (a *TokensApiService) TokensGet(ctx _context.Context) ApiTokensGetRequest
- func (a *TokensApiService) TokensGetExecute(r ApiTokensGetRequest) (Tokens, *shared.APIResponse, error)
Constants ¶
const ( RequestStatusQueued = "QUEUED" RequestStatusRunning = "RUNNING" RequestStatusFailed = "FAILED" RequestStatusDone = "DONE" Version = "products/auth/v0.1.0" )
Variables ¶
This section is empty.
Functions ¶
func AddPinnedCert ¶
AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport
Types ¶
type APIClient ¶
type APIClient struct { TokensApi *TokensApiService // contains filtered or unexported fields }
APIClient manages communication with the Auth API API v1.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *shared.Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *shared.Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type ApiTokensDeleteByCriteriaRequest ¶
type ApiTokensDeleteByCriteriaRequest struct { ApiService *TokensApiService // contains filtered or unexported fields }
func (ApiTokensDeleteByCriteriaRequest) Criteria ¶
func (r ApiTokensDeleteByCriteriaRequest) Criteria(criteria string) ApiTokensDeleteByCriteriaRequest
func (ApiTokensDeleteByCriteriaRequest) Execute ¶
func (r ApiTokensDeleteByCriteriaRequest) Execute() (DeleteResponse, *shared.APIResponse, error)
func (ApiTokensDeleteByCriteriaRequest) XContractNumber ¶
func (r ApiTokensDeleteByCriteriaRequest) XContractNumber(xContractNumber int32) ApiTokensDeleteByCriteriaRequest
type ApiTokensDeleteByIdRequest ¶
type ApiTokensDeleteByIdRequest struct { ApiService *TokensApiService // contains filtered or unexported fields }
func (ApiTokensDeleteByIdRequest) Execute ¶
func (r ApiTokensDeleteByIdRequest) Execute() (DeleteResponse, *shared.APIResponse, error)
func (ApiTokensDeleteByIdRequest) XContractNumber ¶
func (r ApiTokensDeleteByIdRequest) XContractNumber(xContractNumber int32) ApiTokensDeleteByIdRequest
type ApiTokensFindByIdRequest ¶
type ApiTokensFindByIdRequest struct { ApiService *TokensApiService // contains filtered or unexported fields }
func (ApiTokensFindByIdRequest) Execute ¶
func (r ApiTokensFindByIdRequest) Execute() (Token, *shared.APIResponse, error)
func (ApiTokensFindByIdRequest) XContractNumber ¶
func (r ApiTokensFindByIdRequest) XContractNumber(xContractNumber int32) ApiTokensFindByIdRequest
type ApiTokensGenerateRequest ¶
type ApiTokensGenerateRequest struct { ApiService *TokensApiService // contains filtered or unexported fields }
func (ApiTokensGenerateRequest) Execute ¶
func (r ApiTokensGenerateRequest) Execute() (Jwt, *shared.APIResponse, error)
func (ApiTokensGenerateRequest) XContractNumber ¶
func (r ApiTokensGenerateRequest) XContractNumber(xContractNumber int32) ApiTokensGenerateRequest
type ApiTokensGetRequest ¶
type ApiTokensGetRequest struct { ApiService *TokensApiService // contains filtered or unexported fields }
func (ApiTokensGetRequest) Execute ¶
func (r ApiTokensGetRequest) Execute() (Tokens, *shared.APIResponse, error)
func (ApiTokensGetRequest) XContractNumber ¶
func (r ApiTokensGetRequest) XContractNumber(xContractNumber int32) ApiTokensGetRequest
type DeleteResponse ¶
type DeleteResponse struct {
Success *bool `json:"success,omitempty"`
}
DeleteResponse struct for DeleteResponse
func NewDeleteResponse ¶
func NewDeleteResponse() *DeleteResponse
NewDeleteResponse instantiates a new DeleteResponse 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 NewDeleteResponseWithDefaults ¶
func NewDeleteResponseWithDefaults() *DeleteResponse
NewDeleteResponseWithDefaults instantiates a new DeleteResponse 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 (*DeleteResponse) GetSuccess ¶
func (o *DeleteResponse) GetSuccess() *bool
GetSuccess returns the Success field value If the value is explicit nil, the zero value for bool will be returned
func (*DeleteResponse) GetSuccessOk ¶
func (o *DeleteResponse) GetSuccessOk() (*bool, bool)
GetSuccessOk returns a tuple with the Success field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*DeleteResponse) HasSuccess ¶
func (o *DeleteResponse) HasSuccess() bool
HasSuccess returns a boolean if a field has been set.
func (DeleteResponse) MarshalJSON ¶
func (o DeleteResponse) MarshalJSON() ([]byte, error)
func (*DeleteResponse) SetSuccess ¶
func (o *DeleteResponse) SetSuccess(v bool)
SetSuccess sets field value
type Error ¶
type Error struct { // HTTP Response Code HttpStatus *int32 `json:"httpStatus,omitempty"` Messages *[]ErrorMessages `json:"messages,omitempty"` }
Error struct for Error
func NewError ¶
func NewError() *Error
NewError instantiates a new Error 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 NewErrorWithDefaults ¶
func NewErrorWithDefaults() *Error
NewErrorWithDefaults instantiates a new Error 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 (*Error) GetHttpStatus ¶
GetHttpStatus returns the HttpStatus field value If the value is explicit nil, the zero value for int32 will be returned
func (*Error) GetHttpStatusOk ¶
GetHttpStatusOk returns a tuple with the HttpStatus field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Error) GetMessages ¶
func (o *Error) GetMessages() *[]ErrorMessages
GetMessages returns the Messages field value If the value is explicit nil, the zero value for []ErrorMessages will be returned
func (*Error) GetMessagesOk ¶
func (o *Error) GetMessagesOk() (*[]ErrorMessages, bool)
GetMessagesOk returns a tuple with the Messages field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Error) HasHttpStatus ¶
HasHttpStatus returns a boolean if a field has been set.
func (*Error) HasMessages ¶
HasMessages returns a boolean if a field has been set.
func (Error) MarshalJSON ¶
func (*Error) SetMessages ¶
func (o *Error) SetMessages(v []ErrorMessages)
SetMessages sets field value
type ErrorMessages ¶
type ErrorMessages struct { // Numeric error code of error message. ErrorCode *string `json:"errorCode,omitempty"` // Error message. Message *string `json:"message,omitempty"` }
ErrorMessages struct for ErrorMessages
func NewErrorMessages ¶
func NewErrorMessages() *ErrorMessages
NewErrorMessages instantiates a new ErrorMessages 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 NewErrorMessagesWithDefaults ¶
func NewErrorMessagesWithDefaults() *ErrorMessages
NewErrorMessagesWithDefaults instantiates a new ErrorMessages 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 (*ErrorMessages) GetErrorCode ¶
func (o *ErrorMessages) GetErrorCode() *string
GetErrorCode returns the ErrorCode field value If the value is explicit nil, the zero value for string will be returned
func (*ErrorMessages) GetErrorCodeOk ¶
func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)
GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ErrorMessages) GetMessage ¶
func (o *ErrorMessages) GetMessage() *string
GetMessage returns the Message field value If the value is explicit nil, the zero value for string will be returned
func (*ErrorMessages) GetMessageOk ¶
func (o *ErrorMessages) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ErrorMessages) HasErrorCode ¶
func (o *ErrorMessages) HasErrorCode() bool
HasErrorCode returns a boolean if a field has been set.
func (*ErrorMessages) HasMessage ¶
func (o *ErrorMessages) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (ErrorMessages) MarshalJSON ¶
func (o ErrorMessages) MarshalJSON() ([]byte, error)
func (*ErrorMessages) SetErrorCode ¶
func (o *ErrorMessages) SetErrorCode(v string)
SetErrorCode sets field value
func (*ErrorMessages) SetMessage ¶
func (o *ErrorMessages) SetMessage(v string)
SetMessage sets field value
type IonosTime ¶
func (*IonosTime) UnmarshalJSON ¶
type Jwt ¶
type Jwt struct { // JSON Web Token (JWT) Base64url strings separated by dots Token *string `json:"token,omitempty"` }
Jwt struct for Jwt
func NewJwt ¶
func NewJwt() *Jwt
NewJwt instantiates a new Jwt 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 NewJwtWithDefaults ¶
func NewJwtWithDefaults() *Jwt
NewJwtWithDefaults instantiates a new Jwt 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 (*Jwt) GetToken ¶
GetToken returns the Token field value If the value is explicit nil, the zero value for string will be returned
func (*Jwt) GetTokenOk ¶
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (Jwt) MarshalJSON ¶
type NullableDeleteResponse ¶
type NullableDeleteResponse struct {
// contains filtered or unexported fields
}
func NewNullableDeleteResponse ¶
func NewNullableDeleteResponse(val *DeleteResponse) *NullableDeleteResponse
func (NullableDeleteResponse) Get ¶
func (v NullableDeleteResponse) Get() *DeleteResponse
func (NullableDeleteResponse) IsSet ¶
func (v NullableDeleteResponse) IsSet() bool
func (NullableDeleteResponse) MarshalJSON ¶
func (v NullableDeleteResponse) MarshalJSON() ([]byte, error)
func (*NullableDeleteResponse) Set ¶
func (v *NullableDeleteResponse) Set(val *DeleteResponse)
func (*NullableDeleteResponse) UnmarshalJSON ¶
func (v *NullableDeleteResponse) UnmarshalJSON(src []byte) error
func (*NullableDeleteResponse) Unset ¶
func (v *NullableDeleteResponse) Unset()
type NullableError ¶
type NullableError struct {
// contains filtered or unexported fields
}
func NewNullableError ¶
func NewNullableError(val *Error) *NullableError
func (NullableError) Get ¶
func (v NullableError) Get() *Error
func (NullableError) IsSet ¶
func (v NullableError) IsSet() bool
func (NullableError) MarshalJSON ¶
func (v NullableError) MarshalJSON() ([]byte, error)
func (*NullableError) Set ¶
func (v *NullableError) Set(val *Error)
func (*NullableError) UnmarshalJSON ¶
func (v *NullableError) UnmarshalJSON(src []byte) error
func (*NullableError) Unset ¶
func (v *NullableError) Unset()
type NullableErrorMessages ¶
type NullableErrorMessages struct {
// contains filtered or unexported fields
}
func NewNullableErrorMessages ¶
func NewNullableErrorMessages(val *ErrorMessages) *NullableErrorMessages
func (NullableErrorMessages) Get ¶
func (v NullableErrorMessages) Get() *ErrorMessages
func (NullableErrorMessages) IsSet ¶
func (v NullableErrorMessages) IsSet() bool
func (NullableErrorMessages) MarshalJSON ¶
func (v NullableErrorMessages) MarshalJSON() ([]byte, error)
func (*NullableErrorMessages) Set ¶
func (v *NullableErrorMessages) Set(val *ErrorMessages)
func (*NullableErrorMessages) UnmarshalJSON ¶
func (v *NullableErrorMessages) UnmarshalJSON(src []byte) error
func (*NullableErrorMessages) Unset ¶
func (v *NullableErrorMessages) Unset()
type NullableJwt ¶
type NullableJwt struct {
// contains filtered or unexported fields
}
func NewNullableJwt ¶
func NewNullableJwt(val *Jwt) *NullableJwt
func (NullableJwt) Get ¶
func (v NullableJwt) Get() *Jwt
func (NullableJwt) IsSet ¶
func (v NullableJwt) IsSet() bool
func (NullableJwt) MarshalJSON ¶
func (v NullableJwt) MarshalJSON() ([]byte, error)
func (*NullableJwt) Set ¶
func (v *NullableJwt) Set(val *Jwt)
func (*NullableJwt) UnmarshalJSON ¶
func (v *NullableJwt) UnmarshalJSON(src []byte) error
func (*NullableJwt) Unset ¶
func (v *NullableJwt) Unset()
type NullableToken ¶
type NullableToken struct {
// contains filtered or unexported fields
}
func NewNullableToken ¶
func NewNullableToken(val *Token) *NullableToken
func (NullableToken) Get ¶
func (v NullableToken) Get() *Token
func (NullableToken) IsSet ¶
func (v NullableToken) IsSet() bool
func (NullableToken) MarshalJSON ¶
func (v NullableToken) MarshalJSON() ([]byte, error)
func (*NullableToken) Set ¶
func (v *NullableToken) Set(val *Token)
func (*NullableToken) UnmarshalJSON ¶
func (v *NullableToken) UnmarshalJSON(src []byte) error
func (*NullableToken) Unset ¶
func (v *NullableToken) Unset()
type NullableTokens ¶
type NullableTokens struct {
// contains filtered or unexported fields
}
func NewNullableTokens ¶
func NewNullableTokens(val *Tokens) *NullableTokens
func (NullableTokens) Get ¶
func (v NullableTokens) Get() *Tokens
func (NullableTokens) IsSet ¶
func (v NullableTokens) IsSet() bool
func (NullableTokens) MarshalJSON ¶
func (v NullableTokens) MarshalJSON() ([]byte, error)
func (*NullableTokens) Set ¶
func (v *NullableTokens) Set(val *Tokens)
func (*NullableTokens) UnmarshalJSON ¶
func (v *NullableTokens) UnmarshalJSON(src []byte) error
func (*NullableTokens) Unset ¶
func (v *NullableTokens) Unset()
type Token ¶
type Token struct { // Identifier of the token. Id *string `json:"id"` // Hypertext REFerence for the specified token. Href *string `json:"href"` // The date the token was generated. CreatedDate *string `json:"createdDate"` // The date the token will expire. ExpirationDate *string `json:"expirationDate"` }
Token struct for Token
func NewToken ¶
NewToken instantiates a new Token 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 NewTokenWithDefaults ¶
func NewTokenWithDefaults() *Token
NewTokenWithDefaults instantiates a new Token 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 (*Token) GetCreatedDate ¶
GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for string will be returned
func (*Token) GetCreatedDateOk ¶
GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Token) GetExpirationDate ¶
GetExpirationDate returns the ExpirationDate field value If the value is explicit nil, the zero value for string will be returned
func (*Token) GetExpirationDateOk ¶
GetExpirationDateOk returns a tuple with the ExpirationDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Token) GetHref ¶
GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned
func (*Token) GetHrefOk ¶
GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Token) GetId ¶
GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned
func (*Token) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Token) HasCreatedDate ¶
HasCreatedDate returns a boolean if a field has been set.
func (*Token) HasExpirationDate ¶
HasExpirationDate returns a boolean if a field has been set.
func (Token) MarshalJSON ¶
func (*Token) SetCreatedDate ¶
SetCreatedDate sets field value
func (*Token) SetExpirationDate ¶
SetExpirationDate sets field value
type Tokens ¶
type Tokens struct { // Array of items in that collection. Tokens *[]Token `json:"tokens,omitempty"` }
Tokens struct for Tokens
func NewTokens ¶
func NewTokens() *Tokens
NewTokens instantiates a new Tokens 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 NewTokensWithDefaults ¶
func NewTokensWithDefaults() *Tokens
NewTokensWithDefaults instantiates a new Tokens 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 (*Tokens) GetTokens ¶
GetTokens returns the Tokens field value If the value is explicit nil, the zero value for []Token will be returned
func (*Tokens) GetTokensOk ¶
GetTokensOk returns a tuple with the Tokens field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (Tokens) MarshalJSON ¶
type TokensApiService ¶
type TokensApiService service
TokensApiService TokensApi service
func (*TokensApiService) TokensDeleteByCriteria ¶
func (a *TokensApiService) TokensDeleteByCriteria(ctx _context.Context) ApiTokensDeleteByCriteriaRequest
* TokensDeleteByCriteria Delete tokens by criteria * Delete one or multiple tokens by the required `criteria` parameter values: `ALL`, `EXPIRED` and `CURRENT`. With parameter values `ALL` and `EXPIRED`, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header. With value `CURRENT`, only the 'Token Authentication' with valid credentials is required. Users with multiple contracts must also provide a valid contract number in the `X-Contract-Number` header. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiTokensDeleteByCriteriaRequest
func (*TokensApiService) TokensDeleteByCriteriaExecute ¶
func (a *TokensApiService) TokensDeleteByCriteriaExecute(r ApiTokensDeleteByCriteriaRequest) (DeleteResponse, *shared.APIResponse, error)
* Execute executes the request * @return DeleteResponse
func (*TokensApiService) TokensDeleteById ¶
func (a *TokensApiService) TokensDeleteById(ctx _context.Context, tokenId string) ApiTokensDeleteByIdRequest
* TokensDeleteById Delete tokens * Delete a token by Key ID (`tokenId`). To access the endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header. Users with multiple contracts must also provide a valid contract number in the `X-Contract-Number` header. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param tokenId The Key ID of the token (can be retrieved from the header section of the token). * @return ApiTokensDeleteByIdRequest
func (*TokensApiService) TokensDeleteByIdExecute ¶
func (a *TokensApiService) TokensDeleteByIdExecute(r ApiTokensDeleteByIdRequest) (DeleteResponse, *shared.APIResponse, error)
* Execute executes the request * @return DeleteResponse
func (*TokensApiService) TokensFindById ¶
func (a *TokensApiService) TokensFindById(ctx _context.Context, tokenId string) ApiTokensFindByIdRequest
* TokensFindById Get tokens by Key ID * Retrieve the details for a token by the Key ID (`tokenId`). To access this endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header. Users with multiple contracts must also provide a valid contract number in the `X-Contract-Number` header. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param tokenId The Key ID of the token (can be retrieved from the header section of the token). * @return ApiTokensFindByIdRequest
func (*TokensApiService) TokensFindByIdExecute ¶
func (a *TokensApiService) TokensFindByIdExecute(r ApiTokensFindByIdRequest) (Token, *shared.APIResponse, error)
* Execute executes the request * @return Token
func (*TokensApiService) TokensGenerate ¶
func (a *TokensApiService) TokensGenerate(ctx _context.Context) ApiTokensGenerateRequest
- TokensGenerate Create new tokens
- Users can generate new tokens ([JWT](https://jwt.io/) or [JSON Web Token](https://tools.ietf.org/html/rfc7519)). By default, new tokens are linked to the user’s contract. Users with multiple contracts must provide the contract number, for which the token is generated, in the `X-Contract-Number` header; otherwise, an error response is returned.
To access this endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header, by users with one or with multiple contracts.
The response will contain a newly-generated token for accessing any IONOS Cloud APIs (Auth API, Cloud API, Reseller API, Activity Log API, and others). The token can be used to access the APIs without providing the contract number in the `X-Contract-Number` header, by users with one or with multiple contracts. However, a valid contract number must be provided in the `X-Contract-Number` header to access the Auth API. By default, generated access tokens will expire after one year (subject to change).
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiTokensGenerateRequest
func (*TokensApiService) TokensGenerateExecute ¶
func (a *TokensApiService) TokensGenerateExecute(r ApiTokensGenerateRequest) (Jwt, *shared.APIResponse, error)
* Execute executes the request * @return Jwt
func (*TokensApiService) TokensGet ¶
func (a *TokensApiService) TokensGet(ctx _context.Context) ApiTokensGetRequest
* TokensGet List all tokens * List the details of all tokens, generated by the user. To access this endpoint, 'Basic Authentication' or 'Token Authentication' tokens with valid credentials must be encapsulated in the header. Users with multiple contracts must also provide a valid contract number in the `X-Contract-Number` header. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiTokensGetRequest
func (*TokensApiService) TokensGetExecute ¶
func (a *TokensApiService) TokensGetExecute(r ApiTokensGetRequest) (Tokens, *shared.APIResponse, error)
* Execute executes the request * @return Tokens