Documentation
¶
Overview ¶
Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func NewConfiguration() *config.Configuration
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIResponse
- type AccessToken
- func (o *AccessToken) GetAccessToken() string
- func (o *AccessToken) GetAccessTokenOk() (*string, bool)
- func (o *AccessToken) GetCreator() string
- func (o *AccessToken) GetCreatorOk() (*string, bool)
- func (o *AccessToken) GetDescription() string
- func (o *AccessToken) GetDescriptionOk() (*string, bool)
- func (o *AccessToken) GetDisplayName() string
- func (o *AccessToken) GetDisplayNameOk() (*string, bool)
- func (o *AccessToken) GetExpires() bool
- func (o *AccessToken) GetExpiresOk() (*bool, bool)
- func (o *AccessToken) GetId() string
- func (o *AccessToken) GetIdOk() (*string, bool)
- func (o *AccessToken) GetPermissions() []string
- func (o *AccessToken) GetPermissionsOk() ([]string, bool)
- func (o *AccessToken) GetStatus() string
- func (o *AccessToken) GetStatusOk() (*string, bool)
- func (o *AccessToken) GetValidUntil() time.Time
- func (o *AccessToken) GetValidUntilOk() (*time.Time, bool)
- func (o *AccessToken) HasAccessToken() bool
- func (o *AccessToken) HasDescription() bool
- func (o *AccessToken) HasValidUntil() bool
- func (o AccessToken) MarshalJSON() ([]byte, error)
- func (o *AccessToken) SetAccessToken(v string)
- func (o *AccessToken) SetCreator(v string)
- func (o *AccessToken) SetDescription(v string)
- func (o *AccessToken) SetDisplayName(v string)
- func (o *AccessToken) SetExpires(v bool)
- func (o *AccessToken) SetId(v string)
- func (o *AccessToken) SetPermissions(v []string)
- func (o *AccessToken) SetStatus(v string)
- func (o *AccessToken) SetValidUntil(v time.Time)
- func (o AccessToken) ToMap() (map[string]interface{}, error)
- func (o *AccessToken) UnmarshalJSON(data []byte) (err error)
- type AccessTokenList
- func (o *AccessTokenList) GetTokens() []AccessToken
- func (o *AccessTokenList) GetTokensOk() ([]AccessToken, bool)
- func (o AccessTokenList) MarshalJSON() ([]byte, error)
- func (o *AccessTokenList) SetTokens(v []AccessToken)
- func (o AccessTokenList) ToMap() (map[string]interface{}, error)
- func (o *AccessTokenList) UnmarshalJSON(data []byte) (err error)
- type ApiCreateAccessTokenRequest
- type ApiCreateLogsInstanceRequest
- type ApiDeleteAccessTokenRequest
- type ApiDeleteAllAccessTokensRequest
- type ApiDeleteAllExpiredAccessTokensRequest
- type ApiDeleteLogsInstanceRequest
- type ApiGetAccessTokenRequest
- type ApiGetLogsInstanceRequest
- type ApiListAccessTokensRequest
- type ApiListLogsInstancesRequest
- type ApiUpdateAccessTokenRequest
- type ApiUpdateLogsInstanceRequest
- type CreateAccessTokenPayload
- func (o *CreateAccessTokenPayload) GetDescription() string
- func (o *CreateAccessTokenPayload) GetDescriptionOk() (*string, bool)
- func (o *CreateAccessTokenPayload) GetDisplayName() string
- func (o *CreateAccessTokenPayload) GetDisplayNameOk() (*string, bool)
- func (o *CreateAccessTokenPayload) GetLifetime() int32
- func (o *CreateAccessTokenPayload) GetLifetimeOk() (*int32, bool)
- func (o *CreateAccessTokenPayload) GetPermissions() []string
- func (o *CreateAccessTokenPayload) GetPermissionsOk() ([]string, bool)
- func (o *CreateAccessTokenPayload) HasDescription() bool
- func (o *CreateAccessTokenPayload) HasLifetime() bool
- func (o CreateAccessTokenPayload) MarshalJSON() ([]byte, error)
- func (o *CreateAccessTokenPayload) SetDescription(v string)
- func (o *CreateAccessTokenPayload) SetDisplayName(v string)
- func (o *CreateAccessTokenPayload) SetLifetime(v int32)
- func (o *CreateAccessTokenPayload) SetPermissions(v []string)
- func (o CreateAccessTokenPayload) ToMap() (map[string]interface{}, error)
- func (o *CreateAccessTokenPayload) UnmarshalJSON(data []byte) (err error)
- type CreateLogsInstancePayload
- func (o *CreateLogsInstancePayload) GetAcl() []string
- func (o *CreateLogsInstancePayload) GetAclOk() ([]string, bool)
- func (o *CreateLogsInstancePayload) GetDescription() string
- func (o *CreateLogsInstancePayload) GetDescriptionOk() (*string, bool)
- func (o *CreateLogsInstancePayload) GetDisplayName() string
- func (o *CreateLogsInstancePayload) GetDisplayNameOk() (*string, bool)
- func (o *CreateLogsInstancePayload) GetRetentionDays() int32
- func (o *CreateLogsInstancePayload) GetRetentionDaysOk() (*int32, bool)
- func (o *CreateLogsInstancePayload) HasAcl() bool
- func (o *CreateLogsInstancePayload) HasDescription() bool
- func (o CreateLogsInstancePayload) MarshalJSON() ([]byte, error)
- func (o *CreateLogsInstancePayload) SetAcl(v []string)
- func (o *CreateLogsInstancePayload) SetDescription(v string)
- func (o *CreateLogsInstancePayload) SetDisplayName(v string)
- func (o *CreateLogsInstancePayload) SetRetentionDays(v int32)
- func (o CreateLogsInstancePayload) ToMap() (map[string]interface{}, error)
- func (o *CreateLogsInstancePayload) UnmarshalJSON(data []byte) (err error)
- type DefaultAPI
- type DefaultAPIService
- func (a *DefaultAPIService) CreateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string) ApiCreateAccessTokenRequest
- func (a *DefaultAPIService) CreateAccessTokenExecute(r ApiCreateAccessTokenRequest) (*AccessToken, error)
- func (a *DefaultAPIService) CreateLogsInstance(ctx context.Context, projectId string, regionId string) ApiCreateLogsInstanceRequest
- func (a *DefaultAPIService) CreateLogsInstanceExecute(r ApiCreateLogsInstanceRequest) (*LogsInstance, error)
- func (a *DefaultAPIService) DeleteAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, ...) ApiDeleteAccessTokenRequest
- func (a *DefaultAPIService) DeleteAccessTokenExecute(r ApiDeleteAccessTokenRequest) error
- func (a *DefaultAPIService) DeleteAllAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllAccessTokensRequest
- func (a *DefaultAPIService) DeleteAllAccessTokensExecute(r ApiDeleteAllAccessTokensRequest) (*AccessTokenList, error)
- func (a *DefaultAPIService) DeleteAllExpiredAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllExpiredAccessTokensRequest
- func (a *DefaultAPIService) DeleteAllExpiredAccessTokensExecute(r ApiDeleteAllExpiredAccessTokensRequest) (*AccessTokenList, error)
- func (a *DefaultAPIService) DeleteLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteLogsInstanceRequest
- func (a *DefaultAPIService) DeleteLogsInstanceExecute(r ApiDeleteLogsInstanceRequest) error
- func (a *DefaultAPIService) GetAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, ...) ApiGetAccessTokenRequest
- func (a *DefaultAPIService) GetAccessTokenExecute(r ApiGetAccessTokenRequest) (*AccessToken, error)
- func (a *DefaultAPIService) GetLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetLogsInstanceRequest
- func (a *DefaultAPIService) GetLogsInstanceExecute(r ApiGetLogsInstanceRequest) (*LogsInstance, error)
- func (a *DefaultAPIService) ListAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiListAccessTokensRequest
- func (a *DefaultAPIService) ListAccessTokensExecute(r ApiListAccessTokensRequest) (*AccessTokenList, error)
- func (a *DefaultAPIService) ListLogsInstances(ctx context.Context, projectId string, regionId string) ApiListLogsInstancesRequest
- func (a *DefaultAPIService) ListLogsInstancesExecute(r ApiListLogsInstancesRequest) (*LogsInstancesList, error)
- func (a *DefaultAPIService) UpdateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, ...) ApiUpdateAccessTokenRequest
- func (a *DefaultAPIService) UpdateAccessTokenExecute(r ApiUpdateAccessTokenRequest) error
- func (a *DefaultAPIService) UpdateLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateLogsInstanceRequest
- func (a *DefaultAPIService) UpdateLogsInstanceExecute(r ApiUpdateLogsInstanceRequest) (*LogsInstance, error)
- type DefaultAPIServiceMock
- func (a DefaultAPIServiceMock) CreateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string) ApiCreateAccessTokenRequest
- func (a DefaultAPIServiceMock) CreateAccessTokenExecute(r ApiCreateAccessTokenRequest) (*AccessToken, error)
- func (a DefaultAPIServiceMock) CreateLogsInstance(ctx context.Context, projectId string, regionId string) ApiCreateLogsInstanceRequest
- func (a DefaultAPIServiceMock) CreateLogsInstanceExecute(r ApiCreateLogsInstanceRequest) (*LogsInstance, error)
- func (a DefaultAPIServiceMock) DeleteAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, ...) ApiDeleteAccessTokenRequest
- func (a DefaultAPIServiceMock) DeleteAccessTokenExecute(r ApiDeleteAccessTokenRequest) error
- func (a DefaultAPIServiceMock) DeleteAllAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllAccessTokensRequest
- func (a DefaultAPIServiceMock) DeleteAllAccessTokensExecute(r ApiDeleteAllAccessTokensRequest) (*AccessTokenList, error)
- func (a DefaultAPIServiceMock) DeleteAllExpiredAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllExpiredAccessTokensRequest
- func (a DefaultAPIServiceMock) DeleteAllExpiredAccessTokensExecute(r ApiDeleteAllExpiredAccessTokensRequest) (*AccessTokenList, error)
- func (a DefaultAPIServiceMock) DeleteLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteLogsInstanceRequest
- func (a DefaultAPIServiceMock) DeleteLogsInstanceExecute(r ApiDeleteLogsInstanceRequest) error
- func (a DefaultAPIServiceMock) GetAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, ...) ApiGetAccessTokenRequest
- func (a DefaultAPIServiceMock) GetAccessTokenExecute(r ApiGetAccessTokenRequest) (*AccessToken, error)
- func (a DefaultAPIServiceMock) GetLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetLogsInstanceRequest
- func (a DefaultAPIServiceMock) GetLogsInstanceExecute(r ApiGetLogsInstanceRequest) (*LogsInstance, error)
- func (a DefaultAPIServiceMock) ListAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiListAccessTokensRequest
- func (a DefaultAPIServiceMock) ListAccessTokensExecute(r ApiListAccessTokensRequest) (*AccessTokenList, error)
- func (a DefaultAPIServiceMock) ListLogsInstances(ctx context.Context, projectId string, regionId string) ApiListLogsInstancesRequest
- func (a DefaultAPIServiceMock) ListLogsInstancesExecute(r ApiListLogsInstancesRequest) (*LogsInstancesList, error)
- func (a DefaultAPIServiceMock) UpdateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, ...) ApiUpdateAccessTokenRequest
- func (a DefaultAPIServiceMock) UpdateAccessTokenExecute(r ApiUpdateAccessTokenRequest) error
- func (a DefaultAPIServiceMock) UpdateLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateLogsInstanceRequest
- func (a DefaultAPIServiceMock) UpdateLogsInstanceExecute(r ApiUpdateLogsInstanceRequest) (*LogsInstance, error)
- type LogsInstance
- func (o *LogsInstance) GetAcl() []string
- func (o *LogsInstance) GetAclOk() ([]string, bool)
- func (o *LogsInstance) GetCreated() time.Time
- func (o *LogsInstance) GetCreatedOk() (*time.Time, bool)
- func (o *LogsInstance) GetDatasourceUrl() string
- func (o *LogsInstance) GetDatasourceUrlOk() (*string, bool)
- func (o *LogsInstance) GetDescription() string
- func (o *LogsInstance) GetDescriptionOk() (*string, bool)
- func (o *LogsInstance) GetDisplayName() string
- func (o *LogsInstance) GetDisplayNameOk() (*string, bool)
- func (o *LogsInstance) GetId() string
- func (o *LogsInstance) GetIdOk() (*string, bool)
- func (o *LogsInstance) GetIngestOtlpUrl() string
- func (o *LogsInstance) GetIngestOtlpUrlOk() (*string, bool)
- func (o *LogsInstance) GetIngestUrl() string
- func (o *LogsInstance) GetIngestUrlOk() (*string, bool)
- func (o *LogsInstance) GetQueryRangeUrl() string
- func (o *LogsInstance) GetQueryRangeUrlOk() (*string, bool)
- func (o *LogsInstance) GetQueryUrl() string
- func (o *LogsInstance) GetQueryUrlOk() (*string, bool)
- func (o *LogsInstance) GetRetentionDays() int32
- func (o *LogsInstance) GetRetentionDaysOk() (*int32, bool)
- func (o *LogsInstance) GetStatus() string
- func (o *LogsInstance) GetStatusOk() (*string, bool)
- func (o *LogsInstance) HasAcl() bool
- func (o *LogsInstance) HasDatasourceUrl() bool
- func (o *LogsInstance) HasDescription() bool
- func (o *LogsInstance) HasIngestOtlpUrl() bool
- func (o *LogsInstance) HasIngestUrl() bool
- func (o *LogsInstance) HasQueryRangeUrl() bool
- func (o *LogsInstance) HasQueryUrl() bool
- func (o LogsInstance) MarshalJSON() ([]byte, error)
- func (o *LogsInstance) SetAcl(v []string)
- func (o *LogsInstance) SetCreated(v time.Time)
- func (o *LogsInstance) SetDatasourceUrl(v string)
- func (o *LogsInstance) SetDescription(v string)
- func (o *LogsInstance) SetDisplayName(v string)
- func (o *LogsInstance) SetId(v string)
- func (o *LogsInstance) SetIngestOtlpUrl(v string)
- func (o *LogsInstance) SetIngestUrl(v string)
- func (o *LogsInstance) SetQueryRangeUrl(v string)
- func (o *LogsInstance) SetQueryUrl(v string)
- func (o *LogsInstance) SetRetentionDays(v int32)
- func (o *LogsInstance) SetStatus(v string)
- func (o LogsInstance) ToMap() (map[string]interface{}, error)
- func (o *LogsInstance) UnmarshalJSON(data []byte) (err error)
- type LogsInstancesList
- func (o *LogsInstancesList) GetInstances() []LogsInstance
- func (o *LogsInstancesList) GetInstancesOk() ([]LogsInstance, bool)
- func (o LogsInstancesList) MarshalJSON() ([]byte, error)
- func (o *LogsInstancesList) SetInstances(v []LogsInstance)
- func (o LogsInstancesList) ToMap() (map[string]interface{}, error)
- func (o *LogsInstancesList) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type NullableAccessToken
- func (v NullableAccessToken) Get() *AccessToken
- func (v NullableAccessToken) IsSet() bool
- func (v NullableAccessToken) MarshalJSON() ([]byte, error)
- func (v *NullableAccessToken) Set(val *AccessToken)
- func (v *NullableAccessToken) UnmarshalJSON(src []byte) error
- func (v *NullableAccessToken) Unset()
- type NullableAccessTokenList
- func (v NullableAccessTokenList) Get() *AccessTokenList
- func (v NullableAccessTokenList) IsSet() bool
- func (v NullableAccessTokenList) MarshalJSON() ([]byte, error)
- func (v *NullableAccessTokenList) Set(val *AccessTokenList)
- func (v *NullableAccessTokenList) UnmarshalJSON(src []byte) error
- func (v *NullableAccessTokenList) Unset()
- type NullableBool
- type NullableCreateAccessTokenPayload
- func (v NullableCreateAccessTokenPayload) Get() *CreateAccessTokenPayload
- func (v NullableCreateAccessTokenPayload) IsSet() bool
- func (v NullableCreateAccessTokenPayload) MarshalJSON() ([]byte, error)
- func (v *NullableCreateAccessTokenPayload) Set(val *CreateAccessTokenPayload)
- func (v *NullableCreateAccessTokenPayload) UnmarshalJSON(src []byte) error
- func (v *NullableCreateAccessTokenPayload) Unset()
- type NullableCreateLogsInstancePayload
- func (v NullableCreateLogsInstancePayload) Get() *CreateLogsInstancePayload
- func (v NullableCreateLogsInstancePayload) IsSet() bool
- func (v NullableCreateLogsInstancePayload) MarshalJSON() ([]byte, error)
- func (v *NullableCreateLogsInstancePayload) Set(val *CreateLogsInstancePayload)
- func (v *NullableCreateLogsInstancePayload) UnmarshalJSON(src []byte) error
- func (v *NullableCreateLogsInstancePayload) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableLogsInstance
- func (v NullableLogsInstance) Get() *LogsInstance
- func (v NullableLogsInstance) IsSet() bool
- func (v NullableLogsInstance) MarshalJSON() ([]byte, error)
- func (v *NullableLogsInstance) Set(val *LogsInstance)
- func (v *NullableLogsInstance) UnmarshalJSON(src []byte) error
- func (v *NullableLogsInstance) Unset()
- type NullableLogsInstancesList
- func (v NullableLogsInstancesList) Get() *LogsInstancesList
- func (v NullableLogsInstancesList) IsSet() bool
- func (v NullableLogsInstancesList) MarshalJSON() ([]byte, error)
- func (v *NullableLogsInstancesList) Set(val *LogsInstancesList)
- func (v *NullableLogsInstancesList) UnmarshalJSON(src []byte) error
- func (v *NullableLogsInstancesList) Unset()
- type NullableString
- type NullableTime
- type NullableUpdateAccessTokenPayload
- func (v NullableUpdateAccessTokenPayload) Get() *UpdateAccessTokenPayload
- func (v NullableUpdateAccessTokenPayload) IsSet() bool
- func (v NullableUpdateAccessTokenPayload) MarshalJSON() ([]byte, error)
- func (v *NullableUpdateAccessTokenPayload) Set(val *UpdateAccessTokenPayload)
- func (v *NullableUpdateAccessTokenPayload) UnmarshalJSON(src []byte) error
- func (v *NullableUpdateAccessTokenPayload) Unset()
- type NullableUpdateLogsInstancePayload
- func (v NullableUpdateLogsInstancePayload) Get() *UpdateLogsInstancePayload
- func (v NullableUpdateLogsInstancePayload) IsSet() bool
- func (v NullableUpdateLogsInstancePayload) MarshalJSON() ([]byte, error)
- func (v *NullableUpdateLogsInstancePayload) Set(val *UpdateLogsInstancePayload)
- func (v *NullableUpdateLogsInstancePayload) UnmarshalJSON(src []byte) error
- func (v *NullableUpdateLogsInstancePayload) Unset()
- type UpdateAccessTokenPayload
- func (o *UpdateAccessTokenPayload) GetDescription() string
- func (o *UpdateAccessTokenPayload) GetDescriptionOk() (*string, bool)
- func (o *UpdateAccessTokenPayload) GetDisplayName() string
- func (o *UpdateAccessTokenPayload) GetDisplayNameOk() (*string, bool)
- func (o *UpdateAccessTokenPayload) HasDescription() bool
- func (o *UpdateAccessTokenPayload) HasDisplayName() bool
- func (o UpdateAccessTokenPayload) MarshalJSON() ([]byte, error)
- func (o *UpdateAccessTokenPayload) SetDescription(v string)
- func (o *UpdateAccessTokenPayload) SetDisplayName(v string)
- func (o UpdateAccessTokenPayload) ToMap() (map[string]interface{}, error)
- type UpdateLogsInstancePayload
- func (o *UpdateLogsInstancePayload) GetAcl() []string
- func (o *UpdateLogsInstancePayload) GetAclOk() ([]string, bool)
- func (o *UpdateLogsInstancePayload) GetDescription() string
- func (o *UpdateLogsInstancePayload) GetDescriptionOk() (*string, bool)
- func (o *UpdateLogsInstancePayload) GetDisplayName() string
- func (o *UpdateLogsInstancePayload) GetDisplayNameOk() (*string, bool)
- func (o *UpdateLogsInstancePayload) GetRetentionDays() int32
- func (o *UpdateLogsInstancePayload) GetRetentionDaysOk() (*int32, bool)
- func (o *UpdateLogsInstancePayload) HasAcl() bool
- func (o *UpdateLogsInstancePayload) HasDescription() bool
- func (o *UpdateLogsInstancePayload) HasDisplayName() bool
- func (o *UpdateLogsInstancePayload) HasRetentionDays() bool
- func (o UpdateLogsInstancePayload) MarshalJSON() ([]byte, error)
- func (o *UpdateLogsInstancePayload) SetAcl(v []string)
- func (o *UpdateLogsInstancePayload) SetDescription(v string)
- func (o *UpdateLogsInstancePayload) SetDisplayName(v string)
- func (o *UpdateLogsInstancePayload) SetRetentionDays(v int32)
- func (o UpdateLogsInstancePayload) ToMap() (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration() *config.Configuration
NewConfiguration returns a new Configuration object
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
DefaultAPI DefaultAPI
// contains filtered or unexported fields
}
APIClient manages communication with the STACKIT Logs API API v1beta.0.3 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)
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() *config.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 APIResponse ¶
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the OpenAPI operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type AccessToken ¶
type AccessToken struct {
// A generated access token. Only available on creation.
AccessToken *string `json:"accessToken,omitempty"`
// The user who created the access token.
Creator string `json:"creator"`
// The description of the access token.
Description *string `json:"description,omitempty"`
// The displayed name of the access token.
DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z][\\\\w -]*$"`
// Indicates if the access token can expire.
Expires bool `json:"expires"`
// An auto generated unique id which identifies the access token.
Id string `json:"id"`
// The access permissions granted to the access token.
Permissions []string `json:"permissions"`
Status string `json:"status"`
// The date and time util an access token is valid to (inclusively).
ValidUntil *time.Time `json:"validUntil,omitempty"`
}
AccessToken struct for AccessToken
func NewAccessToken ¶
func NewAccessToken(creator string, displayName string, expires bool, id string, permissions []string, status string) *AccessToken
NewAccessToken instantiates a new AccessToken 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 NewAccessTokenWithDefaults ¶
func NewAccessTokenWithDefaults() *AccessToken
NewAccessTokenWithDefaults instantiates a new AccessToken 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 (*AccessToken) GetAccessToken ¶
func (o *AccessToken) GetAccessToken() string
GetAccessToken returns the AccessToken field value if set, zero value otherwise.
func (*AccessToken) GetAccessTokenOk ¶
func (o *AccessToken) GetAccessTokenOk() (*string, bool)
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 (*AccessToken) GetCreator ¶
func (o *AccessToken) GetCreator() string
GetCreator returns the Creator field value
func (*AccessToken) GetCreatorOk ¶
func (o *AccessToken) GetCreatorOk() (*string, bool)
GetCreatorOk returns a tuple with the Creator field value and a boolean to check if the value has been set.
func (*AccessToken) GetDescription ¶
func (o *AccessToken) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (*AccessToken) GetDescriptionOk ¶
func (o *AccessToken) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AccessToken) GetDisplayName ¶
func (o *AccessToken) GetDisplayName() string
GetDisplayName returns the DisplayName field value
func (*AccessToken) GetDisplayNameOk ¶
func (o *AccessToken) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set.
func (*AccessToken) GetExpires ¶
func (o *AccessToken) GetExpires() bool
GetExpires returns the Expires field value
func (*AccessToken) GetExpiresOk ¶
func (o *AccessToken) GetExpiresOk() (*bool, bool)
GetExpiresOk returns a tuple with the Expires field value and a boolean to check if the value has been set.
func (*AccessToken) GetIdOk ¶
func (o *AccessToken) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*AccessToken) GetPermissions ¶
func (o *AccessToken) GetPermissions() []string
GetPermissions returns the Permissions field value
func (*AccessToken) GetPermissionsOk ¶
func (o *AccessToken) GetPermissionsOk() ([]string, bool)
GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.
func (*AccessToken) GetStatus ¶
func (o *AccessToken) GetStatus() string
GetStatus returns the Status field value
func (*AccessToken) GetStatusOk ¶
func (o *AccessToken) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*AccessToken) GetValidUntil ¶
func (o *AccessToken) GetValidUntil() time.Time
GetValidUntil returns the ValidUntil field value if set, zero value otherwise.
func (*AccessToken) GetValidUntilOk ¶
func (o *AccessToken) GetValidUntilOk() (*time.Time, bool)
GetValidUntilOk returns a tuple with the ValidUntil field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AccessToken) HasAccessToken ¶
func (o *AccessToken) HasAccessToken() bool
HasAccessToken returns a boolean if a field has been set.
func (*AccessToken) HasDescription ¶
func (o *AccessToken) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (*AccessToken) HasValidUntil ¶
func (o *AccessToken) HasValidUntil() bool
HasValidUntil returns a boolean if a field has been set.
func (AccessToken) MarshalJSON ¶
func (o AccessToken) MarshalJSON() ([]byte, error)
func (*AccessToken) SetAccessToken ¶
func (o *AccessToken) SetAccessToken(v string)
SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.
func (*AccessToken) SetCreator ¶
func (o *AccessToken) SetCreator(v string)
SetCreator sets field value
func (*AccessToken) SetDescription ¶
func (o *AccessToken) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*AccessToken) SetDisplayName ¶
func (o *AccessToken) SetDisplayName(v string)
SetDisplayName sets field value
func (*AccessToken) SetExpires ¶
func (o *AccessToken) SetExpires(v bool)
SetExpires sets field value
func (*AccessToken) SetPermissions ¶
func (o *AccessToken) SetPermissions(v []string)
SetPermissions sets field value
func (*AccessToken) SetStatus ¶
func (o *AccessToken) SetStatus(v string)
SetStatus sets field value
func (*AccessToken) SetValidUntil ¶
func (o *AccessToken) SetValidUntil(v time.Time)
SetValidUntil gets a reference to the given time.Time and assigns it to the ValidUntil field.
func (AccessToken) ToMap ¶
func (o AccessToken) ToMap() (map[string]interface{}, error)
func (*AccessToken) UnmarshalJSON ¶
func (o *AccessToken) UnmarshalJSON(data []byte) (err error)
type AccessTokenList ¶
type AccessTokenList struct {
Tokens []AccessToken `json:"tokens"`
}
AccessTokenList struct for AccessTokenList
func NewAccessTokenList ¶
func NewAccessTokenList(tokens []AccessToken) *AccessTokenList
NewAccessTokenList instantiates a new AccessTokenList 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 NewAccessTokenListWithDefaults ¶
func NewAccessTokenListWithDefaults() *AccessTokenList
NewAccessTokenListWithDefaults instantiates a new AccessTokenList 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 (*AccessTokenList) GetTokens ¶
func (o *AccessTokenList) GetTokens() []AccessToken
GetTokens returns the Tokens field value
func (*AccessTokenList) GetTokensOk ¶
func (o *AccessTokenList) GetTokensOk() ([]AccessToken, bool)
GetTokensOk returns a tuple with the Tokens field value and a boolean to check if the value has been set.
func (AccessTokenList) MarshalJSON ¶
func (o AccessTokenList) MarshalJSON() ([]byte, error)
func (*AccessTokenList) SetTokens ¶
func (o *AccessTokenList) SetTokens(v []AccessToken)
SetTokens sets field value
func (AccessTokenList) ToMap ¶
func (o AccessTokenList) ToMap() (map[string]interface{}, error)
func (*AccessTokenList) UnmarshalJSON ¶
func (o *AccessTokenList) UnmarshalJSON(data []byte) (err error)
type ApiCreateAccessTokenRequest ¶
type ApiCreateAccessTokenRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiCreateAccessTokenRequest) CreateAccessTokenPayload ¶
func (r ApiCreateAccessTokenRequest) CreateAccessTokenPayload(createAccessTokenPayload CreateAccessTokenPayload) ApiCreateAccessTokenRequest
func (ApiCreateAccessTokenRequest) Execute ¶
func (r ApiCreateAccessTokenRequest) Execute() (*AccessToken, error)
type ApiCreateLogsInstanceRequest ¶
type ApiCreateLogsInstanceRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiCreateLogsInstanceRequest) CreateLogsInstancePayload ¶
func (r ApiCreateLogsInstanceRequest) CreateLogsInstancePayload(createLogsInstancePayload CreateLogsInstancePayload) ApiCreateLogsInstanceRequest
func (ApiCreateLogsInstanceRequest) Execute ¶
func (r ApiCreateLogsInstanceRequest) Execute() (*LogsInstance, error)
type ApiDeleteAccessTokenRequest ¶
type ApiDeleteAccessTokenRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiDeleteAccessTokenRequest) Execute ¶
func (r ApiDeleteAccessTokenRequest) Execute() error
type ApiDeleteAllAccessTokensRequest ¶
type ApiDeleteAllAccessTokensRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiDeleteAllAccessTokensRequest) Execute ¶
func (r ApiDeleteAllAccessTokensRequest) Execute() (*AccessTokenList, error)
type ApiDeleteAllExpiredAccessTokensRequest ¶
type ApiDeleteAllExpiredAccessTokensRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiDeleteAllExpiredAccessTokensRequest) Execute ¶
func (r ApiDeleteAllExpiredAccessTokensRequest) Execute() (*AccessTokenList, error)
type ApiDeleteLogsInstanceRequest ¶
type ApiDeleteLogsInstanceRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiDeleteLogsInstanceRequest) Execute ¶
func (r ApiDeleteLogsInstanceRequest) Execute() error
type ApiGetAccessTokenRequest ¶
type ApiGetAccessTokenRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiGetAccessTokenRequest) Execute ¶
func (r ApiGetAccessTokenRequest) Execute() (*AccessToken, error)
type ApiGetLogsInstanceRequest ¶
type ApiGetLogsInstanceRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiGetLogsInstanceRequest) Execute ¶
func (r ApiGetLogsInstanceRequest) Execute() (*LogsInstance, error)
type ApiListAccessTokensRequest ¶
type ApiListAccessTokensRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiListAccessTokensRequest) Execute ¶
func (r ApiListAccessTokensRequest) Execute() (*AccessTokenList, error)
type ApiListLogsInstancesRequest ¶
type ApiListLogsInstancesRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiListLogsInstancesRequest) Execute ¶
func (r ApiListLogsInstancesRequest) Execute() (*LogsInstancesList, error)
type ApiUpdateAccessTokenRequest ¶
type ApiUpdateAccessTokenRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiUpdateAccessTokenRequest) Execute ¶
func (r ApiUpdateAccessTokenRequest) Execute() error
func (ApiUpdateAccessTokenRequest) UpdateAccessTokenPayload ¶
func (r ApiUpdateAccessTokenRequest) UpdateAccessTokenPayload(updateAccessTokenPayload UpdateAccessTokenPayload) ApiUpdateAccessTokenRequest
type ApiUpdateLogsInstanceRequest ¶
type ApiUpdateLogsInstanceRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiUpdateLogsInstanceRequest) Execute ¶
func (r ApiUpdateLogsInstanceRequest) Execute() (*LogsInstance, error)
func (ApiUpdateLogsInstanceRequest) UpdateLogsInstancePayload ¶
func (r ApiUpdateLogsInstanceRequest) UpdateLogsInstancePayload(updateLogsInstancePayload UpdateLogsInstancePayload) ApiUpdateLogsInstanceRequest
type CreateAccessTokenPayload ¶
type CreateAccessTokenPayload struct {
// The description of the access token.
Description *string `json:"description,omitempty"`
// The displayed name of the access token.
DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z][\\\\w -]*$"`
// A lifetime period for an access token in days. If unset the token will not expire.
Lifetime *int32 `json:"lifetime,omitempty"`
// The access permissions granted to the access token.
Permissions []string `json:"permissions"`
}
CreateAccessTokenPayload struct for CreateAccessTokenPayload
func NewCreateAccessTokenPayload ¶
func NewCreateAccessTokenPayload(displayName string, permissions []string) *CreateAccessTokenPayload
NewCreateAccessTokenPayload instantiates a new CreateAccessTokenPayload 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 NewCreateAccessTokenPayloadWithDefaults ¶
func NewCreateAccessTokenPayloadWithDefaults() *CreateAccessTokenPayload
NewCreateAccessTokenPayloadWithDefaults instantiates a new CreateAccessTokenPayload 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 (*CreateAccessTokenPayload) GetDescription ¶
func (o *CreateAccessTokenPayload) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (*CreateAccessTokenPayload) GetDescriptionOk ¶
func (o *CreateAccessTokenPayload) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAccessTokenPayload) GetDisplayName ¶
func (o *CreateAccessTokenPayload) GetDisplayName() string
GetDisplayName returns the DisplayName field value
func (*CreateAccessTokenPayload) GetDisplayNameOk ¶
func (o *CreateAccessTokenPayload) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set.
func (*CreateAccessTokenPayload) GetLifetime ¶
func (o *CreateAccessTokenPayload) GetLifetime() int32
GetLifetime returns the Lifetime field value if set, zero value otherwise.
func (*CreateAccessTokenPayload) GetLifetimeOk ¶
func (o *CreateAccessTokenPayload) GetLifetimeOk() (*int32, bool)
GetLifetimeOk returns a tuple with the Lifetime field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateAccessTokenPayload) GetPermissions ¶
func (o *CreateAccessTokenPayload) GetPermissions() []string
GetPermissions returns the Permissions field value
func (*CreateAccessTokenPayload) GetPermissionsOk ¶
func (o *CreateAccessTokenPayload) GetPermissionsOk() ([]string, bool)
GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.
func (*CreateAccessTokenPayload) HasDescription ¶
func (o *CreateAccessTokenPayload) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (*CreateAccessTokenPayload) HasLifetime ¶
func (o *CreateAccessTokenPayload) HasLifetime() bool
HasLifetime returns a boolean if a field has been set.
func (CreateAccessTokenPayload) MarshalJSON ¶
func (o CreateAccessTokenPayload) MarshalJSON() ([]byte, error)
func (*CreateAccessTokenPayload) SetDescription ¶
func (o *CreateAccessTokenPayload) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*CreateAccessTokenPayload) SetDisplayName ¶
func (o *CreateAccessTokenPayload) SetDisplayName(v string)
SetDisplayName sets field value
func (*CreateAccessTokenPayload) SetLifetime ¶
func (o *CreateAccessTokenPayload) SetLifetime(v int32)
SetLifetime gets a reference to the given int32 and assigns it to the Lifetime field.
func (*CreateAccessTokenPayload) SetPermissions ¶
func (o *CreateAccessTokenPayload) SetPermissions(v []string)
SetPermissions sets field value
func (CreateAccessTokenPayload) ToMap ¶
func (o CreateAccessTokenPayload) ToMap() (map[string]interface{}, error)
func (*CreateAccessTokenPayload) UnmarshalJSON ¶
func (o *CreateAccessTokenPayload) UnmarshalJSON(data []byte) (err error)
type CreateLogsInstancePayload ¶
type CreateLogsInstancePayload struct {
// The access control list for the Logs instance.
Acl []string `json:"acl,omitempty"`
// The description of the access token.
Description *string `json:"description,omitempty"`
// The displayed name to distinguish multiple Logs instances.
DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z][\\\\w -]*$"`
// The log retention time in days.
RetentionDays int32 `json:"retentionDays"`
}
CreateLogsInstancePayload struct for CreateLogsInstancePayload
func NewCreateLogsInstancePayload ¶
func NewCreateLogsInstancePayload(displayName string, retentionDays int32) *CreateLogsInstancePayload
NewCreateLogsInstancePayload instantiates a new CreateLogsInstancePayload 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 NewCreateLogsInstancePayloadWithDefaults ¶
func NewCreateLogsInstancePayloadWithDefaults() *CreateLogsInstancePayload
NewCreateLogsInstancePayloadWithDefaults instantiates a new CreateLogsInstancePayload 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 (*CreateLogsInstancePayload) GetAcl ¶
func (o *CreateLogsInstancePayload) GetAcl() []string
GetAcl returns the Acl field value if set, zero value otherwise.
func (*CreateLogsInstancePayload) GetAclOk ¶
func (o *CreateLogsInstancePayload) GetAclOk() ([]string, bool)
GetAclOk returns a tuple with the Acl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateLogsInstancePayload) GetDescription ¶
func (o *CreateLogsInstancePayload) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (*CreateLogsInstancePayload) GetDescriptionOk ¶
func (o *CreateLogsInstancePayload) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateLogsInstancePayload) GetDisplayName ¶
func (o *CreateLogsInstancePayload) GetDisplayName() string
GetDisplayName returns the DisplayName field value
func (*CreateLogsInstancePayload) GetDisplayNameOk ¶
func (o *CreateLogsInstancePayload) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set.
func (*CreateLogsInstancePayload) GetRetentionDays ¶
func (o *CreateLogsInstancePayload) GetRetentionDays() int32
GetRetentionDays returns the RetentionDays field value
func (*CreateLogsInstancePayload) GetRetentionDaysOk ¶
func (o *CreateLogsInstancePayload) GetRetentionDaysOk() (*int32, bool)
GetRetentionDaysOk returns a tuple with the RetentionDays field value and a boolean to check if the value has been set.
func (*CreateLogsInstancePayload) HasAcl ¶
func (o *CreateLogsInstancePayload) HasAcl() bool
HasAcl returns a boolean if a field has been set.
func (*CreateLogsInstancePayload) HasDescription ¶
func (o *CreateLogsInstancePayload) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (CreateLogsInstancePayload) MarshalJSON ¶
func (o CreateLogsInstancePayload) MarshalJSON() ([]byte, error)
func (*CreateLogsInstancePayload) SetAcl ¶
func (o *CreateLogsInstancePayload) SetAcl(v []string)
SetAcl gets a reference to the given []string and assigns it to the Acl field.
func (*CreateLogsInstancePayload) SetDescription ¶
func (o *CreateLogsInstancePayload) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*CreateLogsInstancePayload) SetDisplayName ¶
func (o *CreateLogsInstancePayload) SetDisplayName(v string)
SetDisplayName sets field value
func (*CreateLogsInstancePayload) SetRetentionDays ¶
func (o *CreateLogsInstancePayload) SetRetentionDays(v int32)
SetRetentionDays sets field value
func (CreateLogsInstancePayload) ToMap ¶
func (o CreateLogsInstancePayload) ToMap() (map[string]interface{}, error)
func (*CreateLogsInstancePayload) UnmarshalJSON ¶
func (o *CreateLogsInstancePayload) UnmarshalJSON(data []byte) (err error)
type DefaultAPI ¶
type DefaultAPI interface {
/*
CreateAccessToken Create Access Token
Create a new Logs instance access token
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiCreateAccessTokenRequest
*/
CreateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string) ApiCreateAccessTokenRequest
// CreateAccessTokenExecute executes the request
// @return AccessToken
CreateAccessTokenExecute(r ApiCreateAccessTokenRequest) (*AccessToken, error)
/*
CreateLogsInstance Create Logs instance
Creates a new Logs instance within the project.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@return ApiCreateLogsInstanceRequest
*/
CreateLogsInstance(ctx context.Context, projectId string, regionId string) ApiCreateLogsInstanceRequest
// CreateLogsInstanceExecute executes the request
// @return LogsInstance
CreateLogsInstanceExecute(r ApiCreateLogsInstanceRequest) (*LogsInstance, error)
/*
DeleteAccessToken Delete Access Token
Deletes a Logs instance access token
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@param tId The access token UUID.
@return ApiDeleteAccessTokenRequest
*/
DeleteAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiDeleteAccessTokenRequest
// DeleteAccessTokenExecute executes the request
DeleteAccessTokenExecute(r ApiDeleteAccessTokenRequest) error
/*
DeleteAllAccessTokens Delete All Access Tokens
Deletes all access tokens available for a Logs instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiDeleteAllAccessTokensRequest
*/
DeleteAllAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllAccessTokensRequest
// DeleteAllAccessTokensExecute executes the request
// @return AccessTokenList
DeleteAllAccessTokensExecute(r ApiDeleteAllAccessTokensRequest) (*AccessTokenList, error)
/*
DeleteAllExpiredAccessTokens Deletes all expired access tokens
Deletes all expired access tokens
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiDeleteAllExpiredAccessTokensRequest
*/
DeleteAllExpiredAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllExpiredAccessTokensRequest
// DeleteAllExpiredAccessTokensExecute executes the request
// @return AccessTokenList
DeleteAllExpiredAccessTokensExecute(r ApiDeleteAllExpiredAccessTokensRequest) (*AccessTokenList, error)
/*
DeleteLogsInstance Delete Logs instance
Deletes the given Logs instance.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiDeleteLogsInstanceRequest
*/
DeleteLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteLogsInstanceRequest
// DeleteLogsInstanceExecute executes the request
DeleteLogsInstanceExecute(r ApiDeleteLogsInstanceRequest) error
/*
GetAccessToken Get Access Token
Get the information of the given access token.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@param tId The access token UUID.
@return ApiGetAccessTokenRequest
*/
GetAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiGetAccessTokenRequest
// GetAccessTokenExecute executes the request
// @return AccessToken
GetAccessTokenExecute(r ApiGetAccessTokenRequest) (*AccessToken, error)
/*
GetLogsInstance Get Logs Instance
Returns the details for the given Logs instance.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiGetLogsInstanceRequest
*/
GetLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetLogsInstanceRequest
// GetLogsInstanceExecute executes the request
// @return LogsInstance
GetLogsInstanceExecute(r ApiGetLogsInstanceRequest) (*LogsInstance, error)
/*
ListAccessTokens List Access Tokens
Returns a list of access tokens created for a Logs instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiListAccessTokensRequest
*/
ListAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiListAccessTokensRequest
// ListAccessTokensExecute executes the request
// @return AccessTokenList
ListAccessTokensExecute(r ApiListAccessTokensRequest) (*AccessTokenList, error)
/*
ListLogsInstances List Logs instances
Returns a list of all Logs instances within the project.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@return ApiListLogsInstancesRequest
*/
ListLogsInstances(ctx context.Context, projectId string, regionId string) ApiListLogsInstancesRequest
// ListLogsInstancesExecute executes the request
// @return LogsInstancesList
ListLogsInstancesExecute(r ApiListLogsInstancesRequest) (*LogsInstancesList, error)
/*
UpdateAccessToken Update Access Token
Updates the given access token.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@param tId The access token UUID.
@return ApiUpdateAccessTokenRequest
*/
UpdateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiUpdateAccessTokenRequest
// UpdateAccessTokenExecute executes the request
UpdateAccessTokenExecute(r ApiUpdateAccessTokenRequest) error
/*
UpdateLogsInstance Update Logs instance
Updates the given Logs instance.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the resource is located in.
@param regionId The STACKIT region name the resource is located in.
@param instanceId The Logs Instance UUID.
@return ApiUpdateLogsInstanceRequest
*/
UpdateLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateLogsInstanceRequest
// UpdateLogsInstanceExecute executes the request
// @return LogsInstance
UpdateLogsInstanceExecute(r ApiUpdateLogsInstanceRequest) (*LogsInstance, error)
}
type DefaultAPIService ¶
type DefaultAPIService service
DefaultAPIService DefaultAPI service
func (*DefaultAPIService) CreateAccessToken ¶
func (a *DefaultAPIService) CreateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string) ApiCreateAccessTokenRequest
CreateAccessToken Create Access Token
Create a new Logs instance access token
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiCreateAccessTokenRequest
func (*DefaultAPIService) CreateAccessTokenExecute ¶
func (a *DefaultAPIService) CreateAccessTokenExecute(r ApiCreateAccessTokenRequest) (*AccessToken, error)
Execute executes the request
@return AccessToken
func (*DefaultAPIService) CreateLogsInstance ¶
func (a *DefaultAPIService) CreateLogsInstance(ctx context.Context, projectId string, regionId string) ApiCreateLogsInstanceRequest
CreateLogsInstance Create Logs instance
Creates a new Logs instance within the project.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @return ApiCreateLogsInstanceRequest
func (*DefaultAPIService) CreateLogsInstanceExecute ¶
func (a *DefaultAPIService) CreateLogsInstanceExecute(r ApiCreateLogsInstanceRequest) (*LogsInstance, error)
Execute executes the request
@return LogsInstance
func (*DefaultAPIService) DeleteAccessToken ¶
func (a *DefaultAPIService) DeleteAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiDeleteAccessTokenRequest
DeleteAccessToken Delete Access Token
Deletes a Logs instance access token
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @param tId The access token UUID. @return ApiDeleteAccessTokenRequest
func (*DefaultAPIService) DeleteAccessTokenExecute ¶
func (a *DefaultAPIService) DeleteAccessTokenExecute(r ApiDeleteAccessTokenRequest) error
Execute executes the request
func (*DefaultAPIService) DeleteAllAccessTokens ¶
func (a *DefaultAPIService) DeleteAllAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllAccessTokensRequest
DeleteAllAccessTokens Delete All Access Tokens
Deletes all access tokens available for a Logs instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiDeleteAllAccessTokensRequest
func (*DefaultAPIService) DeleteAllAccessTokensExecute ¶
func (a *DefaultAPIService) DeleteAllAccessTokensExecute(r ApiDeleteAllAccessTokensRequest) (*AccessTokenList, error)
Execute executes the request
@return AccessTokenList
func (*DefaultAPIService) DeleteAllExpiredAccessTokens ¶
func (a *DefaultAPIService) DeleteAllExpiredAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllExpiredAccessTokensRequest
DeleteAllExpiredAccessTokens Deletes all expired access tokens
Deletes all expired access tokens
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiDeleteAllExpiredAccessTokensRequest
func (*DefaultAPIService) DeleteAllExpiredAccessTokensExecute ¶
func (a *DefaultAPIService) DeleteAllExpiredAccessTokensExecute(r ApiDeleteAllExpiredAccessTokensRequest) (*AccessTokenList, error)
Execute executes the request
@return AccessTokenList
func (*DefaultAPIService) DeleteLogsInstance ¶
func (a *DefaultAPIService) DeleteLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteLogsInstanceRequest
DeleteLogsInstance Delete Logs instance
Deletes the given Logs instance.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiDeleteLogsInstanceRequest
func (*DefaultAPIService) DeleteLogsInstanceExecute ¶
func (a *DefaultAPIService) DeleteLogsInstanceExecute(r ApiDeleteLogsInstanceRequest) error
Execute executes the request
func (*DefaultAPIService) GetAccessToken ¶
func (a *DefaultAPIService) GetAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiGetAccessTokenRequest
GetAccessToken Get Access Token
Get the information of the given access token.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @param tId The access token UUID. @return ApiGetAccessTokenRequest
func (*DefaultAPIService) GetAccessTokenExecute ¶
func (a *DefaultAPIService) GetAccessTokenExecute(r ApiGetAccessTokenRequest) (*AccessToken, error)
Execute executes the request
@return AccessToken
func (*DefaultAPIService) GetLogsInstance ¶
func (a *DefaultAPIService) GetLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetLogsInstanceRequest
GetLogsInstance Get Logs Instance
Returns the details for the given Logs instance.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiGetLogsInstanceRequest
func (*DefaultAPIService) GetLogsInstanceExecute ¶
func (a *DefaultAPIService) GetLogsInstanceExecute(r ApiGetLogsInstanceRequest) (*LogsInstance, error)
Execute executes the request
@return LogsInstance
func (*DefaultAPIService) ListAccessTokens ¶
func (a *DefaultAPIService) ListAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiListAccessTokensRequest
ListAccessTokens List Access Tokens
Returns a list of access tokens created for a Logs instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiListAccessTokensRequest
func (*DefaultAPIService) ListAccessTokensExecute ¶
func (a *DefaultAPIService) ListAccessTokensExecute(r ApiListAccessTokensRequest) (*AccessTokenList, error)
Execute executes the request
@return AccessTokenList
func (*DefaultAPIService) ListLogsInstances ¶
func (a *DefaultAPIService) ListLogsInstances(ctx context.Context, projectId string, regionId string) ApiListLogsInstancesRequest
ListLogsInstances List Logs instances
Returns a list of all Logs instances within the project.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @return ApiListLogsInstancesRequest
func (*DefaultAPIService) ListLogsInstancesExecute ¶
func (a *DefaultAPIService) ListLogsInstancesExecute(r ApiListLogsInstancesRequest) (*LogsInstancesList, error)
Execute executes the request
@return LogsInstancesList
func (*DefaultAPIService) UpdateAccessToken ¶
func (a *DefaultAPIService) UpdateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiUpdateAccessTokenRequest
UpdateAccessToken Update Access Token
Updates the given access token.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @param tId The access token UUID. @return ApiUpdateAccessTokenRequest
func (*DefaultAPIService) UpdateAccessTokenExecute ¶
func (a *DefaultAPIService) UpdateAccessTokenExecute(r ApiUpdateAccessTokenRequest) error
Execute executes the request
func (*DefaultAPIService) UpdateLogsInstance ¶
func (a *DefaultAPIService) UpdateLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateLogsInstanceRequest
UpdateLogsInstance Update Logs instance
Updates the given Logs instance.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @param instanceId The Logs Instance UUID. @return ApiUpdateLogsInstanceRequest
func (*DefaultAPIService) UpdateLogsInstanceExecute ¶
func (a *DefaultAPIService) UpdateLogsInstanceExecute(r ApiUpdateLogsInstanceRequest) (*LogsInstance, error)
Execute executes the request
@return LogsInstance
type DefaultAPIServiceMock ¶
type DefaultAPIServiceMock struct {
// CreateAccessTokenExecuteMock can be populated to implement the behavior of the CreateAccessTokenExecute function of this mock
CreateAccessTokenExecuteMock *func(r ApiCreateAccessTokenRequest) (*AccessToken, error)
// CreateLogsInstanceExecuteMock can be populated to implement the behavior of the CreateLogsInstanceExecute function of this mock
CreateLogsInstanceExecuteMock *func(r ApiCreateLogsInstanceRequest) (*LogsInstance, error)
// DeleteAccessTokenExecuteMock can be populated to implement the behavior of the DeleteAccessTokenExecute function of this mock
DeleteAccessTokenExecuteMock *func(r ApiDeleteAccessTokenRequest) error
// DeleteAllAccessTokensExecuteMock can be populated to implement the behavior of the DeleteAllAccessTokensExecute function of this mock
DeleteAllAccessTokensExecuteMock *func(r ApiDeleteAllAccessTokensRequest) (*AccessTokenList, error)
// DeleteAllExpiredAccessTokensExecuteMock can be populated to implement the behavior of the DeleteAllExpiredAccessTokensExecute function of this mock
DeleteAllExpiredAccessTokensExecuteMock *func(r ApiDeleteAllExpiredAccessTokensRequest) (*AccessTokenList, error)
// DeleteLogsInstanceExecuteMock can be populated to implement the behavior of the DeleteLogsInstanceExecute function of this mock
DeleteLogsInstanceExecuteMock *func(r ApiDeleteLogsInstanceRequest) error
// GetAccessTokenExecuteMock can be populated to implement the behavior of the GetAccessTokenExecute function of this mock
GetAccessTokenExecuteMock *func(r ApiGetAccessTokenRequest) (*AccessToken, error)
// GetLogsInstanceExecuteMock can be populated to implement the behavior of the GetLogsInstanceExecute function of this mock
GetLogsInstanceExecuteMock *func(r ApiGetLogsInstanceRequest) (*LogsInstance, error)
// ListAccessTokensExecuteMock can be populated to implement the behavior of the ListAccessTokensExecute function of this mock
ListAccessTokensExecuteMock *func(r ApiListAccessTokensRequest) (*AccessTokenList, error)
// ListLogsInstancesExecuteMock can be populated to implement the behavior of the ListLogsInstancesExecute function of this mock
ListLogsInstancesExecuteMock *func(r ApiListLogsInstancesRequest) (*LogsInstancesList, error)
// UpdateAccessTokenExecuteMock can be populated to implement the behavior of the UpdateAccessTokenExecute function of this mock
UpdateAccessTokenExecuteMock *func(r ApiUpdateAccessTokenRequest) error
// UpdateLogsInstanceExecuteMock can be populated to implement the behavior of the UpdateLogsInstanceExecute function of this mock
UpdateLogsInstanceExecuteMock *func(r ApiUpdateLogsInstanceRequest) (*LogsInstance, error)
}
DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.
func (DefaultAPIServiceMock) CreateAccessToken ¶
func (a DefaultAPIServiceMock) CreateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string) ApiCreateAccessTokenRequest
func (DefaultAPIServiceMock) CreateAccessTokenExecute ¶
func (a DefaultAPIServiceMock) CreateAccessTokenExecute(r ApiCreateAccessTokenRequest) (*AccessToken, error)
CreateAccessTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateAccessTokenExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) CreateLogsInstance ¶
func (a DefaultAPIServiceMock) CreateLogsInstance(ctx context.Context, projectId string, regionId string) ApiCreateLogsInstanceRequest
func (DefaultAPIServiceMock) CreateLogsInstanceExecute ¶
func (a DefaultAPIServiceMock) CreateLogsInstanceExecute(r ApiCreateLogsInstanceRequest) (*LogsInstance, error)
CreateLogsInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateLogsInstanceExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) DeleteAccessToken ¶
func (a DefaultAPIServiceMock) DeleteAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiDeleteAccessTokenRequest
func (DefaultAPIServiceMock) DeleteAccessTokenExecute ¶
func (a DefaultAPIServiceMock) DeleteAccessTokenExecute(r ApiDeleteAccessTokenRequest) error
DeleteAccessTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAccessTokenExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) DeleteAllAccessTokens ¶
func (a DefaultAPIServiceMock) DeleteAllAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllAccessTokensRequest
func (DefaultAPIServiceMock) DeleteAllAccessTokensExecute ¶
func (a DefaultAPIServiceMock) DeleteAllAccessTokensExecute(r ApiDeleteAllAccessTokensRequest) (*AccessTokenList, error)
DeleteAllAccessTokensExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAllAccessTokensExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) DeleteAllExpiredAccessTokens ¶
func (a DefaultAPIServiceMock) DeleteAllExpiredAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteAllExpiredAccessTokensRequest
func (DefaultAPIServiceMock) DeleteAllExpiredAccessTokensExecute ¶
func (a DefaultAPIServiceMock) DeleteAllExpiredAccessTokensExecute(r ApiDeleteAllExpiredAccessTokensRequest) (*AccessTokenList, error)
DeleteAllExpiredAccessTokensExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteAllExpiredAccessTokensExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) DeleteLogsInstance ¶
func (a DefaultAPIServiceMock) DeleteLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiDeleteLogsInstanceRequest
func (DefaultAPIServiceMock) DeleteLogsInstanceExecute ¶
func (a DefaultAPIServiceMock) DeleteLogsInstanceExecute(r ApiDeleteLogsInstanceRequest) error
DeleteLogsInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteLogsInstanceExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) GetAccessToken ¶
func (a DefaultAPIServiceMock) GetAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiGetAccessTokenRequest
func (DefaultAPIServiceMock) GetAccessTokenExecute ¶
func (a DefaultAPIServiceMock) GetAccessTokenExecute(r ApiGetAccessTokenRequest) (*AccessToken, error)
GetAccessTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetAccessTokenExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) GetLogsInstance ¶
func (a DefaultAPIServiceMock) GetLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetLogsInstanceRequest
func (DefaultAPIServiceMock) GetLogsInstanceExecute ¶
func (a DefaultAPIServiceMock) GetLogsInstanceExecute(r ApiGetLogsInstanceRequest) (*LogsInstance, error)
GetLogsInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsInstanceExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) ListAccessTokens ¶
func (a DefaultAPIServiceMock) ListAccessTokens(ctx context.Context, projectId string, regionId string, instanceId string) ApiListAccessTokensRequest
func (DefaultAPIServiceMock) ListAccessTokensExecute ¶
func (a DefaultAPIServiceMock) ListAccessTokensExecute(r ApiListAccessTokensRequest) (*AccessTokenList, error)
ListAccessTokensExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAccessTokensExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) ListLogsInstances ¶
func (a DefaultAPIServiceMock) ListLogsInstances(ctx context.Context, projectId string, regionId string) ApiListLogsInstancesRequest
func (DefaultAPIServiceMock) ListLogsInstancesExecute ¶
func (a DefaultAPIServiceMock) ListLogsInstancesExecute(r ApiListLogsInstancesRequest) (*LogsInstancesList, error)
ListLogsInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListLogsInstancesExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) UpdateAccessToken ¶
func (a DefaultAPIServiceMock) UpdateAccessToken(ctx context.Context, projectId string, regionId string, instanceId string, tId string) ApiUpdateAccessTokenRequest
func (DefaultAPIServiceMock) UpdateAccessTokenExecute ¶
func (a DefaultAPIServiceMock) UpdateAccessTokenExecute(r ApiUpdateAccessTokenRequest) error
UpdateAccessTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateAccessTokenExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) UpdateLogsInstance ¶
func (a DefaultAPIServiceMock) UpdateLogsInstance(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateLogsInstanceRequest
func (DefaultAPIServiceMock) UpdateLogsInstanceExecute ¶
func (a DefaultAPIServiceMock) UpdateLogsInstanceExecute(r ApiUpdateLogsInstanceRequest) (*LogsInstance, error)
UpdateLogsInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateLogsInstanceExecuteMock field in the DefaultAPIServiceMock struct.
type LogsInstance ¶
type LogsInstance struct {
// The access control list for the Logs instance.
Acl []string `json:"acl,omitempty"`
// The date and time the creation of the Logs instance was triggered.
Created time.Time `json:"created"`
// The Logs instance's datasource URL, can be used in Grafana as a datasource URL
DatasourceUrl *string `json:"datasourceUrl,omitempty"`
// The description of the Logs instance.
Description *string `json:"description,omitempty"`
// The displayed name of the Logs instance.
DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z][\\\\w -]*$"`
// A auto generated unique id which identifies the Logs instance.
Id string `json:"id"`
// The Logs instance's ingest logs via OTLP URL
IngestOtlpUrl *string `json:"ingestOtlpUrl,omitempty"`
// The Logs instance's ingest logs URL
IngestUrl *string `json:"ingestUrl,omitempty"`
// The Logs instance's query range URL
QueryRangeUrl *string `json:"queryRangeUrl,omitempty"`
// The Logs instance's query URL
QueryUrl *string `json:"queryUrl,omitempty"`
// The log retention time in days.
RetentionDays int32 `json:"retentionDays"`
// The current status of the Logs instance.
Status string `json:"status"`
}
LogsInstance struct for LogsInstance
func NewLogsInstance ¶
func NewLogsInstance(created time.Time, displayName string, id string, retentionDays int32, status string) *LogsInstance
NewLogsInstance instantiates a new LogsInstance 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 NewLogsInstanceWithDefaults ¶
func NewLogsInstanceWithDefaults() *LogsInstance
NewLogsInstanceWithDefaults instantiates a new LogsInstance 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 (*LogsInstance) GetAcl ¶
func (o *LogsInstance) GetAcl() []string
GetAcl returns the Acl field value if set, zero value otherwise.
func (*LogsInstance) GetAclOk ¶
func (o *LogsInstance) GetAclOk() ([]string, bool)
GetAclOk returns a tuple with the Acl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetCreated ¶
func (o *LogsInstance) GetCreated() time.Time
GetCreated returns the Created field value
func (*LogsInstance) GetCreatedOk ¶
func (o *LogsInstance) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*LogsInstance) GetDatasourceUrl ¶
func (o *LogsInstance) GetDatasourceUrl() string
GetDatasourceUrl returns the DatasourceUrl field value if set, zero value otherwise.
func (*LogsInstance) GetDatasourceUrlOk ¶
func (o *LogsInstance) GetDatasourceUrlOk() (*string, bool)
GetDatasourceUrlOk returns a tuple with the DatasourceUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetDescription ¶
func (o *LogsInstance) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (*LogsInstance) GetDescriptionOk ¶
func (o *LogsInstance) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetDisplayName ¶
func (o *LogsInstance) GetDisplayName() string
GetDisplayName returns the DisplayName field value
func (*LogsInstance) GetDisplayNameOk ¶
func (o *LogsInstance) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set.
func (*LogsInstance) GetIdOk ¶
func (o *LogsInstance) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*LogsInstance) GetIngestOtlpUrl ¶
func (o *LogsInstance) GetIngestOtlpUrl() string
GetIngestOtlpUrl returns the IngestOtlpUrl field value if set, zero value otherwise.
func (*LogsInstance) GetIngestOtlpUrlOk ¶
func (o *LogsInstance) GetIngestOtlpUrlOk() (*string, bool)
GetIngestOtlpUrlOk returns a tuple with the IngestOtlpUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetIngestUrl ¶
func (o *LogsInstance) GetIngestUrl() string
GetIngestUrl returns the IngestUrl field value if set, zero value otherwise.
func (*LogsInstance) GetIngestUrlOk ¶
func (o *LogsInstance) GetIngestUrlOk() (*string, bool)
GetIngestUrlOk returns a tuple with the IngestUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetQueryRangeUrl ¶
func (o *LogsInstance) GetQueryRangeUrl() string
GetQueryRangeUrl returns the QueryRangeUrl field value if set, zero value otherwise.
func (*LogsInstance) GetQueryRangeUrlOk ¶
func (o *LogsInstance) GetQueryRangeUrlOk() (*string, bool)
GetQueryRangeUrlOk returns a tuple with the QueryRangeUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetQueryUrl ¶
func (o *LogsInstance) GetQueryUrl() string
GetQueryUrl returns the QueryUrl field value if set, zero value otherwise.
func (*LogsInstance) GetQueryUrlOk ¶
func (o *LogsInstance) GetQueryUrlOk() (*string, bool)
GetQueryUrlOk returns a tuple with the QueryUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LogsInstance) GetRetentionDays ¶
func (o *LogsInstance) GetRetentionDays() int32
GetRetentionDays returns the RetentionDays field value
func (*LogsInstance) GetRetentionDaysOk ¶
func (o *LogsInstance) GetRetentionDaysOk() (*int32, bool)
GetRetentionDaysOk returns a tuple with the RetentionDays field value and a boolean to check if the value has been set.
func (*LogsInstance) GetStatus ¶
func (o *LogsInstance) GetStatus() string
GetStatus returns the Status field value
func (*LogsInstance) GetStatusOk ¶
func (o *LogsInstance) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*LogsInstance) HasAcl ¶
func (o *LogsInstance) HasAcl() bool
HasAcl returns a boolean if a field has been set.
func (*LogsInstance) HasDatasourceUrl ¶
func (o *LogsInstance) HasDatasourceUrl() bool
HasDatasourceUrl returns a boolean if a field has been set.
func (*LogsInstance) HasDescription ¶
func (o *LogsInstance) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (*LogsInstance) HasIngestOtlpUrl ¶
func (o *LogsInstance) HasIngestOtlpUrl() bool
HasIngestOtlpUrl returns a boolean if a field has been set.
func (*LogsInstance) HasIngestUrl ¶
func (o *LogsInstance) HasIngestUrl() bool
HasIngestUrl returns a boolean if a field has been set.
func (*LogsInstance) HasQueryRangeUrl ¶
func (o *LogsInstance) HasQueryRangeUrl() bool
HasQueryRangeUrl returns a boolean if a field has been set.
func (*LogsInstance) HasQueryUrl ¶
func (o *LogsInstance) HasQueryUrl() bool
HasQueryUrl returns a boolean if a field has been set.
func (LogsInstance) MarshalJSON ¶
func (o LogsInstance) MarshalJSON() ([]byte, error)
func (*LogsInstance) SetAcl ¶
func (o *LogsInstance) SetAcl(v []string)
SetAcl gets a reference to the given []string and assigns it to the Acl field.
func (*LogsInstance) SetCreated ¶
func (o *LogsInstance) SetCreated(v time.Time)
SetCreated sets field value
func (*LogsInstance) SetDatasourceUrl ¶
func (o *LogsInstance) SetDatasourceUrl(v string)
SetDatasourceUrl gets a reference to the given string and assigns it to the DatasourceUrl field.
func (*LogsInstance) SetDescription ¶
func (o *LogsInstance) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*LogsInstance) SetDisplayName ¶
func (o *LogsInstance) SetDisplayName(v string)
SetDisplayName sets field value
func (*LogsInstance) SetIngestOtlpUrl ¶
func (o *LogsInstance) SetIngestOtlpUrl(v string)
SetIngestOtlpUrl gets a reference to the given string and assigns it to the IngestOtlpUrl field.
func (*LogsInstance) SetIngestUrl ¶
func (o *LogsInstance) SetIngestUrl(v string)
SetIngestUrl gets a reference to the given string and assigns it to the IngestUrl field.
func (*LogsInstance) SetQueryRangeUrl ¶
func (o *LogsInstance) SetQueryRangeUrl(v string)
SetQueryRangeUrl gets a reference to the given string and assigns it to the QueryRangeUrl field.
func (*LogsInstance) SetQueryUrl ¶
func (o *LogsInstance) SetQueryUrl(v string)
SetQueryUrl gets a reference to the given string and assigns it to the QueryUrl field.
func (*LogsInstance) SetRetentionDays ¶
func (o *LogsInstance) SetRetentionDays(v int32)
SetRetentionDays sets field value
func (*LogsInstance) SetStatus ¶
func (o *LogsInstance) SetStatus(v string)
SetStatus sets field value
func (LogsInstance) ToMap ¶
func (o LogsInstance) ToMap() (map[string]interface{}, error)
func (*LogsInstance) UnmarshalJSON ¶
func (o *LogsInstance) UnmarshalJSON(data []byte) (err error)
type LogsInstancesList ¶
type LogsInstancesList struct {
Instances []LogsInstance `json:"instances"`
}
LogsInstancesList struct for LogsInstancesList
func NewLogsInstancesList ¶
func NewLogsInstancesList(instances []LogsInstance) *LogsInstancesList
NewLogsInstancesList instantiates a new LogsInstancesList 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 NewLogsInstancesListWithDefaults ¶
func NewLogsInstancesListWithDefaults() *LogsInstancesList
NewLogsInstancesListWithDefaults instantiates a new LogsInstancesList 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 (*LogsInstancesList) GetInstances ¶
func (o *LogsInstancesList) GetInstances() []LogsInstance
GetInstances returns the Instances field value
func (*LogsInstancesList) GetInstancesOk ¶
func (o *LogsInstancesList) GetInstancesOk() ([]LogsInstance, bool)
GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set.
func (LogsInstancesList) MarshalJSON ¶
func (o LogsInstancesList) MarshalJSON() ([]byte, error)
func (*LogsInstancesList) SetInstances ¶
func (o *LogsInstancesList) SetInstances(v []LogsInstance)
SetInstances sets field value
func (LogsInstancesList) ToMap ¶
func (o LogsInstancesList) ToMap() (map[string]interface{}, error)
func (*LogsInstancesList) UnmarshalJSON ¶
func (o *LogsInstancesList) UnmarshalJSON(data []byte) (err error)
type MappedNullable ¶
type NullableAccessToken ¶
type NullableAccessToken struct {
// contains filtered or unexported fields
}
func NewNullableAccessToken ¶
func NewNullableAccessToken(val *AccessToken) *NullableAccessToken
func (NullableAccessToken) Get ¶
func (v NullableAccessToken) Get() *AccessToken
func (NullableAccessToken) IsSet ¶
func (v NullableAccessToken) IsSet() bool
func (NullableAccessToken) MarshalJSON ¶
func (v NullableAccessToken) MarshalJSON() ([]byte, error)
func (*NullableAccessToken) Set ¶
func (v *NullableAccessToken) Set(val *AccessToken)
func (*NullableAccessToken) UnmarshalJSON ¶
func (v *NullableAccessToken) UnmarshalJSON(src []byte) error
func (*NullableAccessToken) Unset ¶
func (v *NullableAccessToken) Unset()
type NullableAccessTokenList ¶
type NullableAccessTokenList struct {
// contains filtered or unexported fields
}
func NewNullableAccessTokenList ¶
func NewNullableAccessTokenList(val *AccessTokenList) *NullableAccessTokenList
func (NullableAccessTokenList) Get ¶
func (v NullableAccessTokenList) Get() *AccessTokenList
func (NullableAccessTokenList) IsSet ¶
func (v NullableAccessTokenList) IsSet() bool
func (NullableAccessTokenList) MarshalJSON ¶
func (v NullableAccessTokenList) MarshalJSON() ([]byte, error)
func (*NullableAccessTokenList) Set ¶
func (v *NullableAccessTokenList) Set(val *AccessTokenList)
func (*NullableAccessTokenList) UnmarshalJSON ¶
func (v *NullableAccessTokenList) UnmarshalJSON(src []byte) error
func (*NullableAccessTokenList) Unset ¶
func (v *NullableAccessTokenList) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableCreateAccessTokenPayload ¶
type NullableCreateAccessTokenPayload struct {
// contains filtered or unexported fields
}
func NewNullableCreateAccessTokenPayload ¶
func NewNullableCreateAccessTokenPayload(val *CreateAccessTokenPayload) *NullableCreateAccessTokenPayload
func (NullableCreateAccessTokenPayload) Get ¶
func (v NullableCreateAccessTokenPayload) Get() *CreateAccessTokenPayload
func (NullableCreateAccessTokenPayload) IsSet ¶
func (v NullableCreateAccessTokenPayload) IsSet() bool
func (NullableCreateAccessTokenPayload) MarshalJSON ¶
func (v NullableCreateAccessTokenPayload) MarshalJSON() ([]byte, error)
func (*NullableCreateAccessTokenPayload) Set ¶
func (v *NullableCreateAccessTokenPayload) Set(val *CreateAccessTokenPayload)
func (*NullableCreateAccessTokenPayload) UnmarshalJSON ¶
func (v *NullableCreateAccessTokenPayload) UnmarshalJSON(src []byte) error
func (*NullableCreateAccessTokenPayload) Unset ¶
func (v *NullableCreateAccessTokenPayload) Unset()
type NullableCreateLogsInstancePayload ¶
type NullableCreateLogsInstancePayload struct {
// contains filtered or unexported fields
}
func NewNullableCreateLogsInstancePayload ¶
func NewNullableCreateLogsInstancePayload(val *CreateLogsInstancePayload) *NullableCreateLogsInstancePayload
func (NullableCreateLogsInstancePayload) Get ¶
func (v NullableCreateLogsInstancePayload) Get() *CreateLogsInstancePayload
func (NullableCreateLogsInstancePayload) IsSet ¶
func (v NullableCreateLogsInstancePayload) IsSet() bool
func (NullableCreateLogsInstancePayload) MarshalJSON ¶
func (v NullableCreateLogsInstancePayload) MarshalJSON() ([]byte, error)
func (*NullableCreateLogsInstancePayload) Set ¶
func (v *NullableCreateLogsInstancePayload) Set(val *CreateLogsInstancePayload)
func (*NullableCreateLogsInstancePayload) UnmarshalJSON ¶
func (v *NullableCreateLogsInstancePayload) UnmarshalJSON(src []byte) error
func (*NullableCreateLogsInstancePayload) Unset ¶
func (v *NullableCreateLogsInstancePayload) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableLogsInstance ¶
type NullableLogsInstance struct {
// contains filtered or unexported fields
}
func NewNullableLogsInstance ¶
func NewNullableLogsInstance(val *LogsInstance) *NullableLogsInstance
func (NullableLogsInstance) Get ¶
func (v NullableLogsInstance) Get() *LogsInstance
func (NullableLogsInstance) IsSet ¶
func (v NullableLogsInstance) IsSet() bool
func (NullableLogsInstance) MarshalJSON ¶
func (v NullableLogsInstance) MarshalJSON() ([]byte, error)
func (*NullableLogsInstance) Set ¶
func (v *NullableLogsInstance) Set(val *LogsInstance)
func (*NullableLogsInstance) UnmarshalJSON ¶
func (v *NullableLogsInstance) UnmarshalJSON(src []byte) error
func (*NullableLogsInstance) Unset ¶
func (v *NullableLogsInstance) Unset()
type NullableLogsInstancesList ¶
type NullableLogsInstancesList struct {
// contains filtered or unexported fields
}
func NewNullableLogsInstancesList ¶
func NewNullableLogsInstancesList(val *LogsInstancesList) *NullableLogsInstancesList
func (NullableLogsInstancesList) Get ¶
func (v NullableLogsInstancesList) Get() *LogsInstancesList
func (NullableLogsInstancesList) IsSet ¶
func (v NullableLogsInstancesList) IsSet() bool
func (NullableLogsInstancesList) MarshalJSON ¶
func (v NullableLogsInstancesList) MarshalJSON() ([]byte, error)
func (*NullableLogsInstancesList) Set ¶
func (v *NullableLogsInstancesList) Set(val *LogsInstancesList)
func (*NullableLogsInstancesList) UnmarshalJSON ¶
func (v *NullableLogsInstancesList) UnmarshalJSON(src []byte) error
func (*NullableLogsInstancesList) Unset ¶
func (v *NullableLogsInstancesList) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableUpdateAccessTokenPayload ¶
type NullableUpdateAccessTokenPayload struct {
// contains filtered or unexported fields
}
func NewNullableUpdateAccessTokenPayload ¶
func NewNullableUpdateAccessTokenPayload(val *UpdateAccessTokenPayload) *NullableUpdateAccessTokenPayload
func (NullableUpdateAccessTokenPayload) Get ¶
func (v NullableUpdateAccessTokenPayload) Get() *UpdateAccessTokenPayload
func (NullableUpdateAccessTokenPayload) IsSet ¶
func (v NullableUpdateAccessTokenPayload) IsSet() bool
func (NullableUpdateAccessTokenPayload) MarshalJSON ¶
func (v NullableUpdateAccessTokenPayload) MarshalJSON() ([]byte, error)
func (*NullableUpdateAccessTokenPayload) Set ¶
func (v *NullableUpdateAccessTokenPayload) Set(val *UpdateAccessTokenPayload)
func (*NullableUpdateAccessTokenPayload) UnmarshalJSON ¶
func (v *NullableUpdateAccessTokenPayload) UnmarshalJSON(src []byte) error
func (*NullableUpdateAccessTokenPayload) Unset ¶
func (v *NullableUpdateAccessTokenPayload) Unset()
type NullableUpdateLogsInstancePayload ¶
type NullableUpdateLogsInstancePayload struct {
// contains filtered or unexported fields
}
func NewNullableUpdateLogsInstancePayload ¶
func NewNullableUpdateLogsInstancePayload(val *UpdateLogsInstancePayload) *NullableUpdateLogsInstancePayload
func (NullableUpdateLogsInstancePayload) Get ¶
func (v NullableUpdateLogsInstancePayload) Get() *UpdateLogsInstancePayload
func (NullableUpdateLogsInstancePayload) IsSet ¶
func (v NullableUpdateLogsInstancePayload) IsSet() bool
func (NullableUpdateLogsInstancePayload) MarshalJSON ¶
func (v NullableUpdateLogsInstancePayload) MarshalJSON() ([]byte, error)
func (*NullableUpdateLogsInstancePayload) Set ¶
func (v *NullableUpdateLogsInstancePayload) Set(val *UpdateLogsInstancePayload)
func (*NullableUpdateLogsInstancePayload) UnmarshalJSON ¶
func (v *NullableUpdateLogsInstancePayload) UnmarshalJSON(src []byte) error
func (*NullableUpdateLogsInstancePayload) Unset ¶
func (v *NullableUpdateLogsInstancePayload) Unset()
type UpdateAccessTokenPayload ¶
type UpdateAccessTokenPayload struct {
// The description of the access token.
Description *string `json:"description,omitempty"`
// The displayed name of the access token.
DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z][\\\\w -]*$"`
}
UpdateAccessTokenPayload struct for UpdateAccessTokenPayload
func NewUpdateAccessTokenPayload ¶
func NewUpdateAccessTokenPayload() *UpdateAccessTokenPayload
NewUpdateAccessTokenPayload instantiates a new UpdateAccessTokenPayload 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 NewUpdateAccessTokenPayloadWithDefaults ¶
func NewUpdateAccessTokenPayloadWithDefaults() *UpdateAccessTokenPayload
NewUpdateAccessTokenPayloadWithDefaults instantiates a new UpdateAccessTokenPayload 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 (*UpdateAccessTokenPayload) GetDescription ¶
func (o *UpdateAccessTokenPayload) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (*UpdateAccessTokenPayload) GetDescriptionOk ¶
func (o *UpdateAccessTokenPayload) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateAccessTokenPayload) GetDisplayName ¶
func (o *UpdateAccessTokenPayload) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (*UpdateAccessTokenPayload) GetDisplayNameOk ¶
func (o *UpdateAccessTokenPayload) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateAccessTokenPayload) HasDescription ¶
func (o *UpdateAccessTokenPayload) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (*UpdateAccessTokenPayload) HasDisplayName ¶
func (o *UpdateAccessTokenPayload) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (UpdateAccessTokenPayload) MarshalJSON ¶
func (o UpdateAccessTokenPayload) MarshalJSON() ([]byte, error)
func (*UpdateAccessTokenPayload) SetDescription ¶
func (o *UpdateAccessTokenPayload) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*UpdateAccessTokenPayload) SetDisplayName ¶
func (o *UpdateAccessTokenPayload) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (UpdateAccessTokenPayload) ToMap ¶
func (o UpdateAccessTokenPayload) ToMap() (map[string]interface{}, error)
type UpdateLogsInstancePayload ¶
type UpdateLogsInstancePayload struct {
// The access control list for the Logs instance.
Acl []string `json:"acl,omitempty"`
// The description of the Logs instance.
Description *string `json:"description,omitempty"`
// The displayed name to distinguish multiple Logs instances.
DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z][\\\\w -]*$"`
// The log retention time in days.
RetentionDays *int32 `json:"retentionDays,omitempty"`
}
UpdateLogsInstancePayload struct for UpdateLogsInstancePayload
func NewUpdateLogsInstancePayload ¶
func NewUpdateLogsInstancePayload() *UpdateLogsInstancePayload
NewUpdateLogsInstancePayload instantiates a new UpdateLogsInstancePayload 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 NewUpdateLogsInstancePayloadWithDefaults ¶
func NewUpdateLogsInstancePayloadWithDefaults() *UpdateLogsInstancePayload
NewUpdateLogsInstancePayloadWithDefaults instantiates a new UpdateLogsInstancePayload 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 (*UpdateLogsInstancePayload) GetAcl ¶
func (o *UpdateLogsInstancePayload) GetAcl() []string
GetAcl returns the Acl field value if set, zero value otherwise.
func (*UpdateLogsInstancePayload) GetAclOk ¶
func (o *UpdateLogsInstancePayload) GetAclOk() ([]string, bool)
GetAclOk returns a tuple with the Acl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateLogsInstancePayload) GetDescription ¶
func (o *UpdateLogsInstancePayload) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (*UpdateLogsInstancePayload) GetDescriptionOk ¶
func (o *UpdateLogsInstancePayload) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateLogsInstancePayload) GetDisplayName ¶
func (o *UpdateLogsInstancePayload) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (*UpdateLogsInstancePayload) GetDisplayNameOk ¶
func (o *UpdateLogsInstancePayload) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateLogsInstancePayload) GetRetentionDays ¶
func (o *UpdateLogsInstancePayload) GetRetentionDays() int32
GetRetentionDays returns the RetentionDays field value if set, zero value otherwise.
func (*UpdateLogsInstancePayload) GetRetentionDaysOk ¶
func (o *UpdateLogsInstancePayload) GetRetentionDaysOk() (*int32, bool)
GetRetentionDaysOk returns a tuple with the RetentionDays field value if set, nil otherwise and a boolean to check if the value has been set.
func (*UpdateLogsInstancePayload) HasAcl ¶
func (o *UpdateLogsInstancePayload) HasAcl() bool
HasAcl returns a boolean if a field has been set.
func (*UpdateLogsInstancePayload) HasDescription ¶
func (o *UpdateLogsInstancePayload) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (*UpdateLogsInstancePayload) HasDisplayName ¶
func (o *UpdateLogsInstancePayload) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (*UpdateLogsInstancePayload) HasRetentionDays ¶
func (o *UpdateLogsInstancePayload) HasRetentionDays() bool
HasRetentionDays returns a boolean if a field has been set.
func (UpdateLogsInstancePayload) MarshalJSON ¶
func (o UpdateLogsInstancePayload) MarshalJSON() ([]byte, error)
func (*UpdateLogsInstancePayload) SetAcl ¶
func (o *UpdateLogsInstancePayload) SetAcl(v []string)
SetAcl gets a reference to the given []string and assigns it to the Acl field.
func (*UpdateLogsInstancePayload) SetDescription ¶
func (o *UpdateLogsInstancePayload) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (*UpdateLogsInstancePayload) SetDisplayName ¶
func (o *UpdateLogsInstancePayload) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (*UpdateLogsInstancePayload) SetRetentionDays ¶
func (o *UpdateLogsInstancePayload) SetRetentionDays(v int32)
SetRetentionDays gets a reference to the given int32 and assigns it to the RetentionDays field.
func (UpdateLogsInstancePayload) ToMap ¶
func (o UpdateLogsInstancePayload) ToMap() (map[string]interface{}, error)
Source Files
¶
- api_default.go
- api_default_mock.go
- client.go
- configuration.go
- model_access_token.go
- model_access_token_list.go
- model_create_access_token_payload.go
- model_create_logs_instance_payload.go
- model_logs_instance.go
- model_logs_instances_list.go
- model_update_access_token_payload.go
- model_update_logs_instance_payload.go
- response.go
- utils.go