client

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

View Source
const (
	// DefaultServerURL is the default URL of the server.
	DefaultServerURL = "https://api.contentful.com"

	// DefaultUserAgent is the default user agent.
	DefaultUserAgent = "contentful-management-go/0.1"
)
View Source
const (
	ErrorSysIDNotFound = "NotFound"
)

Variables

This section is empty.

Functions

func NewClientWithUserAgent added in v0.0.5

func NewClientWithUserAgent(client ht.Client, userAgent string) *clientWithUserAgent

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AccessToken

type AccessToken struct {
	Token string
}

func (*AccessToken) GetToken

func (s *AccessToken) GetToken() string

GetToken returns the value of Token.

func (*AccessToken) SetToken

func (s *AccessToken) SetToken(val string)

SetToken sets the value of Token.

type AccessTokenSecuritySource

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

func NewAccessTokenSecuritySource

func NewAccessTokenSecuritySource(accessToken string) AccessTokenSecuritySource

func (AccessTokenSecuritySource) AccessToken

type ActivateContentTypeParams added in v0.0.5

type ActivateContentTypeParams struct {
	SpaceID            string
	EnvironmentID      string
	ContentTypeID      string
	XContentfulVersion int
}

ActivateContentTypeParams is parameters of activateContentType operation.

type ActivateContentTypeRes added in v0.0.5

type ActivateContentTypeRes interface {
	// contains filtered or unexported methods
}

type ApiKey added in v0.0.10

type ApiKey struct {
	Sys           ApiKeySys              `json:"sys"`
	Name          string                 `json:"name"`
	Description   OptNilString           `json:"description"`
	Environments  []EnvironmentLink      `json:"environments"`
	AccessToken   string                 `json:"accessToken"`
	PreviewAPIKey OptApiKeyPreviewAPIKey `json:"preview_api_key"`
}

Merged schema. Ref: #/components/schemas/ApiKey

func (*ApiKey) Decode added in v0.0.10

func (s *ApiKey) Decode(d *jx.Decoder) error

Decode decodes ApiKey from json.

func (*ApiKey) Encode added in v0.0.10

func (s *ApiKey) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ApiKey) GetAccessToken added in v0.0.10

func (s *ApiKey) GetAccessToken() string

GetAccessToken returns the value of AccessToken.

func (*ApiKey) GetDescription added in v0.0.10

func (s *ApiKey) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*ApiKey) GetEnvironments added in v0.0.10

func (s *ApiKey) GetEnvironments() []EnvironmentLink

GetEnvironments returns the value of Environments.

func (*ApiKey) GetName added in v0.0.10

func (s *ApiKey) GetName() string

GetName returns the value of Name.

func (*ApiKey) GetPreviewAPIKey added in v0.0.10

func (s *ApiKey) GetPreviewAPIKey() OptApiKeyPreviewAPIKey

GetPreviewAPIKey returns the value of PreviewAPIKey.

func (*ApiKey) GetSys added in v0.0.10

func (s *ApiKey) GetSys() ApiKeySys

GetSys returns the value of Sys.

func (*ApiKey) MarshalJSON added in v0.0.10

func (s *ApiKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ApiKey) SetAccessToken added in v0.0.10

func (s *ApiKey) SetAccessToken(val string)

SetAccessToken sets the value of AccessToken.

func (*ApiKey) SetDescription added in v0.0.10

func (s *ApiKey) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*ApiKey) SetEnvironments added in v0.0.10

func (s *ApiKey) SetEnvironments(val []EnvironmentLink)

SetEnvironments sets the value of Environments.

func (*ApiKey) SetName added in v0.0.10

func (s *ApiKey) SetName(val string)

SetName sets the value of Name.

func (*ApiKey) SetPreviewAPIKey added in v0.0.10

func (s *ApiKey) SetPreviewAPIKey(val OptApiKeyPreviewAPIKey)

SetPreviewAPIKey sets the value of PreviewAPIKey.

func (*ApiKey) SetSys added in v0.0.10

func (s *ApiKey) SetSys(val ApiKeySys)

SetSys sets the value of Sys.

func (*ApiKey) UnmarshalJSON added in v0.0.10

func (s *ApiKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKey) Validate added in v0.0.10

func (s *ApiKey) Validate() error

type ApiKeyPreviewAPIKey added in v0.0.10

type ApiKeyPreviewAPIKey struct {
	Sys ApiKeyPreviewAPIKeySys `json:"sys"`
}

func (*ApiKeyPreviewAPIKey) Decode added in v0.0.10

func (s *ApiKeyPreviewAPIKey) Decode(d *jx.Decoder) error

Decode decodes ApiKeyPreviewAPIKey from json.

func (*ApiKeyPreviewAPIKey) Encode added in v0.0.10

func (s *ApiKeyPreviewAPIKey) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ApiKeyPreviewAPIKey) GetSys added in v0.0.10

GetSys returns the value of Sys.

func (*ApiKeyPreviewAPIKey) MarshalJSON added in v0.0.10

func (s *ApiKeyPreviewAPIKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ApiKeyPreviewAPIKey) SetSys added in v0.0.10

SetSys sets the value of Sys.

func (*ApiKeyPreviewAPIKey) UnmarshalJSON added in v0.0.10

func (s *ApiKeyPreviewAPIKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKeyPreviewAPIKey) Validate added in v0.0.10

func (s *ApiKeyPreviewAPIKey) Validate() error

type ApiKeyPreviewAPIKeySys added in v0.0.10

type ApiKeyPreviewAPIKeySys struct {
	// Merged property.
	Type ApiKeyPreviewAPIKeySysType `json:"type"`
	ID   string                     `json:"id"`
	// Merged property.
	LinkType ApiKeyPreviewAPIKeySysLinkType `json:"linkType"`
}

Merged schema.

func (*ApiKeyPreviewAPIKeySys) Decode added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) Decode(d *jx.Decoder) error

Decode decodes ApiKeyPreviewAPIKeySys from json.

func (*ApiKeyPreviewAPIKeySys) Encode added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ApiKeyPreviewAPIKeySys) GetID added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) GetID() string

GetID returns the value of ID.

func (*ApiKeyPreviewAPIKeySys) GetLinkType added in v0.0.10

GetLinkType returns the value of LinkType.

func (*ApiKeyPreviewAPIKeySys) GetType added in v0.0.10

GetType returns the value of Type.

func (*ApiKeyPreviewAPIKeySys) MarshalJSON added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ApiKeyPreviewAPIKeySys) SetID added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) SetID(val string)

SetID sets the value of ID.

func (*ApiKeyPreviewAPIKeySys) SetLinkType added in v0.0.10

SetLinkType sets the value of LinkType.

func (*ApiKeyPreviewAPIKeySys) SetType added in v0.0.10

SetType sets the value of Type.

func (*ApiKeyPreviewAPIKeySys) UnmarshalJSON added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKeyPreviewAPIKeySys) Validate added in v0.0.10

func (s *ApiKeyPreviewAPIKeySys) Validate() error

type ApiKeyPreviewAPIKeySysLinkType added in v0.0.10

type ApiKeyPreviewAPIKeySysLinkType string

Merged schema.

const (
	ApiKeyPreviewAPIKeySysLinkTypePreviewApiKey ApiKeyPreviewAPIKeySysLinkType = "PreviewApiKey"
)

func (ApiKeyPreviewAPIKeySysLinkType) AllValues added in v0.0.10

AllValues returns all ApiKeyPreviewAPIKeySysLinkType values.

func (*ApiKeyPreviewAPIKeySysLinkType) Decode added in v0.0.10

Decode decodes ApiKeyPreviewAPIKeySysLinkType from json.

func (ApiKeyPreviewAPIKeySysLinkType) Encode added in v0.0.10

Encode encodes ApiKeyPreviewAPIKeySysLinkType as json.

func (ApiKeyPreviewAPIKeySysLinkType) MarshalJSON added in v0.0.10

func (s ApiKeyPreviewAPIKeySysLinkType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ApiKeyPreviewAPIKeySysLinkType) MarshalText added in v0.0.10

func (s ApiKeyPreviewAPIKeySysLinkType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ApiKeyPreviewAPIKeySysLinkType) UnmarshalJSON added in v0.0.10

func (s *ApiKeyPreviewAPIKeySysLinkType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKeyPreviewAPIKeySysLinkType) UnmarshalText added in v0.0.10

func (s *ApiKeyPreviewAPIKeySysLinkType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ApiKeyPreviewAPIKeySysLinkType) Validate added in v0.0.10

type ApiKeyPreviewAPIKeySysType added in v0.0.10

type ApiKeyPreviewAPIKeySysType string

Merged schema.

const (
	ApiKeyPreviewAPIKeySysTypeLink ApiKeyPreviewAPIKeySysType = "Link"
)

func (ApiKeyPreviewAPIKeySysType) AllValues added in v0.0.10

AllValues returns all ApiKeyPreviewAPIKeySysType values.

func (*ApiKeyPreviewAPIKeySysType) Decode added in v0.0.10

Decode decodes ApiKeyPreviewAPIKeySysType from json.

func (ApiKeyPreviewAPIKeySysType) Encode added in v0.0.10

func (s ApiKeyPreviewAPIKeySysType) Encode(e *jx.Encoder)

Encode encodes ApiKeyPreviewAPIKeySysType as json.

func (ApiKeyPreviewAPIKeySysType) MarshalJSON added in v0.0.10

func (s ApiKeyPreviewAPIKeySysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ApiKeyPreviewAPIKeySysType) MarshalText added in v0.0.10

func (s ApiKeyPreviewAPIKeySysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ApiKeyPreviewAPIKeySysType) UnmarshalJSON added in v0.0.10

func (s *ApiKeyPreviewAPIKeySysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKeyPreviewAPIKeySysType) UnmarshalText added in v0.0.10

func (s *ApiKeyPreviewAPIKeySysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ApiKeyPreviewAPIKeySysType) Validate added in v0.0.10

func (s ApiKeyPreviewAPIKeySysType) Validate() error

type ApiKeySys added in v0.0.10

type ApiKeySys struct {
	// Merged property.
	Type      ApiKeySysType `json:"type"`
	ID        string        `json:"id"`
	Version   int           `json:"version"`
	CreatedAt OptDateTime   `json:"createdAt"`
	UpdatedAt OptDateTime   `json:"updatedAt"`
}

Merged schema. Ref: #/components/schemas/ApiKeySys

func (*ApiKeySys) Decode added in v0.0.10

func (s *ApiKeySys) Decode(d *jx.Decoder) error

Decode decodes ApiKeySys from json.

func (*ApiKeySys) Encode added in v0.0.10

func (s *ApiKeySys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ApiKeySys) GetCreatedAt added in v0.0.10

func (s *ApiKeySys) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*ApiKeySys) GetID added in v0.0.10

func (s *ApiKeySys) GetID() string

GetID returns the value of ID.

func (*ApiKeySys) GetType added in v0.0.10

func (s *ApiKeySys) GetType() ApiKeySysType

GetType returns the value of Type.

func (*ApiKeySys) GetUpdatedAt added in v0.0.10

func (s *ApiKeySys) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*ApiKeySys) GetVersion added in v0.0.10

func (s *ApiKeySys) GetVersion() int

GetVersion returns the value of Version.

func (*ApiKeySys) MarshalJSON added in v0.0.10

func (s *ApiKeySys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ApiKeySys) SetCreatedAt added in v0.0.10

func (s *ApiKeySys) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*ApiKeySys) SetID added in v0.0.10

func (s *ApiKeySys) SetID(val string)

SetID sets the value of ID.

func (*ApiKeySys) SetType added in v0.0.10

func (s *ApiKeySys) SetType(val ApiKeySysType)

SetType sets the value of Type.

func (*ApiKeySys) SetUpdatedAt added in v0.0.10

func (s *ApiKeySys) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*ApiKeySys) SetVersion added in v0.0.10

func (s *ApiKeySys) SetVersion(val int)

SetVersion sets the value of Version.

func (*ApiKeySys) UnmarshalJSON added in v0.0.10

func (s *ApiKeySys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKeySys) Validate added in v0.0.10

func (s *ApiKeySys) Validate() error

type ApiKeySysType added in v0.0.10

type ApiKeySysType string

Merged schema.

const (
	ApiKeySysTypeApiKey ApiKeySysType = "ApiKey"
)

func (ApiKeySysType) AllValues added in v0.0.10

func (ApiKeySysType) AllValues() []ApiKeySysType

AllValues returns all ApiKeySysType values.

func (*ApiKeySysType) Decode added in v0.0.10

func (s *ApiKeySysType) Decode(d *jx.Decoder) error

Decode decodes ApiKeySysType from json.

func (ApiKeySysType) Encode added in v0.0.10

func (s ApiKeySysType) Encode(e *jx.Encoder)

Encode encodes ApiKeySysType as json.

func (ApiKeySysType) MarshalJSON added in v0.0.10

func (s ApiKeySysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ApiKeySysType) MarshalText added in v0.0.10

func (s ApiKeySysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ApiKeySysType) UnmarshalJSON added in v0.0.10

func (s *ApiKeySysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApiKeySysType) UnmarshalText added in v0.0.10

func (s *ApiKeySysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ApiKeySysType) Validate added in v0.0.10

func (s ApiKeySysType) Validate() error

type AppInstallation

type AppInstallation struct {
	Sys        AppInstallationSys           `json:"sys"`
	Parameters OptAppInstallationParameters `json:"parameters"`
}

Merged schema. Ref: #/components/schemas/AppInstallation

func (*AppInstallation) Decode

func (s *AppInstallation) Decode(d *jx.Decoder) error

Decode decodes AppInstallation from json.

func (*AppInstallation) Encode

func (s *AppInstallation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppInstallation) GetParameters

func (s *AppInstallation) GetParameters() OptAppInstallationParameters

GetParameters returns the value of Parameters.

func (*AppInstallation) GetSys

func (s *AppInstallation) GetSys() AppInstallationSys

GetSys returns the value of Sys.

func (*AppInstallation) MarshalJSON

func (s *AppInstallation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppInstallation) SetParameters

func (s *AppInstallation) SetParameters(val OptAppInstallationParameters)

SetParameters sets the value of Parameters.

func (*AppInstallation) SetSys

func (s *AppInstallation) SetSys(val AppInstallationSys)

SetSys sets the value of Sys.

func (*AppInstallation) UnmarshalJSON

func (s *AppInstallation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppInstallation) Validate

func (s *AppInstallation) Validate() error

type AppInstallationParameters

type AppInstallationParameters map[string]jx.Raw

func (*AppInstallationParameters) Decode

func (s *AppInstallationParameters) Decode(d *jx.Decoder) error

Decode decodes AppInstallationParameters from json.

func (AppInstallationParameters) Encode

func (s AppInstallationParameters) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AppInstallationParameters) MarshalJSON

func (s AppInstallationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppInstallationParameters) UnmarshalJSON

func (s *AppInstallationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AppInstallationSys

type AppInstallationSys struct {
	// Merged property.
	Type AppInstallationSysType `json:"type"`
}

Merged schema. Ref: #/components/schemas/AppInstallationSys

func (*AppInstallationSys) Decode

func (s *AppInstallationSys) Decode(d *jx.Decoder) error

Decode decodes AppInstallationSys from json.

func (*AppInstallationSys) Encode

func (s *AppInstallationSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AppInstallationSys) GetType

GetType returns the value of Type.

func (*AppInstallationSys) MarshalJSON

func (s *AppInstallationSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AppInstallationSys) SetType

SetType sets the value of Type.

func (*AppInstallationSys) UnmarshalJSON

func (s *AppInstallationSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppInstallationSys) Validate

func (s *AppInstallationSys) Validate() error

type AppInstallationSysType

type AppInstallationSysType string

Merged schema.

const (
	AppInstallationSysTypeAppInstallation AppInstallationSysType = "AppInstallation"
)

func (AppInstallationSysType) AllValues

AllValues returns all AppInstallationSysType values.

func (*AppInstallationSysType) Decode

func (s *AppInstallationSysType) Decode(d *jx.Decoder) error

Decode decodes AppInstallationSysType from json.

func (AppInstallationSysType) Encode

func (s AppInstallationSysType) Encode(e *jx.Encoder)

Encode encodes AppInstallationSysType as json.

func (AppInstallationSysType) MarshalJSON

func (s AppInstallationSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AppInstallationSysType) MarshalText

func (s AppInstallationSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AppInstallationSysType) UnmarshalJSON

func (s *AppInstallationSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AppInstallationSysType) UnmarshalText

func (s *AppInstallationSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AppInstallationSysType) Validate

func (s AppInstallationSysType) Validate() error

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) ActivateContentType added in v0.0.5

func (c *Client) ActivateContentType(ctx context.Context, params ActivateContentTypeParams) (ActivateContentTypeRes, error)

ActivateContentType invokes activateContentType operation.

Activate a content type.

PUT /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/published

func (*Client) CreateDeliveryApiKey added in v0.0.12

func (c *Client) CreateDeliveryApiKey(ctx context.Context, request *CreateDeliveryApiKeyReq, params CreateDeliveryApiKeyParams) (CreateDeliveryApiKeyRes, error)

CreateDeliveryApiKey invokes createDeliveryApiKey operation.

Create a delivery api key.

POST /spaces/{space_id}/api_keys

func (*Client) CreatePersonalAccessToken added in v0.0.12

func (c *Client) CreatePersonalAccessToken(ctx context.Context, request *CreatePersonalAccessTokenReq) (CreatePersonalAccessTokenRes, error)

CreatePersonalAccessToken invokes createPersonalAccessToken operation.

Create a personal access token.

POST /users/me/access_tokens

func (*Client) DeactivateContentType added in v0.0.5

func (c *Client) DeactivateContentType(ctx context.Context, params DeactivateContentTypeParams) (DeactivateContentTypeRes, error)

DeactivateContentType invokes deactivateContentType operation.

Deactivate a content type.

DELETE /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/published

func (*Client) DeleteAppInstallation

func (c *Client) DeleteAppInstallation(ctx context.Context, params DeleteAppInstallationParams) (DeleteAppInstallationRes, error)

DeleteAppInstallation invokes deleteAppInstallation operation.

Uninstall an app.

DELETE /spaces/{space_id}/environments/{environment_id}/app_installations/{app_definition_id}

func (*Client) DeleteContentType added in v0.0.5

func (c *Client) DeleteContentType(ctx context.Context, params DeleteContentTypeParams) (DeleteContentTypeRes, error)

DeleteContentType invokes deleteContentType operation.

Delete a content type.

DELETE /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}

func (*Client) DeleteDeliveryApiKey added in v0.0.12

func (c *Client) DeleteDeliveryApiKey(ctx context.Context, params DeleteDeliveryApiKeyParams) (DeleteDeliveryApiKeyRes, error)

DeleteDeliveryApiKey invokes deleteDeliveryApiKey operation.

Delete a single delivery api key.

DELETE /spaces/{space_id}/api_keys/{api_key_id}

func (*Client) GetAppInstallation

func (c *Client) GetAppInstallation(ctx context.Context, params GetAppInstallationParams) (GetAppInstallationRes, error)

GetAppInstallation invokes getAppInstallation operation.

Get one app installation.

GET /spaces/{space_id}/environments/{environment_id}/app_installations/{app_definition_id}

func (*Client) GetAuthenticatedUser

func (c *Client) GetAuthenticatedUser(ctx context.Context) (GetAuthenticatedUserRes, error)

GetAuthenticatedUser invokes getAuthenticatedUser operation.

Get the authenticated user.

GET /users/me

func (*Client) GetContentType added in v0.0.5

func (c *Client) GetContentType(ctx context.Context, params GetContentTypeParams) (GetContentTypeRes, error)

GetContentType invokes getContentType operation.

Get a content type.

GET /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}

func (*Client) GetDeliveryApiKey added in v0.0.12

func (c *Client) GetDeliveryApiKey(ctx context.Context, params GetDeliveryApiKeyParams) (GetDeliveryApiKeyRes, error)

GetDeliveryApiKey invokes getDeliveryApiKey operation.

Get a single delivery api key.

GET /spaces/{space_id}/api_keys/{api_key_id}

func (*Client) GetEditorInterface added in v0.0.3

func (c *Client) GetEditorInterface(ctx context.Context, params GetEditorInterfaceParams) (GetEditorInterfaceRes, error)

GetEditorInterface invokes getEditorInterface operation.

Get the editor interface for a content type.

GET /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/editor_interface

func (*Client) GetPersonalAccessToken added in v0.0.12

func (c *Client) GetPersonalAccessToken(ctx context.Context, params GetPersonalAccessTokenParams) (GetPersonalAccessTokenRes, error)

GetPersonalAccessToken invokes getPersonalAccessToken operation.

Get a single personal access token.

GET /users/me/access_tokens/{access_token_id}

func (*Client) GetPreviewApiKey added in v0.0.10

func (c *Client) GetPreviewApiKey(ctx context.Context, params GetPreviewApiKeyParams) (GetPreviewApiKeyRes, error)

GetPreviewApiKey invokes getPreviewApiKey operation.

Get a single preview api key.

GET /spaces/{space_id}/preview_api_keys/{preview_api_key_id}

func (*Client) PutAppInstallation

func (c *Client) PutAppInstallation(ctx context.Context, request *PutAppInstallationReq, params PutAppInstallationParams) (PutAppInstallationRes, error)

PutAppInstallation invokes putAppInstallation operation.

Install or update an app.

PUT /spaces/{space_id}/environments/{environment_id}/app_installations/{app_definition_id}

func (*Client) PutContentType added in v0.0.5

func (c *Client) PutContentType(ctx context.Context, request *PutContentTypeReq, params PutContentTypeParams) (PutContentTypeRes, error)

PutContentType invokes putContentType operation.

Update a content type.

PUT /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}

func (*Client) PutEditorInterface added in v0.0.3

func (c *Client) PutEditorInterface(ctx context.Context, request *PutEditorInterfaceReq, params PutEditorInterfaceParams) (PutEditorInterfaceRes, error)

PutEditorInterface invokes putEditorInterface operation.

Update the editor interface for a content type.

PUT /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/editor_interface

func (*Client) RevokePersonalAccessToken added in v0.0.12

func (c *Client) RevokePersonalAccessToken(ctx context.Context, params RevokePersonalAccessTokenParams) (RevokePersonalAccessTokenRes, error)

RevokePersonalAccessToken invokes revokePersonalAccessToken operation.

Revoke a personal access token.

PUT /users/me/access_tokens/{access_token_id}/revoked

func (*Client) UpdateDeliveryApiKey added in v0.0.12

func (c *Client) UpdateDeliveryApiKey(ctx context.Context, request *UpdateDeliveryApiKeyReq, params UpdateDeliveryApiKeyParams) (UpdateDeliveryApiKeyRes, error)

UpdateDeliveryApiKey invokes updateDeliveryApiKey operation.

Update a single delivery api key.

PUT /spaces/{space_id}/api_keys/{api_key_id}

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type ContentType added in v0.0.5

type ContentType struct {
	Sys  ContentTypeSys `json:"sys"`
	Name string         `json:"name"`
	// Merged property.
	Description NilString `json:"description"`
	// Merged property.
	DisplayField NilString               `json:"displayField"`
	Fields       []ContentTypeFieldsItem `json:"fields"`
}

Merged schema. Ref: #/components/schemas/ContentType

func (*ContentType) Decode added in v0.0.5

func (s *ContentType) Decode(d *jx.Decoder) error

Decode decodes ContentType from json.

func (*ContentType) Encode added in v0.0.5

func (s *ContentType) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ContentType) GetDescription added in v0.0.5

func (s *ContentType) GetDescription() NilString

GetDescription returns the value of Description.

func (*ContentType) GetDisplayField added in v0.0.5

func (s *ContentType) GetDisplayField() NilString

GetDisplayField returns the value of DisplayField.

func (*ContentType) GetFields added in v0.0.5

func (s *ContentType) GetFields() []ContentTypeFieldsItem

GetFields returns the value of Fields.

func (*ContentType) GetName added in v0.0.5

func (s *ContentType) GetName() string

GetName returns the value of Name.

func (*ContentType) GetSys added in v0.0.5

func (s *ContentType) GetSys() ContentTypeSys

GetSys returns the value of Sys.

func (*ContentType) MarshalJSON added in v0.0.5

func (s *ContentType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContentType) SetDescription added in v0.0.5

func (s *ContentType) SetDescription(val NilString)

SetDescription sets the value of Description.

func (*ContentType) SetDisplayField added in v0.0.5

func (s *ContentType) SetDisplayField(val NilString)

SetDisplayField sets the value of DisplayField.

func (*ContentType) SetFields added in v0.0.5

func (s *ContentType) SetFields(val []ContentTypeFieldsItem)

SetFields sets the value of Fields.

func (*ContentType) SetName added in v0.0.5

func (s *ContentType) SetName(val string)

SetName sets the value of Name.

func (*ContentType) SetSys added in v0.0.5

func (s *ContentType) SetSys(val ContentTypeSys)

SetSys sets the value of Sys.

func (*ContentType) UnmarshalJSON added in v0.0.5

func (s *ContentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContentType) Validate added in v0.0.5

func (s *ContentType) Validate() error

type ContentTypeFieldsItem added in v0.0.5

type ContentTypeFieldsItem struct {
	ID           string                        `json:"id"`
	Name         string                        `json:"name"`
	Type         string                        `json:"type"`
	LinkType     OptString                     `json:"linkType"`
	Items        OptContentTypeFieldsItemItems `json:"items"`
	Localized    OptBool                       `json:"localized"`
	Omitted      OptBool                       `json:"omitted"`
	Required     OptBool                       `json:"required"`
	Disabled     OptBool                       `json:"disabled"`
	DefaultValue jx.Raw                        `json:"defaultValue"`
	Validations  []jx.Raw                      `json:"validations"`
}

func (*ContentTypeFieldsItem) Decode added in v0.0.5

func (s *ContentTypeFieldsItem) Decode(d *jx.Decoder) error

Decode decodes ContentTypeFieldsItem from json.

func (*ContentTypeFieldsItem) Encode added in v0.0.5

func (s *ContentTypeFieldsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ContentTypeFieldsItem) GetDefaultValue added in v0.0.5

func (s *ContentTypeFieldsItem) GetDefaultValue() jx.Raw

GetDefaultValue returns the value of DefaultValue.

func (*ContentTypeFieldsItem) GetDisabled added in v0.0.5

func (s *ContentTypeFieldsItem) GetDisabled() OptBool

GetDisabled returns the value of Disabled.

func (*ContentTypeFieldsItem) GetID added in v0.0.5

func (s *ContentTypeFieldsItem) GetID() string

GetID returns the value of ID.

func (*ContentTypeFieldsItem) GetItems added in v0.0.5

GetItems returns the value of Items.

func (*ContentTypeFieldsItem) GetLinkType added in v0.0.5

func (s *ContentTypeFieldsItem) GetLinkType() OptString

GetLinkType returns the value of LinkType.

func (*ContentTypeFieldsItem) GetLocalized added in v0.0.5

func (s *ContentTypeFieldsItem) GetLocalized() OptBool

GetLocalized returns the value of Localized.

func (*ContentTypeFieldsItem) GetName added in v0.0.5

func (s *ContentTypeFieldsItem) GetName() string

GetName returns the value of Name.

func (*ContentTypeFieldsItem) GetOmitted added in v0.0.5

func (s *ContentTypeFieldsItem) GetOmitted() OptBool

GetOmitted returns the value of Omitted.

func (*ContentTypeFieldsItem) GetRequired added in v0.0.5

func (s *ContentTypeFieldsItem) GetRequired() OptBool

GetRequired returns the value of Required.

func (*ContentTypeFieldsItem) GetType added in v0.0.5

func (s *ContentTypeFieldsItem) GetType() string

GetType returns the value of Type.

func (*ContentTypeFieldsItem) GetValidations added in v0.0.5

func (s *ContentTypeFieldsItem) GetValidations() []jx.Raw

GetValidations returns the value of Validations.

func (*ContentTypeFieldsItem) MarshalJSON added in v0.0.5

func (s *ContentTypeFieldsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContentTypeFieldsItem) SetDefaultValue added in v0.0.5

func (s *ContentTypeFieldsItem) SetDefaultValue(val jx.Raw)

SetDefaultValue sets the value of DefaultValue.

func (*ContentTypeFieldsItem) SetDisabled added in v0.0.5

func (s *ContentTypeFieldsItem) SetDisabled(val OptBool)

SetDisabled sets the value of Disabled.

func (*ContentTypeFieldsItem) SetID added in v0.0.5

func (s *ContentTypeFieldsItem) SetID(val string)

SetID sets the value of ID.

func (*ContentTypeFieldsItem) SetItems added in v0.0.5

SetItems sets the value of Items.

func (*ContentTypeFieldsItem) SetLinkType added in v0.0.5

func (s *ContentTypeFieldsItem) SetLinkType(val OptString)

SetLinkType sets the value of LinkType.

func (*ContentTypeFieldsItem) SetLocalized added in v0.0.5

func (s *ContentTypeFieldsItem) SetLocalized(val OptBool)

SetLocalized sets the value of Localized.

func (*ContentTypeFieldsItem) SetName added in v0.0.5

func (s *ContentTypeFieldsItem) SetName(val string)

SetName sets the value of Name.

func (*ContentTypeFieldsItem) SetOmitted added in v0.0.5

func (s *ContentTypeFieldsItem) SetOmitted(val OptBool)

SetOmitted sets the value of Omitted.

func (*ContentTypeFieldsItem) SetRequired added in v0.0.5

func (s *ContentTypeFieldsItem) SetRequired(val OptBool)

SetRequired sets the value of Required.

func (*ContentTypeFieldsItem) SetType added in v0.0.5

func (s *ContentTypeFieldsItem) SetType(val string)

SetType sets the value of Type.

func (*ContentTypeFieldsItem) SetValidations added in v0.0.5

func (s *ContentTypeFieldsItem) SetValidations(val []jx.Raw)

SetValidations sets the value of Validations.

func (*ContentTypeFieldsItem) UnmarshalJSON added in v0.0.5

func (s *ContentTypeFieldsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ContentTypeFieldsItemItems added in v0.0.5

type ContentTypeFieldsItemItems struct {
	Type        OptString `json:"type"`
	LinkType    OptString `json:"linkType"`
	Validations []jx.Raw  `json:"validations"`
}

func (*ContentTypeFieldsItemItems) Decode added in v0.0.5

Decode decodes ContentTypeFieldsItemItems from json.

func (*ContentTypeFieldsItemItems) Encode added in v0.0.5

func (s *ContentTypeFieldsItemItems) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ContentTypeFieldsItemItems) GetLinkType added in v0.0.5

func (s *ContentTypeFieldsItemItems) GetLinkType() OptString

GetLinkType returns the value of LinkType.

func (*ContentTypeFieldsItemItems) GetType added in v0.0.5

GetType returns the value of Type.

func (*ContentTypeFieldsItemItems) GetValidations added in v0.0.5

func (s *ContentTypeFieldsItemItems) GetValidations() []jx.Raw

GetValidations returns the value of Validations.

func (*ContentTypeFieldsItemItems) MarshalJSON added in v0.0.5

func (s *ContentTypeFieldsItemItems) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContentTypeFieldsItemItems) SetLinkType added in v0.0.5

func (s *ContentTypeFieldsItemItems) SetLinkType(val OptString)

SetLinkType sets the value of LinkType.

func (*ContentTypeFieldsItemItems) SetType added in v0.0.5

func (s *ContentTypeFieldsItemItems) SetType(val OptString)

SetType sets the value of Type.

func (*ContentTypeFieldsItemItems) SetValidations added in v0.0.5

func (s *ContentTypeFieldsItemItems) SetValidations(val []jx.Raw)

SetValidations sets the value of Validations.

func (*ContentTypeFieldsItemItems) UnmarshalJSON added in v0.0.5

func (s *ContentTypeFieldsItemItems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ContentTypeSys added in v0.0.5

type ContentTypeSys struct {
	// Merged property.
	Type             ContentTypeSysType `json:"type"`
	ID               string             `json:"id"`
	Version          int                `json:"version"`
	CreatedAt        OptDateTime        `json:"createdAt"`
	UpdatedAt        OptDateTime        `json:"updatedAt"`
	PublishedVersion OptInt             `json:"publishedVersion"`
	PublishedAt      OptDateTime        `json:"publishedAt"`
}

Merged schema. Ref: #/components/schemas/ContentTypeSys

func (*ContentTypeSys) Decode added in v0.0.5

func (s *ContentTypeSys) Decode(d *jx.Decoder) error

Decode decodes ContentTypeSys from json.

func (*ContentTypeSys) Encode added in v0.0.5

func (s *ContentTypeSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ContentTypeSys) GetCreatedAt added in v0.0.5

func (s *ContentTypeSys) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*ContentTypeSys) GetID added in v0.0.5

func (s *ContentTypeSys) GetID() string

GetID returns the value of ID.

func (*ContentTypeSys) GetPublishedAt added in v0.0.5

func (s *ContentTypeSys) GetPublishedAt() OptDateTime

GetPublishedAt returns the value of PublishedAt.

func (*ContentTypeSys) GetPublishedVersion added in v0.0.5

func (s *ContentTypeSys) GetPublishedVersion() OptInt

GetPublishedVersion returns the value of PublishedVersion.

func (*ContentTypeSys) GetType added in v0.0.5

func (s *ContentTypeSys) GetType() ContentTypeSysType

GetType returns the value of Type.

func (*ContentTypeSys) GetUpdatedAt added in v0.0.5

func (s *ContentTypeSys) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*ContentTypeSys) GetVersion added in v0.0.5

func (s *ContentTypeSys) GetVersion() int

GetVersion returns the value of Version.

func (*ContentTypeSys) MarshalJSON added in v0.0.5

func (s *ContentTypeSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContentTypeSys) SetCreatedAt added in v0.0.5

func (s *ContentTypeSys) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*ContentTypeSys) SetID added in v0.0.5

func (s *ContentTypeSys) SetID(val string)

SetID sets the value of ID.

func (*ContentTypeSys) SetPublishedAt added in v0.0.5

func (s *ContentTypeSys) SetPublishedAt(val OptDateTime)

SetPublishedAt sets the value of PublishedAt.

func (*ContentTypeSys) SetPublishedVersion added in v0.0.5

func (s *ContentTypeSys) SetPublishedVersion(val OptInt)

SetPublishedVersion sets the value of PublishedVersion.

func (*ContentTypeSys) SetType added in v0.0.5

func (s *ContentTypeSys) SetType(val ContentTypeSysType)

SetType sets the value of Type.

func (*ContentTypeSys) SetUpdatedAt added in v0.0.5

func (s *ContentTypeSys) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*ContentTypeSys) SetVersion added in v0.0.5

func (s *ContentTypeSys) SetVersion(val int)

SetVersion sets the value of Version.

func (*ContentTypeSys) UnmarshalJSON added in v0.0.5

func (s *ContentTypeSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContentTypeSys) Validate added in v0.0.5

func (s *ContentTypeSys) Validate() error

type ContentTypeSysType added in v0.0.5

type ContentTypeSysType string

Merged schema.

const (
	ContentTypeSysTypeContentType ContentTypeSysType = "ContentType"
)

func (ContentTypeSysType) AllValues added in v0.0.5

func (ContentTypeSysType) AllValues() []ContentTypeSysType

AllValues returns all ContentTypeSysType values.

func (*ContentTypeSysType) Decode added in v0.0.5

func (s *ContentTypeSysType) Decode(d *jx.Decoder) error

Decode decodes ContentTypeSysType from json.

func (ContentTypeSysType) Encode added in v0.0.5

func (s ContentTypeSysType) Encode(e *jx.Encoder)

Encode encodes ContentTypeSysType as json.

func (ContentTypeSysType) MarshalJSON added in v0.0.5

func (s ContentTypeSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ContentTypeSysType) MarshalText added in v0.0.5

func (s ContentTypeSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ContentTypeSysType) UnmarshalJSON added in v0.0.5

func (s *ContentTypeSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContentTypeSysType) UnmarshalText added in v0.0.5

func (s *ContentTypeSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ContentTypeSysType) Validate added in v0.0.5

func (s ContentTypeSysType) Validate() error

type CreateDeliveryApiKeyParams added in v0.0.12

type CreateDeliveryApiKeyParams struct {
	SpaceID string
}

CreateDeliveryApiKeyParams is parameters of createDeliveryApiKey operation.

type CreateDeliveryApiKeyReq added in v0.0.12

type CreateDeliveryApiKeyReq struct {
	Name         string            `json:"name"`
	Description  OptNilString      `json:"description"`
	Environments []EnvironmentLink `json:"environments"`
}

func (*CreateDeliveryApiKeyReq) Decode added in v0.0.12

func (s *CreateDeliveryApiKeyReq) Decode(d *jx.Decoder) error

Decode decodes CreateDeliveryApiKeyReq from json.

func (*CreateDeliveryApiKeyReq) Encode added in v0.0.12

func (s *CreateDeliveryApiKeyReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDeliveryApiKeyReq) GetDescription added in v0.0.12

func (s *CreateDeliveryApiKeyReq) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*CreateDeliveryApiKeyReq) GetEnvironments added in v0.0.12

func (s *CreateDeliveryApiKeyReq) GetEnvironments() []EnvironmentLink

GetEnvironments returns the value of Environments.

func (*CreateDeliveryApiKeyReq) GetName added in v0.0.12

func (s *CreateDeliveryApiKeyReq) GetName() string

GetName returns the value of Name.

func (*CreateDeliveryApiKeyReq) MarshalJSON added in v0.0.12

func (s *CreateDeliveryApiKeyReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDeliveryApiKeyReq) SetDescription added in v0.0.12

func (s *CreateDeliveryApiKeyReq) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*CreateDeliveryApiKeyReq) SetEnvironments added in v0.0.12

func (s *CreateDeliveryApiKeyReq) SetEnvironments(val []EnvironmentLink)

SetEnvironments sets the value of Environments.

func (*CreateDeliveryApiKeyReq) SetName added in v0.0.12

func (s *CreateDeliveryApiKeyReq) SetName(val string)

SetName sets the value of Name.

func (*CreateDeliveryApiKeyReq) UnmarshalJSON added in v0.0.12

func (s *CreateDeliveryApiKeyReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDeliveryApiKeyReq) Validate added in v0.0.12

func (s *CreateDeliveryApiKeyReq) Validate() error

type CreateDeliveryApiKeyRes added in v0.0.12

type CreateDeliveryApiKeyRes interface {
	// contains filtered or unexported methods
}

type CreatePersonalAccessTokenReq added in v0.0.12

type CreatePersonalAccessTokenReq struct {
	Name      string    `json:"name"`
	Scopes    []string  `json:"scopes"`
	ExpiresIn OptNilInt `json:"expiresIn"`
}

func (*CreatePersonalAccessTokenReq) Decode added in v0.0.12

Decode decodes CreatePersonalAccessTokenReq from json.

func (*CreatePersonalAccessTokenReq) Encode added in v0.0.12

func (s *CreatePersonalAccessTokenReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePersonalAccessTokenReq) GetExpiresIn added in v0.0.12

func (s *CreatePersonalAccessTokenReq) GetExpiresIn() OptNilInt

GetExpiresIn returns the value of ExpiresIn.

func (*CreatePersonalAccessTokenReq) GetName added in v0.0.12

func (s *CreatePersonalAccessTokenReq) GetName() string

GetName returns the value of Name.

func (*CreatePersonalAccessTokenReq) GetScopes added in v0.0.12

func (s *CreatePersonalAccessTokenReq) GetScopes() []string

GetScopes returns the value of Scopes.

func (*CreatePersonalAccessTokenReq) MarshalJSON added in v0.0.12

func (s *CreatePersonalAccessTokenReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePersonalAccessTokenReq) SetExpiresIn added in v0.0.12

func (s *CreatePersonalAccessTokenReq) SetExpiresIn(val OptNilInt)

SetExpiresIn sets the value of ExpiresIn.

func (*CreatePersonalAccessTokenReq) SetName added in v0.0.12

func (s *CreatePersonalAccessTokenReq) SetName(val string)

SetName sets the value of Name.

func (*CreatePersonalAccessTokenReq) SetScopes added in v0.0.12

func (s *CreatePersonalAccessTokenReq) SetScopes(val []string)

SetScopes sets the value of Scopes.

func (*CreatePersonalAccessTokenReq) UnmarshalJSON added in v0.0.12

func (s *CreatePersonalAccessTokenReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePersonalAccessTokenReq) Validate added in v0.0.12

func (s *CreatePersonalAccessTokenReq) Validate() error

type CreatePersonalAccessTokenRes added in v0.0.12

type CreatePersonalAccessTokenRes interface {
	// contains filtered or unexported methods
}

type DeactivateContentTypeParams added in v0.0.5

type DeactivateContentTypeParams struct {
	SpaceID       string
	EnvironmentID string
	ContentTypeID string
}

DeactivateContentTypeParams is parameters of deactivateContentType operation.

type DeactivateContentTypeRes added in v0.0.5

type DeactivateContentTypeRes interface {
	// contains filtered or unexported methods
}

type DeleteAppInstallationParams

type DeleteAppInstallationParams struct {
	SpaceID         string
	EnvironmentID   string
	AppDefinitionID string
}

DeleteAppInstallationParams is parameters of deleteAppInstallation operation.

type DeleteAppInstallationRes

type DeleteAppInstallationRes interface {
	// contains filtered or unexported methods
}

type DeleteContentTypeParams added in v0.0.5

type DeleteContentTypeParams struct {
	SpaceID       string
	EnvironmentID string
	ContentTypeID string
}

DeleteContentTypeParams is parameters of deleteContentType operation.

type DeleteContentTypeRes added in v0.0.5

type DeleteContentTypeRes interface {
	// contains filtered or unexported methods
}

type DeleteDeliveryApiKeyParams added in v0.0.12

type DeleteDeliveryApiKeyParams struct {
	SpaceID  string
	APIKeyID string
}

DeleteDeliveryApiKeyParams is parameters of deleteDeliveryApiKey operation.

type DeleteDeliveryApiKeyRes added in v0.0.12

type DeleteDeliveryApiKeyRes interface {
	// contains filtered or unexported methods
}

type EditorInterface added in v0.0.3

type EditorInterface struct {
	Sys      EditorInterfaceSys                     `json:"sys"`
	Controls OptNilEditorInterfaceControlsItemArray `json:"controls"`
	Sidebar  OptNilEditorInterfaceSidebarItemArray  `json:"sidebar"`
}

Merged schema. Ref: #/components/schemas/EditorInterface

func (*EditorInterface) Decode added in v0.0.3

func (s *EditorInterface) Decode(d *jx.Decoder) error

Decode decodes EditorInterface from json.

func (*EditorInterface) Encode added in v0.0.3

func (s *EditorInterface) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditorInterface) GetControls added in v0.0.3

GetControls returns the value of Controls.

func (*EditorInterface) GetSidebar added in v0.0.3

GetSidebar returns the value of Sidebar.

func (*EditorInterface) GetSys added in v0.0.3

func (s *EditorInterface) GetSys() EditorInterfaceSys

GetSys returns the value of Sys.

func (*EditorInterface) MarshalJSON added in v0.0.3

func (s *EditorInterface) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditorInterface) SetControls added in v0.0.3

SetControls sets the value of Controls.

func (*EditorInterface) SetSidebar added in v0.0.3

SetSidebar sets the value of Sidebar.

func (*EditorInterface) SetSys added in v0.0.3

func (s *EditorInterface) SetSys(val EditorInterfaceSys)

SetSys sets the value of Sys.

func (*EditorInterface) UnmarshalJSON added in v0.0.3

func (s *EditorInterface) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditorInterface) Validate added in v0.0.3

func (s *EditorInterface) Validate() error

type EditorInterfaceControlsItem added in v0.0.3

type EditorInterfaceControlsItem struct {
	FieldId         string                                 `json:"fieldId"`
	WidgetNamespace OptString                              `json:"widgetNamespace"`
	WidgetId        OptString                              `json:"widgetId"`
	Settings        OptEditorInterfaceControlsItemSettings `json:"settings"`
}

func (*EditorInterfaceControlsItem) Decode added in v0.0.3

Decode decodes EditorInterfaceControlsItem from json.

func (*EditorInterfaceControlsItem) Encode added in v0.0.3

func (s *EditorInterfaceControlsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditorInterfaceControlsItem) GetFieldId added in v0.0.3

func (s *EditorInterfaceControlsItem) GetFieldId() string

GetFieldId returns the value of FieldId.

func (*EditorInterfaceControlsItem) GetSettings added in v0.0.3

GetSettings returns the value of Settings.

func (*EditorInterfaceControlsItem) GetWidgetId added in v0.0.3

func (s *EditorInterfaceControlsItem) GetWidgetId() OptString

GetWidgetId returns the value of WidgetId.

func (*EditorInterfaceControlsItem) GetWidgetNamespace added in v0.0.3

func (s *EditorInterfaceControlsItem) GetWidgetNamespace() OptString

GetWidgetNamespace returns the value of WidgetNamespace.

func (*EditorInterfaceControlsItem) MarshalJSON added in v0.0.3

func (s *EditorInterfaceControlsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditorInterfaceControlsItem) SetFieldId added in v0.0.3

func (s *EditorInterfaceControlsItem) SetFieldId(val string)

SetFieldId sets the value of FieldId.

func (*EditorInterfaceControlsItem) SetSettings added in v0.0.3

SetSettings sets the value of Settings.

func (*EditorInterfaceControlsItem) SetWidgetId added in v0.0.3

func (s *EditorInterfaceControlsItem) SetWidgetId(val OptString)

SetWidgetId sets the value of WidgetId.

func (*EditorInterfaceControlsItem) SetWidgetNamespace added in v0.0.3

func (s *EditorInterfaceControlsItem) SetWidgetNamespace(val OptString)

SetWidgetNamespace sets the value of WidgetNamespace.

func (*EditorInterfaceControlsItem) UnmarshalJSON added in v0.0.3

func (s *EditorInterfaceControlsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EditorInterfaceControlsItemSettings added in v0.0.3

type EditorInterfaceControlsItemSettings map[string]jx.Raw

func (*EditorInterfaceControlsItemSettings) Decode added in v0.0.3

Decode decodes EditorInterfaceControlsItemSettings from json.

func (EditorInterfaceControlsItemSettings) Encode added in v0.0.3

Encode implements json.Marshaler.

func (EditorInterfaceControlsItemSettings) MarshalJSON added in v0.0.3

func (s EditorInterfaceControlsItemSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditorInterfaceControlsItemSettings) UnmarshalJSON added in v0.0.3

func (s *EditorInterfaceControlsItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EditorInterfaceSidebarItem added in v0.0.3

type EditorInterfaceSidebarItem struct {
	WidgetNamespace string                                `json:"widgetNamespace"`
	WidgetId        string                                `json:"widgetId"`
	Settings        OptEditorInterfaceSidebarItemSettings `json:"settings"`
	Disabled        OptBool                               `json:"disabled"`
}

func (*EditorInterfaceSidebarItem) Decode added in v0.0.3

Decode decodes EditorInterfaceSidebarItem from json.

func (*EditorInterfaceSidebarItem) Encode added in v0.0.3

func (s *EditorInterfaceSidebarItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditorInterfaceSidebarItem) GetDisabled added in v0.0.3

func (s *EditorInterfaceSidebarItem) GetDisabled() OptBool

GetDisabled returns the value of Disabled.

func (*EditorInterfaceSidebarItem) GetSettings added in v0.0.3

GetSettings returns the value of Settings.

func (*EditorInterfaceSidebarItem) GetWidgetId added in v0.0.3

func (s *EditorInterfaceSidebarItem) GetWidgetId() string

GetWidgetId returns the value of WidgetId.

func (*EditorInterfaceSidebarItem) GetWidgetNamespace added in v0.0.3

func (s *EditorInterfaceSidebarItem) GetWidgetNamespace() string

GetWidgetNamespace returns the value of WidgetNamespace.

func (*EditorInterfaceSidebarItem) MarshalJSON added in v0.0.3

func (s *EditorInterfaceSidebarItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditorInterfaceSidebarItem) SetDisabled added in v0.0.3

func (s *EditorInterfaceSidebarItem) SetDisabled(val OptBool)

SetDisabled sets the value of Disabled.

func (*EditorInterfaceSidebarItem) SetSettings added in v0.0.3

SetSettings sets the value of Settings.

func (*EditorInterfaceSidebarItem) SetWidgetId added in v0.0.3

func (s *EditorInterfaceSidebarItem) SetWidgetId(val string)

SetWidgetId sets the value of WidgetId.

func (*EditorInterfaceSidebarItem) SetWidgetNamespace added in v0.0.3

func (s *EditorInterfaceSidebarItem) SetWidgetNamespace(val string)

SetWidgetNamespace sets the value of WidgetNamespace.

func (*EditorInterfaceSidebarItem) UnmarshalJSON added in v0.0.3

func (s *EditorInterfaceSidebarItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EditorInterfaceSidebarItemSettings added in v0.0.3

type EditorInterfaceSidebarItemSettings map[string]jx.Raw

func (*EditorInterfaceSidebarItemSettings) Decode added in v0.0.3

Decode decodes EditorInterfaceSidebarItemSettings from json.

func (EditorInterfaceSidebarItemSettings) Encode added in v0.0.3

Encode implements json.Marshaler.

func (EditorInterfaceSidebarItemSettings) MarshalJSON added in v0.0.3

func (s EditorInterfaceSidebarItemSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditorInterfaceSidebarItemSettings) UnmarshalJSON added in v0.0.3

func (s *EditorInterfaceSidebarItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EditorInterfaceSys added in v0.0.3

type EditorInterfaceSys struct {
	// Merged property.
	Type      EditorInterfaceSysType `json:"type"`
	ID        string                 `json:"id"`
	Version   int                    `json:"version"`
	CreatedAt OptDateTime            `json:"createdAt"`
	UpdatedAt OptDateTime            `json:"updatedAt"`
}

Merged schema. Ref: #/components/schemas/EditorInterfaceSys

func (*EditorInterfaceSys) Decode added in v0.0.3

func (s *EditorInterfaceSys) Decode(d *jx.Decoder) error

Decode decodes EditorInterfaceSys from json.

func (*EditorInterfaceSys) Encode added in v0.0.3

func (s *EditorInterfaceSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditorInterfaceSys) GetCreatedAt added in v0.0.3

func (s *EditorInterfaceSys) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*EditorInterfaceSys) GetID added in v0.0.3

func (s *EditorInterfaceSys) GetID() string

GetID returns the value of ID.

func (*EditorInterfaceSys) GetType added in v0.0.3

GetType returns the value of Type.

func (*EditorInterfaceSys) GetUpdatedAt added in v0.0.3

func (s *EditorInterfaceSys) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*EditorInterfaceSys) GetVersion added in v0.0.3

func (s *EditorInterfaceSys) GetVersion() int

GetVersion returns the value of Version.

func (*EditorInterfaceSys) MarshalJSON added in v0.0.3

func (s *EditorInterfaceSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditorInterfaceSys) SetCreatedAt added in v0.0.3

func (s *EditorInterfaceSys) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*EditorInterfaceSys) SetID added in v0.0.3

func (s *EditorInterfaceSys) SetID(val string)

SetID sets the value of ID.

func (*EditorInterfaceSys) SetType added in v0.0.3

SetType sets the value of Type.

func (*EditorInterfaceSys) SetUpdatedAt added in v0.0.3

func (s *EditorInterfaceSys) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*EditorInterfaceSys) SetVersion added in v0.0.3

func (s *EditorInterfaceSys) SetVersion(val int)

SetVersion sets the value of Version.

func (*EditorInterfaceSys) UnmarshalJSON added in v0.0.3

func (s *EditorInterfaceSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditorInterfaceSys) Validate added in v0.0.3

func (s *EditorInterfaceSys) Validate() error

type EditorInterfaceSysType added in v0.0.3

type EditorInterfaceSysType string

Merged schema.

const (
	EditorInterfaceSysTypeEditorInterface EditorInterfaceSysType = "EditorInterface"
)

func (EditorInterfaceSysType) AllValues added in v0.0.3

AllValues returns all EditorInterfaceSysType values.

func (*EditorInterfaceSysType) Decode added in v0.0.3

func (s *EditorInterfaceSysType) Decode(d *jx.Decoder) error

Decode decodes EditorInterfaceSysType from json.

func (EditorInterfaceSysType) Encode added in v0.0.3

func (s EditorInterfaceSysType) Encode(e *jx.Encoder)

Encode encodes EditorInterfaceSysType as json.

func (EditorInterfaceSysType) MarshalJSON added in v0.0.3

func (s EditorInterfaceSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditorInterfaceSysType) MarshalText added in v0.0.3

func (s EditorInterfaceSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditorInterfaceSysType) UnmarshalJSON added in v0.0.3

func (s *EditorInterfaceSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditorInterfaceSysType) UnmarshalText added in v0.0.3

func (s *EditorInterfaceSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditorInterfaceSysType) Validate added in v0.0.3

func (s EditorInterfaceSysType) Validate() error
type EnvironmentLink struct {
	Sys EnvironmentLinkSys `json:"sys"`
}

Ref: #/components/schemas/EnvironmentLink

func (*EnvironmentLink) Decode added in v0.0.10

func (s *EnvironmentLink) Decode(d *jx.Decoder) error

Decode decodes EnvironmentLink from json.

func (*EnvironmentLink) Encode added in v0.0.10

func (s *EnvironmentLink) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EnvironmentLink) GetSys added in v0.0.10

func (s *EnvironmentLink) GetSys() EnvironmentLinkSys

GetSys returns the value of Sys.

func (*EnvironmentLink) MarshalJSON added in v0.0.10

func (s *EnvironmentLink) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnvironmentLink) SetSys added in v0.0.10

func (s *EnvironmentLink) SetSys(val EnvironmentLinkSys)

SetSys sets the value of Sys.

func (*EnvironmentLink) UnmarshalJSON added in v0.0.10

func (s *EnvironmentLink) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EnvironmentLink) Validate added in v0.0.10

func (s *EnvironmentLink) Validate() error

type EnvironmentLinkSys added in v0.0.10

type EnvironmentLinkSys struct {
	// Merged property.
	Type EnvironmentLinkSysType `json:"type"`
	ID   string                 `json:"id"`
	// Merged property.
	LinkType EnvironmentLinkSysLinkType `json:"linkType"`
}

Merged schema.

func (*EnvironmentLinkSys) Decode added in v0.0.10

func (s *EnvironmentLinkSys) Decode(d *jx.Decoder) error

Decode decodes EnvironmentLinkSys from json.

func (*EnvironmentLinkSys) Encode added in v0.0.10

func (s *EnvironmentLinkSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EnvironmentLinkSys) GetID added in v0.0.10

func (s *EnvironmentLinkSys) GetID() string

GetID returns the value of ID.

func (*EnvironmentLinkSys) GetLinkType added in v0.0.10

GetLinkType returns the value of LinkType.

func (*EnvironmentLinkSys) GetType added in v0.0.10

GetType returns the value of Type.

func (*EnvironmentLinkSys) MarshalJSON added in v0.0.10

func (s *EnvironmentLinkSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnvironmentLinkSys) SetID added in v0.0.10

func (s *EnvironmentLinkSys) SetID(val string)

SetID sets the value of ID.

func (*EnvironmentLinkSys) SetLinkType added in v0.0.10

func (s *EnvironmentLinkSys) SetLinkType(val EnvironmentLinkSysLinkType)

SetLinkType sets the value of LinkType.

func (*EnvironmentLinkSys) SetType added in v0.0.10

SetType sets the value of Type.

func (*EnvironmentLinkSys) UnmarshalJSON added in v0.0.10

func (s *EnvironmentLinkSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EnvironmentLinkSys) Validate added in v0.0.10

func (s *EnvironmentLinkSys) Validate() error

type EnvironmentLinkSysLinkType added in v0.0.10

type EnvironmentLinkSysLinkType string

Merged schema.

const (
	EnvironmentLinkSysLinkTypeEnvironment EnvironmentLinkSysLinkType = "Environment"
)

func (EnvironmentLinkSysLinkType) AllValues added in v0.0.10

AllValues returns all EnvironmentLinkSysLinkType values.

func (*EnvironmentLinkSysLinkType) Decode added in v0.0.10

Decode decodes EnvironmentLinkSysLinkType from json.

func (EnvironmentLinkSysLinkType) Encode added in v0.0.10

func (s EnvironmentLinkSysLinkType) Encode(e *jx.Encoder)

Encode encodes EnvironmentLinkSysLinkType as json.

func (EnvironmentLinkSysLinkType) MarshalJSON added in v0.0.10

func (s EnvironmentLinkSysLinkType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EnvironmentLinkSysLinkType) MarshalText added in v0.0.10

func (s EnvironmentLinkSysLinkType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EnvironmentLinkSysLinkType) UnmarshalJSON added in v0.0.10

func (s *EnvironmentLinkSysLinkType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EnvironmentLinkSysLinkType) UnmarshalText added in v0.0.10

func (s *EnvironmentLinkSysLinkType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EnvironmentLinkSysLinkType) Validate added in v0.0.10

func (s EnvironmentLinkSysLinkType) Validate() error

type EnvironmentLinkSysType added in v0.0.10

type EnvironmentLinkSysType string

Merged schema.

const (
	EnvironmentLinkSysTypeLink EnvironmentLinkSysType = "Link"
)

func (EnvironmentLinkSysType) AllValues added in v0.0.10

AllValues returns all EnvironmentLinkSysType values.

func (*EnvironmentLinkSysType) Decode added in v0.0.10

func (s *EnvironmentLinkSysType) Decode(d *jx.Decoder) error

Decode decodes EnvironmentLinkSysType from json.

func (EnvironmentLinkSysType) Encode added in v0.0.10

func (s EnvironmentLinkSysType) Encode(e *jx.Encoder)

Encode encodes EnvironmentLinkSysType as json.

func (EnvironmentLinkSysType) MarshalJSON added in v0.0.10

func (s EnvironmentLinkSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EnvironmentLinkSysType) MarshalText added in v0.0.10

func (s EnvironmentLinkSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EnvironmentLinkSysType) UnmarshalJSON added in v0.0.10

func (s *EnvironmentLinkSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EnvironmentLinkSysType) UnmarshalText added in v0.0.10

func (s *EnvironmentLinkSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EnvironmentLinkSysType) Validate added in v0.0.10

func (s EnvironmentLinkSysType) Validate() error

type Error

type Error struct {
	Sys     ErrorSys  `json:"sys"`
	Message OptString `json:"message"`
	Details jx.Raw    `json:"details"`
}

Merged schema. Ref: #/components/schemas/Error

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetDetails

func (s *Error) GetDetails() jx.Raw

GetDetails returns the value of Details.

func (*Error) GetMessage

func (s *Error) GetMessage() OptString

GetMessage returns the value of Message.

func (*Error) GetSys

func (s *Error) GetSys() ErrorSys

GetSys returns the value of Sys.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetDetails

func (s *Error) SetDetails(val jx.Raw)

SetDetails sets the value of Details.

func (*Error) SetMessage

func (s *Error) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*Error) SetSys

func (s *Error) SetSys(val ErrorSys)

SetSys sets the value of Sys.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Error) Validate

func (s *Error) Validate() error

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

ErrorStatusCode wraps Error with StatusCode.

func (*ErrorStatusCode) GetResponse

func (s *ErrorStatusCode) GetResponse() Error

GetResponse returns the value of Response.

func (*ErrorStatusCode) GetStatusCode

func (s *ErrorStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorStatusCode) SetResponse

func (s *ErrorStatusCode) SetResponse(val Error)

SetResponse sets the value of Response.

func (*ErrorStatusCode) SetStatusCode

func (s *ErrorStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

func (*ErrorStatusCode) Validate

func (s *ErrorStatusCode) Validate() error

type ErrorSys

type ErrorSys struct {
	Type ErrorSysType `json:"type"`
	ID   string       `json:"id"`
}

Ref: #/components/schemas/ErrorSys

func (*ErrorSys) Decode

func (s *ErrorSys) Decode(d *jx.Decoder) error

Decode decodes ErrorSys from json.

func (*ErrorSys) Encode

func (s *ErrorSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorSys) GetID

func (s *ErrorSys) GetID() string

GetID returns the value of ID.

func (*ErrorSys) GetType

func (s *ErrorSys) GetType() ErrorSysType

GetType returns the value of Type.

func (*ErrorSys) MarshalJSON

func (s *ErrorSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorSys) SetID

func (s *ErrorSys) SetID(val string)

SetID sets the value of ID.

func (*ErrorSys) SetType

func (s *ErrorSys) SetType(val ErrorSysType)

SetType sets the value of Type.

func (*ErrorSys) UnmarshalJSON

func (s *ErrorSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ErrorSys) Validate

func (s *ErrorSys) Validate() error

type ErrorSysType

type ErrorSysType string
const (
	ErrorSysTypeError ErrorSysType = "Error"
)

func (ErrorSysType) AllValues

func (ErrorSysType) AllValues() []ErrorSysType

AllValues returns all ErrorSysType values.

func (*ErrorSysType) Decode

func (s *ErrorSysType) Decode(d *jx.Decoder) error

Decode decodes ErrorSysType from json.

func (ErrorSysType) Encode

func (s ErrorSysType) Encode(e *jx.Encoder)

Encode encodes ErrorSysType as json.

func (ErrorSysType) MarshalJSON

func (s ErrorSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ErrorSysType) MarshalText

func (s ErrorSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ErrorSysType) UnmarshalJSON

func (s *ErrorSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ErrorSysType) UnmarshalText

func (s *ErrorSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ErrorSysType) Validate

func (s ErrorSysType) Validate() error

type GetAppInstallationParams

type GetAppInstallationParams struct {
	SpaceID         string
	EnvironmentID   string
	AppDefinitionID string
}

GetAppInstallationParams is parameters of getAppInstallation operation.

type GetAppInstallationRes

type GetAppInstallationRes interface {
	// contains filtered or unexported methods
}

type GetAuthenticatedUserRes

type GetAuthenticatedUserRes interface {
	// contains filtered or unexported methods
}

type GetContentTypeParams added in v0.0.5

type GetContentTypeParams struct {
	SpaceID       string
	EnvironmentID string
	ContentTypeID string
}

GetContentTypeParams is parameters of getContentType operation.

type GetContentTypeRes added in v0.0.5

type GetContentTypeRes interface {
	// contains filtered or unexported methods
}

type GetDeliveryApiKeyParams added in v0.0.12

type GetDeliveryApiKeyParams struct {
	SpaceID  string
	APIKeyID string
}

GetDeliveryApiKeyParams is parameters of getDeliveryApiKey operation.

type GetDeliveryApiKeyRes added in v0.0.12

type GetDeliveryApiKeyRes interface {
	// contains filtered or unexported methods
}

type GetEditorInterfaceParams added in v0.0.3

type GetEditorInterfaceParams struct {
	SpaceID       string
	EnvironmentID string
	ContentTypeID string
}

GetEditorInterfaceParams is parameters of getEditorInterface operation.

type GetEditorInterfaceRes added in v0.0.3

type GetEditorInterfaceRes interface {
	// contains filtered or unexported methods
}

type GetPersonalAccessTokenParams added in v0.0.12

type GetPersonalAccessTokenParams struct {
	AccessTokenID string
}

GetPersonalAccessTokenParams is parameters of getPersonalAccessToken operation.

type GetPersonalAccessTokenRes added in v0.0.12

type GetPersonalAccessTokenRes interface {
	// contains filtered or unexported methods
}

type GetPreviewApiKeyParams added in v0.0.10

type GetPreviewApiKeyParams struct {
	SpaceID         string
	PreviewAPIKeyID string
}

GetPreviewApiKeyParams is parameters of getPreviewApiKey operation.

type GetPreviewApiKeyRes added in v0.0.10

type GetPreviewApiKeyRes interface {
	// contains filtered or unexported methods
}

type Invoker

type Invoker interface {
	// ActivateContentType invokes activateContentType operation.
	//
	// Activate a content type.
	//
	// PUT /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/published
	ActivateContentType(ctx context.Context, params ActivateContentTypeParams) (ActivateContentTypeRes, error)
	// CreateDeliveryApiKey invokes createDeliveryApiKey operation.
	//
	// Create a delivery api key.
	//
	// POST /spaces/{space_id}/api_keys
	CreateDeliveryApiKey(ctx context.Context, request *CreateDeliveryApiKeyReq, params CreateDeliveryApiKeyParams) (CreateDeliveryApiKeyRes, error)
	// CreatePersonalAccessToken invokes createPersonalAccessToken operation.
	//
	// Create a personal access token.
	//
	// POST /users/me/access_tokens
	CreatePersonalAccessToken(ctx context.Context, request *CreatePersonalAccessTokenReq) (CreatePersonalAccessTokenRes, error)
	// DeactivateContentType invokes deactivateContentType operation.
	//
	// Deactivate a content type.
	//
	// DELETE /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/published
	DeactivateContentType(ctx context.Context, params DeactivateContentTypeParams) (DeactivateContentTypeRes, error)
	// DeleteAppInstallation invokes deleteAppInstallation operation.
	//
	// Uninstall an app.
	//
	// DELETE /spaces/{space_id}/environments/{environment_id}/app_installations/{app_definition_id}
	DeleteAppInstallation(ctx context.Context, params DeleteAppInstallationParams) (DeleteAppInstallationRes, error)
	// DeleteContentType invokes deleteContentType operation.
	//
	// Delete a content type.
	//
	// DELETE /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}
	DeleteContentType(ctx context.Context, params DeleteContentTypeParams) (DeleteContentTypeRes, error)
	// DeleteDeliveryApiKey invokes deleteDeliveryApiKey operation.
	//
	// Delete a single delivery api key.
	//
	// DELETE /spaces/{space_id}/api_keys/{api_key_id}
	DeleteDeliveryApiKey(ctx context.Context, params DeleteDeliveryApiKeyParams) (DeleteDeliveryApiKeyRes, error)
	// GetAppInstallation invokes getAppInstallation operation.
	//
	// Get one app installation.
	//
	// GET /spaces/{space_id}/environments/{environment_id}/app_installations/{app_definition_id}
	GetAppInstallation(ctx context.Context, params GetAppInstallationParams) (GetAppInstallationRes, error)
	// GetAuthenticatedUser invokes getAuthenticatedUser operation.
	//
	// Get the authenticated user.
	//
	// GET /users/me
	GetAuthenticatedUser(ctx context.Context) (GetAuthenticatedUserRes, error)
	// GetContentType invokes getContentType operation.
	//
	// Get a content type.
	//
	// GET /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}
	GetContentType(ctx context.Context, params GetContentTypeParams) (GetContentTypeRes, error)
	// GetDeliveryApiKey invokes getDeliveryApiKey operation.
	//
	// Get a single delivery api key.
	//
	// GET /spaces/{space_id}/api_keys/{api_key_id}
	GetDeliveryApiKey(ctx context.Context, params GetDeliveryApiKeyParams) (GetDeliveryApiKeyRes, error)
	// GetEditorInterface invokes getEditorInterface operation.
	//
	// Get the editor interface for a content type.
	//
	// GET /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/editor_interface
	GetEditorInterface(ctx context.Context, params GetEditorInterfaceParams) (GetEditorInterfaceRes, error)
	// GetPersonalAccessToken invokes getPersonalAccessToken operation.
	//
	// Get a single personal access token.
	//
	// GET /users/me/access_tokens/{access_token_id}
	GetPersonalAccessToken(ctx context.Context, params GetPersonalAccessTokenParams) (GetPersonalAccessTokenRes, error)
	// GetPreviewApiKey invokes getPreviewApiKey operation.
	//
	// Get a single preview api key.
	//
	// GET /spaces/{space_id}/preview_api_keys/{preview_api_key_id}
	GetPreviewApiKey(ctx context.Context, params GetPreviewApiKeyParams) (GetPreviewApiKeyRes, error)
	// PutAppInstallation invokes putAppInstallation operation.
	//
	// Install or update an app.
	//
	// PUT /spaces/{space_id}/environments/{environment_id}/app_installations/{app_definition_id}
	PutAppInstallation(ctx context.Context, request *PutAppInstallationReq, params PutAppInstallationParams) (PutAppInstallationRes, error)
	// PutContentType invokes putContentType operation.
	//
	// Update a content type.
	//
	// PUT /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}
	PutContentType(ctx context.Context, request *PutContentTypeReq, params PutContentTypeParams) (PutContentTypeRes, error)
	// PutEditorInterface invokes putEditorInterface operation.
	//
	// Update the editor interface for a content type.
	//
	// PUT /spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}/editor_interface
	PutEditorInterface(ctx context.Context, request *PutEditorInterfaceReq, params PutEditorInterfaceParams) (PutEditorInterfaceRes, error)
	// RevokePersonalAccessToken invokes revokePersonalAccessToken operation.
	//
	// Revoke a personal access token.
	//
	// PUT /users/me/access_tokens/{access_token_id}/revoked
	RevokePersonalAccessToken(ctx context.Context, params RevokePersonalAccessTokenParams) (RevokePersonalAccessTokenRes, error)
	// UpdateDeliveryApiKey invokes updateDeliveryApiKey operation.
	//
	// Update a single delivery api key.
	//
	// PUT /spaces/{space_id}/api_keys/{api_key_id}
	UpdateDeliveryApiKey(ctx context.Context, request *UpdateDeliveryApiKeyReq, params UpdateDeliveryApiKeyParams) (UpdateDeliveryApiKeyRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type NilString added in v0.0.7

type NilString struct {
	Value string
	Null  bool
}

NilString is nullable string.

func NewNilString added in v0.0.7

func NewNilString(v string) NilString

NewNilString returns new NilString with value set to v.

func (*NilString) Decode added in v0.0.7

func (o *NilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (NilString) Encode added in v0.0.7

func (o NilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (NilString) Get added in v0.0.7

func (o NilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilString) IsNull added in v0.0.7

func (o NilString) IsNull() bool

IsSet returns true if value is Null.

func (NilString) MarshalJSON added in v0.0.7

func (s NilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilString) Or added in v0.0.7

func (o NilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*NilString) SetTo added in v0.0.7

func (o *NilString) SetTo(v string)

SetTo sets value to v.

func (*NilString) SetToNull added in v0.0.7

func (o *NilString) SetToNull()

SetNull sets value to null.

func (*NilString) UnmarshalJSON added in v0.0.7

func (s *NilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NoContent

type NoContent struct{}

Ref: #/components/responses/no-content

type OptApiKeyPreviewAPIKey added in v0.0.10

type OptApiKeyPreviewAPIKey struct {
	Value ApiKeyPreviewAPIKey
	Set   bool
}

OptApiKeyPreviewAPIKey is optional ApiKeyPreviewAPIKey.

func NewOptApiKeyPreviewAPIKey added in v0.0.10

func NewOptApiKeyPreviewAPIKey(v ApiKeyPreviewAPIKey) OptApiKeyPreviewAPIKey

NewOptApiKeyPreviewAPIKey returns new OptApiKeyPreviewAPIKey with value set to v.

func (*OptApiKeyPreviewAPIKey) Decode added in v0.0.10

func (o *OptApiKeyPreviewAPIKey) Decode(d *jx.Decoder) error

Decode decodes ApiKeyPreviewAPIKey from json.

func (OptApiKeyPreviewAPIKey) Encode added in v0.0.10

func (o OptApiKeyPreviewAPIKey) Encode(e *jx.Encoder)

Encode encodes ApiKeyPreviewAPIKey as json.

func (OptApiKeyPreviewAPIKey) Get added in v0.0.10

Get returns value and boolean that denotes whether value was set.

func (OptApiKeyPreviewAPIKey) IsSet added in v0.0.10

func (o OptApiKeyPreviewAPIKey) IsSet() bool

IsSet returns true if OptApiKeyPreviewAPIKey was set.

func (OptApiKeyPreviewAPIKey) MarshalJSON added in v0.0.10

func (s OptApiKeyPreviewAPIKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptApiKeyPreviewAPIKey) Or added in v0.0.10

Or returns value if set, or given parameter if does not.

func (*OptApiKeyPreviewAPIKey) Reset added in v0.0.10

func (o *OptApiKeyPreviewAPIKey) Reset()

Reset unsets value.

func (*OptApiKeyPreviewAPIKey) SetTo added in v0.0.10

SetTo sets value to v.

func (*OptApiKeyPreviewAPIKey) UnmarshalJSON added in v0.0.10

func (s *OptApiKeyPreviewAPIKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAppInstallationParameters

type OptAppInstallationParameters struct {
	Value AppInstallationParameters
	Set   bool
}

OptAppInstallationParameters is optional AppInstallationParameters.

func NewOptAppInstallationParameters

func NewOptAppInstallationParameters(v AppInstallationParameters) OptAppInstallationParameters

NewOptAppInstallationParameters returns new OptAppInstallationParameters with value set to v.

func (*OptAppInstallationParameters) Decode

Decode decodes AppInstallationParameters from json.

func (OptAppInstallationParameters) Encode

Encode encodes AppInstallationParameters as json.

func (OptAppInstallationParameters) Get

Get returns value and boolean that denotes whether value was set.

func (OptAppInstallationParameters) IsSet

IsSet returns true if OptAppInstallationParameters was set.

func (OptAppInstallationParameters) MarshalJSON

func (s OptAppInstallationParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAppInstallationParameters) Or

Or returns value if set, or given parameter if does not.

func (*OptAppInstallationParameters) Reset

func (o *OptAppInstallationParameters) Reset()

Reset unsets value.

func (*OptAppInstallationParameters) SetTo

SetTo sets value to v.

func (*OptAppInstallationParameters) UnmarshalJSON

func (s *OptAppInstallationParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool added in v0.0.3

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool added in v0.0.3

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func NewOptPointerBool added in v0.0.5

func NewOptPointerBool(value *bool) OptBool

func (*OptBool) Decode added in v0.0.3

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode added in v0.0.3

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get added in v0.0.3

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet added in v0.0.3

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON added in v0.0.3

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or added in v0.0.3

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset added in v0.0.3

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo added in v0.0.3

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON added in v0.0.3

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OptBool) ValueBoolPointer added in v0.0.5

func (v *OptBool) ValueBoolPointer() *bool

type OptContentTypeFieldsItemItems added in v0.0.5

type OptContentTypeFieldsItemItems struct {
	Value ContentTypeFieldsItemItems
	Set   bool
}

OptContentTypeFieldsItemItems is optional ContentTypeFieldsItemItems.

func NewOptContentTypeFieldsItemItems added in v0.0.5

func NewOptContentTypeFieldsItemItems(v ContentTypeFieldsItemItems) OptContentTypeFieldsItemItems

NewOptContentTypeFieldsItemItems returns new OptContentTypeFieldsItemItems with value set to v.

func (*OptContentTypeFieldsItemItems) Decode added in v0.0.5

Decode decodes ContentTypeFieldsItemItems from json.

func (OptContentTypeFieldsItemItems) Encode added in v0.0.5

Encode encodes ContentTypeFieldsItemItems as json.

func (OptContentTypeFieldsItemItems) Get added in v0.0.5

Get returns value and boolean that denotes whether value was set.

func (OptContentTypeFieldsItemItems) IsSet added in v0.0.5

IsSet returns true if OptContentTypeFieldsItemItems was set.

func (OptContentTypeFieldsItemItems) MarshalJSON added in v0.0.5

func (s OptContentTypeFieldsItemItems) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptContentTypeFieldsItemItems) Or added in v0.0.5

Or returns value if set, or given parameter if does not.

func (*OptContentTypeFieldsItemItems) Reset added in v0.0.5

func (o *OptContentTypeFieldsItemItems) Reset()

Reset unsets value.

func (*OptContentTypeFieldsItemItems) SetTo added in v0.0.5

SetTo sets value to v.

func (*OptContentTypeFieldsItemItems) UnmarshalJSON added in v0.0.5

func (s *OptContentTypeFieldsItemItems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditorInterfaceControlsItemSettings added in v0.0.3

type OptEditorInterfaceControlsItemSettings struct {
	Value EditorInterfaceControlsItemSettings
	Set   bool
}

OptEditorInterfaceControlsItemSettings is optional EditorInterfaceControlsItemSettings.

func NewOptEditorInterfaceControlsItemSettings added in v0.0.3

func NewOptEditorInterfaceControlsItemSettings(v EditorInterfaceControlsItemSettings) OptEditorInterfaceControlsItemSettings

NewOptEditorInterfaceControlsItemSettings returns new OptEditorInterfaceControlsItemSettings with value set to v.

func (*OptEditorInterfaceControlsItemSettings) Decode added in v0.0.3

Decode decodes EditorInterfaceControlsItemSettings from json.

func (OptEditorInterfaceControlsItemSettings) Encode added in v0.0.3

Encode encodes EditorInterfaceControlsItemSettings as json.

func (OptEditorInterfaceControlsItemSettings) Get added in v0.0.3

Get returns value and boolean that denotes whether value was set.

func (OptEditorInterfaceControlsItemSettings) IsSet added in v0.0.3

IsSet returns true if OptEditorInterfaceControlsItemSettings was set.

func (OptEditorInterfaceControlsItemSettings) MarshalJSON added in v0.0.3

func (s OptEditorInterfaceControlsItemSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditorInterfaceControlsItemSettings) Or added in v0.0.3

Or returns value if set, or given parameter if does not.

func (*OptEditorInterfaceControlsItemSettings) Reset added in v0.0.3

Reset unsets value.

func (*OptEditorInterfaceControlsItemSettings) SetTo added in v0.0.3

SetTo sets value to v.

func (*OptEditorInterfaceControlsItemSettings) UnmarshalJSON added in v0.0.3

func (s *OptEditorInterfaceControlsItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditorInterfaceSidebarItemSettings added in v0.0.3

type OptEditorInterfaceSidebarItemSettings struct {
	Value EditorInterfaceSidebarItemSettings
	Set   bool
}

OptEditorInterfaceSidebarItemSettings is optional EditorInterfaceSidebarItemSettings.

func NewOptEditorInterfaceSidebarItemSettings added in v0.0.3

func NewOptEditorInterfaceSidebarItemSettings(v EditorInterfaceSidebarItemSettings) OptEditorInterfaceSidebarItemSettings

NewOptEditorInterfaceSidebarItemSettings returns new OptEditorInterfaceSidebarItemSettings with value set to v.

func (*OptEditorInterfaceSidebarItemSettings) Decode added in v0.0.3

Decode decodes EditorInterfaceSidebarItemSettings from json.

func (OptEditorInterfaceSidebarItemSettings) Encode added in v0.0.3

Encode encodes EditorInterfaceSidebarItemSettings as json.

func (OptEditorInterfaceSidebarItemSettings) Get added in v0.0.3

Get returns value and boolean that denotes whether value was set.

func (OptEditorInterfaceSidebarItemSettings) IsSet added in v0.0.3

IsSet returns true if OptEditorInterfaceSidebarItemSettings was set.

func (OptEditorInterfaceSidebarItemSettings) MarshalJSON added in v0.0.3

func (s OptEditorInterfaceSidebarItemSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditorInterfaceSidebarItemSettings) Or added in v0.0.3

Or returns value if set, or given parameter if does not.

func (*OptEditorInterfaceSidebarItemSettings) Reset added in v0.0.3

Reset unsets value.

func (*OptEditorInterfaceSidebarItemSettings) SetTo added in v0.0.3

SetTo sets value to v.

func (*OptEditorInterfaceSidebarItemSettings) UnmarshalJSON added in v0.0.3

func (s *OptEditorInterfaceSidebarItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt added in v0.0.5

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt added in v0.0.5

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode added in v0.0.5

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode added in v0.0.5

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get added in v0.0.5

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet added in v0.0.5

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON added in v0.0.5

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or added in v0.0.5

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset added in v0.0.5

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo added in v0.0.5

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON added in v0.0.5

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDateTime added in v0.0.12

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime added in v0.0.12

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func NewOptNilDateTimeNull added in v0.0.12

func NewOptNilDateTimeNull() OptNilDateTime

func (*OptNilDateTime) Decode added in v0.0.12

func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDateTime) Encode added in v0.0.12

func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptNilDateTime) Get added in v0.0.12

func (o OptNilDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDateTime) IsNull added in v0.0.12

func (o OptNilDateTime) IsNull() bool

IsSet returns true if value is Null.

func (OptNilDateTime) IsSet added in v0.0.12

func (o OptNilDateTime) IsSet() bool

IsSet returns true if OptNilDateTime was set.

func (OptNilDateTime) MarshalJSON added in v0.0.12

func (s OptNilDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDateTime) Or added in v0.0.12

func (o OptNilDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDateTime) Reset added in v0.0.12

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetTo added in v0.0.12

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull added in v0.0.12

func (o *OptNilDateTime) SetToNull()

SetNull sets value to null.

func (*OptNilDateTime) UnmarshalJSON added in v0.0.12

func (s *OptNilDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OptNilDateTime) ValueTimePointer added in v0.0.12

func (v *OptNilDateTime) ValueTimePointer() *time.Time

type OptNilEditorInterfaceControlsItemArray added in v0.0.4

type OptNilEditorInterfaceControlsItemArray struct {
	Value []EditorInterfaceControlsItem
	Set   bool
	Null  bool
}

OptNilEditorInterfaceControlsItemArray is optional nullable []EditorInterfaceControlsItem.

func NewOptNilEditorInterfaceControlsItemArray added in v0.0.4

func NewOptNilEditorInterfaceControlsItemArray(v []EditorInterfaceControlsItem) OptNilEditorInterfaceControlsItemArray

NewOptNilEditorInterfaceControlsItemArray returns new OptNilEditorInterfaceControlsItemArray with value set to v.

func (*OptNilEditorInterfaceControlsItemArray) Decode added in v0.0.4

Decode decodes []EditorInterfaceControlsItem from json.

func (OptNilEditorInterfaceControlsItemArray) Encode added in v0.0.4

Encode encodes []EditorInterfaceControlsItem as json.

func (OptNilEditorInterfaceControlsItemArray) Get added in v0.0.4

Get returns value and boolean that denotes whether value was set.

func (OptNilEditorInterfaceControlsItemArray) IsNull added in v0.0.4

IsSet returns true if value is Null.

func (OptNilEditorInterfaceControlsItemArray) IsSet added in v0.0.4

IsSet returns true if OptNilEditorInterfaceControlsItemArray was set.

func (OptNilEditorInterfaceControlsItemArray) MarshalJSON added in v0.0.4

func (s OptNilEditorInterfaceControlsItemArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEditorInterfaceControlsItemArray) Or added in v0.0.4

Or returns value if set, or given parameter if does not.

func (*OptNilEditorInterfaceControlsItemArray) Reset added in v0.0.4

Reset unsets value.

func (*OptNilEditorInterfaceControlsItemArray) SetTo added in v0.0.4

SetTo sets value to v.

func (*OptNilEditorInterfaceControlsItemArray) SetToNull added in v0.0.4

SetNull sets value to null.

func (*OptNilEditorInterfaceControlsItemArray) UnmarshalJSON added in v0.0.4

func (s *OptNilEditorInterfaceControlsItemArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilEditorInterfaceSidebarItemArray added in v0.0.4

type OptNilEditorInterfaceSidebarItemArray struct {
	Value []EditorInterfaceSidebarItem
	Set   bool
	Null  bool
}

OptNilEditorInterfaceSidebarItemArray is optional nullable []EditorInterfaceSidebarItem.

func NewOptNilEditorInterfaceSidebarItemArray added in v0.0.4

func NewOptNilEditorInterfaceSidebarItemArray(v []EditorInterfaceSidebarItem) OptNilEditorInterfaceSidebarItemArray

NewOptNilEditorInterfaceSidebarItemArray returns new OptNilEditorInterfaceSidebarItemArray with value set to v.

func (*OptNilEditorInterfaceSidebarItemArray) Decode added in v0.0.4

Decode decodes []EditorInterfaceSidebarItem from json.

func (OptNilEditorInterfaceSidebarItemArray) Encode added in v0.0.4

Encode encodes []EditorInterfaceSidebarItem as json.

func (OptNilEditorInterfaceSidebarItemArray) Get added in v0.0.4

Get returns value and boolean that denotes whether value was set.

func (OptNilEditorInterfaceSidebarItemArray) IsNull added in v0.0.4

IsSet returns true if value is Null.

func (OptNilEditorInterfaceSidebarItemArray) IsSet added in v0.0.4

IsSet returns true if OptNilEditorInterfaceSidebarItemArray was set.

func (OptNilEditorInterfaceSidebarItemArray) MarshalJSON added in v0.0.4

func (s OptNilEditorInterfaceSidebarItemArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEditorInterfaceSidebarItemArray) Or added in v0.0.4

Or returns value if set, or given parameter if does not.

func (*OptNilEditorInterfaceSidebarItemArray) Reset added in v0.0.4

Reset unsets value.

func (*OptNilEditorInterfaceSidebarItemArray) SetTo added in v0.0.4

SetTo sets value to v.

func (*OptNilEditorInterfaceSidebarItemArray) SetToNull added in v0.0.4

SetNull sets value to null.

func (*OptNilEditorInterfaceSidebarItemArray) UnmarshalJSON added in v0.0.4

func (s *OptNilEditorInterfaceSidebarItemArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt added in v0.0.12

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt added in v0.0.12

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func NewOptNilIntNull added in v0.0.12

func NewOptNilIntNull() OptNilInt

func NewOptNilPointerInt added in v0.0.12

func NewOptNilPointerInt(value *int) OptNilInt

func NewOptNilPointerInt64 added in v0.0.12

func NewOptNilPointerInt64(value *int64) OptNilInt

func (*OptNilInt) Decode added in v0.0.12

func (o *OptNilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptNilInt) Encode added in v0.0.12

func (o OptNilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptNilInt) Get added in v0.0.12

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsNull added in v0.0.12

func (o OptNilInt) IsNull() bool

IsSet returns true if value is Null.

func (OptNilInt) IsSet added in v0.0.12

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) MarshalJSON added in v0.0.12

func (s OptNilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt) Or added in v0.0.12

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset added in v0.0.12

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo added in v0.0.12

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull added in v0.0.12

func (o *OptNilInt) SetToNull()

SetNull sets value to null.

func (*OptNilInt) UnmarshalJSON added in v0.0.12

func (s *OptNilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OptNilInt) ValueInt64Pointer added in v0.0.12

func (v *OptNilInt) ValueInt64Pointer() *int64

func (*OptNilInt) ValueIntPointer added in v0.0.12

func (v *OptNilInt) ValueIntPointer() *int

type OptNilPutEditorInterfaceReqControlsItemArray added in v0.0.4

type OptNilPutEditorInterfaceReqControlsItemArray struct {
	Value []PutEditorInterfaceReqControlsItem
	Set   bool
	Null  bool
}

OptNilPutEditorInterfaceReqControlsItemArray is optional nullable []PutEditorInterfaceReqControlsItem.

func NewOptNilPutEditorInterfaceReqControlsItemArray added in v0.0.4

func NewOptNilPutEditorInterfaceReqControlsItemArray(v []PutEditorInterfaceReqControlsItem) OptNilPutEditorInterfaceReqControlsItemArray

NewOptNilPutEditorInterfaceReqControlsItemArray returns new OptNilPutEditorInterfaceReqControlsItemArray with value set to v.

func (*OptNilPutEditorInterfaceReqControlsItemArray) Decode added in v0.0.4

Decode decodes []PutEditorInterfaceReqControlsItem from json.

func (OptNilPutEditorInterfaceReqControlsItemArray) Encode added in v0.0.4

Encode encodes []PutEditorInterfaceReqControlsItem as json.

func (OptNilPutEditorInterfaceReqControlsItemArray) Get added in v0.0.4

Get returns value and boolean that denotes whether value was set.

func (OptNilPutEditorInterfaceReqControlsItemArray) IsNull added in v0.0.4

IsSet returns true if value is Null.

func (OptNilPutEditorInterfaceReqControlsItemArray) IsSet added in v0.0.4

IsSet returns true if OptNilPutEditorInterfaceReqControlsItemArray was set.

func (OptNilPutEditorInterfaceReqControlsItemArray) MarshalJSON added in v0.0.4

MarshalJSON implements stdjson.Marshaler.

func (OptNilPutEditorInterfaceReqControlsItemArray) Or added in v0.0.4

Or returns value if set, or given parameter if does not.

func (*OptNilPutEditorInterfaceReqControlsItemArray) Reset added in v0.0.4

Reset unsets value.

func (*OptNilPutEditorInterfaceReqControlsItemArray) SetTo added in v0.0.4

SetTo sets value to v.

func (*OptNilPutEditorInterfaceReqControlsItemArray) SetToNull added in v0.0.4

SetNull sets value to null.

func (*OptNilPutEditorInterfaceReqControlsItemArray) UnmarshalJSON added in v0.0.4

func (s *OptNilPutEditorInterfaceReqControlsItemArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilPutEditorInterfaceReqSidebarItemArray added in v0.0.4

type OptNilPutEditorInterfaceReqSidebarItemArray struct {
	Value []PutEditorInterfaceReqSidebarItem
	Set   bool
	Null  bool
}

OptNilPutEditorInterfaceReqSidebarItemArray is optional nullable []PutEditorInterfaceReqSidebarItem.

func NewOptNilPutEditorInterfaceReqSidebarItemArray added in v0.0.4

func NewOptNilPutEditorInterfaceReqSidebarItemArray(v []PutEditorInterfaceReqSidebarItem) OptNilPutEditorInterfaceReqSidebarItemArray

NewOptNilPutEditorInterfaceReqSidebarItemArray returns new OptNilPutEditorInterfaceReqSidebarItemArray with value set to v.

func (*OptNilPutEditorInterfaceReqSidebarItemArray) Decode added in v0.0.4

Decode decodes []PutEditorInterfaceReqSidebarItem from json.

func (OptNilPutEditorInterfaceReqSidebarItemArray) Encode added in v0.0.4

Encode encodes []PutEditorInterfaceReqSidebarItem as json.

func (OptNilPutEditorInterfaceReqSidebarItemArray) Get added in v0.0.4

Get returns value and boolean that denotes whether value was set.

func (OptNilPutEditorInterfaceReqSidebarItemArray) IsNull added in v0.0.4

IsSet returns true if value is Null.

func (OptNilPutEditorInterfaceReqSidebarItemArray) IsSet added in v0.0.4

IsSet returns true if OptNilPutEditorInterfaceReqSidebarItemArray was set.

func (OptNilPutEditorInterfaceReqSidebarItemArray) MarshalJSON added in v0.0.4

MarshalJSON implements stdjson.Marshaler.

func (OptNilPutEditorInterfaceReqSidebarItemArray) Or added in v0.0.4

Or returns value if set, or given parameter if does not.

func (*OptNilPutEditorInterfaceReqSidebarItemArray) Reset added in v0.0.4

Reset unsets value.

func (*OptNilPutEditorInterfaceReqSidebarItemArray) SetTo added in v0.0.4

SetTo sets value to v.

func (*OptNilPutEditorInterfaceReqSidebarItemArray) SetToNull added in v0.0.4

SetNull sets value to null.

func (*OptNilPutEditorInterfaceReqSidebarItemArray) UnmarshalJSON added in v0.0.4

func (s *OptNilPutEditorInterfaceReqSidebarItemArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString added in v0.0.10

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString added in v0.0.10

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func NewOptNilStringNull added in v0.0.10

func NewOptNilStringNull() OptNilString

func (*OptNilString) Decode added in v0.0.10

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode added in v0.0.10

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get added in v0.0.10

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull added in v0.0.10

func (o OptNilString) IsNull() bool

IsSet returns true if value is Null.

func (OptNilString) IsSet added in v0.0.10

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON added in v0.0.10

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or added in v0.0.10

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset added in v0.0.10

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo added in v0.0.10

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull added in v0.0.10

func (o *OptNilString) SetToNull()

SetNull sets value to null.

func (*OptNilString) UnmarshalJSON added in v0.0.10

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OptNilString) ValueStringPointer added in v0.0.10

func (v *OptNilString) ValueStringPointer() *string

type OptPutAppInstallationReqParameters

type OptPutAppInstallationReqParameters struct {
	Value PutAppInstallationReqParameters
	Set   bool
}

OptPutAppInstallationReqParameters is optional PutAppInstallationReqParameters.

func NewOptPutAppInstallationReqParameters

func NewOptPutAppInstallationReqParameters(v PutAppInstallationReqParameters) OptPutAppInstallationReqParameters

NewOptPutAppInstallationReqParameters returns new OptPutAppInstallationReqParameters with value set to v.

func (*OptPutAppInstallationReqParameters) Decode

Decode decodes PutAppInstallationReqParameters from json.

func (OptPutAppInstallationReqParameters) Encode

Encode encodes PutAppInstallationReqParameters as json.

func (OptPutAppInstallationReqParameters) Get

Get returns value and boolean that denotes whether value was set.

func (OptPutAppInstallationReqParameters) IsSet

IsSet returns true if OptPutAppInstallationReqParameters was set.

func (OptPutAppInstallationReqParameters) MarshalJSON

func (s OptPutAppInstallationReqParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPutAppInstallationReqParameters) Or

Or returns value if set, or given parameter if does not.

func (*OptPutAppInstallationReqParameters) Reset

Reset unsets value.

func (*OptPutAppInstallationReqParameters) SetTo

SetTo sets value to v.

func (*OptPutAppInstallationReqParameters) UnmarshalJSON

func (s *OptPutAppInstallationReqParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPutContentTypeReqFieldsItemItems added in v0.0.5

type OptPutContentTypeReqFieldsItemItems struct {
	Value PutContentTypeReqFieldsItemItems
	Set   bool
}

OptPutContentTypeReqFieldsItemItems is optional PutContentTypeReqFieldsItemItems.

func NewOptPutContentTypeReqFieldsItemItems added in v0.0.5

func NewOptPutContentTypeReqFieldsItemItems(v PutContentTypeReqFieldsItemItems) OptPutContentTypeReqFieldsItemItems

NewOptPutContentTypeReqFieldsItemItems returns new OptPutContentTypeReqFieldsItemItems with value set to v.

func (*OptPutContentTypeReqFieldsItemItems) Decode added in v0.0.5

Decode decodes PutContentTypeReqFieldsItemItems from json.

func (OptPutContentTypeReqFieldsItemItems) Encode added in v0.0.5

Encode encodes PutContentTypeReqFieldsItemItems as json.

func (OptPutContentTypeReqFieldsItemItems) Get added in v0.0.5

Get returns value and boolean that denotes whether value was set.

func (OptPutContentTypeReqFieldsItemItems) IsSet added in v0.0.5

IsSet returns true if OptPutContentTypeReqFieldsItemItems was set.

func (OptPutContentTypeReqFieldsItemItems) MarshalJSON added in v0.0.5

func (s OptPutContentTypeReqFieldsItemItems) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPutContentTypeReqFieldsItemItems) Or added in v0.0.5

Or returns value if set, or given parameter if does not.

func (*OptPutContentTypeReqFieldsItemItems) Reset added in v0.0.5

Reset unsets value.

func (*OptPutContentTypeReqFieldsItemItems) SetTo added in v0.0.5

SetTo sets value to v.

func (*OptPutContentTypeReqFieldsItemItems) UnmarshalJSON added in v0.0.5

func (s *OptPutContentTypeReqFieldsItemItems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPutEditorInterfaceReqControlsItemSettings added in v0.0.3

type OptPutEditorInterfaceReqControlsItemSettings struct {
	Value PutEditorInterfaceReqControlsItemSettings
	Set   bool
}

OptPutEditorInterfaceReqControlsItemSettings is optional PutEditorInterfaceReqControlsItemSettings.

func NewOptPutEditorInterfaceReqControlsItemSettings added in v0.0.3

func NewOptPutEditorInterfaceReqControlsItemSettings(v PutEditorInterfaceReqControlsItemSettings) OptPutEditorInterfaceReqControlsItemSettings

NewOptPutEditorInterfaceReqControlsItemSettings returns new OptPutEditorInterfaceReqControlsItemSettings with value set to v.

func (*OptPutEditorInterfaceReqControlsItemSettings) Decode added in v0.0.3

Decode decodes PutEditorInterfaceReqControlsItemSettings from json.

func (OptPutEditorInterfaceReqControlsItemSettings) Encode added in v0.0.3

Encode encodes PutEditorInterfaceReqControlsItemSettings as json.

func (OptPutEditorInterfaceReqControlsItemSettings) Get added in v0.0.3

Get returns value and boolean that denotes whether value was set.

func (OptPutEditorInterfaceReqControlsItemSettings) IsSet added in v0.0.3

IsSet returns true if OptPutEditorInterfaceReqControlsItemSettings was set.

func (OptPutEditorInterfaceReqControlsItemSettings) MarshalJSON added in v0.0.3

MarshalJSON implements stdjson.Marshaler.

func (OptPutEditorInterfaceReqControlsItemSettings) Or added in v0.0.3

Or returns value if set, or given parameter if does not.

func (*OptPutEditorInterfaceReqControlsItemSettings) Reset added in v0.0.3

Reset unsets value.

func (*OptPutEditorInterfaceReqControlsItemSettings) SetTo added in v0.0.3

SetTo sets value to v.

func (*OptPutEditorInterfaceReqControlsItemSettings) UnmarshalJSON added in v0.0.3

func (s *OptPutEditorInterfaceReqControlsItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPutEditorInterfaceReqSidebarItemSettings added in v0.0.3

type OptPutEditorInterfaceReqSidebarItemSettings struct {
	Value PutEditorInterfaceReqSidebarItemSettings
	Set   bool
}

OptPutEditorInterfaceReqSidebarItemSettings is optional PutEditorInterfaceReqSidebarItemSettings.

func NewOptPutEditorInterfaceReqSidebarItemSettings added in v0.0.3

func NewOptPutEditorInterfaceReqSidebarItemSettings(v PutEditorInterfaceReqSidebarItemSettings) OptPutEditorInterfaceReqSidebarItemSettings

NewOptPutEditorInterfaceReqSidebarItemSettings returns new OptPutEditorInterfaceReqSidebarItemSettings with value set to v.

func (*OptPutEditorInterfaceReqSidebarItemSettings) Decode added in v0.0.3

Decode decodes PutEditorInterfaceReqSidebarItemSettings from json.

func (OptPutEditorInterfaceReqSidebarItemSettings) Encode added in v0.0.3

Encode encodes PutEditorInterfaceReqSidebarItemSettings as json.

func (OptPutEditorInterfaceReqSidebarItemSettings) Get added in v0.0.3

Get returns value and boolean that denotes whether value was set.

func (OptPutEditorInterfaceReqSidebarItemSettings) IsSet added in v0.0.3

IsSet returns true if OptPutEditorInterfaceReqSidebarItemSettings was set.

func (OptPutEditorInterfaceReqSidebarItemSettings) MarshalJSON added in v0.0.3

MarshalJSON implements stdjson.Marshaler.

func (OptPutEditorInterfaceReqSidebarItemSettings) Or added in v0.0.3

Or returns value if set, or given parameter if does not.

func (*OptPutEditorInterfaceReqSidebarItemSettings) Reset added in v0.0.3

Reset unsets value.

func (*OptPutEditorInterfaceReqSidebarItemSettings) SetTo added in v0.0.3

SetTo sets value to v.

func (*OptPutEditorInterfaceReqSidebarItemSettings) UnmarshalJSON added in v0.0.3

func (s *OptPutEditorInterfaceReqSidebarItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptPointerString added in v0.0.5

func NewOptPointerString(value *string) OptString

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OptString) ValueStringPointer added in v0.0.5

func (v *OptString) ValueStringPointer() *string

type Option

type Option interface {
	ClientOption
}

Option is config option.

type PersonalAccessToken added in v0.0.12

type PersonalAccessToken struct {
	Sys       PersonalAccessTokenSys `json:"sys"`
	Name      string                 `json:"name"`
	Scopes    []string               `json:"scopes"`
	Token     OptString              `json:"token"`
	RevokedAt OptNilDateTime         `json:"revokedAt"`
}

Merged schema. Ref: #/components/schemas/PersonalAccessToken

func (*PersonalAccessToken) Decode added in v0.0.12

func (s *PersonalAccessToken) Decode(d *jx.Decoder) error

Decode decodes PersonalAccessToken from json.

func (*PersonalAccessToken) Encode added in v0.0.12

func (s *PersonalAccessToken) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PersonalAccessToken) GetName added in v0.0.12

func (s *PersonalAccessToken) GetName() string

GetName returns the value of Name.

func (*PersonalAccessToken) GetRevokedAt added in v0.0.12

func (s *PersonalAccessToken) GetRevokedAt() OptNilDateTime

GetRevokedAt returns the value of RevokedAt.

func (*PersonalAccessToken) GetScopes added in v0.0.12

func (s *PersonalAccessToken) GetScopes() []string

GetScopes returns the value of Scopes.

func (*PersonalAccessToken) GetSys added in v0.0.12

GetSys returns the value of Sys.

func (*PersonalAccessToken) GetToken added in v0.0.12

func (s *PersonalAccessToken) GetToken() OptString

GetToken returns the value of Token.

func (*PersonalAccessToken) MarshalJSON added in v0.0.12

func (s *PersonalAccessToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PersonalAccessToken) SetName added in v0.0.12

func (s *PersonalAccessToken) SetName(val string)

SetName sets the value of Name.

func (*PersonalAccessToken) SetRevokedAt added in v0.0.12

func (s *PersonalAccessToken) SetRevokedAt(val OptNilDateTime)

SetRevokedAt sets the value of RevokedAt.

func (*PersonalAccessToken) SetScopes added in v0.0.12

func (s *PersonalAccessToken) SetScopes(val []string)

SetScopes sets the value of Scopes.

func (*PersonalAccessToken) SetSys added in v0.0.12

SetSys sets the value of Sys.

func (*PersonalAccessToken) SetToken added in v0.0.12

func (s *PersonalAccessToken) SetToken(val OptString)

SetToken sets the value of Token.

func (*PersonalAccessToken) UnmarshalJSON added in v0.0.12

func (s *PersonalAccessToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PersonalAccessToken) Validate added in v0.0.12

func (s *PersonalAccessToken) Validate() error

type PersonalAccessTokenSys added in v0.0.12

type PersonalAccessTokenSys struct {
	// Merged property.
	Type          PersonalAccessTokenSysType `json:"type"`
	ID            string                     `json:"id"`
	ExpiresAt     OptNilDateTime             `json:"expiresAt"`
	LastUsedAt    OptNilDateTime             `json:"lastUsedAt"`
	RedactedValue OptString                  `json:"redactedValue"`
}

Merged schema. Ref: #/components/schemas/PersonalAccessTokenSys

func (*PersonalAccessTokenSys) Decode added in v0.0.12

func (s *PersonalAccessTokenSys) Decode(d *jx.Decoder) error

Decode decodes PersonalAccessTokenSys from json.

func (*PersonalAccessTokenSys) Encode added in v0.0.12

func (s *PersonalAccessTokenSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PersonalAccessTokenSys) GetExpiresAt added in v0.0.12

func (s *PersonalAccessTokenSys) GetExpiresAt() OptNilDateTime

GetExpiresAt returns the value of ExpiresAt.

func (*PersonalAccessTokenSys) GetID added in v0.0.12

func (s *PersonalAccessTokenSys) GetID() string

GetID returns the value of ID.

func (*PersonalAccessTokenSys) GetLastUsedAt added in v0.0.12

func (s *PersonalAccessTokenSys) GetLastUsedAt() OptNilDateTime

GetLastUsedAt returns the value of LastUsedAt.

func (*PersonalAccessTokenSys) GetRedactedValue added in v0.0.12

func (s *PersonalAccessTokenSys) GetRedactedValue() OptString

GetRedactedValue returns the value of RedactedValue.

func (*PersonalAccessTokenSys) GetType added in v0.0.12

GetType returns the value of Type.

func (*PersonalAccessTokenSys) MarshalJSON added in v0.0.12

func (s *PersonalAccessTokenSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PersonalAccessTokenSys) SetExpiresAt added in v0.0.12

func (s *PersonalAccessTokenSys) SetExpiresAt(val OptNilDateTime)

SetExpiresAt sets the value of ExpiresAt.

func (*PersonalAccessTokenSys) SetID added in v0.0.12

func (s *PersonalAccessTokenSys) SetID(val string)

SetID sets the value of ID.

func (*PersonalAccessTokenSys) SetLastUsedAt added in v0.0.12

func (s *PersonalAccessTokenSys) SetLastUsedAt(val OptNilDateTime)

SetLastUsedAt sets the value of LastUsedAt.

func (*PersonalAccessTokenSys) SetRedactedValue added in v0.0.12

func (s *PersonalAccessTokenSys) SetRedactedValue(val OptString)

SetRedactedValue sets the value of RedactedValue.

func (*PersonalAccessTokenSys) SetType added in v0.0.12

SetType sets the value of Type.

func (*PersonalAccessTokenSys) UnmarshalJSON added in v0.0.12

func (s *PersonalAccessTokenSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PersonalAccessTokenSys) Validate added in v0.0.12

func (s *PersonalAccessTokenSys) Validate() error

type PersonalAccessTokenSysType added in v0.0.12

type PersonalAccessTokenSysType string

Merged schema.

const (
	PersonalAccessTokenSysTypePersonalAccessToken PersonalAccessTokenSysType = "PersonalAccessToken"
)

func (PersonalAccessTokenSysType) AllValues added in v0.0.12

AllValues returns all PersonalAccessTokenSysType values.

func (*PersonalAccessTokenSysType) Decode added in v0.0.12

Decode decodes PersonalAccessTokenSysType from json.

func (PersonalAccessTokenSysType) Encode added in v0.0.12

func (s PersonalAccessTokenSysType) Encode(e *jx.Encoder)

Encode encodes PersonalAccessTokenSysType as json.

func (PersonalAccessTokenSysType) MarshalJSON added in v0.0.12

func (s PersonalAccessTokenSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PersonalAccessTokenSysType) MarshalText added in v0.0.12

func (s PersonalAccessTokenSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PersonalAccessTokenSysType) UnmarshalJSON added in v0.0.12

func (s *PersonalAccessTokenSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PersonalAccessTokenSysType) UnmarshalText added in v0.0.12

func (s *PersonalAccessTokenSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PersonalAccessTokenSysType) Validate added in v0.0.12

func (s PersonalAccessTokenSysType) Validate() error

type PreviewApiKey added in v0.0.10

type PreviewApiKey struct {
	Sys          PreviewApiKeySys  `json:"sys"`
	Name         string            `json:"name"`
	Description  OptNilString      `json:"description"`
	AccessToken  string            `json:"accessToken"`
	Environments []EnvironmentLink `json:"environments"`
}

Merged schema. Ref: #/components/schemas/PreviewApiKey

func (*PreviewApiKey) Decode added in v0.0.10

func (s *PreviewApiKey) Decode(d *jx.Decoder) error

Decode decodes PreviewApiKey from json.

func (*PreviewApiKey) Encode added in v0.0.10

func (s *PreviewApiKey) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PreviewApiKey) GetAccessToken added in v0.0.10

func (s *PreviewApiKey) GetAccessToken() string

GetAccessToken returns the value of AccessToken.

func (*PreviewApiKey) GetDescription added in v0.0.10

func (s *PreviewApiKey) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*PreviewApiKey) GetEnvironments added in v0.0.10

func (s *PreviewApiKey) GetEnvironments() []EnvironmentLink

GetEnvironments returns the value of Environments.

func (*PreviewApiKey) GetName added in v0.0.10

func (s *PreviewApiKey) GetName() string

GetName returns the value of Name.

func (*PreviewApiKey) GetSys added in v0.0.10

func (s *PreviewApiKey) GetSys() PreviewApiKeySys

GetSys returns the value of Sys.

func (*PreviewApiKey) MarshalJSON added in v0.0.10

func (s *PreviewApiKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PreviewApiKey) SetAccessToken added in v0.0.10

func (s *PreviewApiKey) SetAccessToken(val string)

SetAccessToken sets the value of AccessToken.

func (*PreviewApiKey) SetDescription added in v0.0.10

func (s *PreviewApiKey) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*PreviewApiKey) SetEnvironments added in v0.0.10

func (s *PreviewApiKey) SetEnvironments(val []EnvironmentLink)

SetEnvironments sets the value of Environments.

func (*PreviewApiKey) SetName added in v0.0.10

func (s *PreviewApiKey) SetName(val string)

SetName sets the value of Name.

func (*PreviewApiKey) SetSys added in v0.0.10

func (s *PreviewApiKey) SetSys(val PreviewApiKeySys)

SetSys sets the value of Sys.

func (*PreviewApiKey) UnmarshalJSON added in v0.0.10

func (s *PreviewApiKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PreviewApiKey) Validate added in v0.0.10

func (s *PreviewApiKey) Validate() error

type PreviewApiKeySys added in v0.0.10

type PreviewApiKeySys struct {
	// Merged property.
	Type      PreviewApiKeySysType `json:"type"`
	ID        string               `json:"id"`
	Version   int                  `json:"version"`
	CreatedAt OptDateTime          `json:"createdAt"`
	UpdatedAt OptDateTime          `json:"updatedAt"`
}

Merged schema. Ref: #/components/schemas/PreviewApiKeySys

func (*PreviewApiKeySys) Decode added in v0.0.10

func (s *PreviewApiKeySys) Decode(d *jx.Decoder) error

Decode decodes PreviewApiKeySys from json.

func (*PreviewApiKeySys) Encode added in v0.0.10

func (s *PreviewApiKeySys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PreviewApiKeySys) GetCreatedAt added in v0.0.10

func (s *PreviewApiKeySys) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PreviewApiKeySys) GetID added in v0.0.10

func (s *PreviewApiKeySys) GetID() string

GetID returns the value of ID.

func (*PreviewApiKeySys) GetType added in v0.0.10

GetType returns the value of Type.

func (*PreviewApiKeySys) GetUpdatedAt added in v0.0.10

func (s *PreviewApiKeySys) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PreviewApiKeySys) GetVersion added in v0.0.10

func (s *PreviewApiKeySys) GetVersion() int

GetVersion returns the value of Version.

func (*PreviewApiKeySys) MarshalJSON added in v0.0.10

func (s *PreviewApiKeySys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PreviewApiKeySys) SetCreatedAt added in v0.0.10

func (s *PreviewApiKeySys) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PreviewApiKeySys) SetID added in v0.0.10

func (s *PreviewApiKeySys) SetID(val string)

SetID sets the value of ID.

func (*PreviewApiKeySys) SetType added in v0.0.10

func (s *PreviewApiKeySys) SetType(val PreviewApiKeySysType)

SetType sets the value of Type.

func (*PreviewApiKeySys) SetUpdatedAt added in v0.0.10

func (s *PreviewApiKeySys) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PreviewApiKeySys) SetVersion added in v0.0.10

func (s *PreviewApiKeySys) SetVersion(val int)

SetVersion sets the value of Version.

func (*PreviewApiKeySys) UnmarshalJSON added in v0.0.10

func (s *PreviewApiKeySys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PreviewApiKeySys) Validate added in v0.0.10

func (s *PreviewApiKeySys) Validate() error

type PreviewApiKeySysType added in v0.0.10

type PreviewApiKeySysType string

Merged schema.

const (
	PreviewApiKeySysTypePreviewApiKey PreviewApiKeySysType = "PreviewApiKey"
)

func (PreviewApiKeySysType) AllValues added in v0.0.10

AllValues returns all PreviewApiKeySysType values.

func (*PreviewApiKeySysType) Decode added in v0.0.10

func (s *PreviewApiKeySysType) Decode(d *jx.Decoder) error

Decode decodes PreviewApiKeySysType from json.

func (PreviewApiKeySysType) Encode added in v0.0.10

func (s PreviewApiKeySysType) Encode(e *jx.Encoder)

Encode encodes PreviewApiKeySysType as json.

func (PreviewApiKeySysType) MarshalJSON added in v0.0.10

func (s PreviewApiKeySysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PreviewApiKeySysType) MarshalText added in v0.0.10

func (s PreviewApiKeySysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PreviewApiKeySysType) UnmarshalJSON added in v0.0.10

func (s *PreviewApiKeySysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PreviewApiKeySysType) UnmarshalText added in v0.0.10

func (s *PreviewApiKeySysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PreviewApiKeySysType) Validate added in v0.0.10

func (s PreviewApiKeySysType) Validate() error

type PutAppInstallationParams

type PutAppInstallationParams struct {
	SpaceID                string
	EnvironmentID          string
	AppDefinitionID        string
	XContentfulMarketplace OptString
}

PutAppInstallationParams is parameters of putAppInstallation operation.

type PutAppInstallationReq

type PutAppInstallationReq struct {
	Parameters OptPutAppInstallationReqParameters `json:"parameters"`
}

func (*PutAppInstallationReq) Decode

func (s *PutAppInstallationReq) Decode(d *jx.Decoder) error

Decode decodes PutAppInstallationReq from json.

func (*PutAppInstallationReq) Encode

func (s *PutAppInstallationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PutAppInstallationReq) GetParameters

GetParameters returns the value of Parameters.

func (*PutAppInstallationReq) MarshalJSON

func (s *PutAppInstallationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutAppInstallationReq) SetParameters

SetParameters sets the value of Parameters.

func (*PutAppInstallationReq) UnmarshalJSON

func (s *PutAppInstallationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutAppInstallationReqParameters

type PutAppInstallationReqParameters map[string]jx.Raw

func (*PutAppInstallationReqParameters) Decode

Decode decodes PutAppInstallationReqParameters from json.

func (PutAppInstallationReqParameters) Encode

Encode implements json.Marshaler.

func (PutAppInstallationReqParameters) MarshalJSON

func (s PutAppInstallationReqParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutAppInstallationReqParameters) UnmarshalJSON

func (s *PutAppInstallationReqParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutAppInstallationRes

type PutAppInstallationRes interface {
	// contains filtered or unexported methods
}

type PutContentTypeCreated added in v0.0.5

type PutContentTypeCreated ContentType

func (*PutContentTypeCreated) Decode added in v0.0.5

func (s *PutContentTypeCreated) Decode(d *jx.Decoder) error

Decode decodes PutContentTypeCreated from json.

func (*PutContentTypeCreated) Encode added in v0.0.5

func (s *PutContentTypeCreated) Encode(e *jx.Encoder)

Encode encodes PutContentTypeCreated as json.

func (*PutContentTypeCreated) MarshalJSON added in v0.0.5

func (s *PutContentTypeCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutContentTypeCreated) UnmarshalJSON added in v0.0.5

func (s *PutContentTypeCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PutContentTypeCreated) Validate added in v0.0.5

func (s *PutContentTypeCreated) Validate() error

type PutContentTypeOK added in v0.0.5

type PutContentTypeOK ContentType

func (*PutContentTypeOK) Decode added in v0.0.5

func (s *PutContentTypeOK) Decode(d *jx.Decoder) error

Decode decodes PutContentTypeOK from json.

func (*PutContentTypeOK) Encode added in v0.0.5

func (s *PutContentTypeOK) Encode(e *jx.Encoder)

Encode encodes PutContentTypeOK as json.

func (*PutContentTypeOK) MarshalJSON added in v0.0.5

func (s *PutContentTypeOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutContentTypeOK) UnmarshalJSON added in v0.0.5

func (s *PutContentTypeOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PutContentTypeOK) Validate added in v0.0.5

func (s *PutContentTypeOK) Validate() error

type PutContentTypeParams added in v0.0.5

type PutContentTypeParams struct {
	SpaceID            string
	EnvironmentID      string
	ContentTypeID      string
	XContentfulVersion int
}

PutContentTypeParams is parameters of putContentType operation.

type PutContentTypeReq added in v0.0.5

type PutContentTypeReq struct {
	Name         string                        `json:"name"`
	Description  string                        `json:"description"`
	DisplayField string                        `json:"displayField"`
	Fields       []PutContentTypeReqFieldsItem `json:"fields"`
}

func (*PutContentTypeReq) Decode added in v0.0.5

func (s *PutContentTypeReq) Decode(d *jx.Decoder) error

Decode decodes PutContentTypeReq from json.

func (*PutContentTypeReq) Encode added in v0.0.5

func (s *PutContentTypeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PutContentTypeReq) GetDescription added in v0.0.5

func (s *PutContentTypeReq) GetDescription() string

GetDescription returns the value of Description.

func (*PutContentTypeReq) GetDisplayField added in v0.0.5

func (s *PutContentTypeReq) GetDisplayField() string

GetDisplayField returns the value of DisplayField.

func (*PutContentTypeReq) GetFields added in v0.0.5

GetFields returns the value of Fields.

func (*PutContentTypeReq) GetName added in v0.0.5

func (s *PutContentTypeReq) GetName() string

GetName returns the value of Name.

func (*PutContentTypeReq) MarshalJSON added in v0.0.5

func (s *PutContentTypeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutContentTypeReq) SetDescription added in v0.0.5

func (s *PutContentTypeReq) SetDescription(val string)

SetDescription sets the value of Description.

func (*PutContentTypeReq) SetDisplayField added in v0.0.5

func (s *PutContentTypeReq) SetDisplayField(val string)

SetDisplayField sets the value of DisplayField.

func (*PutContentTypeReq) SetFields added in v0.0.5

func (s *PutContentTypeReq) SetFields(val []PutContentTypeReqFieldsItem)

SetFields sets the value of Fields.

func (*PutContentTypeReq) SetName added in v0.0.5

func (s *PutContentTypeReq) SetName(val string)

SetName sets the value of Name.

func (*PutContentTypeReq) UnmarshalJSON added in v0.0.5

func (s *PutContentTypeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PutContentTypeReq) Validate added in v0.0.5

func (s *PutContentTypeReq) Validate() error

type PutContentTypeReqFieldsItem added in v0.0.5

type PutContentTypeReqFieldsItem struct {
	ID           string                              `json:"id"`
	Name         string                              `json:"name"`
	Type         string                              `json:"type"`
	LinkType     OptString                           `json:"linkType"`
	Items        OptPutContentTypeReqFieldsItemItems `json:"items"`
	Localized    OptBool                             `json:"localized"`
	Omitted      OptBool                             `json:"omitted"`
	Required     OptBool                             `json:"required"`
	Disabled     OptBool                             `json:"disabled"`
	DefaultValue jx.Raw                              `json:"defaultValue"`
	Validations  []jx.Raw                            `json:"validations"`
}

func (*PutContentTypeReqFieldsItem) Decode added in v0.0.5

Decode decodes PutContentTypeReqFieldsItem from json.

func (*PutContentTypeReqFieldsItem) Encode added in v0.0.5

func (s *PutContentTypeReqFieldsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PutContentTypeReqFieldsItem) GetDefaultValue added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetDefaultValue() jx.Raw

GetDefaultValue returns the value of DefaultValue.

func (*PutContentTypeReqFieldsItem) GetDisabled added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetDisabled() OptBool

GetDisabled returns the value of Disabled.

func (*PutContentTypeReqFieldsItem) GetID added in v0.0.5

GetID returns the value of ID.

func (*PutContentTypeReqFieldsItem) GetItems added in v0.0.5

GetItems returns the value of Items.

func (*PutContentTypeReqFieldsItem) GetLinkType added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetLinkType() OptString

GetLinkType returns the value of LinkType.

func (*PutContentTypeReqFieldsItem) GetLocalized added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetLocalized() OptBool

GetLocalized returns the value of Localized.

func (*PutContentTypeReqFieldsItem) GetName added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetName() string

GetName returns the value of Name.

func (*PutContentTypeReqFieldsItem) GetOmitted added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetOmitted() OptBool

GetOmitted returns the value of Omitted.

func (*PutContentTypeReqFieldsItem) GetRequired added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetRequired() OptBool

GetRequired returns the value of Required.

func (*PutContentTypeReqFieldsItem) GetType added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetType() string

GetType returns the value of Type.

func (*PutContentTypeReqFieldsItem) GetValidations added in v0.0.5

func (s *PutContentTypeReqFieldsItem) GetValidations() []jx.Raw

GetValidations returns the value of Validations.

func (*PutContentTypeReqFieldsItem) MarshalJSON added in v0.0.5

func (s *PutContentTypeReqFieldsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutContentTypeReqFieldsItem) SetDefaultValue added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetDefaultValue(val jx.Raw)

SetDefaultValue sets the value of DefaultValue.

func (*PutContentTypeReqFieldsItem) SetDisabled added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetDisabled(val OptBool)

SetDisabled sets the value of Disabled.

func (*PutContentTypeReqFieldsItem) SetID added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetID(val string)

SetID sets the value of ID.

func (*PutContentTypeReqFieldsItem) SetItems added in v0.0.5

SetItems sets the value of Items.

func (*PutContentTypeReqFieldsItem) SetLinkType added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetLinkType(val OptString)

SetLinkType sets the value of LinkType.

func (*PutContentTypeReqFieldsItem) SetLocalized added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetLocalized(val OptBool)

SetLocalized sets the value of Localized.

func (*PutContentTypeReqFieldsItem) SetName added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetName(val string)

SetName sets the value of Name.

func (*PutContentTypeReqFieldsItem) SetOmitted added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetOmitted(val OptBool)

SetOmitted sets the value of Omitted.

func (*PutContentTypeReqFieldsItem) SetRequired added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetRequired(val OptBool)

SetRequired sets the value of Required.

func (*PutContentTypeReqFieldsItem) SetType added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetType(val string)

SetType sets the value of Type.

func (*PutContentTypeReqFieldsItem) SetValidations added in v0.0.5

func (s *PutContentTypeReqFieldsItem) SetValidations(val []jx.Raw)

SetValidations sets the value of Validations.

func (*PutContentTypeReqFieldsItem) UnmarshalJSON added in v0.0.5

func (s *PutContentTypeReqFieldsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutContentTypeReqFieldsItemItems added in v0.0.5

type PutContentTypeReqFieldsItemItems struct {
	Type        OptString `json:"type"`
	LinkType    OptString `json:"linkType"`
	Validations []jx.Raw  `json:"validations"`
}

func (*PutContentTypeReqFieldsItemItems) Decode added in v0.0.5

Decode decodes PutContentTypeReqFieldsItemItems from json.

func (*PutContentTypeReqFieldsItemItems) Encode added in v0.0.5

Encode implements json.Marshaler.

func (*PutContentTypeReqFieldsItemItems) GetLinkType added in v0.0.5

GetLinkType returns the value of LinkType.

func (*PutContentTypeReqFieldsItemItems) GetType added in v0.0.5

GetType returns the value of Type.

func (*PutContentTypeReqFieldsItemItems) GetValidations added in v0.0.5

func (s *PutContentTypeReqFieldsItemItems) GetValidations() []jx.Raw

GetValidations returns the value of Validations.

func (*PutContentTypeReqFieldsItemItems) MarshalJSON added in v0.0.5

func (s *PutContentTypeReqFieldsItemItems) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutContentTypeReqFieldsItemItems) SetLinkType added in v0.0.5

func (s *PutContentTypeReqFieldsItemItems) SetLinkType(val OptString)

SetLinkType sets the value of LinkType.

func (*PutContentTypeReqFieldsItemItems) SetType added in v0.0.5

SetType sets the value of Type.

func (*PutContentTypeReqFieldsItemItems) SetValidations added in v0.0.5

func (s *PutContentTypeReqFieldsItemItems) SetValidations(val []jx.Raw)

SetValidations sets the value of Validations.

func (*PutContentTypeReqFieldsItemItems) UnmarshalJSON added in v0.0.5

func (s *PutContentTypeReqFieldsItemItems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutContentTypeRes added in v0.0.5

type PutContentTypeRes interface {
	// contains filtered or unexported methods
}

type PutEditorInterfaceParams added in v0.0.3

type PutEditorInterfaceParams struct {
	SpaceID            string
	EnvironmentID      string
	ContentTypeID      string
	XContentfulVersion int
}

PutEditorInterfaceParams is parameters of putEditorInterface operation.

type PutEditorInterfaceReq added in v0.0.3

type PutEditorInterfaceReq struct {
	Controls OptNilPutEditorInterfaceReqControlsItemArray `json:"controls"`
	Sidebar  OptNilPutEditorInterfaceReqSidebarItemArray  `json:"sidebar"`
}

func (*PutEditorInterfaceReq) Decode added in v0.0.3

func (s *PutEditorInterfaceReq) Decode(d *jx.Decoder) error

Decode decodes PutEditorInterfaceReq from json.

func (*PutEditorInterfaceReq) Encode added in v0.0.3

func (s *PutEditorInterfaceReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PutEditorInterfaceReq) GetControls added in v0.0.3

GetControls returns the value of Controls.

func (*PutEditorInterfaceReq) GetSidebar added in v0.0.3

GetSidebar returns the value of Sidebar.

func (*PutEditorInterfaceReq) MarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutEditorInterfaceReq) SetControls added in v0.0.3

SetControls sets the value of Controls.

func (*PutEditorInterfaceReq) SetSidebar added in v0.0.3

SetSidebar sets the value of Sidebar.

func (*PutEditorInterfaceReq) UnmarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PutEditorInterfaceReq) Validate added in v0.0.4

func (s *PutEditorInterfaceReq) Validate() error

type PutEditorInterfaceReqControlsItem added in v0.0.3

type PutEditorInterfaceReqControlsItem struct {
	FieldId         string                                       `json:"fieldId"`
	WidgetNamespace OptString                                    `json:"widgetNamespace"`
	WidgetId        OptString                                    `json:"widgetId"`
	Settings        OptPutEditorInterfaceReqControlsItemSettings `json:"settings"`
}

func (*PutEditorInterfaceReqControlsItem) Decode added in v0.0.3

Decode decodes PutEditorInterfaceReqControlsItem from json.

func (*PutEditorInterfaceReqControlsItem) Encode added in v0.0.3

Encode implements json.Marshaler.

func (*PutEditorInterfaceReqControlsItem) GetFieldId added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) GetFieldId() string

GetFieldId returns the value of FieldId.

func (*PutEditorInterfaceReqControlsItem) GetSettings added in v0.0.3

GetSettings returns the value of Settings.

func (*PutEditorInterfaceReqControlsItem) GetWidgetId added in v0.0.3

GetWidgetId returns the value of WidgetId.

func (*PutEditorInterfaceReqControlsItem) GetWidgetNamespace added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) GetWidgetNamespace() OptString

GetWidgetNamespace returns the value of WidgetNamespace.

func (*PutEditorInterfaceReqControlsItem) MarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutEditorInterfaceReqControlsItem) SetFieldId added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) SetFieldId(val string)

SetFieldId sets the value of FieldId.

func (*PutEditorInterfaceReqControlsItem) SetSettings added in v0.0.3

SetSettings sets the value of Settings.

func (*PutEditorInterfaceReqControlsItem) SetWidgetId added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) SetWidgetId(val OptString)

SetWidgetId sets the value of WidgetId.

func (*PutEditorInterfaceReqControlsItem) SetWidgetNamespace added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) SetWidgetNamespace(val OptString)

SetWidgetNamespace sets the value of WidgetNamespace.

func (*PutEditorInterfaceReqControlsItem) UnmarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReqControlsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutEditorInterfaceReqControlsItemSettings added in v0.0.3

type PutEditorInterfaceReqControlsItemSettings map[string]jx.Raw

func (*PutEditorInterfaceReqControlsItemSettings) Decode added in v0.0.3

Decode decodes PutEditorInterfaceReqControlsItemSettings from json.

func (PutEditorInterfaceReqControlsItemSettings) Encode added in v0.0.3

Encode implements json.Marshaler.

func (PutEditorInterfaceReqControlsItemSettings) MarshalJSON added in v0.0.3

MarshalJSON implements stdjson.Marshaler.

func (*PutEditorInterfaceReqControlsItemSettings) UnmarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReqControlsItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutEditorInterfaceReqSidebarItem added in v0.0.3

type PutEditorInterfaceReqSidebarItem struct {
	WidgetNamespace string                                      `json:"widgetNamespace"`
	WidgetId        string                                      `json:"widgetId"`
	Settings        OptPutEditorInterfaceReqSidebarItemSettings `json:"settings"`
	Disabled        OptBool                                     `json:"disabled"`
}

func (*PutEditorInterfaceReqSidebarItem) Decode added in v0.0.3

Decode decodes PutEditorInterfaceReqSidebarItem from json.

func (*PutEditorInterfaceReqSidebarItem) Encode added in v0.0.3

Encode implements json.Marshaler.

func (*PutEditorInterfaceReqSidebarItem) GetDisabled added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) GetDisabled() OptBool

GetDisabled returns the value of Disabled.

func (*PutEditorInterfaceReqSidebarItem) GetSettings added in v0.0.3

GetSettings returns the value of Settings.

func (*PutEditorInterfaceReqSidebarItem) GetWidgetId added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) GetWidgetId() string

GetWidgetId returns the value of WidgetId.

func (*PutEditorInterfaceReqSidebarItem) GetWidgetNamespace added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) GetWidgetNamespace() string

GetWidgetNamespace returns the value of WidgetNamespace.

func (*PutEditorInterfaceReqSidebarItem) MarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PutEditorInterfaceReqSidebarItem) SetDisabled added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) SetDisabled(val OptBool)

SetDisabled sets the value of Disabled.

func (*PutEditorInterfaceReqSidebarItem) SetSettings added in v0.0.3

SetSettings sets the value of Settings.

func (*PutEditorInterfaceReqSidebarItem) SetWidgetId added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) SetWidgetId(val string)

SetWidgetId sets the value of WidgetId.

func (*PutEditorInterfaceReqSidebarItem) SetWidgetNamespace added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) SetWidgetNamespace(val string)

SetWidgetNamespace sets the value of WidgetNamespace.

func (*PutEditorInterfaceReqSidebarItem) UnmarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutEditorInterfaceReqSidebarItemSettings added in v0.0.3

type PutEditorInterfaceReqSidebarItemSettings map[string]jx.Raw

func (*PutEditorInterfaceReqSidebarItemSettings) Decode added in v0.0.3

Decode decodes PutEditorInterfaceReqSidebarItemSettings from json.

func (PutEditorInterfaceReqSidebarItemSettings) Encode added in v0.0.3

Encode implements json.Marshaler.

func (PutEditorInterfaceReqSidebarItemSettings) MarshalJSON added in v0.0.3

MarshalJSON implements stdjson.Marshaler.

func (*PutEditorInterfaceReqSidebarItemSettings) UnmarshalJSON added in v0.0.3

func (s *PutEditorInterfaceReqSidebarItemSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PutEditorInterfaceRes added in v0.0.3

type PutEditorInterfaceRes interface {
	// contains filtered or unexported methods
}

type RevokePersonalAccessTokenParams added in v0.0.12

type RevokePersonalAccessTokenParams struct {
	AccessTokenID string
}

RevokePersonalAccessTokenParams is parameters of revokePersonalAccessToken operation.

type RevokePersonalAccessTokenRes added in v0.0.12

type RevokePersonalAccessTokenRes interface {
	// contains filtered or unexported methods
}

type SecuritySource

type SecuritySource interface {
	// AccessToken provides accessToken security value.
	AccessToken(ctx context.Context, operationName string, client *Client) (AccessToken, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type UpdateDeliveryApiKeyParams added in v0.0.12

type UpdateDeliveryApiKeyParams struct {
	SpaceID            string
	APIKeyID           string
	XContentfulVersion int
}

UpdateDeliveryApiKeyParams is parameters of updateDeliveryApiKey operation.

type UpdateDeliveryApiKeyReq added in v0.0.12

type UpdateDeliveryApiKeyReq struct {
	Name         string            `json:"name"`
	Description  OptNilString      `json:"description"`
	Environments []EnvironmentLink `json:"environments"`
}

func (*UpdateDeliveryApiKeyReq) Decode added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) Decode(d *jx.Decoder) error

Decode decodes UpdateDeliveryApiKeyReq from json.

func (*UpdateDeliveryApiKeyReq) Encode added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateDeliveryApiKeyReq) GetDescription added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*UpdateDeliveryApiKeyReq) GetEnvironments added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) GetEnvironments() []EnvironmentLink

GetEnvironments returns the value of Environments.

func (*UpdateDeliveryApiKeyReq) GetName added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) GetName() string

GetName returns the value of Name.

func (*UpdateDeliveryApiKeyReq) MarshalJSON added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDeliveryApiKeyReq) SetDescription added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*UpdateDeliveryApiKeyReq) SetEnvironments added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) SetEnvironments(val []EnvironmentLink)

SetEnvironments sets the value of Environments.

func (*UpdateDeliveryApiKeyReq) SetName added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) SetName(val string)

SetName sets the value of Name.

func (*UpdateDeliveryApiKeyReq) UnmarshalJSON added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDeliveryApiKeyReq) Validate added in v0.0.12

func (s *UpdateDeliveryApiKeyReq) Validate() error

type UpdateDeliveryApiKeyRes added in v0.0.12

type UpdateDeliveryApiKeyRes interface {
	// contains filtered or unexported methods
}

type User

type User struct {
	Sys       UserSys `json:"sys"`
	Email     string  `json:"email"`
	FirstName string  `json:"firstName"`
	LastName  string  `json:"lastName"`
}

Merged schema. Ref: #/components/schemas/User

func (*User) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetEmail

func (s *User) GetEmail() string

GetEmail returns the value of Email.

func (*User) GetFirstName

func (s *User) GetFirstName() string

GetFirstName returns the value of FirstName.

func (*User) GetLastName

func (s *User) GetLastName() string

GetLastName returns the value of LastName.

func (*User) GetSys

func (s *User) GetSys() UserSys

GetSys returns the value of Sys.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetEmail

func (s *User) SetEmail(val string)

SetEmail sets the value of Email.

func (*User) SetFirstName

func (s *User) SetFirstName(val string)

SetFirstName sets the value of FirstName.

func (*User) SetLastName

func (s *User) SetLastName(val string)

SetLastName sets the value of LastName.

func (*User) SetSys

func (s *User) SetSys(val UserSys)

SetSys sets the value of Sys.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*User) Validate

func (s *User) Validate() error

type UserSys

type UserSys struct {
	// Merged property.
	Type      UserSysType `json:"type"`
	ID        string      `json:"id"`
	Version   int         `json:"version"`
	CreatedAt OptDateTime `json:"createdAt"`
	UpdatedAt OptDateTime `json:"updatedAt"`
}

Merged schema. Ref: #/components/schemas/UserSys

func (*UserSys) Decode

func (s *UserSys) Decode(d *jx.Decoder) error

Decode decodes UserSys from json.

func (*UserSys) Encode

func (s *UserSys) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserSys) GetCreatedAt

func (s *UserSys) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*UserSys) GetID

func (s *UserSys) GetID() string

GetID returns the value of ID.

func (*UserSys) GetType

func (s *UserSys) GetType() UserSysType

GetType returns the value of Type.

func (*UserSys) GetUpdatedAt

func (s *UserSys) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*UserSys) GetVersion

func (s *UserSys) GetVersion() int

GetVersion returns the value of Version.

func (*UserSys) MarshalJSON

func (s *UserSys) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserSys) SetCreatedAt

func (s *UserSys) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*UserSys) SetID

func (s *UserSys) SetID(val string)

SetID sets the value of ID.

func (*UserSys) SetType

func (s *UserSys) SetType(val UserSysType)

SetType sets the value of Type.

func (*UserSys) SetUpdatedAt

func (s *UserSys) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*UserSys) SetVersion

func (s *UserSys) SetVersion(val int)

SetVersion sets the value of Version.

func (*UserSys) UnmarshalJSON

func (s *UserSys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserSys) Validate

func (s *UserSys) Validate() error

type UserSysType

type UserSysType string

Merged schema.

const (
	UserSysTypeUser UserSysType = "User"
)

func (UserSysType) AllValues

func (UserSysType) AllValues() []UserSysType

AllValues returns all UserSysType values.

func (*UserSysType) Decode

func (s *UserSysType) Decode(d *jx.Decoder) error

Decode decodes UserSysType from json.

func (UserSysType) Encode

func (s UserSysType) Encode(e *jx.Encoder)

Encode encodes UserSysType as json.

func (UserSysType) MarshalJSON

func (s UserSysType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UserSysType) MarshalText

func (s UserSysType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UserSysType) UnmarshalJSON

func (s *UserSysType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserSysType) UnmarshalText

func (s *UserSysType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UserSysType) Validate

func (s UserSysType) Validate() error

Jump to

Keyboard shortcuts

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