kvapi

package
v0.279.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 21 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go API client for kvapi

REST API OpenAPI documentation for the KV API

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.27.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Import the package in a go file in your project and run go mod tidy:

import kvapi "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value kvapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), kvapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value kvapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), kvapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using kvapi.ContextOperationServerIndices and kvapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), kvapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), kvapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
KVNamespacesAPI CreateNamespace Post /workspace/kv/namespaces Create namespace
KVNamespacesAPI ListNamespaces Get /workspace/kv/namespaces List namespaces
KVNamespacesAPI RetrieveNamespace Get /workspace/kv/namespaces/{namespace} Retrieve namespace

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), kvapi.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)
TokenAuth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: TokenAuth and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		kvapi.ContextAPIKeys,
		map[string]kvapi.APIKey{
			"TokenAuth": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
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

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time 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

type APIKey struct {
	Key    string
	Prefix string
}

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 (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 (ApiListNamespacesRequest) Fields

Comma-separated list of fields to include in the response

func (ApiListNamespacesRequest) Page

Page number for pagination

func (ApiListNamespacesRequest) PageSize

Number of items per page

type ApiRetrieveNamespaceRequest

type ApiRetrieveNamespaceRequest struct {
	ApiService *KVNamespacesAPIService
	// contains filtered or unexported fields
}

func (ApiRetrieveNamespaceRequest) Execute

func (ApiRetrieveNamespaceRequest) Fields

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

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

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

type BehaviorAttributesValue struct {
	Int64  *int64
	String *string
}

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) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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) SetCode

func (o *ErrorDetail) SetCode(v string)

SetCode sets field value

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

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

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

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 MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

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

func (o *Namespace) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Namespace) GetCreatedAtOk

func (o *Namespace) GetCreatedAtOk() (*time.Time, bool)

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

func (o *Namespace) GetLastModified() time.Time

GetLastModified returns the LastModified field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Namespace) GetLastModifiedOk

func (o *Namespace) GetLastModifiedOk() (*time.Time, bool)

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) GetName

func (o *Namespace) GetName() string

GetName returns the Name field value

func (*Namespace) GetNameOk

func (o *Namespace) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (Namespace) MarshalJSON

func (o Namespace) MarshalJSON() ([]byte, error)

func (*Namespace) SetCreatedAt

func (o *Namespace) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*Namespace) SetLastModified

func (o *Namespace) SetLastModified(v time.Time)

SetLastModified sets field value

func (*Namespace) SetName

func (o *Namespace) SetName(v string)

SetName sets field value

func (Namespace) ToMap

func (o Namespace) ToMap() (map[string]interface{}, error)

func (*Namespace) UnmarshalJSON

func (o *Namespace) UnmarshalJSON(data []byte) (err error)

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 (NullableBehaviorAttributes) IsSet

func (v NullableBehaviorAttributes) IsSet() bool

func (NullableBehaviorAttributes) MarshalJSON

func (v NullableBehaviorAttributes) MarshalJSON() ([]byte, error)

func (*NullableBehaviorAttributes) Set

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 (NullableBehaviorAttributesValue) Get

func (NullableBehaviorAttributesValue) IsSet

func (NullableBehaviorAttributesValue) MarshalJSON

func (v NullableBehaviorAttributesValue) MarshalJSON() ([]byte, error)

func (*NullableBehaviorAttributesValue) Set

func (*NullableBehaviorAttributesValue) UnmarshalJSON

func (v *NullableBehaviorAttributesValue) UnmarshalJSON(src []byte) error

func (*NullableBehaviorAttributesValue) Unset

type NullableBehaviorWithArgs

type NullableBehaviorWithArgs struct {
	// contains filtered or unexported fields
}

func NewNullableBehaviorWithArgs

func NewNullableBehaviorWithArgs(val *BehaviorWithArgs) *NullableBehaviorWithArgs

func (NullableBehaviorWithArgs) Get

func (NullableBehaviorWithArgs) IsSet

func (v NullableBehaviorWithArgs) IsSet() bool

func (NullableBehaviorWithArgs) MarshalJSON

func (v NullableBehaviorWithArgs) MarshalJSON() ([]byte, error)

func (*NullableBehaviorWithArgs) Set

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 (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 (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 (NullableNamespaceCreateRequest) Get

func (NullableNamespaceCreateRequest) IsSet

func (NullableNamespaceCreateRequest) MarshalJSON

func (v NullableNamespaceCreateRequest) MarshalJSON() ([]byte, error)

func (*NullableNamespaceCreateRequest) Set

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 (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) SetHasNext

func (o *Pagination) SetHasNext(v bool)

SetHasNext sets field value

func (*Pagination) SetHasPrevious

func (o *Pagination) SetHasPrevious(v bool)

SetHasPrevious sets field value

func (*Pagination) SetPage

func (o *Pagination) SetPage(v int64)

SetPage 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

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL