openapi

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 20 Imported by: 0

README

Nitrozen Go SDK

Official Go client for the Nitrozen.io changelog API. Manage projects, entries, and API tokens programmatically.

Installation

go get github.com/nitrozenio/nitrozen-go

Quick Start

package main

import (
    "context"
    "fmt"
    "log"

    nitrozen "github.com/nitrozenio/nitrozen-go"
)

func main() {
    cfg := nitrozen.NewConfiguration()
    client := nitrozen.NewAPIClient(cfg)

    // Authenticate using context
    ctx := context.WithValue(context.Background(), nitrozen.ContextAccessToken, "YOUR_API_TOKEN")

    // List projects
    projects, _, err := client.ProjectsAPI.ProjectsGet(ctx).Execute()
    if err != nil {
        log.Fatal(err)
    }
    for _, p := range projects.Data {
        fmt.Printf("[%d] %s  slug=%s\n", p.GetId(), p.GetName(), p.GetSlug())
    }

    // Create a changelog entry
    entry, _, err := client.EntriesAPI.
        ProjectsProjectEntriesPost(ctx, projects.Data[0].GetId()).
        EntryInput(nitrozen.EntryInput{
            Title:    nitrozen.PtrString("Dark mode shipped"),
            Content:  nitrozen.PtrString("Users can now toggle dark mode from their profile settings."),
            Category: nitrozen.PtrString("new"),
        }).
        Execute()
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("Created entry: %d\n", entry.Data.GetId())
}

Authentication

All authenticated endpoints require a Bearer token. Create one from your API Tokens page and pass it via context:

ctx := context.WithValue(context.Background(), nitrozen.ContextAccessToken, "YOUR_API_TOKEN")

Rate Limiting

Rate limits are determined by your plan (api_rate_limit requests per minute). The API returns 429 Too Many Requests when exceeded. Unauthenticated requests are limited to 60 req/min per IP.

Pagination

List endpoints accept page and per_page query parameters. Responses include a meta object with pagination details:

resp, _, err := client.EntriesAPI.
    ProjectsProjectEntriesGet(ctx, projectId).
    Page(2).
    PerPage(20).
    Execute()

fmt.Println(resp.Meta.GetTotal())

API Endpoints

All URIs are relative to https://nitrozen.io/api/v1.

API Method HTTP Description
AuthenticationAPI TokensGet GET /tokens List API tokens
AuthenticationAPI TokensPost POST /tokens Create an API token
AuthenticationAPI TokensTokenDelete DELETE /tokens/{token} Revoke an API token
EntriesAPI ProjectsProjectEntriesGet GET /projects/{project}/entries List entries
EntriesAPI ProjectsProjectEntriesPost POST /projects/{project}/entries Create an entry
EntriesAPI ProjectsProjectEntriesEntryGet GET /projects/{project}/entries/{entry} Get an entry
EntriesAPI ProjectsProjectEntriesEntryPut PUT /projects/{project}/entries/{entry} Update an entry
EntriesAPI ProjectsProjectEntriesEntryDelete DELETE /projects/{project}/entries/{entry} Delete an entry
ProjectsAPI ProjectsGet GET /projects List projects
ProjectsAPI ProjectsPost POST /projects Create a project
ProjectsAPI ProjectsProjectGet GET /projects/{project} Get a project
ProjectsAPI ProjectsProjectPut PUT /projects/{project} Update a project
ProjectsAPI ProjectsProjectDelete DELETE /projects/{project} Delete a project
PublicAPI PublicProjectsSlugEntriesGet GET /public/projects/{slug}/entries List published entries (no auth)
UsersAPI UserGet GET /user Get current user
UsersAPI UserUsageGet GET /user/usage Get usage statistics

Models

Utility Functions

All model fields are pointers. Use these helpers to construct values inline:

nitrozen.PtrString("value")
nitrozen.PtrInt(42)
nitrozen.PtrInt32(42)
nitrozen.PtrBool(true)
nitrozen.PtrFloat64(3.14)

License

MIT — see LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

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

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

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

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

func PtrFloat32

func PtrFloat32(v float32) *float32

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

func PtrFloat64

func PtrFloat64(v float64) *float64

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

func PtrInt

func PtrInt(v int) *int

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

func PtrInt32

func PtrInt32(v int32) *int32

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

func PtrInt64

func PtrInt64(v int64) *int64

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

func PtrString

func PtrString(v string) *string

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

func PtrTime

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

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AuthenticationAPI *AuthenticationAPIService

	EntriesAPI *EntriesAPIService

	ProjectsAPI *ProjectsAPIService

	PublicAPI *PublicAPIService

	UsersAPI *UsersAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Nitrozen API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiProjectsGetRequest

type ApiProjectsGetRequest struct {
	ApiService *ProjectsAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsGetRequest) Execute

type ApiProjectsPostRequest

type ApiProjectsPostRequest struct {
	ApiService *ProjectsAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsPostRequest) Execute

func (ApiProjectsPostRequest) ProjectInput

func (r ApiProjectsPostRequest) ProjectInput(projectInput ProjectInput) ApiProjectsPostRequest

type ApiProjectsProjectDeleteRequest

type ApiProjectsProjectDeleteRequest struct {
	ApiService *ProjectsAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectDeleteRequest) Execute

type ApiProjectsProjectEntriesEntryDeleteRequest

type ApiProjectsProjectEntriesEntryDeleteRequest struct {
	ApiService *EntriesAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectEntriesEntryDeleteRequest) Execute

type ApiProjectsProjectEntriesEntryGetRequest

type ApiProjectsProjectEntriesEntryGetRequest struct {
	ApiService *EntriesAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectEntriesEntryGetRequest) Execute

type ApiProjectsProjectEntriesEntryPutRequest

type ApiProjectsProjectEntriesEntryPutRequest struct {
	ApiService *EntriesAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectEntriesEntryPutRequest) EntryInput

func (ApiProjectsProjectEntriesEntryPutRequest) Execute

type ApiProjectsProjectEntriesGetRequest

type ApiProjectsProjectEntriesGetRequest struct {
	ApiService *EntriesAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectEntriesGetRequest) Category

Filter by category

func (ApiProjectsProjectEntriesGetRequest) Execute

func (ApiProjectsProjectEntriesGetRequest) Page

Page number

func (ApiProjectsProjectEntriesGetRequest) PerPage

Items per page

func (ApiProjectsProjectEntriesGetRequest) Status

Filter by publish status

type ApiProjectsProjectEntriesPostRequest

type ApiProjectsProjectEntriesPostRequest struct {
	ApiService *EntriesAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectEntriesPostRequest) EntryInput

func (ApiProjectsProjectEntriesPostRequest) Execute

type ApiProjectsProjectGetRequest

type ApiProjectsProjectGetRequest struct {
	ApiService *ProjectsAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectGetRequest) Execute

type ApiProjectsProjectPutRequest

type ApiProjectsProjectPutRequest struct {
	ApiService *ProjectsAPIService
	// contains filtered or unexported fields
}

func (ApiProjectsProjectPutRequest) Execute

func (ApiProjectsProjectPutRequest) ProjectInput

type ApiPublicProjectsSlugEntriesGetRequest

type ApiPublicProjectsSlugEntriesGetRequest struct {
	ApiService *PublicAPIService
	// contains filtered or unexported fields
}

func (ApiPublicProjectsSlugEntriesGetRequest) Execute

type ApiTokensGetRequest

type ApiTokensGetRequest struct {
	ApiService *AuthenticationAPIService
	// contains filtered or unexported fields
}

func (ApiTokensGetRequest) Execute

type ApiTokensPostRequest

type ApiTokensPostRequest struct {
	ApiService *AuthenticationAPIService
	// contains filtered or unexported fields
}

func (ApiTokensPostRequest) Execute

func (ApiTokensPostRequest) TokensPostRequest

func (r ApiTokensPostRequest) TokensPostRequest(tokensPostRequest TokensPostRequest) ApiTokensPostRequest

type ApiTokensTokenDeleteRequest

type ApiTokensTokenDeleteRequest struct {
	ApiService *AuthenticationAPIService
	// contains filtered or unexported fields
}

func (ApiTokensTokenDeleteRequest) Execute

type ApiUserGetRequest

type ApiUserGetRequest struct {
	ApiService *UsersAPIService
	// contains filtered or unexported fields
}

func (ApiUserGetRequest) Execute

type ApiUserUsageGetRequest

type ApiUserUsageGetRequest struct {
	ApiService *UsersAPIService
	// contains filtered or unexported fields
}

func (ApiUserUsageGetRequest) Execute

type AuthenticationAPIService

type AuthenticationAPIService service

AuthenticationAPIService AuthenticationAPI service

func (*AuthenticationAPIService) TokensGet

TokensGet List API tokens

Returns all API tokens for the authenticated user. Token values are not included.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTokensGetRequest

func (*AuthenticationAPIService) TokensGetExecute

Execute executes the request

@return TokensGet200Response

func (*AuthenticationAPIService) TokensPost

TokensPost Create an API token

Creates a new API token. The plain-text token is only returned in this response and cannot be retrieved later.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTokensPostRequest

func (*AuthenticationAPIService) TokensPostExecute

Execute executes the request

@return TokensPost201Response

func (*AuthenticationAPIService) TokensTokenDelete

TokensTokenDelete Revoke an API token

Permanently revokes an API token. Any requests using this token will be rejected.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param token Token ID
@return ApiTokensTokenDeleteRequest

func (*AuthenticationAPIService) TokensTokenDeleteExecute

func (a *AuthenticationAPIService) TokensTokenDeleteExecute(r ApiTokensTokenDeleteRequest) (*http.Response, error)

Execute executes the request

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type EntriesAPIService

type EntriesAPIService service

EntriesAPIService EntriesAPI service

func (*EntriesAPIService) ProjectsProjectEntriesEntryDelete

func (a *EntriesAPIService) ProjectsProjectEntriesEntryDelete(ctx context.Context, project int32, entry int32) ApiProjectsProjectEntriesEntryDeleteRequest

ProjectsProjectEntriesEntryDelete Delete an entry

Permanently deletes a changelog entry.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@param entry Entry ID
@return ApiProjectsProjectEntriesEntryDeleteRequest

func (*EntriesAPIService) ProjectsProjectEntriesEntryDeleteExecute

func (a *EntriesAPIService) ProjectsProjectEntriesEntryDeleteExecute(r ApiProjectsProjectEntriesEntryDeleteRequest) (*http.Response, error)

Execute executes the request

func (*EntriesAPIService) ProjectsProjectEntriesEntryGet

func (a *EntriesAPIService) ProjectsProjectEntriesEntryGet(ctx context.Context, project int32, entry int32) ApiProjectsProjectEntriesEntryGetRequest

ProjectsProjectEntriesEntryGet Get an entry

Returns a single entry by ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@param entry Entry ID
@return ApiProjectsProjectEntriesEntryGetRequest

func (*EntriesAPIService) ProjectsProjectEntriesEntryGetExecute

Execute executes the request

@return ProjectsProjectEntriesPost201Response

func (*EntriesAPIService) ProjectsProjectEntriesEntryPut

func (a *EntriesAPIService) ProjectsProjectEntriesEntryPut(ctx context.Context, project int32, entry int32) ApiProjectsProjectEntriesEntryPutRequest

ProjectsProjectEntriesEntryPut Update an entry

Updates an existing changelog entry.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@param entry Entry ID
@return ApiProjectsProjectEntriesEntryPutRequest

func (*EntriesAPIService) ProjectsProjectEntriesEntryPutExecute

Execute executes the request

@return ProjectsProjectEntriesPost201Response

func (*EntriesAPIService) ProjectsProjectEntriesGet

func (a *EntriesAPIService) ProjectsProjectEntriesGet(ctx context.Context, project int32) ApiProjectsProjectEntriesGetRequest

ProjectsProjectEntriesGet List entries

Returns entries for a project with optional filtering and pagination.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@return ApiProjectsProjectEntriesGetRequest

func (*EntriesAPIService) ProjectsProjectEntriesGetExecute

Execute executes the request

@return ProjectsProjectEntriesGet200Response

func (*EntriesAPIService) ProjectsProjectEntriesPost

func (a *EntriesAPIService) ProjectsProjectEntriesPost(ctx context.Context, project int32) ApiProjectsProjectEntriesPostRequest

ProjectsProjectEntriesPost Create an entry

Creates a new changelog entry. Set `is_published` to `true` to publish immediately. If `published_at` is not provided for a published entry, it defaults to the current time.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@return ApiProjectsProjectEntriesPostRequest

func (*EntriesAPIService) ProjectsProjectEntriesPostExecute

Execute executes the request

@return ProjectsProjectEntriesPost201Response

type Entry

type Entry struct {
	Id          *int32       `json:"id,omitempty"`
	Title       *string      `json:"title,omitempty"`
	Content     *string      `json:"content,omitempty"`
	Category    *string      `json:"category,omitempty"`
	IsPublished *bool        `json:"is_published,omitempty"`
	PublishedAt NullableTime `json:"published_at,omitempty"`
	CreatedAt   *time.Time   `json:"created_at,omitempty"`
	UpdatedAt   *time.Time   `json:"updated_at,omitempty"`
}

Entry struct for Entry

func NewEntry

func NewEntry() *Entry

NewEntry instantiates a new Entry object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEntryWithDefaults

func NewEntryWithDefaults() *Entry

NewEntryWithDefaults instantiates a new Entry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Entry) GetCategory

func (o *Entry) GetCategory() string

GetCategory returns the Category field value if set, zero value otherwise.

func (*Entry) GetCategoryOk

func (o *Entry) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) GetContent

func (o *Entry) GetContent() string

GetContent returns the Content field value if set, zero value otherwise.

func (*Entry) GetContentOk

func (o *Entry) GetContentOk() (*string, bool)

GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Entry) GetCreatedAtOk

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

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) GetId

func (o *Entry) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*Entry) GetIdOk

func (o *Entry) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) GetIsPublished

func (o *Entry) GetIsPublished() bool

GetIsPublished returns the IsPublished field value if set, zero value otherwise.

func (*Entry) GetIsPublishedOk

func (o *Entry) GetIsPublishedOk() (*bool, bool)

GetIsPublishedOk returns a tuple with the IsPublished field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) GetPublishedAt

func (o *Entry) GetPublishedAt() time.Time

GetPublishedAt returns the PublishedAt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Entry) GetPublishedAtOk

func (o *Entry) GetPublishedAtOk() (*time.Time, bool)

GetPublishedAtOk returns a tuple with the PublishedAt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Entry) GetTitle

func (o *Entry) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*Entry) GetTitleOk

func (o *Entry) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) GetUpdatedAt

func (o *Entry) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Entry) GetUpdatedAtOk

func (o *Entry) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Entry) HasCategory

func (o *Entry) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*Entry) HasContent

func (o *Entry) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*Entry) HasCreatedAt

func (o *Entry) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Entry) HasId

func (o *Entry) HasId() bool

HasId returns a boolean if a field has been set.

func (*Entry) HasIsPublished

func (o *Entry) HasIsPublished() bool

HasIsPublished returns a boolean if a field has been set.

func (*Entry) HasPublishedAt

func (o *Entry) HasPublishedAt() bool

HasPublishedAt returns a boolean if a field has been set.

func (*Entry) HasTitle

func (o *Entry) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Entry) HasUpdatedAt

func (o *Entry) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (Entry) MarshalJSON

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

func (*Entry) SetCategory

func (o *Entry) SetCategory(v string)

SetCategory gets a reference to the given string and assigns it to the Category field.

func (*Entry) SetContent

func (o *Entry) SetContent(v string)

SetContent gets a reference to the given string and assigns it to the Content field.

func (*Entry) SetCreatedAt

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

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Entry) SetId

func (o *Entry) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*Entry) SetIsPublished

func (o *Entry) SetIsPublished(v bool)

SetIsPublished gets a reference to the given bool and assigns it to the IsPublished field.

func (*Entry) SetPublishedAt

func (o *Entry) SetPublishedAt(v time.Time)

SetPublishedAt gets a reference to the given NullableTime and assigns it to the PublishedAt field.

func (*Entry) SetPublishedAtNil

func (o *Entry) SetPublishedAtNil()

SetPublishedAtNil sets the value for PublishedAt to be an explicit nil

func (*Entry) SetTitle

func (o *Entry) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*Entry) SetUpdatedAt

func (o *Entry) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (Entry) ToMap

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

func (*Entry) UnsetPublishedAt

func (o *Entry) UnsetPublishedAt()

UnsetPublishedAt ensures that no value is present for PublishedAt, not even an explicit nil

type EntryInput

type EntryInput struct {
	Title       string `json:"title"`
	Content     string `json:"content"`
	Category    string `json:"category"`
	IsPublished *bool  `json:"is_published,omitempty"`
	// Defaults to current time if is_published is true and this is not set.
	PublishedAt NullableTime `json:"published_at,omitempty"`
}

EntryInput struct for EntryInput

func NewEntryInput

func NewEntryInput(title string, content string, category string) *EntryInput

NewEntryInput instantiates a new EntryInput object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEntryInputWithDefaults

func NewEntryInputWithDefaults() *EntryInput

NewEntryInputWithDefaults instantiates a new EntryInput object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EntryInput) GetCategory

func (o *EntryInput) GetCategory() string

GetCategory returns the Category field value

func (*EntryInput) GetCategoryOk

func (o *EntryInput) GetCategoryOk() (*string, bool)

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

func (*EntryInput) GetContent

func (o *EntryInput) GetContent() string

GetContent returns the Content field value

func (*EntryInput) GetContentOk

func (o *EntryInput) GetContentOk() (*string, bool)

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

func (*EntryInput) GetIsPublished

func (o *EntryInput) GetIsPublished() bool

GetIsPublished returns the IsPublished field value if set, zero value otherwise.

func (*EntryInput) GetIsPublishedOk

func (o *EntryInput) GetIsPublishedOk() (*bool, bool)

GetIsPublishedOk returns a tuple with the IsPublished field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EntryInput) GetPublishedAt

func (o *EntryInput) GetPublishedAt() time.Time

GetPublishedAt returns the PublishedAt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*EntryInput) GetPublishedAtOk

func (o *EntryInput) GetPublishedAtOk() (*time.Time, bool)

GetPublishedAtOk returns a tuple with the PublishedAt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*EntryInput) GetTitle

func (o *EntryInput) GetTitle() string

GetTitle returns the Title field value

func (*EntryInput) GetTitleOk

func (o *EntryInput) GetTitleOk() (*string, bool)

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

func (*EntryInput) HasIsPublished

func (o *EntryInput) HasIsPublished() bool

HasIsPublished returns a boolean if a field has been set.

func (*EntryInput) HasPublishedAt

func (o *EntryInput) HasPublishedAt() bool

HasPublishedAt returns a boolean if a field has been set.

func (EntryInput) MarshalJSON

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

func (*EntryInput) SetCategory

func (o *EntryInput) SetCategory(v string)

SetCategory sets field value

func (*EntryInput) SetContent

func (o *EntryInput) SetContent(v string)

SetContent sets field value

func (*EntryInput) SetIsPublished

func (o *EntryInput) SetIsPublished(v bool)

SetIsPublished gets a reference to the given bool and assigns it to the IsPublished field.

func (*EntryInput) SetPublishedAt

func (o *EntryInput) SetPublishedAt(v time.Time)

SetPublishedAt gets a reference to the given NullableTime and assigns it to the PublishedAt field.

func (*EntryInput) SetPublishedAtNil

func (o *EntryInput) SetPublishedAtNil()

SetPublishedAtNil sets the value for PublishedAt to be an explicit nil

func (*EntryInput) SetTitle

func (o *EntryInput) SetTitle(v string)

SetTitle sets field value

func (EntryInput) ToMap

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

func (*EntryInput) UnmarshalJSON

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

func (*EntryInput) UnsetPublishedAt

func (o *EntryInput) UnsetPublishedAt()

UnsetPublishedAt ensures that no value is present for PublishedAt, not even an explicit nil

type Error

type Error struct {
	Message *string `json:"message,omitempty"`
}

Error struct for Error

func NewError

func NewError() *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasMessage

func (o *Error) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (Error) MarshalJSON

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

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (Error) ToMap

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

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NewToken

type NewToken struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	// The plain-text token. Only shown once.
	Token     *string    `json:"token,omitempty"`
	CreatedAt *time.Time `json:"created_at,omitempty"`
}

NewToken struct for NewToken

func NewNewToken

func NewNewToken() *NewToken

NewNewToken instantiates a new NewToken object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNewTokenWithDefaults

func NewNewTokenWithDefaults() *NewToken

NewNewTokenWithDefaults instantiates a new NewToken object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NewToken) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*NewToken) GetCreatedAtOk

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

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NewToken) GetId

func (o *NewToken) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*NewToken) GetIdOk

func (o *NewToken) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NewToken) GetName

func (o *NewToken) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*NewToken) GetNameOk

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

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

func (*NewToken) GetToken

func (o *NewToken) GetToken() string

GetToken returns the Token field value if set, zero value otherwise.

func (*NewToken) GetTokenOk

func (o *NewToken) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NewToken) HasCreatedAt

func (o *NewToken) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*NewToken) HasId

func (o *NewToken) HasId() bool

HasId returns a boolean if a field has been set.

func (*NewToken) HasName

func (o *NewToken) HasName() bool

HasName returns a boolean if a field has been set.

func (*NewToken) HasToken

func (o *NewToken) HasToken() bool

HasToken returns a boolean if a field has been set.

func (NewToken) MarshalJSON

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

func (*NewToken) SetCreatedAt

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

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*NewToken) SetId

func (o *NewToken) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*NewToken) SetName

func (o *NewToken) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*NewToken) SetToken

func (o *NewToken) SetToken(v string)

SetToken gets a reference to the given string and assigns it to the Token field.

func (NewToken) ToMap

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

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

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

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableEntry

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

func NewNullableEntry

func NewNullableEntry(val *Entry) *NullableEntry

func (NullableEntry) Get

func (v NullableEntry) Get() *Entry

func (NullableEntry) IsSet

func (v NullableEntry) IsSet() bool

func (NullableEntry) MarshalJSON

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

func (*NullableEntry) Set

func (v *NullableEntry) Set(val *Entry)

func (*NullableEntry) UnmarshalJSON

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

func (*NullableEntry) Unset

func (v *NullableEntry) Unset()

type NullableEntryInput

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

func NewNullableEntryInput

func NewNullableEntryInput(val *EntryInput) *NullableEntryInput

func (NullableEntryInput) Get

func (v NullableEntryInput) Get() *EntryInput

func (NullableEntryInput) IsSet

func (v NullableEntryInput) IsSet() bool

func (NullableEntryInput) MarshalJSON

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

func (*NullableEntryInput) Set

func (v *NullableEntryInput) Set(val *EntryInput)

func (*NullableEntryInput) UnmarshalJSON

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

func (*NullableEntryInput) Unset

func (v *NullableEntryInput) Unset()

type NullableError

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

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

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

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

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

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

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

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

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

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableNewToken

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

func NewNullableNewToken

func NewNullableNewToken(val *NewToken) *NullableNewToken

func (NullableNewToken) Get

func (v NullableNewToken) Get() *NewToken

func (NullableNewToken) IsSet

func (v NullableNewToken) IsSet() bool

func (NullableNewToken) MarshalJSON

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

func (*NullableNewToken) Set

func (v *NullableNewToken) Set(val *NewToken)

func (*NullableNewToken) UnmarshalJSON

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

func (*NullableNewToken) Unset

func (v *NullableNewToken) Unset()

type NullablePaginationMeta

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

func NewNullablePaginationMeta

func NewNullablePaginationMeta(val *PaginationMeta) *NullablePaginationMeta

func (NullablePaginationMeta) Get

func (NullablePaginationMeta) IsSet

func (v NullablePaginationMeta) IsSet() bool

func (NullablePaginationMeta) MarshalJSON

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

func (*NullablePaginationMeta) Set

func (*NullablePaginationMeta) UnmarshalJSON

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

func (*NullablePaginationMeta) Unset

func (v *NullablePaginationMeta) Unset()

type NullableProject

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

func NewNullableProject

func NewNullableProject(val *Project) *NullableProject

func (NullableProject) Get

func (v NullableProject) Get() *Project

func (NullableProject) IsSet

func (v NullableProject) IsSet() bool

func (NullableProject) MarshalJSON

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

func (*NullableProject) Set

func (v *NullableProject) Set(val *Project)

func (*NullableProject) UnmarshalJSON

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

func (*NullableProject) Unset

func (v *NullableProject) Unset()

type NullableProjectInput

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

func NewNullableProjectInput

func NewNullableProjectInput(val *ProjectInput) *NullableProjectInput

func (NullableProjectInput) Get

func (NullableProjectInput) IsSet

func (v NullableProjectInput) IsSet() bool

func (NullableProjectInput) MarshalJSON

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

func (*NullableProjectInput) Set

func (v *NullableProjectInput) Set(val *ProjectInput)

func (*NullableProjectInput) UnmarshalJSON

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

func (*NullableProjectInput) Unset

func (v *NullableProjectInput) Unset()

type NullableProjectsGet200Response

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

func (NullableProjectsGet200Response) Get

func (NullableProjectsGet200Response) IsSet

func (NullableProjectsGet200Response) MarshalJSON

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

func (*NullableProjectsGet200Response) Set

func (*NullableProjectsGet200Response) UnmarshalJSON

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

func (*NullableProjectsGet200Response) Unset

func (v *NullableProjectsGet200Response) Unset()

type NullableProjectsPost201Response

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

func (NullableProjectsPost201Response) Get

func (NullableProjectsPost201Response) IsSet

func (NullableProjectsPost201Response) MarshalJSON

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

func (*NullableProjectsPost201Response) Set

func (*NullableProjectsPost201Response) UnmarshalJSON

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

func (*NullableProjectsPost201Response) Unset

type NullableProjectsProjectEntriesGet200Response

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

func (NullableProjectsProjectEntriesGet200Response) Get

func (NullableProjectsProjectEntriesGet200Response) IsSet

func (NullableProjectsProjectEntriesGet200Response) MarshalJSON

func (*NullableProjectsProjectEntriesGet200Response) Set

func (*NullableProjectsProjectEntriesGet200Response) UnmarshalJSON

func (*NullableProjectsProjectEntriesGet200Response) Unset

type NullableProjectsProjectEntriesPost201Response

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

func (NullableProjectsProjectEntriesPost201Response) Get

func (NullableProjectsProjectEntriesPost201Response) IsSet

func (NullableProjectsProjectEntriesPost201Response) MarshalJSON

func (*NullableProjectsProjectEntriesPost201Response) Set

func (*NullableProjectsProjectEntriesPost201Response) UnmarshalJSON

func (*NullableProjectsProjectEntriesPost201Response) Unset

type NullablePublicProjectsSlugEntriesGet200Response

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

func (NullablePublicProjectsSlugEntriesGet200Response) Get

func (NullablePublicProjectsSlugEntriesGet200Response) IsSet

func (NullablePublicProjectsSlugEntriesGet200Response) MarshalJSON

func (*NullablePublicProjectsSlugEntriesGet200Response) Set

func (*NullablePublicProjectsSlugEntriesGet200Response) UnmarshalJSON

func (*NullablePublicProjectsSlugEntriesGet200Response) Unset

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTokenInfo

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

func NewNullableTokenInfo

func NewNullableTokenInfo(val *TokenInfo) *NullableTokenInfo

func (NullableTokenInfo) Get

func (v NullableTokenInfo) Get() *TokenInfo

func (NullableTokenInfo) IsSet

func (v NullableTokenInfo) IsSet() bool

func (NullableTokenInfo) MarshalJSON

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

func (*NullableTokenInfo) Set

func (v *NullableTokenInfo) Set(val *TokenInfo)

func (*NullableTokenInfo) UnmarshalJSON

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

func (*NullableTokenInfo) Unset

func (v *NullableTokenInfo) Unset()

type NullableTokensGet200Response

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

func NewNullableTokensGet200Response

func NewNullableTokensGet200Response(val *TokensGet200Response) *NullableTokensGet200Response

func (NullableTokensGet200Response) Get

func (NullableTokensGet200Response) IsSet

func (NullableTokensGet200Response) MarshalJSON

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

func (*NullableTokensGet200Response) Set

func (*NullableTokensGet200Response) UnmarshalJSON

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

func (*NullableTokensGet200Response) Unset

func (v *NullableTokensGet200Response) Unset()

type NullableTokensPost201Response

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

func (NullableTokensPost201Response) Get

func (NullableTokensPost201Response) IsSet

func (NullableTokensPost201Response) MarshalJSON

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

func (*NullableTokensPost201Response) Set

func (*NullableTokensPost201Response) UnmarshalJSON

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

func (*NullableTokensPost201Response) Unset

func (v *NullableTokensPost201Response) Unset()

type NullableTokensPostRequest

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

func NewNullableTokensPostRequest

func NewNullableTokensPostRequest(val *TokensPostRequest) *NullableTokensPostRequest

func (NullableTokensPostRequest) Get

func (NullableTokensPostRequest) IsSet

func (v NullableTokensPostRequest) IsSet() bool

func (NullableTokensPostRequest) MarshalJSON

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

func (*NullableTokensPostRequest) Set

func (*NullableTokensPostRequest) UnmarshalJSON

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

func (*NullableTokensPostRequest) Unset

func (v *NullableTokensPostRequest) Unset()

type NullableUsage

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

func NewNullableUsage

func NewNullableUsage(val *Usage) *NullableUsage

func (NullableUsage) Get

func (v NullableUsage) Get() *Usage

func (NullableUsage) IsSet

func (v NullableUsage) IsSet() bool

func (NullableUsage) MarshalJSON

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

func (*NullableUsage) Set

func (v *NullableUsage) Set(val *Usage)

func (*NullableUsage) UnmarshalJSON

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

func (*NullableUsage) Unset

func (v *NullableUsage) Unset()

type NullableUsageLimits

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

func NewNullableUsageLimits

func NewNullableUsageLimits(val *UsageLimits) *NullableUsageLimits

func (NullableUsageLimits) Get

func (NullableUsageLimits) IsSet

func (v NullableUsageLimits) IsSet() bool

func (NullableUsageLimits) MarshalJSON

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

func (*NullableUsageLimits) Set

func (v *NullableUsageLimits) Set(val *UsageLimits)

func (*NullableUsageLimits) UnmarshalJSON

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

func (*NullableUsageLimits) Unset

func (v *NullableUsageLimits) Unset()

type NullableUser

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

func NewNullableUser

func NewNullableUser(val *User) *NullableUser

func (NullableUser) Get

func (v NullableUser) Get() *User

func (NullableUser) IsSet

func (v NullableUser) IsSet() bool

func (NullableUser) MarshalJSON

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

func (*NullableUser) Set

func (v *NullableUser) Set(val *User)

func (*NullableUser) UnmarshalJSON

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

func (*NullableUser) Unset

func (v *NullableUser) Unset()

type NullableUserGet200Response

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

func NewNullableUserGet200Response

func NewNullableUserGet200Response(val *UserGet200Response) *NullableUserGet200Response

func (NullableUserGet200Response) Get

func (NullableUserGet200Response) IsSet

func (v NullableUserGet200Response) IsSet() bool

func (NullableUserGet200Response) MarshalJSON

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

func (*NullableUserGet200Response) Set

func (*NullableUserGet200Response) UnmarshalJSON

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

func (*NullableUserGet200Response) Unset

func (v *NullableUserGet200Response) Unset()

type NullableUserPlan

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

func NewNullableUserPlan

func NewNullableUserPlan(val *UserPlan) *NullableUserPlan

func (NullableUserPlan) Get

func (v NullableUserPlan) Get() *UserPlan

func (NullableUserPlan) IsSet

func (v NullableUserPlan) IsSet() bool

func (NullableUserPlan) MarshalJSON

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

func (*NullableUserPlan) Set

func (v *NullableUserPlan) Set(val *UserPlan)

func (*NullableUserPlan) UnmarshalJSON

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

func (*NullableUserPlan) Unset

func (v *NullableUserPlan) Unset()

type NullableUserUsageGet200Response

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

func (NullableUserUsageGet200Response) Get

func (NullableUserUsageGet200Response) IsSet

func (NullableUserUsageGet200Response) MarshalJSON

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

func (*NullableUserUsageGet200Response) Set

func (*NullableUserUsageGet200Response) UnmarshalJSON

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

func (*NullableUserUsageGet200Response) Unset

type NullableValidationError

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

func NewNullableValidationError

func NewNullableValidationError(val *ValidationError) *NullableValidationError

func (NullableValidationError) Get

func (NullableValidationError) IsSet

func (v NullableValidationError) IsSet() bool

func (NullableValidationError) MarshalJSON

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

func (*NullableValidationError) Set

func (*NullableValidationError) UnmarshalJSON

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

func (*NullableValidationError) Unset

func (v *NullableValidationError) Unset()

type PaginationMeta

type PaginationMeta struct {
	CurrentPage *int32 `json:"current_page,omitempty"`
	LastPage    *int32 `json:"last_page,omitempty"`
	PerPage     *int32 `json:"per_page,omitempty"`
	Total       *int32 `json:"total,omitempty"`
}

PaginationMeta struct for PaginationMeta

func NewPaginationMeta

func NewPaginationMeta() *PaginationMeta

NewPaginationMeta instantiates a new PaginationMeta object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginationMetaWithDefaults

func NewPaginationMetaWithDefaults() *PaginationMeta

NewPaginationMetaWithDefaults instantiates a new PaginationMeta object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaginationMeta) GetCurrentPage

func (o *PaginationMeta) GetCurrentPage() int32

GetCurrentPage returns the CurrentPage field value if set, zero value otherwise.

func (*PaginationMeta) GetCurrentPageOk

func (o *PaginationMeta) GetCurrentPageOk() (*int32, bool)

GetCurrentPageOk returns a tuple with the CurrentPage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationMeta) GetLastPage

func (o *PaginationMeta) GetLastPage() int32

GetLastPage returns the LastPage field value if set, zero value otherwise.

func (*PaginationMeta) GetLastPageOk

func (o *PaginationMeta) GetLastPageOk() (*int32, bool)

GetLastPageOk returns a tuple with the LastPage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationMeta) GetPerPage

func (o *PaginationMeta) GetPerPage() int32

GetPerPage returns the PerPage field value if set, zero value otherwise.

func (*PaginationMeta) GetPerPageOk

func (o *PaginationMeta) GetPerPageOk() (*int32, bool)

GetPerPageOk returns a tuple with the PerPage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationMeta) GetTotal

func (o *PaginationMeta) GetTotal() int32

GetTotal returns the Total field value if set, zero value otherwise.

func (*PaginationMeta) GetTotalOk

func (o *PaginationMeta) GetTotalOk() (*int32, bool)

GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginationMeta) HasCurrentPage

func (o *PaginationMeta) HasCurrentPage() bool

HasCurrentPage returns a boolean if a field has been set.

func (*PaginationMeta) HasLastPage

func (o *PaginationMeta) HasLastPage() bool

HasLastPage returns a boolean if a field has been set.

func (*PaginationMeta) HasPerPage

func (o *PaginationMeta) HasPerPage() bool

HasPerPage returns a boolean if a field has been set.

func (*PaginationMeta) HasTotal

func (o *PaginationMeta) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (PaginationMeta) MarshalJSON

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

func (*PaginationMeta) SetCurrentPage

func (o *PaginationMeta) SetCurrentPage(v int32)

SetCurrentPage gets a reference to the given int32 and assigns it to the CurrentPage field.

func (*PaginationMeta) SetLastPage

func (o *PaginationMeta) SetLastPage(v int32)

SetLastPage gets a reference to the given int32 and assigns it to the LastPage field.

func (*PaginationMeta) SetPerPage

func (o *PaginationMeta) SetPerPage(v int32)

SetPerPage gets a reference to the given int32 and assigns it to the PerPage field.

func (*PaginationMeta) SetTotal

func (o *PaginationMeta) SetTotal(v int32)

SetTotal gets a reference to the given int32 and assigns it to the Total field.

func (PaginationMeta) ToMap

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

type Project

type Project struct {
	Id                       *int32         `json:"id,omitempty"`
	Name                     *string        `json:"name,omitempty"`
	Slug                     *string        `json:"slug,omitempty"`
	Description              NullableString `json:"description,omitempty"`
	CustomDomain             NullableString `json:"custom_domain,omitempty"`
	DomainVerificationStatus NullableString `json:"domain_verification_status,omitempty"`
	EntriesCount             *int32         `json:"entries_count,omitempty"`
	CreatedAt                *time.Time     `json:"created_at,omitempty"`
	UpdatedAt                *time.Time     `json:"updated_at,omitempty"`
}

Project struct for Project

func NewProject

func NewProject() *Project

NewProject instantiates a new Project object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectWithDefaults

func NewProjectWithDefaults() *Project

NewProjectWithDefaults instantiates a new Project object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Project) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Project) GetCreatedAtOk

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

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Project) GetCustomDomain

func (o *Project) GetCustomDomain() string

GetCustomDomain returns the CustomDomain field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Project) GetCustomDomainOk

func (o *Project) GetCustomDomainOk() (*string, bool)

GetCustomDomainOk returns a tuple with the CustomDomain field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Project) GetDescription

func (o *Project) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Project) GetDescriptionOk

func (o *Project) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Project) GetDomainVerificationStatus

func (o *Project) GetDomainVerificationStatus() string

GetDomainVerificationStatus returns the DomainVerificationStatus field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Project) GetDomainVerificationStatusOk

func (o *Project) GetDomainVerificationStatusOk() (*string, bool)

GetDomainVerificationStatusOk returns a tuple with the DomainVerificationStatus field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Project) GetEntriesCount

func (o *Project) GetEntriesCount() int32

GetEntriesCount returns the EntriesCount field value if set, zero value otherwise.

func (*Project) GetEntriesCountOk

func (o *Project) GetEntriesCountOk() (*int32, bool)

GetEntriesCountOk returns a tuple with the EntriesCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Project) GetId

func (o *Project) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*Project) GetIdOk

func (o *Project) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Project) GetName

func (o *Project) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Project) GetNameOk

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

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

func (*Project) GetSlug

func (o *Project) GetSlug() string

GetSlug returns the Slug field value if set, zero value otherwise.

func (*Project) GetSlugOk

func (o *Project) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Project) GetUpdatedAt

func (o *Project) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Project) GetUpdatedAtOk

func (o *Project) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Project) HasCreatedAt

func (o *Project) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Project) HasCustomDomain

func (o *Project) HasCustomDomain() bool

HasCustomDomain returns a boolean if a field has been set.

func (*Project) HasDescription

func (o *Project) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Project) HasDomainVerificationStatus

func (o *Project) HasDomainVerificationStatus() bool

HasDomainVerificationStatus returns a boolean if a field has been set.

func (*Project) HasEntriesCount

func (o *Project) HasEntriesCount() bool

HasEntriesCount returns a boolean if a field has been set.

func (*Project) HasId

func (o *Project) HasId() bool

HasId returns a boolean if a field has been set.

func (*Project) HasName

func (o *Project) HasName() bool

HasName returns a boolean if a field has been set.

func (*Project) HasSlug

func (o *Project) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (*Project) HasUpdatedAt

func (o *Project) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (Project) MarshalJSON

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

func (*Project) SetCreatedAt

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

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Project) SetCustomDomain

func (o *Project) SetCustomDomain(v string)

SetCustomDomain gets a reference to the given NullableString and assigns it to the CustomDomain field.

func (*Project) SetCustomDomainNil

func (o *Project) SetCustomDomainNil()

SetCustomDomainNil sets the value for CustomDomain to be an explicit nil

func (*Project) SetDescription

func (o *Project) SetDescription(v string)

SetDescription gets a reference to the given NullableString and assigns it to the Description field.

func (*Project) SetDescriptionNil

func (o *Project) SetDescriptionNil()

SetDescriptionNil sets the value for Description to be an explicit nil

func (*Project) SetDomainVerificationStatus

func (o *Project) SetDomainVerificationStatus(v string)

SetDomainVerificationStatus gets a reference to the given NullableString and assigns it to the DomainVerificationStatus field.

func (*Project) SetDomainVerificationStatusNil

func (o *Project) SetDomainVerificationStatusNil()

SetDomainVerificationStatusNil sets the value for DomainVerificationStatus to be an explicit nil

func (*Project) SetEntriesCount

func (o *Project) SetEntriesCount(v int32)

SetEntriesCount gets a reference to the given int32 and assigns it to the EntriesCount field.

func (*Project) SetId

func (o *Project) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*Project) SetName

func (o *Project) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Project) SetSlug

func (o *Project) SetSlug(v string)

SetSlug gets a reference to the given string and assigns it to the Slug field.

func (*Project) SetUpdatedAt

func (o *Project) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (Project) ToMap

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

func (*Project) UnsetCustomDomain

func (o *Project) UnsetCustomDomain()

UnsetCustomDomain ensures that no value is present for CustomDomain, not even an explicit nil

func (*Project) UnsetDescription

func (o *Project) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

func (*Project) UnsetDomainVerificationStatus

func (o *Project) UnsetDomainVerificationStatus()

UnsetDomainVerificationStatus ensures that no value is present for DomainVerificationStatus, not even an explicit nil

type ProjectInput

type ProjectInput struct {
	Name        string         `json:"name"`
	Description NullableString `json:"description,omitempty"`
}

ProjectInput struct for ProjectInput

func NewProjectInput

func NewProjectInput(name string) *ProjectInput

NewProjectInput instantiates a new ProjectInput object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectInputWithDefaults

func NewProjectInputWithDefaults() *ProjectInput

NewProjectInputWithDefaults instantiates a new ProjectInput object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectInput) GetDescription

func (o *ProjectInput) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ProjectInput) GetDescriptionOk

func (o *ProjectInput) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ProjectInput) GetName

func (o *ProjectInput) GetName() string

GetName returns the Name field value

func (*ProjectInput) GetNameOk

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

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

func (*ProjectInput) HasDescription

func (o *ProjectInput) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (ProjectInput) MarshalJSON

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

func (*ProjectInput) SetDescription

func (o *ProjectInput) SetDescription(v string)

SetDescription gets a reference to the given NullableString and assigns it to the Description field.

func (*ProjectInput) SetDescriptionNil

func (o *ProjectInput) SetDescriptionNil()

SetDescriptionNil sets the value for Description to be an explicit nil

func (*ProjectInput) SetName

func (o *ProjectInput) SetName(v string)

SetName sets field value

func (ProjectInput) ToMap

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

func (*ProjectInput) UnmarshalJSON

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

func (*ProjectInput) UnsetDescription

func (o *ProjectInput) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

type ProjectsAPIService

type ProjectsAPIService service

ProjectsAPIService ProjectsAPI service

func (*ProjectsAPIService) ProjectsGet

ProjectsGet List projects

Returns all projects owned by the authenticated user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiProjectsGetRequest

func (*ProjectsAPIService) ProjectsGetExecute

Execute executes the request

@return ProjectsGet200Response

func (*ProjectsAPIService) ProjectsPost

ProjectsPost Create a project

Creates a new changelog project. The slug is auto-generated from the name.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiProjectsPostRequest

func (*ProjectsAPIService) ProjectsPostExecute

Execute executes the request

@return ProjectsPost201Response

func (*ProjectsAPIService) ProjectsProjectDelete

func (a *ProjectsAPIService) ProjectsProjectDelete(ctx context.Context, project int32) ApiProjectsProjectDeleteRequest

ProjectsProjectDelete Delete a project

Permanently deletes a project and all its entries.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@return ApiProjectsProjectDeleteRequest

func (*ProjectsAPIService) ProjectsProjectDeleteExecute

func (a *ProjectsAPIService) ProjectsProjectDeleteExecute(r ApiProjectsProjectDeleteRequest) (*http.Response, error)

Execute executes the request

func (*ProjectsAPIService) ProjectsProjectGet

func (a *ProjectsAPIService) ProjectsProjectGet(ctx context.Context, project int32) ApiProjectsProjectGetRequest

ProjectsProjectGet Get a project

Returns a single project by ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@return ApiProjectsProjectGetRequest

func (*ProjectsAPIService) ProjectsProjectGetExecute

Execute executes the request

@return ProjectsPost201Response

func (*ProjectsAPIService) ProjectsProjectPut

func (a *ProjectsAPIService) ProjectsProjectPut(ctx context.Context, project int32) ApiProjectsProjectPutRequest

ProjectsProjectPut Update a project

Updates an existing project's name and description.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param project Project ID
@return ApiProjectsProjectPutRequest

func (*ProjectsAPIService) ProjectsProjectPutExecute

Execute executes the request

@return ProjectsPost201Response

type ProjectsGet200Response

type ProjectsGet200Response struct {
	Data []Project `json:"data,omitempty"`
}

ProjectsGet200Response struct for ProjectsGet200Response

func NewProjectsGet200Response

func NewProjectsGet200Response() *ProjectsGet200Response

NewProjectsGet200Response instantiates a new ProjectsGet200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectsGet200ResponseWithDefaults

func NewProjectsGet200ResponseWithDefaults() *ProjectsGet200Response

NewProjectsGet200ResponseWithDefaults instantiates a new ProjectsGet200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectsGet200Response) GetData

func (o *ProjectsGet200Response) GetData() []Project

GetData returns the Data field value if set, zero value otherwise.

func (*ProjectsGet200Response) GetDataOk

func (o *ProjectsGet200Response) GetDataOk() ([]Project, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectsGet200Response) HasData

func (o *ProjectsGet200Response) HasData() bool

HasData returns a boolean if a field has been set.

func (ProjectsGet200Response) MarshalJSON

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

func (*ProjectsGet200Response) SetData

func (o *ProjectsGet200Response) SetData(v []Project)

SetData gets a reference to the given []Project and assigns it to the Data field.

func (ProjectsGet200Response) ToMap

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

type ProjectsPost201Response

type ProjectsPost201Response struct {
	Data *Project `json:"data,omitempty"`
}

ProjectsPost201Response struct for ProjectsPost201Response

func NewProjectsPost201Response

func NewProjectsPost201Response() *ProjectsPost201Response

NewProjectsPost201Response instantiates a new ProjectsPost201Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectsPost201ResponseWithDefaults

func NewProjectsPost201ResponseWithDefaults() *ProjectsPost201Response

NewProjectsPost201ResponseWithDefaults instantiates a new ProjectsPost201Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectsPost201Response) GetData

func (o *ProjectsPost201Response) GetData() Project

GetData returns the Data field value if set, zero value otherwise.

func (*ProjectsPost201Response) GetDataOk

func (o *ProjectsPost201Response) GetDataOk() (*Project, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectsPost201Response) HasData

func (o *ProjectsPost201Response) HasData() bool

HasData returns a boolean if a field has been set.

func (ProjectsPost201Response) MarshalJSON

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

func (*ProjectsPost201Response) SetData

func (o *ProjectsPost201Response) SetData(v Project)

SetData gets a reference to the given Project and assigns it to the Data field.

func (ProjectsPost201Response) ToMap

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

type ProjectsProjectEntriesGet200Response

type ProjectsProjectEntriesGet200Response struct {
	Data []Entry         `json:"data,omitempty"`
	Meta *PaginationMeta `json:"meta,omitempty"`
}

ProjectsProjectEntriesGet200Response struct for ProjectsProjectEntriesGet200Response

func NewProjectsProjectEntriesGet200Response

func NewProjectsProjectEntriesGet200Response() *ProjectsProjectEntriesGet200Response

NewProjectsProjectEntriesGet200Response instantiates a new ProjectsProjectEntriesGet200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectsProjectEntriesGet200ResponseWithDefaults

func NewProjectsProjectEntriesGet200ResponseWithDefaults() *ProjectsProjectEntriesGet200Response

NewProjectsProjectEntriesGet200ResponseWithDefaults instantiates a new ProjectsProjectEntriesGet200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectsProjectEntriesGet200Response) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*ProjectsProjectEntriesGet200Response) GetDataOk

func (o *ProjectsProjectEntriesGet200Response) GetDataOk() ([]Entry, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectsProjectEntriesGet200Response) GetMeta

GetMeta returns the Meta field value if set, zero value otherwise.

func (*ProjectsProjectEntriesGet200Response) GetMetaOk

GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectsProjectEntriesGet200Response) HasData

HasData returns a boolean if a field has been set.

func (*ProjectsProjectEntriesGet200Response) HasMeta

HasMeta returns a boolean if a field has been set.

func (ProjectsProjectEntriesGet200Response) MarshalJSON

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

func (*ProjectsProjectEntriesGet200Response) SetData

SetData gets a reference to the given []Entry and assigns it to the Data field.

func (*ProjectsProjectEntriesGet200Response) SetMeta

SetMeta gets a reference to the given PaginationMeta and assigns it to the Meta field.

func (ProjectsProjectEntriesGet200Response) ToMap

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

type ProjectsProjectEntriesPost201Response

type ProjectsProjectEntriesPost201Response struct {
	Data *Entry `json:"data,omitempty"`
}

ProjectsProjectEntriesPost201Response struct for ProjectsProjectEntriesPost201Response

func NewProjectsProjectEntriesPost201Response

func NewProjectsProjectEntriesPost201Response() *ProjectsProjectEntriesPost201Response

NewProjectsProjectEntriesPost201Response instantiates a new ProjectsProjectEntriesPost201Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProjectsProjectEntriesPost201ResponseWithDefaults

func NewProjectsProjectEntriesPost201ResponseWithDefaults() *ProjectsProjectEntriesPost201Response

NewProjectsProjectEntriesPost201ResponseWithDefaults instantiates a new ProjectsProjectEntriesPost201Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProjectsProjectEntriesPost201Response) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*ProjectsProjectEntriesPost201Response) GetDataOk

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProjectsProjectEntriesPost201Response) HasData

HasData returns a boolean if a field has been set.

func (ProjectsProjectEntriesPost201Response) MarshalJSON

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

func (*ProjectsProjectEntriesPost201Response) SetData

SetData gets a reference to the given Entry and assigns it to the Data field.

func (ProjectsProjectEntriesPost201Response) ToMap

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

type PublicAPIService

type PublicAPIService service

PublicAPIService PublicAPI service

func (*PublicAPIService) PublicProjectsSlugEntriesGet

func (a *PublicAPIService) PublicProjectsSlugEntriesGet(ctx context.Context, slug string) ApiPublicProjectsSlugEntriesGetRequest

PublicProjectsSlugEntriesGet List published entries (public)

Returns all published entries for a project. No authentication required.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param slug Project slug
@return ApiPublicProjectsSlugEntriesGetRequest

func (*PublicAPIService) PublicProjectsSlugEntriesGetExecute

Execute executes the request

@return PublicProjectsSlugEntriesGet200Response

type PublicProjectsSlugEntriesGet200Response

type PublicProjectsSlugEntriesGet200Response struct {
	Data []Entry `json:"data,omitempty"`
}

PublicProjectsSlugEntriesGet200Response struct for PublicProjectsSlugEntriesGet200Response

func NewPublicProjectsSlugEntriesGet200Response

func NewPublicProjectsSlugEntriesGet200Response() *PublicProjectsSlugEntriesGet200Response

NewPublicProjectsSlugEntriesGet200Response instantiates a new PublicProjectsSlugEntriesGet200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPublicProjectsSlugEntriesGet200ResponseWithDefaults

func NewPublicProjectsSlugEntriesGet200ResponseWithDefaults() *PublicProjectsSlugEntriesGet200Response

NewPublicProjectsSlugEntriesGet200ResponseWithDefaults instantiates a new PublicProjectsSlugEntriesGet200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PublicProjectsSlugEntriesGet200Response) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*PublicProjectsSlugEntriesGet200Response) GetDataOk

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicProjectsSlugEntriesGet200Response) HasData

HasData returns a boolean if a field has been set.

func (PublicProjectsSlugEntriesGet200Response) MarshalJSON

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

func (*PublicProjectsSlugEntriesGet200Response) SetData

SetData gets a reference to the given []Entry and assigns it to the Data field.

func (PublicProjectsSlugEntriesGet200Response) ToMap

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

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

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

URL formats template on a index using given variables

type ServerVariable

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

ServerVariable stores the information about a server variable

type TokenInfo

type TokenInfo struct {
	Id         *string      `json:"id,omitempty"`
	Name       *string      `json:"name,omitempty"`
	LastUsedAt NullableTime `json:"last_used_at,omitempty"`
	CreatedAt  *time.Time   `json:"created_at,omitempty"`
}

TokenInfo struct for TokenInfo

func NewTokenInfo

func NewTokenInfo() *TokenInfo

NewTokenInfo instantiates a new TokenInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokenInfoWithDefaults

func NewTokenInfoWithDefaults() *TokenInfo

NewTokenInfoWithDefaults instantiates a new TokenInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TokenInfo) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*TokenInfo) GetCreatedAtOk

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

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TokenInfo) GetId

func (o *TokenInfo) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*TokenInfo) GetIdOk

func (o *TokenInfo) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TokenInfo) GetLastUsedAt

func (o *TokenInfo) GetLastUsedAt() time.Time

GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TokenInfo) GetLastUsedAtOk

func (o *TokenInfo) GetLastUsedAtOk() (*time.Time, bool)

GetLastUsedAtOk returns a tuple with the LastUsedAt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TokenInfo) GetName

func (o *TokenInfo) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*TokenInfo) GetNameOk

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

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

func (*TokenInfo) HasCreatedAt

func (o *TokenInfo) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*TokenInfo) HasId

func (o *TokenInfo) HasId() bool

HasId returns a boolean if a field has been set.

func (*TokenInfo) HasLastUsedAt

func (o *TokenInfo) HasLastUsedAt() bool

HasLastUsedAt returns a boolean if a field has been set.

func (*TokenInfo) HasName

func (o *TokenInfo) HasName() bool

HasName returns a boolean if a field has been set.

func (TokenInfo) MarshalJSON

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

func (*TokenInfo) SetCreatedAt

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

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*TokenInfo) SetId

func (o *TokenInfo) SetId(v string)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*TokenInfo) SetLastUsedAt

func (o *TokenInfo) SetLastUsedAt(v time.Time)

SetLastUsedAt gets a reference to the given NullableTime and assigns it to the LastUsedAt field.

func (*TokenInfo) SetLastUsedAtNil

func (o *TokenInfo) SetLastUsedAtNil()

SetLastUsedAtNil sets the value for LastUsedAt to be an explicit nil

func (*TokenInfo) SetName

func (o *TokenInfo) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (TokenInfo) ToMap

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

func (*TokenInfo) UnsetLastUsedAt

func (o *TokenInfo) UnsetLastUsedAt()

UnsetLastUsedAt ensures that no value is present for LastUsedAt, not even an explicit nil

type TokensGet200Response

type TokensGet200Response struct {
	Data []TokenInfo `json:"data,omitempty"`
}

TokensGet200Response struct for TokensGet200Response

func NewTokensGet200Response

func NewTokensGet200Response() *TokensGet200Response

NewTokensGet200Response instantiates a new TokensGet200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokensGet200ResponseWithDefaults

func NewTokensGet200ResponseWithDefaults() *TokensGet200Response

NewTokensGet200ResponseWithDefaults instantiates a new TokensGet200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TokensGet200Response) GetData

func (o *TokensGet200Response) GetData() []TokenInfo

GetData returns the Data field value if set, zero value otherwise.

func (*TokensGet200Response) GetDataOk

func (o *TokensGet200Response) GetDataOk() ([]TokenInfo, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TokensGet200Response) HasData

func (o *TokensGet200Response) HasData() bool

HasData returns a boolean if a field has been set.

func (TokensGet200Response) MarshalJSON

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

func (*TokensGet200Response) SetData

func (o *TokensGet200Response) SetData(v []TokenInfo)

SetData gets a reference to the given []TokenInfo and assigns it to the Data field.

func (TokensGet200Response) ToMap

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

type TokensPost201Response

type TokensPost201Response struct {
	Data *NewToken `json:"data,omitempty"`
}

TokensPost201Response struct for TokensPost201Response

func NewTokensPost201Response

func NewTokensPost201Response() *TokensPost201Response

NewTokensPost201Response instantiates a new TokensPost201Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokensPost201ResponseWithDefaults

func NewTokensPost201ResponseWithDefaults() *TokensPost201Response

NewTokensPost201ResponseWithDefaults instantiates a new TokensPost201Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TokensPost201Response) GetData

func (o *TokensPost201Response) GetData() NewToken

GetData returns the Data field value if set, zero value otherwise.

func (*TokensPost201Response) GetDataOk

func (o *TokensPost201Response) GetDataOk() (*NewToken, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TokensPost201Response) HasData

func (o *TokensPost201Response) HasData() bool

HasData returns a boolean if a field has been set.

func (TokensPost201Response) MarshalJSON

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

func (*TokensPost201Response) SetData

func (o *TokensPost201Response) SetData(v NewToken)

SetData gets a reference to the given NewToken and assigns it to the Data field.

func (TokensPost201Response) ToMap

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

type TokensPostRequest

type TokensPostRequest struct {
	// A descriptive name for the token
	Name string `json:"name"`
}

TokensPostRequest struct for TokensPostRequest

func NewTokensPostRequest

func NewTokensPostRequest(name string) *TokensPostRequest

NewTokensPostRequest instantiates a new TokensPostRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokensPostRequestWithDefaults

func NewTokensPostRequestWithDefaults() *TokensPostRequest

NewTokensPostRequestWithDefaults instantiates a new TokensPostRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TokensPostRequest) GetName

func (o *TokensPostRequest) GetName() string

GetName returns the Name field value

func (*TokensPostRequest) GetNameOk

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

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

func (TokensPostRequest) MarshalJSON

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

func (*TokensPostRequest) SetName

func (o *TokensPostRequest) SetName(v string)

SetName sets field value

func (TokensPostRequest) ToMap

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

func (*TokensPostRequest) UnmarshalJSON

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

type Usage

type Usage struct {
	ProjectsCount    *int32       `json:"projects_count,omitempty"`
	EntriesThisMonth *int32       `json:"entries_this_month,omitempty"`
	Limits           *UsageLimits `json:"limits,omitempty"`
	PlanName         *string      `json:"plan_name,omitempty"`
}

Usage struct for Usage

func NewUsage

func NewUsage() *Usage

NewUsage instantiates a new Usage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUsageWithDefaults

func NewUsageWithDefaults() *Usage

NewUsageWithDefaults instantiates a new Usage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Usage) GetEntriesThisMonth

func (o *Usage) GetEntriesThisMonth() int32

GetEntriesThisMonth returns the EntriesThisMonth field value if set, zero value otherwise.

func (*Usage) GetEntriesThisMonthOk

func (o *Usage) GetEntriesThisMonthOk() (*int32, bool)

GetEntriesThisMonthOk returns a tuple with the EntriesThisMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Usage) GetLimits

func (o *Usage) GetLimits() UsageLimits

GetLimits returns the Limits field value if set, zero value otherwise.

func (*Usage) GetLimitsOk

func (o *Usage) GetLimitsOk() (*UsageLimits, bool)

GetLimitsOk returns a tuple with the Limits field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Usage) GetPlanName

func (o *Usage) GetPlanName() string

GetPlanName returns the PlanName field value if set, zero value otherwise.

func (*Usage) GetPlanNameOk

func (o *Usage) GetPlanNameOk() (*string, bool)

GetPlanNameOk returns a tuple with the PlanName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Usage) GetProjectsCount

func (o *Usage) GetProjectsCount() int32

GetProjectsCount returns the ProjectsCount field value if set, zero value otherwise.

func (*Usage) GetProjectsCountOk

func (o *Usage) GetProjectsCountOk() (*int32, bool)

GetProjectsCountOk returns a tuple with the ProjectsCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Usage) HasEntriesThisMonth

func (o *Usage) HasEntriesThisMonth() bool

HasEntriesThisMonth returns a boolean if a field has been set.

func (*Usage) HasLimits

func (o *Usage) HasLimits() bool

HasLimits returns a boolean if a field has been set.

func (*Usage) HasPlanName

func (o *Usage) HasPlanName() bool

HasPlanName returns a boolean if a field has been set.

func (*Usage) HasProjectsCount

func (o *Usage) HasProjectsCount() bool

HasProjectsCount returns a boolean if a field has been set.

func (Usage) MarshalJSON

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

func (*Usage) SetEntriesThisMonth

func (o *Usage) SetEntriesThisMonth(v int32)

SetEntriesThisMonth gets a reference to the given int32 and assigns it to the EntriesThisMonth field.

func (*Usage) SetLimits

func (o *Usage) SetLimits(v UsageLimits)

SetLimits gets a reference to the given UsageLimits and assigns it to the Limits field.

func (*Usage) SetPlanName

func (o *Usage) SetPlanName(v string)

SetPlanName gets a reference to the given string and assigns it to the PlanName field.

func (*Usage) SetProjectsCount

func (o *Usage) SetProjectsCount(v int32)

SetProjectsCount gets a reference to the given int32 and assigns it to the ProjectsCount field.

func (Usage) ToMap

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

type UsageLimits

type UsageLimits struct {
	MaxProjects        *int32 `json:"max_projects,omitempty"`
	MaxEntriesPerMonth *int32 `json:"max_entries_per_month,omitempty"`
}

UsageLimits struct for UsageLimits

func NewUsageLimits

func NewUsageLimits() *UsageLimits

NewUsageLimits instantiates a new UsageLimits object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUsageLimitsWithDefaults

func NewUsageLimitsWithDefaults() *UsageLimits

NewUsageLimitsWithDefaults instantiates a new UsageLimits object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UsageLimits) GetMaxEntriesPerMonth

func (o *UsageLimits) GetMaxEntriesPerMonth() int32

GetMaxEntriesPerMonth returns the MaxEntriesPerMonth field value if set, zero value otherwise.

func (*UsageLimits) GetMaxEntriesPerMonthOk

func (o *UsageLimits) GetMaxEntriesPerMonthOk() (*int32, bool)

GetMaxEntriesPerMonthOk returns a tuple with the MaxEntriesPerMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UsageLimits) GetMaxProjects

func (o *UsageLimits) GetMaxProjects() int32

GetMaxProjects returns the MaxProjects field value if set, zero value otherwise.

func (*UsageLimits) GetMaxProjectsOk

func (o *UsageLimits) GetMaxProjectsOk() (*int32, bool)

GetMaxProjectsOk returns a tuple with the MaxProjects field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UsageLimits) HasMaxEntriesPerMonth

func (o *UsageLimits) HasMaxEntriesPerMonth() bool

HasMaxEntriesPerMonth returns a boolean if a field has been set.

func (*UsageLimits) HasMaxProjects

func (o *UsageLimits) HasMaxProjects() bool

HasMaxProjects returns a boolean if a field has been set.

func (UsageLimits) MarshalJSON

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

func (*UsageLimits) SetMaxEntriesPerMonth

func (o *UsageLimits) SetMaxEntriesPerMonth(v int32)

SetMaxEntriesPerMonth gets a reference to the given int32 and assigns it to the MaxEntriesPerMonth field.

func (*UsageLimits) SetMaxProjects

func (o *UsageLimits) SetMaxProjects(v int32)

SetMaxProjects gets a reference to the given int32 and assigns it to the MaxProjects field.

func (UsageLimits) ToMap

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

type User

type User struct {
	Id        *int32           `json:"id,omitempty"`
	Name      *string          `json:"name,omitempty"`
	Email     *string          `json:"email,omitempty"`
	Plan      NullableUserPlan `json:"plan,omitempty"`
	CreatedAt *time.Time       `json:"created_at,omitempty"`
}

User struct for User

func NewUser

func NewUser() *User

NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*User) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*User) GetCreatedAtOk

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

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetEmail

func (o *User) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*User) GetEmailOk

func (o *User) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetId

func (o *User) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*User) GetIdOk

func (o *User) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetName

func (o *User) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*User) GetNameOk

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

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

func (*User) GetPlan

func (o *User) GetPlan() UserPlan

GetPlan returns the Plan field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetPlanOk

func (o *User) GetPlanOk() (*UserPlan, bool)

GetPlanOk returns a tuple with the Plan field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) HasCreatedAt

func (o *User) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*User) HasEmail

func (o *User) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*User) HasId

func (o *User) HasId() bool

HasId returns a boolean if a field has been set.

func (*User) HasName

func (o *User) HasName() bool

HasName returns a boolean if a field has been set.

func (*User) HasPlan

func (o *User) HasPlan() bool

HasPlan returns a boolean if a field has been set.

func (User) MarshalJSON

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

func (*User) SetCreatedAt

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

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*User) SetEmail

func (o *User) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*User) SetId

func (o *User) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*User) SetName

func (o *User) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*User) SetPlan

func (o *User) SetPlan(v UserPlan)

SetPlan gets a reference to the given NullableUserPlan and assigns it to the Plan field.

func (*User) SetPlanNil

func (o *User) SetPlanNil()

SetPlanNil sets the value for Plan to be an explicit nil

func (User) ToMap

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

func (*User) UnsetPlan

func (o *User) UnsetPlan()

UnsetPlan ensures that no value is present for Plan, not even an explicit nil

type UserGet200Response

type UserGet200Response struct {
	Data *User `json:"data,omitempty"`
}

UserGet200Response struct for UserGet200Response

func NewUserGet200Response

func NewUserGet200Response() *UserGet200Response

NewUserGet200Response instantiates a new UserGet200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserGet200ResponseWithDefaults

func NewUserGet200ResponseWithDefaults() *UserGet200Response

NewUserGet200ResponseWithDefaults instantiates a new UserGet200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserGet200Response) GetData

func (o *UserGet200Response) GetData() User

GetData returns the Data field value if set, zero value otherwise.

func (*UserGet200Response) GetDataOk

func (o *UserGet200Response) GetDataOk() (*User, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserGet200Response) HasData

func (o *UserGet200Response) HasData() bool

HasData returns a boolean if a field has been set.

func (UserGet200Response) MarshalJSON

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

func (*UserGet200Response) SetData

func (o *UserGet200Response) SetData(v User)

SetData gets a reference to the given User and assigns it to the Data field.

func (UserGet200Response) ToMap

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

type UserPlan

type UserPlan struct {
	Id                  *int32  `json:"id,omitempty"`
	Name                *string `json:"name,omitempty"`
	PlanType            *string `json:"plan_type,omitempty"`
	MaxProjects         *int32  `json:"max_projects,omitempty"`
	MaxEntriesPerMonth  *int32  `json:"max_entries_per_month,omitempty"`
	CustomDomainAllowed *bool   `json:"custom_domain_allowed,omitempty"`
	AnalyticsEnabled    *bool   `json:"analytics_enabled,omitempty"`
	ApiAccessEnabled    *bool   `json:"api_access_enabled,omitempty"`
	// Maximum API requests per minute for this plan
	ApiRateLimit *int32 `json:"api_rate_limit,omitempty"`
}

UserPlan struct for UserPlan

func NewUserPlan

func NewUserPlan() *UserPlan

NewUserPlan instantiates a new UserPlan object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserPlanWithDefaults

func NewUserPlanWithDefaults() *UserPlan

NewUserPlanWithDefaults instantiates a new UserPlan object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserPlan) GetAnalyticsEnabled

func (o *UserPlan) GetAnalyticsEnabled() bool

GetAnalyticsEnabled returns the AnalyticsEnabled field value if set, zero value otherwise.

func (*UserPlan) GetAnalyticsEnabledOk

func (o *UserPlan) GetAnalyticsEnabledOk() (*bool, bool)

GetAnalyticsEnabledOk returns a tuple with the AnalyticsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetApiAccessEnabled

func (o *UserPlan) GetApiAccessEnabled() bool

GetApiAccessEnabled returns the ApiAccessEnabled field value if set, zero value otherwise.

func (*UserPlan) GetApiAccessEnabledOk

func (o *UserPlan) GetApiAccessEnabledOk() (*bool, bool)

GetApiAccessEnabledOk returns a tuple with the ApiAccessEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetApiRateLimit

func (o *UserPlan) GetApiRateLimit() int32

GetApiRateLimit returns the ApiRateLimit field value if set, zero value otherwise.

func (*UserPlan) GetApiRateLimitOk

func (o *UserPlan) GetApiRateLimitOk() (*int32, bool)

GetApiRateLimitOk returns a tuple with the ApiRateLimit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetCustomDomainAllowed

func (o *UserPlan) GetCustomDomainAllowed() bool

GetCustomDomainAllowed returns the CustomDomainAllowed field value if set, zero value otherwise.

func (*UserPlan) GetCustomDomainAllowedOk

func (o *UserPlan) GetCustomDomainAllowedOk() (*bool, bool)

GetCustomDomainAllowedOk returns a tuple with the CustomDomainAllowed field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetId

func (o *UserPlan) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*UserPlan) GetIdOk

func (o *UserPlan) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetMaxEntriesPerMonth

func (o *UserPlan) GetMaxEntriesPerMonth() int32

GetMaxEntriesPerMonth returns the MaxEntriesPerMonth field value if set, zero value otherwise.

func (*UserPlan) GetMaxEntriesPerMonthOk

func (o *UserPlan) GetMaxEntriesPerMonthOk() (*int32, bool)

GetMaxEntriesPerMonthOk returns a tuple with the MaxEntriesPerMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetMaxProjects

func (o *UserPlan) GetMaxProjects() int32

GetMaxProjects returns the MaxProjects field value if set, zero value otherwise.

func (*UserPlan) GetMaxProjectsOk

func (o *UserPlan) GetMaxProjectsOk() (*int32, bool)

GetMaxProjectsOk returns a tuple with the MaxProjects field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) GetName

func (o *UserPlan) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*UserPlan) GetNameOk

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

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

func (*UserPlan) GetPlanType

func (o *UserPlan) GetPlanType() string

GetPlanType returns the PlanType field value if set, zero value otherwise.

func (*UserPlan) GetPlanTypeOk

func (o *UserPlan) GetPlanTypeOk() (*string, bool)

GetPlanTypeOk returns a tuple with the PlanType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserPlan) HasAnalyticsEnabled

func (o *UserPlan) HasAnalyticsEnabled() bool

HasAnalyticsEnabled returns a boolean if a field has been set.

func (*UserPlan) HasApiAccessEnabled

func (o *UserPlan) HasApiAccessEnabled() bool

HasApiAccessEnabled returns a boolean if a field has been set.

func (*UserPlan) HasApiRateLimit

func (o *UserPlan) HasApiRateLimit() bool

HasApiRateLimit returns a boolean if a field has been set.

func (*UserPlan) HasCustomDomainAllowed

func (o *UserPlan) HasCustomDomainAllowed() bool

HasCustomDomainAllowed returns a boolean if a field has been set.

func (*UserPlan) HasId

func (o *UserPlan) HasId() bool

HasId returns a boolean if a field has been set.

func (*UserPlan) HasMaxEntriesPerMonth

func (o *UserPlan) HasMaxEntriesPerMonth() bool

HasMaxEntriesPerMonth returns a boolean if a field has been set.

func (*UserPlan) HasMaxProjects

func (o *UserPlan) HasMaxProjects() bool

HasMaxProjects returns a boolean if a field has been set.

func (*UserPlan) HasName

func (o *UserPlan) HasName() bool

HasName returns a boolean if a field has been set.

func (*UserPlan) HasPlanType

func (o *UserPlan) HasPlanType() bool

HasPlanType returns a boolean if a field has been set.

func (UserPlan) MarshalJSON

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

func (*UserPlan) SetAnalyticsEnabled

func (o *UserPlan) SetAnalyticsEnabled(v bool)

SetAnalyticsEnabled gets a reference to the given bool and assigns it to the AnalyticsEnabled field.

func (*UserPlan) SetApiAccessEnabled

func (o *UserPlan) SetApiAccessEnabled(v bool)

SetApiAccessEnabled gets a reference to the given bool and assigns it to the ApiAccessEnabled field.

func (*UserPlan) SetApiRateLimit

func (o *UserPlan) SetApiRateLimit(v int32)

SetApiRateLimit gets a reference to the given int32 and assigns it to the ApiRateLimit field.

func (*UserPlan) SetCustomDomainAllowed

func (o *UserPlan) SetCustomDomainAllowed(v bool)

SetCustomDomainAllowed gets a reference to the given bool and assigns it to the CustomDomainAllowed field.

func (*UserPlan) SetId

func (o *UserPlan) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*UserPlan) SetMaxEntriesPerMonth

func (o *UserPlan) SetMaxEntriesPerMonth(v int32)

SetMaxEntriesPerMonth gets a reference to the given int32 and assigns it to the MaxEntriesPerMonth field.

func (*UserPlan) SetMaxProjects

func (o *UserPlan) SetMaxProjects(v int32)

SetMaxProjects gets a reference to the given int32 and assigns it to the MaxProjects field.

func (*UserPlan) SetName

func (o *UserPlan) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*UserPlan) SetPlanType

func (o *UserPlan) SetPlanType(v string)

SetPlanType gets a reference to the given string and assigns it to the PlanType field.

func (UserPlan) ToMap

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

type UserUsageGet200Response

type UserUsageGet200Response struct {
	Data *Usage `json:"data,omitempty"`
}

UserUsageGet200Response struct for UserUsageGet200Response

func NewUserUsageGet200Response

func NewUserUsageGet200Response() *UserUsageGet200Response

NewUserUsageGet200Response instantiates a new UserUsageGet200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserUsageGet200ResponseWithDefaults

func NewUserUsageGet200ResponseWithDefaults() *UserUsageGet200Response

NewUserUsageGet200ResponseWithDefaults instantiates a new UserUsageGet200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserUsageGet200Response) GetData

func (o *UserUsageGet200Response) GetData() Usage

GetData returns the Data field value if set, zero value otherwise.

func (*UserUsageGet200Response) GetDataOk

func (o *UserUsageGet200Response) GetDataOk() (*Usage, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserUsageGet200Response) HasData

func (o *UserUsageGet200Response) HasData() bool

HasData returns a boolean if a field has been set.

func (UserUsageGet200Response) MarshalJSON

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

func (*UserUsageGet200Response) SetData

func (o *UserUsageGet200Response) SetData(v Usage)

SetData gets a reference to the given Usage and assigns it to the Data field.

func (UserUsageGet200Response) ToMap

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

type UsersAPIService

type UsersAPIService service

UsersAPIService UsersAPI service

func (*UsersAPIService) UserGet

UserGet Get current user

Returns the authenticated user's profile and plan details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserGetRequest

func (*UsersAPIService) UserGetExecute

Execute executes the request

@return UserGet200Response

func (*UsersAPIService) UserUsageGet

UserUsageGet Get usage statistics

Returns current usage counts and plan limits.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserUsageGetRequest

func (*UsersAPIService) UserUsageGetExecute

Execute executes the request

@return UserUsageGet200Response

type ValidationError

type ValidationError struct {
	Message *string              `json:"message,omitempty"`
	Errors  *map[string][]string `json:"errors,omitempty"`
}

ValidationError struct for ValidationError

func NewValidationError

func NewValidationError() *ValidationError

NewValidationError instantiates a new ValidationError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewValidationErrorWithDefaults

func NewValidationErrorWithDefaults() *ValidationError

NewValidationErrorWithDefaults instantiates a new ValidationError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ValidationError) GetErrors

func (o *ValidationError) GetErrors() map[string][]string

GetErrors returns the Errors field value if set, zero value otherwise.

func (*ValidationError) GetErrorsOk

func (o *ValidationError) GetErrorsOk() (*map[string][]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidationError) GetMessage

func (o *ValidationError) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ValidationError) GetMessageOk

func (o *ValidationError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidationError) HasErrors

func (o *ValidationError) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*ValidationError) HasMessage

func (o *ValidationError) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ValidationError) MarshalJSON

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

func (*ValidationError) SetErrors

func (o *ValidationError) SetErrors(v map[string][]string)

SetErrors gets a reference to the given map[string][]string and assigns it to the Errors field.

func (*ValidationError) SetMessage

func (o *ValidationError) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (ValidationError) ToMap

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

Directories

Path Synopsis
cmd
test command

Jump to

Keyboard shortcuts

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