Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- 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 APIKey
- type APIResponse
- type ApiCreateNamespaceRequest
- type ApiListNamespacesRequest
- func (r ApiListNamespacesRequest) Execute() (*NamespaceList, *http.Response, error)
- func (r ApiListNamespacesRequest) Fields(fields string) ApiListNamespacesRequest
- func (r ApiListNamespacesRequest) Page(page int64) ApiListNamespacesRequest
- func (r ApiListNamespacesRequest) PageSize(pageSize int64) ApiListNamespacesRequest
- type ApiRetrieveNamespaceRequest
- type BasicAuth
- type BehaviorAttributes
- func (o *BehaviorAttributes) GetValue() BehaviorAttributesValue
- func (o *BehaviorAttributes) GetValueOk() (*BehaviorAttributesValue, bool)
- func (o *BehaviorAttributes) HasValue() bool
- func (o BehaviorAttributes) MarshalJSON() ([]byte, error)
- func (o *BehaviorAttributes) SetValue(v BehaviorAttributesValue)
- func (o BehaviorAttributes) ToMap() (map[string]interface{}, error)
- type BehaviorAttributesValue
- type BehaviorWithArgs
- func (o *BehaviorWithArgs) GetAttributes() BehaviorAttributes
- func (o *BehaviorWithArgs) GetAttributesOk() (*BehaviorAttributes, bool)
- func (o *BehaviorWithArgs) GetType() string
- func (o *BehaviorWithArgs) GetTypeOk() (*string, bool)
- func (o BehaviorWithArgs) MarshalJSON() ([]byte, error)
- func (o *BehaviorWithArgs) SetAttributes(v BehaviorAttributes)
- func (o *BehaviorWithArgs) SetType(v string)
- func (o BehaviorWithArgs) ToMap() (map[string]interface{}, error)
- func (o *BehaviorWithArgs) UnmarshalJSON(data []byte) (err error)
- type Configuration
- type ErrorDetail
- func (o *ErrorDetail) GetCode() string
- func (o *ErrorDetail) GetCodeOk() (*string, bool)
- func (o *ErrorDetail) GetDetails() map[string]interface{}
- func (o *ErrorDetail) GetDetailsOk() (map[string]interface{}, bool)
- func (o *ErrorDetail) GetMessage() string
- func (o *ErrorDetail) GetMessageOk() (*string, bool)
- func (o *ErrorDetail) HasDetails() bool
- func (o ErrorDetail) MarshalJSON() ([]byte, error)
- func (o *ErrorDetail) SetCode(v string)
- func (o *ErrorDetail) SetDetails(v map[string]interface{})
- func (o *ErrorDetail) SetMessage(v string)
- func (o ErrorDetail) ToMap() (map[string]interface{}, error)
- func (o *ErrorDetail) UnmarshalJSON(data []byte) (err error)
- type ErrorResponse
- func (o *ErrorResponse) GetError() ErrorDetail
- func (o *ErrorResponse) GetErrorOk() (*ErrorDetail, bool)
- func (o *ErrorResponse) GetState() string
- func (o *ErrorResponse) GetStateOk() (*string, bool)
- func (o ErrorResponse) MarshalJSON() ([]byte, error)
- func (o *ErrorResponse) SetError(v ErrorDetail)
- func (o *ErrorResponse) SetState(v string)
- func (o ErrorResponse) ToMap() (map[string]interface{}, error)
- func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)
- type GenericOpenAPIError
- type KVNamespacesAPIService
- func (a *KVNamespacesAPIService) CreateNamespace(ctx context.Context) ApiCreateNamespaceRequest
- func (a *KVNamespacesAPIService) CreateNamespaceExecute(r ApiCreateNamespaceRequest) (*Namespace, *http.Response, error)
- func (a *KVNamespacesAPIService) ListNamespaces(ctx context.Context) ApiListNamespacesRequest
- func (a *KVNamespacesAPIService) ListNamespacesExecute(r ApiListNamespacesRequest) (*NamespaceList, *http.Response, error)
- func (a *KVNamespacesAPIService) RetrieveNamespace(ctx context.Context, namespace string) ApiRetrieveNamespaceRequest
- func (a *KVNamespacesAPIService) RetrieveNamespaceExecute(r ApiRetrieveNamespaceRequest) (*Namespace, *http.Response, error)
- type MappedNullable
- type Namespace
- func (o *Namespace) GetCreatedAt() time.Time
- func (o *Namespace) GetCreatedAtOk() (*time.Time, bool)
- func (o *Namespace) GetLastModified() time.Time
- func (o *Namespace) GetLastModifiedOk() (*time.Time, bool)
- func (o *Namespace) GetName() string
- func (o *Namespace) GetNameOk() (*string, bool)
- func (o Namespace) MarshalJSON() ([]byte, error)
- func (o *Namespace) SetCreatedAt(v time.Time)
- func (o *Namespace) SetLastModified(v time.Time)
- func (o *Namespace) SetName(v string)
- func (o Namespace) ToMap() (map[string]interface{}, error)
- func (o *Namespace) UnmarshalJSON(data []byte) (err error)
- type NamespaceCreateRequest
- func (o *NamespaceCreateRequest) GetName() string
- func (o *NamespaceCreateRequest) GetNameOk() (*string, bool)
- func (o NamespaceCreateRequest) MarshalJSON() ([]byte, error)
- func (o *NamespaceCreateRequest) SetName(v string)
- func (o NamespaceCreateRequest) ToMap() (map[string]interface{}, error)
- func (o *NamespaceCreateRequest) UnmarshalJSON(data []byte) (err error)
- type NamespaceList
- func (o *NamespaceList) GetPagination() Pagination
- func (o *NamespaceList) GetPaginationOk() (*Pagination, bool)
- func (o *NamespaceList) GetResults() []Namespace
- func (o *NamespaceList) GetResultsOk() ([]Namespace, bool)
- func (o NamespaceList) MarshalJSON() ([]byte, error)
- func (o *NamespaceList) SetPagination(v Pagination)
- func (o *NamespaceList) SetResults(v []Namespace)
- func (o NamespaceList) ToMap() (map[string]interface{}, error)
- func (o *NamespaceList) UnmarshalJSON(data []byte) (err error)
- type NullableBehaviorAttributes
- func (v NullableBehaviorAttributes) Get() *BehaviorAttributes
- func (v NullableBehaviorAttributes) IsSet() bool
- func (v NullableBehaviorAttributes) MarshalJSON() ([]byte, error)
- func (v *NullableBehaviorAttributes) Set(val *BehaviorAttributes)
- func (v *NullableBehaviorAttributes) UnmarshalJSON(src []byte) error
- func (v *NullableBehaviorAttributes) Unset()
- type NullableBehaviorAttributesValue
- func (v NullableBehaviorAttributesValue) Get() *BehaviorAttributesValue
- func (v NullableBehaviorAttributesValue) IsSet() bool
- func (v NullableBehaviorAttributesValue) MarshalJSON() ([]byte, error)
- func (v *NullableBehaviorAttributesValue) Set(val *BehaviorAttributesValue)
- func (v *NullableBehaviorAttributesValue) UnmarshalJSON(src []byte) error
- func (v *NullableBehaviorAttributesValue) Unset()
- type NullableBehaviorWithArgs
- func (v NullableBehaviorWithArgs) Get() *BehaviorWithArgs
- func (v NullableBehaviorWithArgs) IsSet() bool
- func (v NullableBehaviorWithArgs) MarshalJSON() ([]byte, error)
- func (v *NullableBehaviorWithArgs) Set(val *BehaviorWithArgs)
- func (v *NullableBehaviorWithArgs) UnmarshalJSON(src []byte) error
- func (v *NullableBehaviorWithArgs) Unset()
- type NullableBool
- type NullableErrorDetail
- func (v NullableErrorDetail) Get() *ErrorDetail
- func (v NullableErrorDetail) IsSet() bool
- func (v NullableErrorDetail) MarshalJSON() ([]byte, error)
- func (v *NullableErrorDetail) Set(val *ErrorDetail)
- func (v *NullableErrorDetail) UnmarshalJSON(src []byte) error
- func (v *NullableErrorDetail) Unset()
- type NullableErrorResponse
- func (v NullableErrorResponse) Get() *ErrorResponse
- func (v NullableErrorResponse) IsSet() bool
- func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
- func (v *NullableErrorResponse) Set(val *ErrorResponse)
- func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
- func (v *NullableErrorResponse) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableNamespace
- type NullableNamespaceCreateRequest
- func (v NullableNamespaceCreateRequest) Get() *NamespaceCreateRequest
- func (v NullableNamespaceCreateRequest) IsSet() bool
- func (v NullableNamespaceCreateRequest) MarshalJSON() ([]byte, error)
- func (v *NullableNamespaceCreateRequest) Set(val *NamespaceCreateRequest)
- func (v *NullableNamespaceCreateRequest) UnmarshalJSON(src []byte) error
- func (v *NullableNamespaceCreateRequest) Unset()
- type NullableNamespaceList
- func (v NullableNamespaceList) Get() *NamespaceList
- func (v NullableNamespaceList) IsSet() bool
- func (v NullableNamespaceList) MarshalJSON() ([]byte, error)
- func (v *NullableNamespaceList) Set(val *NamespaceList)
- func (v *NullableNamespaceList) UnmarshalJSON(src []byte) error
- func (v *NullableNamespaceList) Unset()
- type NullablePagination
- type NullableString
- type NullableTime
- type Pagination
- func (o *Pagination) GetHasNext() bool
- func (o *Pagination) GetHasNextOk() (*bool, bool)
- func (o *Pagination) GetHasPrevious() bool
- func (o *Pagination) GetHasPreviousOk() (*bool, bool)
- func (o *Pagination) GetPage() int64
- func (o *Pagination) GetPageOk() (*int64, bool)
- func (o *Pagination) GetPageSize() int64
- func (o *Pagination) GetPageSizeOk() (*int64, bool)
- func (o *Pagination) GetTotalCount() int64
- func (o *Pagination) GetTotalCountOk() (*int64, bool)
- func (o *Pagination) GetTotalPages() int64
- func (o *Pagination) GetTotalPagesOk() (*int64, bool)
- func (o Pagination) MarshalJSON() ([]byte, error)
- func (o *Pagination) SetHasNext(v bool)
- func (o *Pagination) SetHasPrevious(v bool)
- func (o *Pagination) SetPage(v int64)
- func (o *Pagination) SetPageSize(v int64)
- func (o *Pagination) SetTotalCount(v int64)
- func (o *Pagination) SetTotalPages(v int64)
- func (o Pagination) ToMap() (map[string]interface{}, error)
- func (o *Pagination) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKeys takes a string apikey as authentication for the request ContextAPIKeys = contextKey("apiKeys") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
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 {
KVNamespacesAPI *KVNamespacesAPIService
// contains filtered or unexported fields
}
APIClient manages communication with the kv-api API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *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 APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
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 ApiCreateNamespaceRequest ¶
type ApiCreateNamespaceRequest struct {
ApiService *KVNamespacesAPIService
// contains filtered or unexported fields
}
func (ApiCreateNamespaceRequest) Execute ¶
func (r ApiCreateNamespaceRequest) Execute() (*Namespace, *http.Response, error)
func (ApiCreateNamespaceRequest) NamespaceCreateRequest ¶
func (r ApiCreateNamespaceRequest) NamespaceCreateRequest(namespaceCreateRequest NamespaceCreateRequest) ApiCreateNamespaceRequest
type ApiListNamespacesRequest ¶
type ApiListNamespacesRequest struct {
ApiService *KVNamespacesAPIService
// contains filtered or unexported fields
}
func (ApiListNamespacesRequest) Execute ¶
func (r ApiListNamespacesRequest) Execute() (*NamespaceList, *http.Response, error)
func (ApiListNamespacesRequest) Fields ¶
func (r ApiListNamespacesRequest) Fields(fields string) ApiListNamespacesRequest
Comma-separated list of fields to include in the response
func (ApiListNamespacesRequest) Page ¶
func (r ApiListNamespacesRequest) Page(page int64) ApiListNamespacesRequest
Page number for pagination
func (ApiListNamespacesRequest) PageSize ¶
func (r ApiListNamespacesRequest) PageSize(pageSize int64) ApiListNamespacesRequest
Number of items per page
type ApiRetrieveNamespaceRequest ¶
type ApiRetrieveNamespaceRequest struct {
ApiService *KVNamespacesAPIService
// contains filtered or unexported fields
}
func (ApiRetrieveNamespaceRequest) Execute ¶
func (r ApiRetrieveNamespaceRequest) Execute() (*Namespace, *http.Response, error)
func (ApiRetrieveNamespaceRequest) Fields ¶
func (r ApiRetrieveNamespaceRequest) Fields(fields string) ApiRetrieveNamespaceRequest
Comma-separated list of fields to include in the response
type BasicAuth ¶
type BasicAuth struct {
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
}
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BehaviorAttributes ¶
type BehaviorAttributes struct {
Value *BehaviorAttributesValue `json:"value,omitempty"`
}
BehaviorAttributes struct for BehaviorAttributes
func NewBehaviorAttributes ¶
func NewBehaviorAttributes() *BehaviorAttributes
NewBehaviorAttributes instantiates a new BehaviorAttributes 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 NewBehaviorAttributesWithDefaults ¶
func NewBehaviorAttributesWithDefaults() *BehaviorAttributes
NewBehaviorAttributesWithDefaults instantiates a new BehaviorAttributes 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 (*BehaviorAttributes) GetValue ¶
func (o *BehaviorAttributes) GetValue() BehaviorAttributesValue
GetValue returns the Value field value if set, zero value otherwise.
func (*BehaviorAttributes) GetValueOk ¶
func (o *BehaviorAttributes) GetValueOk() (*BehaviorAttributesValue, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (*BehaviorAttributes) HasValue ¶
func (o *BehaviorAttributes) HasValue() bool
HasValue returns a boolean if a field has been set.
func (BehaviorAttributes) MarshalJSON ¶
func (o BehaviorAttributes) MarshalJSON() ([]byte, error)
func (*BehaviorAttributes) SetValue ¶
func (o *BehaviorAttributes) SetValue(v BehaviorAttributesValue)
SetValue gets a reference to the given BehaviorAttributesValue and assigns it to the Value field.
func (BehaviorAttributes) ToMap ¶
func (o BehaviorAttributes) ToMap() (map[string]interface{}, error)
type BehaviorAttributesValue ¶
BehaviorAttributesValue - struct for BehaviorAttributesValue
func Int64AsBehaviorAttributesValue ¶
func Int64AsBehaviorAttributesValue(v *int64) BehaviorAttributesValue
int64AsBehaviorAttributesValue is a convenience function that returns int64 wrapped in BehaviorAttributesValue
func StringAsBehaviorAttributesValue ¶
func StringAsBehaviorAttributesValue(v *string) BehaviorAttributesValue
stringAsBehaviorAttributesValue is a convenience function that returns string wrapped in BehaviorAttributesValue
func (*BehaviorAttributesValue) GetActualInstance ¶
func (obj *BehaviorAttributesValue) GetActualInstance() interface{}
Get the actual instance
func (BehaviorAttributesValue) GetActualInstanceValue ¶
func (obj BehaviorAttributesValue) GetActualInstanceValue() interface{}
Get the actual instance value
func (BehaviorAttributesValue) MarshalJSON ¶
func (src BehaviorAttributesValue) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*BehaviorAttributesValue) UnmarshalJSON ¶
func (dst *BehaviorAttributesValue) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type BehaviorWithArgs ¶
type BehaviorWithArgs struct {
Type string `json:"type"`
Attributes BehaviorAttributes `json:"attributes"`
}
BehaviorWithArgs struct for BehaviorWithArgs
func NewBehaviorWithArgs ¶
func NewBehaviorWithArgs(type_ string, attributes BehaviorAttributes) *BehaviorWithArgs
NewBehaviorWithArgs instantiates a new BehaviorWithArgs 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 NewBehaviorWithArgsWithDefaults ¶
func NewBehaviorWithArgsWithDefaults() *BehaviorWithArgs
NewBehaviorWithArgsWithDefaults instantiates a new BehaviorWithArgs 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 (*BehaviorWithArgs) GetAttributes ¶
func (o *BehaviorWithArgs) GetAttributes() BehaviorAttributes
GetAttributes returns the Attributes field value
func (*BehaviorWithArgs) GetAttributesOk ¶
func (o *BehaviorWithArgs) GetAttributesOk() (*BehaviorAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (*BehaviorWithArgs) GetType ¶
func (o *BehaviorWithArgs) GetType() string
GetType returns the Type field value
func (*BehaviorWithArgs) GetTypeOk ¶
func (o *BehaviorWithArgs) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (BehaviorWithArgs) MarshalJSON ¶
func (o BehaviorWithArgs) MarshalJSON() ([]byte, error)
func (*BehaviorWithArgs) SetAttributes ¶
func (o *BehaviorWithArgs) SetAttributes(v BehaviorAttributes)
SetAttributes sets field value
func (*BehaviorWithArgs) SetType ¶
func (o *BehaviorWithArgs) SetType(v string)
SetType sets field value
func (BehaviorWithArgs) ToMap ¶
func (o BehaviorWithArgs) ToMap() (map[string]interface{}, error)
func (*BehaviorWithArgs) UnmarshalJSON ¶
func (o *BehaviorWithArgs) UnmarshalJSON(data []byte) (err error)
type Configuration ¶
type Configuration struct {
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Debug bool `json:"debug,omitempty"`
Servers ServerConfigurations
OperationServers map[string]ServerConfigurations
HTTPClient *http.Client
}
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type ErrorDetail ¶
type ErrorDetail struct {
Code string `json:"code"`
Message string `json:"message"`
Details map[string]interface{} `json:"details,omitempty"`
}
ErrorDetail struct for ErrorDetail
func NewErrorDetail ¶
func NewErrorDetail(code string, message string) *ErrorDetail
NewErrorDetail instantiates a new ErrorDetail 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 NewErrorDetailWithDefaults ¶
func NewErrorDetailWithDefaults() *ErrorDetail
NewErrorDetailWithDefaults instantiates a new ErrorDetail 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 (*ErrorDetail) GetCode ¶
func (o *ErrorDetail) GetCode() string
GetCode returns the Code field value
func (*ErrorDetail) GetCodeOk ¶
func (o *ErrorDetail) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*ErrorDetail) GetDetails ¶
func (o *ErrorDetail) GetDetails() map[string]interface{}
GetDetails returns the Details field value if set, zero value otherwise.
func (*ErrorDetail) GetDetailsOk ¶
func (o *ErrorDetail) GetDetailsOk() (map[string]interface{}, bool)
GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ErrorDetail) GetMessage ¶
func (o *ErrorDetail) GetMessage() string
GetMessage returns the Message field value
func (*ErrorDetail) GetMessageOk ¶
func (o *ErrorDetail) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*ErrorDetail) HasDetails ¶
func (o *ErrorDetail) HasDetails() bool
HasDetails returns a boolean if a field has been set.
func (ErrorDetail) MarshalJSON ¶
func (o ErrorDetail) MarshalJSON() ([]byte, error)
func (*ErrorDetail) SetDetails ¶
func (o *ErrorDetail) SetDetails(v map[string]interface{})
SetDetails gets a reference to the given map[string]interface{} and assigns it to the Details field.
func (*ErrorDetail) SetMessage ¶
func (o *ErrorDetail) SetMessage(v string)
SetMessage sets field value
func (ErrorDetail) ToMap ¶
func (o ErrorDetail) ToMap() (map[string]interface{}, error)
func (*ErrorDetail) UnmarshalJSON ¶
func (o *ErrorDetail) UnmarshalJSON(data []byte) (err error)
type ErrorResponse ¶
type ErrorResponse struct {
// * `error` - error
State string `json:"state"`
Error ErrorDetail `json:"error"`
}
ErrorResponse struct for ErrorResponse
func NewErrorResponse ¶
func NewErrorResponse(state string, error_ ErrorDetail) *ErrorResponse
NewErrorResponse instantiates a new ErrorResponse 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 NewErrorResponseWithDefaults ¶
func NewErrorResponseWithDefaults() *ErrorResponse
NewErrorResponseWithDefaults instantiates a new ErrorResponse 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 (*ErrorResponse) GetError ¶
func (o *ErrorResponse) GetError() ErrorDetail
GetError returns the Error field value
func (*ErrorResponse) GetErrorOk ¶
func (o *ErrorResponse) GetErrorOk() (*ErrorDetail, bool)
GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.
func (*ErrorResponse) GetState ¶
func (o *ErrorResponse) GetState() string
GetState returns the State field value
func (*ErrorResponse) GetStateOk ¶
func (o *ErrorResponse) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (ErrorResponse) MarshalJSON ¶
func (o ErrorResponse) MarshalJSON() ([]byte, error)
func (*ErrorResponse) SetError ¶
func (o *ErrorResponse) SetError(v ErrorDetail)
SetError sets field value
func (*ErrorResponse) SetState ¶
func (o *ErrorResponse) SetState(v string)
SetState sets field value
func (ErrorResponse) ToMap ¶
func (o ErrorResponse) ToMap() (map[string]interface{}, error)
func (*ErrorResponse) UnmarshalJSON ¶
func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type KVNamespacesAPIService ¶
type KVNamespacesAPIService service
KVNamespacesAPIService KVNamespacesAPI service
func (*KVNamespacesAPIService) CreateNamespace ¶
func (a *KVNamespacesAPIService) CreateNamespace(ctx context.Context) ApiCreateNamespaceRequest
CreateNamespace Create namespace
Creates a new namespace in the authenticated account.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateNamespaceRequest
func (*KVNamespacesAPIService) CreateNamespaceExecute ¶
func (a *KVNamespacesAPIService) CreateNamespaceExecute(r ApiCreateNamespaceRequest) (*Namespace, *http.Response, error)
Execute executes the request
@return Namespace
func (*KVNamespacesAPIService) ListNamespaces ¶
func (a *KVNamespacesAPIService) ListNamespaces(ctx context.Context) ApiListNamespacesRequest
ListNamespaces List namespaces
Returns a paginated list of namespaces for the authenticated account.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListNamespacesRequest
func (*KVNamespacesAPIService) ListNamespacesExecute ¶
func (a *KVNamespacesAPIService) ListNamespacesExecute(r ApiListNamespacesRequest) (*NamespaceList, *http.Response, error)
Execute executes the request
@return NamespaceList
func (*KVNamespacesAPIService) RetrieveNamespace ¶
func (a *KVNamespacesAPIService) RetrieveNamespace(ctx context.Context, namespace string) ApiRetrieveNamespaceRequest
RetrieveNamespace Retrieve namespace
Returns a specific namespace by name, if it belongs to the authenticated account.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param namespace The unique identifier (name) of the namespace @return ApiRetrieveNamespaceRequest
func (*KVNamespacesAPIService) RetrieveNamespaceExecute ¶
func (a *KVNamespacesAPIService) RetrieveNamespaceExecute(r ApiRetrieveNamespaceRequest) (*Namespace, *http.Response, error)
Execute executes the request
@return Namespace
type MappedNullable ¶
type Namespace ¶
type Namespace struct {
Name string `json:"name"`
CreatedAt NullableTime `json:"created_at"`
LastModified NullableTime `json:"last_modified"`
}
Namespace struct for Namespace
func NewNamespace ¶
func NewNamespace(name string, createdAt NullableTime, lastModified NullableTime) *Namespace
NewNamespace instantiates a new Namespace 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 NewNamespaceWithDefaults ¶
func NewNamespaceWithDefaults() *Namespace
NewNamespaceWithDefaults instantiates a new Namespace 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 (*Namespace) GetCreatedAt ¶
GetCreatedAt returns the CreatedAt field value If the value is explicit nil, the zero value for time.Time will be returned
func (*Namespace) GetCreatedAtOk ¶
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Namespace) GetLastModified ¶
GetLastModified returns the LastModified field value If the value is explicit nil, the zero value for time.Time will be returned
func (*Namespace) GetLastModifiedOk ¶
GetLastModifiedOk returns a tuple with the LastModified field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Namespace) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (Namespace) MarshalJSON ¶
func (*Namespace) SetCreatedAt ¶
SetCreatedAt sets field value
func (*Namespace) SetLastModified ¶
SetLastModified sets field value
func (*Namespace) UnmarshalJSON ¶
type NamespaceCreateRequest ¶
type NamespaceCreateRequest struct {
Name string `json:"name"`
}
NamespaceCreateRequest struct for NamespaceCreateRequest
func NewNamespaceCreateRequest ¶
func NewNamespaceCreateRequest(name string) *NamespaceCreateRequest
NewNamespaceCreateRequest instantiates a new NamespaceCreateRequest 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 NewNamespaceCreateRequestWithDefaults ¶
func NewNamespaceCreateRequestWithDefaults() *NamespaceCreateRequest
NewNamespaceCreateRequestWithDefaults instantiates a new NamespaceCreateRequest 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 (*NamespaceCreateRequest) GetName ¶
func (o *NamespaceCreateRequest) GetName() string
GetName returns the Name field value
func (*NamespaceCreateRequest) GetNameOk ¶
func (o *NamespaceCreateRequest) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (NamespaceCreateRequest) MarshalJSON ¶
func (o NamespaceCreateRequest) MarshalJSON() ([]byte, error)
func (*NamespaceCreateRequest) SetName ¶
func (o *NamespaceCreateRequest) SetName(v string)
SetName sets field value
func (NamespaceCreateRequest) ToMap ¶
func (o NamespaceCreateRequest) ToMap() (map[string]interface{}, error)
func (*NamespaceCreateRequest) UnmarshalJSON ¶
func (o *NamespaceCreateRequest) UnmarshalJSON(data []byte) (err error)
type NamespaceList ¶
type NamespaceList struct {
Results []Namespace `json:"results"`
Pagination Pagination `json:"pagination"`
}
NamespaceList struct for NamespaceList
func NewNamespaceList ¶
func NewNamespaceList(results []Namespace, pagination Pagination) *NamespaceList
NewNamespaceList instantiates a new NamespaceList 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 NewNamespaceListWithDefaults ¶
func NewNamespaceListWithDefaults() *NamespaceList
NewNamespaceListWithDefaults instantiates a new NamespaceList 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 (*NamespaceList) GetPagination ¶
func (o *NamespaceList) GetPagination() Pagination
GetPagination returns the Pagination field value
func (*NamespaceList) GetPaginationOk ¶
func (o *NamespaceList) GetPaginationOk() (*Pagination, bool)
GetPaginationOk returns a tuple with the Pagination field value and a boolean to check if the value has been set.
func (*NamespaceList) GetResults ¶
func (o *NamespaceList) GetResults() []Namespace
GetResults returns the Results field value
func (*NamespaceList) GetResultsOk ¶
func (o *NamespaceList) GetResultsOk() ([]Namespace, bool)
GetResultsOk returns a tuple with the Results field value and a boolean to check if the value has been set.
func (NamespaceList) MarshalJSON ¶
func (o NamespaceList) MarshalJSON() ([]byte, error)
func (*NamespaceList) SetPagination ¶
func (o *NamespaceList) SetPagination(v Pagination)
SetPagination sets field value
func (*NamespaceList) SetResults ¶
func (o *NamespaceList) SetResults(v []Namespace)
SetResults sets field value
func (NamespaceList) ToMap ¶
func (o NamespaceList) ToMap() (map[string]interface{}, error)
func (*NamespaceList) UnmarshalJSON ¶
func (o *NamespaceList) UnmarshalJSON(data []byte) (err error)
type NullableBehaviorAttributes ¶
type NullableBehaviorAttributes struct {
// contains filtered or unexported fields
}
func NewNullableBehaviorAttributes ¶
func NewNullableBehaviorAttributes(val *BehaviorAttributes) *NullableBehaviorAttributes
func (NullableBehaviorAttributes) Get ¶
func (v NullableBehaviorAttributes) Get() *BehaviorAttributes
func (NullableBehaviorAttributes) IsSet ¶
func (v NullableBehaviorAttributes) IsSet() bool
func (NullableBehaviorAttributes) MarshalJSON ¶
func (v NullableBehaviorAttributes) MarshalJSON() ([]byte, error)
func (*NullableBehaviorAttributes) Set ¶
func (v *NullableBehaviorAttributes) Set(val *BehaviorAttributes)
func (*NullableBehaviorAttributes) UnmarshalJSON ¶
func (v *NullableBehaviorAttributes) UnmarshalJSON(src []byte) error
func (*NullableBehaviorAttributes) Unset ¶
func (v *NullableBehaviorAttributes) Unset()
type NullableBehaviorAttributesValue ¶
type NullableBehaviorAttributesValue struct {
// contains filtered or unexported fields
}
func NewNullableBehaviorAttributesValue ¶
func NewNullableBehaviorAttributesValue(val *BehaviorAttributesValue) *NullableBehaviorAttributesValue
func (NullableBehaviorAttributesValue) Get ¶
func (v NullableBehaviorAttributesValue) Get() *BehaviorAttributesValue
func (NullableBehaviorAttributesValue) IsSet ¶
func (v NullableBehaviorAttributesValue) IsSet() bool
func (NullableBehaviorAttributesValue) MarshalJSON ¶
func (v NullableBehaviorAttributesValue) MarshalJSON() ([]byte, error)
func (*NullableBehaviorAttributesValue) Set ¶
func (v *NullableBehaviorAttributesValue) Set(val *BehaviorAttributesValue)
func (*NullableBehaviorAttributesValue) UnmarshalJSON ¶
func (v *NullableBehaviorAttributesValue) UnmarshalJSON(src []byte) error
func (*NullableBehaviorAttributesValue) Unset ¶
func (v *NullableBehaviorAttributesValue) Unset()
type NullableBehaviorWithArgs ¶
type NullableBehaviorWithArgs struct {
// contains filtered or unexported fields
}
func NewNullableBehaviorWithArgs ¶
func NewNullableBehaviorWithArgs(val *BehaviorWithArgs) *NullableBehaviorWithArgs
func (NullableBehaviorWithArgs) Get ¶
func (v NullableBehaviorWithArgs) Get() *BehaviorWithArgs
func (NullableBehaviorWithArgs) IsSet ¶
func (v NullableBehaviorWithArgs) IsSet() bool
func (NullableBehaviorWithArgs) MarshalJSON ¶
func (v NullableBehaviorWithArgs) MarshalJSON() ([]byte, error)
func (*NullableBehaviorWithArgs) Set ¶
func (v *NullableBehaviorWithArgs) Set(val *BehaviorWithArgs)
func (*NullableBehaviorWithArgs) UnmarshalJSON ¶
func (v *NullableBehaviorWithArgs) UnmarshalJSON(src []byte) error
func (*NullableBehaviorWithArgs) Unset ¶
func (v *NullableBehaviorWithArgs) 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 NullableErrorDetail ¶
type NullableErrorDetail struct {
// contains filtered or unexported fields
}
func NewNullableErrorDetail ¶
func NewNullableErrorDetail(val *ErrorDetail) *NullableErrorDetail
func (NullableErrorDetail) Get ¶
func (v NullableErrorDetail) Get() *ErrorDetail
func (NullableErrorDetail) IsSet ¶
func (v NullableErrorDetail) IsSet() bool
func (NullableErrorDetail) MarshalJSON ¶
func (v NullableErrorDetail) MarshalJSON() ([]byte, error)
func (*NullableErrorDetail) Set ¶
func (v *NullableErrorDetail) Set(val *ErrorDetail)
func (*NullableErrorDetail) UnmarshalJSON ¶
func (v *NullableErrorDetail) UnmarshalJSON(src []byte) error
func (*NullableErrorDetail) Unset ¶
func (v *NullableErrorDetail) Unset()
type NullableErrorResponse ¶
type NullableErrorResponse struct {
// contains filtered or unexported fields
}
func NewNullableErrorResponse ¶
func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse
func (NullableErrorResponse) Get ¶
func (v NullableErrorResponse) Get() *ErrorResponse
func (NullableErrorResponse) IsSet ¶
func (v NullableErrorResponse) IsSet() bool
func (NullableErrorResponse) MarshalJSON ¶
func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
func (*NullableErrorResponse) Set ¶
func (v *NullableErrorResponse) Set(val *ErrorResponse)
func (*NullableErrorResponse) UnmarshalJSON ¶
func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
func (*NullableErrorResponse) Unset ¶
func (v *NullableErrorResponse) 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 NullableNamespace ¶
type NullableNamespace struct {
// contains filtered or unexported fields
}
func NewNullableNamespace ¶
func NewNullableNamespace(val *Namespace) *NullableNamespace
func (NullableNamespace) Get ¶
func (v NullableNamespace) Get() *Namespace
func (NullableNamespace) IsSet ¶
func (v NullableNamespace) IsSet() bool
func (NullableNamespace) MarshalJSON ¶
func (v NullableNamespace) MarshalJSON() ([]byte, error)
func (*NullableNamespace) Set ¶
func (v *NullableNamespace) Set(val *Namespace)
func (*NullableNamespace) UnmarshalJSON ¶
func (v *NullableNamespace) UnmarshalJSON(src []byte) error
func (*NullableNamespace) Unset ¶
func (v *NullableNamespace) Unset()
type NullableNamespaceCreateRequest ¶
type NullableNamespaceCreateRequest struct {
// contains filtered or unexported fields
}
func NewNullableNamespaceCreateRequest ¶
func NewNullableNamespaceCreateRequest(val *NamespaceCreateRequest) *NullableNamespaceCreateRequest
func (NullableNamespaceCreateRequest) Get ¶
func (v NullableNamespaceCreateRequest) Get() *NamespaceCreateRequest
func (NullableNamespaceCreateRequest) IsSet ¶
func (v NullableNamespaceCreateRequest) IsSet() bool
func (NullableNamespaceCreateRequest) MarshalJSON ¶
func (v NullableNamespaceCreateRequest) MarshalJSON() ([]byte, error)
func (*NullableNamespaceCreateRequest) Set ¶
func (v *NullableNamespaceCreateRequest) Set(val *NamespaceCreateRequest)
func (*NullableNamespaceCreateRequest) UnmarshalJSON ¶
func (v *NullableNamespaceCreateRequest) UnmarshalJSON(src []byte) error
func (*NullableNamespaceCreateRequest) Unset ¶
func (v *NullableNamespaceCreateRequest) Unset()
type NullableNamespaceList ¶
type NullableNamespaceList struct {
// contains filtered or unexported fields
}
func NewNullableNamespaceList ¶
func NewNullableNamespaceList(val *NamespaceList) *NullableNamespaceList
func (NullableNamespaceList) Get ¶
func (v NullableNamespaceList) Get() *NamespaceList
func (NullableNamespaceList) IsSet ¶
func (v NullableNamespaceList) IsSet() bool
func (NullableNamespaceList) MarshalJSON ¶
func (v NullableNamespaceList) MarshalJSON() ([]byte, error)
func (*NullableNamespaceList) Set ¶
func (v *NullableNamespaceList) Set(val *NamespaceList)
func (*NullableNamespaceList) UnmarshalJSON ¶
func (v *NullableNamespaceList) UnmarshalJSON(src []byte) error
func (*NullableNamespaceList) Unset ¶
func (v *NullableNamespaceList) Unset()
type NullablePagination ¶
type NullablePagination struct {
// contains filtered or unexported fields
}
func NewNullablePagination ¶
func NewNullablePagination(val *Pagination) *NullablePagination
func (NullablePagination) Get ¶
func (v NullablePagination) Get() *Pagination
func (NullablePagination) IsSet ¶
func (v NullablePagination) IsSet() bool
func (NullablePagination) MarshalJSON ¶
func (v NullablePagination) MarshalJSON() ([]byte, error)
func (*NullablePagination) Set ¶
func (v *NullablePagination) Set(val *Pagination)
func (*NullablePagination) UnmarshalJSON ¶
func (v *NullablePagination) UnmarshalJSON(src []byte) error
func (*NullablePagination) Unset ¶
func (v *NullablePagination) 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 Pagination ¶
type Pagination struct {
Page int64 `json:"page"`
PageSize int64 `json:"page_size"`
TotalCount int64 `json:"total_count"`
TotalPages int64 `json:"total_pages"`
HasNext bool `json:"has_next"`
HasPrevious bool `json:"has_previous"`
}
Pagination struct for Pagination
func NewPagination ¶
func NewPagination(page int64, pageSize int64, totalCount int64, totalPages int64, hasNext bool, hasPrevious bool) *Pagination
NewPagination instantiates a new Pagination 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 NewPaginationWithDefaults ¶
func NewPaginationWithDefaults() *Pagination
NewPaginationWithDefaults instantiates a new Pagination 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 (*Pagination) GetHasNext ¶
func (o *Pagination) GetHasNext() bool
GetHasNext returns the HasNext field value
func (*Pagination) GetHasNextOk ¶
func (o *Pagination) GetHasNextOk() (*bool, bool)
GetHasNextOk returns a tuple with the HasNext field value and a boolean to check if the value has been set.
func (*Pagination) GetHasPrevious ¶
func (o *Pagination) GetHasPrevious() bool
GetHasPrevious returns the HasPrevious field value
func (*Pagination) GetHasPreviousOk ¶
func (o *Pagination) GetHasPreviousOk() (*bool, bool)
GetHasPreviousOk returns a tuple with the HasPrevious field value and a boolean to check if the value has been set.
func (*Pagination) GetPage ¶
func (o *Pagination) GetPage() int64
GetPage returns the Page field value
func (*Pagination) GetPageOk ¶
func (o *Pagination) GetPageOk() (*int64, bool)
GetPageOk returns a tuple with the Page field value and a boolean to check if the value has been set.
func (*Pagination) GetPageSize ¶
func (o *Pagination) GetPageSize() int64
GetPageSize returns the PageSize field value
func (*Pagination) GetPageSizeOk ¶
func (o *Pagination) GetPageSizeOk() (*int64, bool)
GetPageSizeOk returns a tuple with the PageSize field value and a boolean to check if the value has been set.
func (*Pagination) GetTotalCount ¶
func (o *Pagination) GetTotalCount() int64
GetTotalCount returns the TotalCount field value
func (*Pagination) GetTotalCountOk ¶
func (o *Pagination) GetTotalCountOk() (*int64, bool)
GetTotalCountOk returns a tuple with the TotalCount field value and a boolean to check if the value has been set.
func (*Pagination) GetTotalPages ¶
func (o *Pagination) GetTotalPages() int64
GetTotalPages returns the TotalPages field value
func (*Pagination) GetTotalPagesOk ¶
func (o *Pagination) GetTotalPagesOk() (*int64, bool)
GetTotalPagesOk returns a tuple with the TotalPages field value and a boolean to check if the value has been set.
func (Pagination) MarshalJSON ¶
func (o Pagination) MarshalJSON() ([]byte, error)
func (*Pagination) SetHasPrevious ¶
func (o *Pagination) SetHasPrevious(v bool)
SetHasPrevious sets field value
func (*Pagination) SetPageSize ¶
func (o *Pagination) SetPageSize(v int64)
SetPageSize sets field value
func (*Pagination) SetTotalCount ¶
func (o *Pagination) SetTotalCount(v int64)
SetTotalCount sets field value
func (*Pagination) SetTotalPages ¶
func (o *Pagination) SetTotalPages(v int64)
SetTotalPages sets field value
func (Pagination) ToMap ¶
func (o Pagination) ToMap() (map[string]interface{}, error)
func (*Pagination) UnmarshalJSON ¶
func (o *Pagination) UnmarshalJSON(data []byte) (err error)
type ServerConfiguration ¶
type ServerConfiguration struct {
URL string
Description string
Variables map[string]ServerVariable
}
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable