Help us shape the future of Go! Take the 2026 Go Developer Survey

licensemanager

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

README

LicenseManager Go SDK

Go Reference Release Go version Go Report Card License Documentation

The official Go SDK for the LicenseManager API: issue, manage and validate software licenses. Idiomatic Go client with a context.Context on every call.

Documentation · API reference · Changelog

Requirements

Go 1.23 or later.

Installation

go get github.com/licenseman/licensemanager-go

Usage

Create an API key in the LicenseManager app, then create a license after a sale:

package main

import (
	"context"
	"log"
	"os"

	licensemanager "github.com/licenseman/licensemanager-go"
)

func main() {
	client := licensemanager.NewAPIClient(licensemanager.NewConfiguration())
	ctx := context.WithValue(context.Background(), licensemanager.ContextAPIKeys, map[string]licensemanager.APIKey{
		"apiKey": {Key: os.Getenv("LICENSEMANAGER_API_KEY")},
	})

	license, _, err := client.LicensesAPI.CreateLicense(ctx, "x7Kp2QaZ").
		CreateLicense(*licensemanager.NewCreateLicense("jane@example.com")).
		Execute()
	if err != nil {
		log.Fatal(err)
	}
	log.Println(license)
}

And validate it from your application, which needs no API key:

package main

import (
	"context"
	"log"

	licensemanager "github.com/licenseman/licensemanager-go"
)

func main() {
	client := licensemanager.NewAPIClient(licensemanager.NewConfiguration())
	ctx := context.Background()

	licenseToken, _, err := client.LicensesAPI.ValidateKey(ctx, "x7Kp2QaZ").
		ValidateKey(*licensemanager.NewValidateKey("7KQ2M-X9ZPA-H4TRC-WN6EY-B3JDF", "4c:32:75:8f:9a:1e", "1.4.2")).
		Execute()
	if err != nil {
		log.Fatal(err)
	}
	log.Println(licenseToken)
}

Authentication

Most endpoints take an organization API key: keep it on your servers. The endpoints your application calls directly, like validating a key, take no credentials or a token scoped to a customer, license or machine. See authentication and scoped tokens.

// With an API key, from your backend:
ctx := context.WithValue(context.Background(), licensemanager.ContextAPIKeys, map[string]licensemanager.APIKey{
	"apiKey": {Key: os.Getenv("LICENSEMANAGER_API_KEY")},
})

// With a token scoped to a customer, license or machine:
ctx = context.WithValue(context.Background(), licensemanager.ContextAccessToken, token)

Errors

Failed requests answer an error with a stable code to branch on, listed for each endpoint in the API reference. See errors.

_, _, err := client.LicensesAPI.GetLicense(ctx, "l3Nv8KwB").Execute()
var apiErr *licensemanager.GenericOpenAPIError
if errors.As(err, &apiErr) {
	// The body is { "error": { "code", "message" } }.
	log.Println(apiErr.Error(), string(apiErr.Body()))
}

Reference

Every method is documented, with its parameters and responses, in the docs folder:

Class Methods
LicensesAPI ValidateKey, ListLicenses, CreateLicense, ListCustomerLicenses, GetLicense, DeleteLicense, UpdateLicense, GetLicenseStats, SendLicenseKeys, GetSigningKey
PortalAPI GetPortal, RequestPortalLink, CreatePortalLink, SendPortalLink
ProductsAPI ListProducts, CreateProduct, GetProduct, DeleteProduct, UpdateProduct, ResetProduct, UploadProductLogo, DeleteProductLogo, GetProductStats
PoliciesAPI ListPolicies, CreatePolicy, GetPolicy, DeletePolicy, UpdatePolicy
CustomersAPI ListCustomers, CreateCustomer, GetCustomer, DeleteCustomer, UpdateCustomer
MachinesAPI ListMachines, GetMachine, DeactivateMachine
ReleasesAPI ListReleases, CreateRelease, GetRelease, DeleteRelease, UpdateRelease
TokensAPI CreateCustomerToken, CreateLicenseToken, CreateMachineToken
EventsAPI ListPolicyEvents, ListLicenseEvents
IntegrationsAPI GetStripeIntegration, ConnectStripe, DisconnectIntegration, CheckIntegration, ListStripePrices, CreateStripeMapping, DeleteStripeMapping, UpdateStripeMapping

Versioning

This SDK follows semantic versioning and is generated from the OpenAPI document of the API: each release is listed in the changelog. Please don't open pull requests, they would be overwritten by the next release: open an issue instead.

License

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

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

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

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

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

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedEventTypeEnumValues = []EventType{
	"policy.created",
	"policy.updated",
	"license.created",
	"license.updated",
	"license.validated",
	"license.validation_failed",
	"machine.deactivated",
	"unknown_default_open_api",
}

All allowed values of EventType enum

View Source
var AllowedIntegrationStatusEnumValues = []IntegrationStatus{
	"active",
	"error",
	"disconnected",
	"unknown_default_open_api",
}

All allowed values of IntegrationStatus enum

View Source
var AllowedLicenseStatusEnumValues = []LicenseStatus{
	"active",
	"inactive",
	"expired",
	"unknown_default_open_api",
}

All allowed values of LicenseStatus enum

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 {
	CustomersAPI *CustomersAPIService

	EventsAPI *EventsAPIService

	IntegrationsAPI *IntegrationsAPIService

	LicensesAPI *LicensesAPIService

	MachinesAPI *MachinesAPIService

	PoliciesAPI *PoliciesAPIService

	PortalAPI *PortalAPIService

	ProductsAPI *ProductsAPIService

	ReleasesAPI *ReleasesAPIService

	TokensAPI *TokensAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the LicenseManager 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 ApiCheckIntegrationRequest

type ApiCheckIntegrationRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiCheckIntegrationRequest) Execute

type ApiConnectStripeRequest

type ApiConnectStripeRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiConnectStripeRequest) ConnectStripe

func (r ApiConnectStripeRequest) ConnectStripe(connectStripe ConnectStripe) ApiConnectStripeRequest

func (ApiConnectStripeRequest) Execute

type ApiCreateCustomerRequest

type ApiCreateCustomerRequest struct {
	ApiService *CustomersAPIService
	// contains filtered or unexported fields
}

func (ApiCreateCustomerRequest) CreateCustomer

func (r ApiCreateCustomerRequest) CreateCustomer(createCustomer CreateCustomer) ApiCreateCustomerRequest

func (ApiCreateCustomerRequest) Execute

type ApiCreateCustomerTokenRequest

type ApiCreateCustomerTokenRequest struct {
	ApiService *TokensAPIService
	// contains filtered or unexported fields
}

func (ApiCreateCustomerTokenRequest) CreateToken

func (ApiCreateCustomerTokenRequest) Execute

type ApiCreateLicenseRequest

type ApiCreateLicenseRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiCreateLicenseRequest) CreateLicense

func (r ApiCreateLicenseRequest) CreateLicense(createLicense CreateLicense) ApiCreateLicenseRequest

func (ApiCreateLicenseRequest) Execute

type ApiCreateLicenseTokenRequest

type ApiCreateLicenseTokenRequest struct {
	ApiService *TokensAPIService
	// contains filtered or unexported fields
}

func (ApiCreateLicenseTokenRequest) CreateToken

func (ApiCreateLicenseTokenRequest) Execute

type ApiCreateMachineTokenRequest

type ApiCreateMachineTokenRequest struct {
	ApiService *TokensAPIService
	// contains filtered or unexported fields
}

func (ApiCreateMachineTokenRequest) CreateToken

func (ApiCreateMachineTokenRequest) Execute

type ApiCreatePolicyRequest

type ApiCreatePolicyRequest struct {
	ApiService *PoliciesAPIService
	// contains filtered or unexported fields
}

func (ApiCreatePolicyRequest) CreatePolicy

func (r ApiCreatePolicyRequest) CreatePolicy(createPolicy CreatePolicy) ApiCreatePolicyRequest

func (ApiCreatePolicyRequest) Execute

func (r ApiCreatePolicyRequest) Execute() (*Policy, *http.Response, error)

type ApiCreatePortalLinkRequest

type ApiCreatePortalLinkRequest struct {
	ApiService *PortalAPIService
	// contains filtered or unexported fields
}
func (r ApiCreatePortalLinkRequest) CreatePortalLink(createPortalLink CreatePortalLink) ApiCreatePortalLinkRequest

func (ApiCreatePortalLinkRequest) Execute

type ApiCreateProductRequest

type ApiCreateProductRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiCreateProductRequest) CreateProductWithPolicy

func (r ApiCreateProductRequest) CreateProductWithPolicy(createProductWithPolicy CreateProductWithPolicy) ApiCreateProductRequest

func (ApiCreateProductRequest) Execute

type ApiCreateReleaseRequest

type ApiCreateReleaseRequest struct {
	ApiService *ReleasesAPIService
	// contains filtered or unexported fields
}

func (ApiCreateReleaseRequest) CreateRelease

func (r ApiCreateReleaseRequest) CreateRelease(createRelease CreateRelease) ApiCreateReleaseRequest

func (ApiCreateReleaseRequest) Execute

type ApiCreateStripeMappingRequest

type ApiCreateStripeMappingRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiCreateStripeMappingRequest) CreateIntegrationMapping

func (r ApiCreateStripeMappingRequest) CreateIntegrationMapping(createIntegrationMapping CreateIntegrationMapping) ApiCreateStripeMappingRequest

func (ApiCreateStripeMappingRequest) Execute

type ApiDeactivateMachineRequest

type ApiDeactivateMachineRequest struct {
	ApiService *MachinesAPIService
	// contains filtered or unexported fields
}

func (ApiDeactivateMachineRequest) Execute

type ApiDeleteCustomerRequest

type ApiDeleteCustomerRequest struct {
	ApiService *CustomersAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteCustomerRequest) Execute

func (r ApiDeleteCustomerRequest) Execute() (*http.Response, error)

type ApiDeleteLicenseRequest

type ApiDeleteLicenseRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteLicenseRequest) Execute

func (r ApiDeleteLicenseRequest) Execute() (*http.Response, error)

type ApiDeletePolicyRequest

type ApiDeletePolicyRequest struct {
	ApiService *PoliciesAPIService
	// contains filtered or unexported fields
}

func (ApiDeletePolicyRequest) Execute

func (r ApiDeletePolicyRequest) Execute() (*http.Response, error)

type ApiDeleteProductLogoRequest

type ApiDeleteProductLogoRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteProductLogoRequest) Execute

type ApiDeleteProductRequest

type ApiDeleteProductRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteProductRequest) Execute

func (r ApiDeleteProductRequest) Execute() (*http.Response, error)

type ApiDeleteReleaseRequest

type ApiDeleteReleaseRequest struct {
	ApiService *ReleasesAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteReleaseRequest) Execute

func (r ApiDeleteReleaseRequest) Execute() (*http.Response, error)

type ApiDeleteStripeMappingRequest

type ApiDeleteStripeMappingRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteStripeMappingRequest) Execute

type ApiDisconnectIntegrationRequest

type ApiDisconnectIntegrationRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiDisconnectIntegrationRequest) Execute

type ApiGetCustomerRequest

type ApiGetCustomerRequest struct {
	ApiService *CustomersAPIService
	// contains filtered or unexported fields
}

func (ApiGetCustomerRequest) Execute

func (r ApiGetCustomerRequest) Execute() (*Customer, *http.Response, error)

type ApiGetLicenseRequest

type ApiGetLicenseRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiGetLicenseRequest) Execute

func (r ApiGetLicenseRequest) Execute() (*License, *http.Response, error)

type ApiGetLicenseStatsRequest

type ApiGetLicenseStatsRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiGetLicenseStatsRequest) Execute

type ApiGetMachineRequest

type ApiGetMachineRequest struct {
	ApiService *MachinesAPIService
	// contains filtered or unexported fields
}

func (ApiGetMachineRequest) Execute

func (r ApiGetMachineRequest) Execute() (*Machine, *http.Response, error)

type ApiGetPolicyRequest

type ApiGetPolicyRequest struct {
	ApiService *PoliciesAPIService
	// contains filtered or unexported fields
}

func (ApiGetPolicyRequest) Execute

func (r ApiGetPolicyRequest) Execute() (*Policy, *http.Response, error)

type ApiGetPortalRequest

type ApiGetPortalRequest struct {
	ApiService *PortalAPIService
	// contains filtered or unexported fields
}

func (ApiGetPortalRequest) Execute

func (r ApiGetPortalRequest) Execute() (*Portal, *http.Response, error)

func (ApiGetPortalRequest) ReturnUrl

func (r ApiGetPortalRequest) ReturnUrl(returnUrl string) ApiGetPortalRequest

Link back to your website to show, used when its domain is one of the product's `returnDomains`.

type ApiGetProductRequest

type ApiGetProductRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiGetProductRequest) Execute

func (r ApiGetProductRequest) Execute() (*Product, *http.Response, error)

type ApiGetProductStatsRequest

type ApiGetProductStatsRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiGetProductStatsRequest) Execute

type ApiGetReleaseRequest

type ApiGetReleaseRequest struct {
	ApiService *ReleasesAPIService
	// contains filtered or unexported fields
}

func (ApiGetReleaseRequest) Execute

func (r ApiGetReleaseRequest) Execute() (*Release, *http.Response, error)

type ApiGetSigningKeyRequest

type ApiGetSigningKeyRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiGetSigningKeyRequest) Execute

type ApiGetStripeIntegrationRequest

type ApiGetStripeIntegrationRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiGetStripeIntegrationRequest) Execute

type ApiListCustomerLicensesRequest

type ApiListCustomerLicensesRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiListCustomerLicensesRequest) CreatedFrom

Only returns the licenses created at or after this date.

func (ApiListCustomerLicensesRequest) CreatedTo

Only returns the licenses created at or before this date.

func (ApiListCustomerLicensesRequest) Currency

Only returns the licenses paid in this currency.

func (ApiListCustomerLicensesRequest) Execute

func (ApiListCustomerLicensesRequest) ExpiresFrom

Only returns the licenses expiring at or after this date. Licenses that never expire are left out.

func (ApiListCustomerLicensesRequest) ExpiresTo

Only returns the licenses expiring at or before this date. Licenses that never expire are left out.

func (ApiListCustomerLicensesRequest) HasPrice

`true` only returns the licenses with a price, `false` only the ones without.

func (ApiListCustomerLicensesRequest) Key

Only returns the license with this exact key, case included. Keys of test products start with `TEST-`.

func (ApiListCustomerLicensesRequest) LastActivatedFrom

func (r ApiListCustomerLicensesRequest) LastActivatedFrom(lastActivatedFrom time.Time) ApiListCustomerLicensesRequest

Only returns the licenses last activated at or after this date. Licenses never activated are left out.

func (ApiListCustomerLicensesRequest) LastActivatedTo

func (r ApiListCustomerLicensesRequest) LastActivatedTo(lastActivatedTo time.Time) ApiListCustomerLicensesRequest

Only returns the licenses last activated at or before this date. Licenses never activated are left out.

func (ApiListCustomerLicensesRequest) MachineVersion

func (r ApiListCustomerLicensesRequest) MachineVersion(machineVersion string) ApiListCustomerLicensesRequest

Only returns the licenses with at least one active machine running this version of the product.

func (ApiListCustomerLicensesRequest) NeverActivated

func (r ApiListCustomerLicensesRequest) NeverActivated(neverActivated string) ApiListCustomerLicensesRequest

`true` only returns the licenses never activated, `false` only the ones activated at least once.

func (ApiListCustomerLicensesRequest) NeverExpires

`true` only returns the licenses that never expire, `false` only the ones with an expiration date.

func (ApiListCustomerLicensesRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListCustomerLicensesRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListCustomerLicensesRequest) PolicyId

Only returns the licenses following this policy.

func (ApiListCustomerLicensesRequest) Price

Only returns the licenses paid exactly this amount, in major units of its currency: combine with `currency` to compare amounts of one currency. Licenses without a price are left out.

func (ApiListCustomerLicensesRequest) PriceMax

Only returns the licenses paid at most this amount, in major units of its currency: combine with `currency` to compare amounts of one currency. Licenses without a price are left out.

func (ApiListCustomerLicensesRequest) PriceMin

Only returns the licenses paid at least this amount, in major units of its currency: combine with `currency` to compare amounts of one currency. Licenses without a price are left out.

func (ApiListCustomerLicensesRequest) Search

Case-insensitive text the key contains.

func (ApiListCustomerLicensesRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

func (ApiListCustomerLicensesRequest) Status

Only returns the licenses with this status.

type ApiListCustomersRequest

type ApiListCustomersRequest struct {
	ApiService *CustomersAPIService
	// contains filtered or unexported fields
}

func (ApiListCustomersRequest) Email

Only returns the customer with this email, compared regardless of case.

func (ApiListCustomersRequest) Execute

func (ApiListCustomersRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListCustomersRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListCustomersRequest) Search

Case-insensitive text the name or email contains.

func (ApiListCustomersRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

type ApiListLicenseEventsRequest

type ApiListLicenseEventsRequest struct {
	ApiService *EventsAPIService
	// contains filtered or unexported fields
}

func (ApiListLicenseEventsRequest) Execute

func (ApiListLicenseEventsRequest) MachineId

Only returns the events of this machine of the license.

func (ApiListLicenseEventsRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListLicenseEventsRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListLicenseEventsRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

func (ApiListLicenseEventsRequest) Type_

Only returns the events of this type. Repeat it to return the events of any of these types.

type ApiListLicensesRequest

type ApiListLicensesRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiListLicensesRequest) CreatedFrom

func (r ApiListLicensesRequest) CreatedFrom(createdFrom time.Time) ApiListLicensesRequest

Only returns the licenses created at or after this date.

func (ApiListLicensesRequest) CreatedTo

func (r ApiListLicensesRequest) CreatedTo(createdTo time.Time) ApiListLicensesRequest

Only returns the licenses created at or before this date.

func (ApiListLicensesRequest) Currency

Only returns the licenses paid in this currency.

func (ApiListLicensesRequest) CustomerId

func (r ApiListLicensesRequest) CustomerId(customerId string) ApiListLicensesRequest

Only returns the licenses of this customer.

func (ApiListLicensesRequest) Execute

func (ApiListLicensesRequest) ExpiresFrom

func (r ApiListLicensesRequest) ExpiresFrom(expiresFrom time.Time) ApiListLicensesRequest

Only returns the licenses expiring at or after this date. Licenses that never expire are left out.

func (ApiListLicensesRequest) ExpiresTo

func (r ApiListLicensesRequest) ExpiresTo(expiresTo time.Time) ApiListLicensesRequest

Only returns the licenses expiring at or before this date. Licenses that never expire are left out.

func (ApiListLicensesRequest) HasPrice

`true` only returns the licenses with a price, `false` only the ones without.

func (ApiListLicensesRequest) Key

Only returns the license with this exact key, case included. Keys of test products start with `TEST-`.

func (ApiListLicensesRequest) LastActivatedFrom

func (r ApiListLicensesRequest) LastActivatedFrom(lastActivatedFrom time.Time) ApiListLicensesRequest

Only returns the licenses last activated at or after this date. Licenses never activated are left out.

func (ApiListLicensesRequest) LastActivatedTo

func (r ApiListLicensesRequest) LastActivatedTo(lastActivatedTo time.Time) ApiListLicensesRequest

Only returns the licenses last activated at or before this date. Licenses never activated are left out.

func (ApiListLicensesRequest) MachineVersion

func (r ApiListLicensesRequest) MachineVersion(machineVersion string) ApiListLicensesRequest

Only returns the licenses with at least one active machine running this version of the product.

func (ApiListLicensesRequest) NeverActivated

func (r ApiListLicensesRequest) NeverActivated(neverActivated string) ApiListLicensesRequest

`true` only returns the licenses never activated, `false` only the ones activated at least once.

func (ApiListLicensesRequest) NeverExpires

func (r ApiListLicensesRequest) NeverExpires(neverExpires string) ApiListLicensesRequest

`true` only returns the licenses that never expire, `false` only the ones with an expiration date.

func (ApiListLicensesRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListLicensesRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListLicensesRequest) PolicyId

Only returns the licenses following this policy.

func (ApiListLicensesRequest) Price

Only returns the licenses paid exactly this amount, in major units of its currency: combine with `currency` to compare amounts of one currency. Licenses without a price are left out.

func (ApiListLicensesRequest) PriceMax

Only returns the licenses paid at most this amount, in major units of its currency: combine with `currency` to compare amounts of one currency. Licenses without a price are left out.

func (ApiListLicensesRequest) PriceMin

Only returns the licenses paid at least this amount, in major units of its currency: combine with `currency` to compare amounts of one currency. Licenses without a price are left out.

func (ApiListLicensesRequest) Search

Case-insensitive text the key contains.

func (ApiListLicensesRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

func (ApiListLicensesRequest) Status

Only returns the licenses with this status.

type ApiListMachinesRequest

type ApiListMachinesRequest struct {
	ApiService *MachinesAPIService
	// contains filtered or unexported fields
}

func (ApiListMachinesRequest) Execute

func (ApiListMachinesRequest) Fingerprint

func (r ApiListMachinesRequest) Fingerprint(fingerprint string) ApiListMachinesRequest

Only returns the machine with this exact fingerprint.

func (ApiListMachinesRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListMachinesRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListMachinesRequest) Search

Case-insensitive text the fingerprint or name contains.

func (ApiListMachinesRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

func (ApiListMachinesRequest) Status

Only returns the machines with this status.

type ApiListPoliciesRequest

type ApiListPoliciesRequest struct {
	ApiService *PoliciesAPIService
	// contains filtered or unexported fields
}

func (ApiListPoliciesRequest) Execute

func (ApiListPoliciesRequest) IsDefault

func (r ApiListPoliciesRequest) IsDefault(isDefault string) ApiListPoliciesRequest

`true` only returns the product's default policy, `false` only the other ones.

func (ApiListPoliciesRequest) LicenseCount

func (r ApiListPoliciesRequest) LicenseCount(licenseCount int32) ApiListPoliciesRequest

Only returns the policies followed by exactly this number of licenses.

func (ApiListPoliciesRequest) LicenseCountMax

func (r ApiListPoliciesRequest) LicenseCountMax(licenseCountMax int32) ApiListPoliciesRequest

Only returns the policies followed by at most this number of licenses.

func (ApiListPoliciesRequest) LicenseCountMin

func (r ApiListPoliciesRequest) LicenseCountMin(licenseCountMin int32) ApiListPoliciesRequest

Only returns the policies followed by at least this number of licenses.

func (ApiListPoliciesRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListPoliciesRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListPoliciesRequest) Search

Case-insensitive text the name or slug contains.

func (ApiListPoliciesRequest) Slug

Only returns the policy with this exact slug.

func (ApiListPoliciesRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `name`.

type ApiListPolicyEventsRequest

type ApiListPolicyEventsRequest struct {
	ApiService *EventsAPIService
	// contains filtered or unexported fields
}

func (ApiListPolicyEventsRequest) Execute

func (ApiListPolicyEventsRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListPolicyEventsRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListPolicyEventsRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

func (ApiListPolicyEventsRequest) Type_

Only returns the events of this type. Repeat it to return the events of any of these types.

type ApiListProductsRequest

type ApiListProductsRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiListProductsRequest) Execute

func (ApiListProductsRequest) IsTest

Only returns the test products with `true`, the live ones with `false`. API keys only list the products of their own mode.

func (ApiListProductsRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListProductsRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListProductsRequest) Search

Case-insensitive text the name or slug contains.

func (ApiListProductsRequest) Slug

Only returns the product with this exact slug.

func (ApiListProductsRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.

type ApiListReleasesRequest

type ApiListReleasesRequest struct {
	ApiService *ReleasesAPIService
	// contains filtered or unexported fields
}

func (ApiListReleasesRequest) ActiveMachineCount

func (r ApiListReleasesRequest) ActiveMachineCount(activeMachineCount int32) ApiListReleasesRequest

Only returns the releases running on exactly this number of active machines.

func (ApiListReleasesRequest) ActiveMachineCountMax

func (r ApiListReleasesRequest) ActiveMachineCountMax(activeMachineCountMax int32) ApiListReleasesRequest

Only returns the releases running on at most this number of active machines.

func (ApiListReleasesRequest) ActiveMachineCountMin

func (r ApiListReleasesRequest) ActiveMachineCountMin(activeMachineCountMin int32) ApiListReleasesRequest

Only returns the releases running on at least this number of active machines.

func (ApiListReleasesRequest) Execute

func (ApiListReleasesRequest) Page

Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.

func (ApiListReleasesRequest) PageSize

Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.

func (ApiListReleasesRequest) ReleasedFrom

func (r ApiListReleasesRequest) ReleasedFrom(releasedFrom time.Time) ApiListReleasesRequest

Only returns the releases released at or after this date.

func (ApiListReleasesRequest) ReleasedTo

func (r ApiListReleasesRequest) ReleasedTo(releasedTo time.Time) ApiListReleasesRequest

Only returns the releases released at or before this date.

func (ApiListReleasesRequest) Search

Case-insensitive text the version contains.

func (ApiListReleasesRequest) Sort

Field to sort by, prefixed with `-` for descending order. Defaults to `-version`.

type ApiListStripePricesRequest

type ApiListStripePricesRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiListStripePricesRequest) Execute

type ApiRequestPortalLinkRequest

type ApiRequestPortalLinkRequest struct {
	ApiService *PortalAPIService
	// contains filtered or unexported fields
}

func (ApiRequestPortalLinkRequest) Execute

func (r ApiRequestPortalLinkRequest) RequestPortalLink(requestPortalLink RequestPortalLink) ApiRequestPortalLinkRequest

type ApiResetProductRequest

type ApiResetProductRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiResetProductRequest) Execute

func (r ApiResetProductRequest) Execute() (*Product, *http.Response, error)

type ApiSendLicenseKeysRequest

type ApiSendLicenseKeysRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiSendLicenseKeysRequest) Execute

func (r ApiSendLicenseKeysRequest) Execute() (*http.Response, error)

func (ApiSendLicenseKeysRequest) SendLicenseKeys

func (r ApiSendLicenseKeysRequest) SendLicenseKeys(sendLicenseKeys SendLicenseKeys) ApiSendLicenseKeysRequest

type ApiSendPortalLinkRequest

type ApiSendPortalLinkRequest struct {
	ApiService *PortalAPIService
	// contains filtered or unexported fields
}

func (ApiSendPortalLinkRequest) Execute

func (r ApiSendPortalLinkRequest) Execute() (*http.Response, error)
func (r ApiSendPortalLinkRequest) SendPortalLink(sendPortalLink SendPortalLink) ApiSendPortalLinkRequest

type ApiUpdateCustomerRequest

type ApiUpdateCustomerRequest struct {
	ApiService *CustomersAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateCustomerRequest) Execute

func (ApiUpdateCustomerRequest) UpdateCustomer

func (r ApiUpdateCustomerRequest) UpdateCustomer(updateCustomer UpdateCustomer) ApiUpdateCustomerRequest

type ApiUpdateLicenseRequest

type ApiUpdateLicenseRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateLicenseRequest) Execute

func (ApiUpdateLicenseRequest) UpdateLicense

func (r ApiUpdateLicenseRequest) UpdateLicense(updateLicense UpdateLicense) ApiUpdateLicenseRequest

type ApiUpdatePolicyRequest

type ApiUpdatePolicyRequest struct {
	ApiService *PoliciesAPIService
	// contains filtered or unexported fields
}

func (ApiUpdatePolicyRequest) Execute

func (r ApiUpdatePolicyRequest) Execute() (*Policy, *http.Response, error)

func (ApiUpdatePolicyRequest) UpdatePolicy

func (r ApiUpdatePolicyRequest) UpdatePolicy(updatePolicy UpdatePolicy) ApiUpdatePolicyRequest

type ApiUpdateProductRequest

type ApiUpdateProductRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateProductRequest) Execute

func (ApiUpdateProductRequest) UpdateProduct

func (r ApiUpdateProductRequest) UpdateProduct(updateProduct UpdateProduct) ApiUpdateProductRequest

type ApiUpdateReleaseRequest

type ApiUpdateReleaseRequest struct {
	ApiService *ReleasesAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateReleaseRequest) Execute

func (ApiUpdateReleaseRequest) UpdateRelease

func (r ApiUpdateReleaseRequest) UpdateRelease(updateRelease UpdateRelease) ApiUpdateReleaseRequest

type ApiUpdateStripeMappingRequest

type ApiUpdateStripeMappingRequest struct {
	ApiService *IntegrationsAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateStripeMappingRequest) Execute

func (ApiUpdateStripeMappingRequest) UpdateIntegrationMapping

func (r ApiUpdateStripeMappingRequest) UpdateIntegrationMapping(updateIntegrationMapping UpdateIntegrationMapping) ApiUpdateStripeMappingRequest

type ApiUploadProductLogoRequest

type ApiUploadProductLogoRequest struct {
	ApiService *ProductsAPIService
	// contains filtered or unexported fields
}

func (ApiUploadProductLogoRequest) Execute

func (ApiUploadProductLogoRequest) File

WebP, PNG, JPEG or SVG image, up to 1 MB.

type ApiValidateKeyRequest

type ApiValidateKeyRequest struct {
	ApiService *LicensesAPIService
	// contains filtered or unexported fields
}

func (ApiValidateKeyRequest) Execute

func (ApiValidateKeyRequest) ValidateKey

func (r ApiValidateKeyRequest) ValidateKey(validateKey ValidateKey) ApiValidateKeyRequest

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 ConnectStripe

type ConnectStripe struct {
	// Restricted API key of the Stripe account (`rk_live_…` for live products, `rk_test_…` for test products), with the `requiredPermissions` of `getStripeIntegration`. A secret key works too, but gives the app more access than it needs.
	ApiKey               string `json:"apiKey"`
	AdditionalProperties map[string]interface{}
}

ConnectStripe struct for ConnectStripe

func NewConnectStripe

func NewConnectStripe(apiKey string) *ConnectStripe

NewConnectStripe instantiates a new ConnectStripe 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 NewConnectStripeWithDefaults

func NewConnectStripeWithDefaults() *ConnectStripe

NewConnectStripeWithDefaults instantiates a new ConnectStripe 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 (*ConnectStripe) GetApiKey

func (o *ConnectStripe) GetApiKey() string

GetApiKey returns the ApiKey field value

func (*ConnectStripe) GetApiKeyOk

func (o *ConnectStripe) GetApiKeyOk() (*string, bool)

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

func (ConnectStripe) MarshalJSON

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

func (*ConnectStripe) SetApiKey

func (o *ConnectStripe) SetApiKey(v string)

SetApiKey sets field value

func (ConnectStripe) ToMap

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

func (*ConnectStripe) UnmarshalJSON

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

type CreateCustomer

type CreateCustomer struct {
	// Unique within the product, regardless of case. Stored lower cased.
	Email string `json:"email"`
	// Display name of the customer. `null` when unknown. Defaults to `null`.
	Name                 NullableString `json:"name,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateCustomer struct for CreateCustomer

func NewCreateCustomer

func NewCreateCustomer(email string) *CreateCustomer

NewCreateCustomer instantiates a new CreateCustomer 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 NewCreateCustomerWithDefaults

func NewCreateCustomerWithDefaults() *CreateCustomer

NewCreateCustomerWithDefaults instantiates a new CreateCustomer 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 (*CreateCustomer) GetEmail

func (o *CreateCustomer) GetEmail() string

GetEmail returns the Email field value

func (*CreateCustomer) GetEmailOk

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

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

func (*CreateCustomer) GetName

func (o *CreateCustomer) GetName() string

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

func (*CreateCustomer) GetNameOk

func (o *CreateCustomer) 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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateCustomer) HasName

func (o *CreateCustomer) HasName() bool

HasName returns a boolean if a field has been set.

func (CreateCustomer) MarshalJSON

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

func (*CreateCustomer) SetEmail

func (o *CreateCustomer) SetEmail(v string)

SetEmail sets field value

func (*CreateCustomer) SetName

func (o *CreateCustomer) SetName(v string)

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

func (*CreateCustomer) SetNameNil

func (o *CreateCustomer) SetNameNil()

SetNameNil sets the value for Name to be an explicit nil

func (CreateCustomer) ToMap

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

func (*CreateCustomer) UnmarshalJSON

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

func (*CreateCustomer) UnsetName

func (o *CreateCustomer) UnsetName()

UnsetName ensures that no value is present for Name, not even an explicit nil

type CreateIntegrationMapping

type CreateIntegrationMapping struct {
	// Active one-time price of the Stripe account.
	StripePriceId        string `json:"stripePriceId"`
	PolicyId             string `json:"policyId"`
	AdditionalProperties map[string]interface{}
}

CreateIntegrationMapping struct for CreateIntegrationMapping

func NewCreateIntegrationMapping

func NewCreateIntegrationMapping(stripePriceId string, policyId string) *CreateIntegrationMapping

NewCreateIntegrationMapping instantiates a new CreateIntegrationMapping 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 NewCreateIntegrationMappingWithDefaults

func NewCreateIntegrationMappingWithDefaults() *CreateIntegrationMapping

NewCreateIntegrationMappingWithDefaults instantiates a new CreateIntegrationMapping 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 (*CreateIntegrationMapping) GetPolicyId

func (o *CreateIntegrationMapping) GetPolicyId() string

GetPolicyId returns the PolicyId field value

func (*CreateIntegrationMapping) GetPolicyIdOk

func (o *CreateIntegrationMapping) GetPolicyIdOk() (*string, bool)

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

func (*CreateIntegrationMapping) GetStripePriceId

func (o *CreateIntegrationMapping) GetStripePriceId() string

GetStripePriceId returns the StripePriceId field value

func (*CreateIntegrationMapping) GetStripePriceIdOk

func (o *CreateIntegrationMapping) GetStripePriceIdOk() (*string, bool)

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

func (CreateIntegrationMapping) MarshalJSON

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

func (*CreateIntegrationMapping) SetPolicyId

func (o *CreateIntegrationMapping) SetPolicyId(v string)

SetPolicyId sets field value

func (*CreateIntegrationMapping) SetStripePriceId

func (o *CreateIntegrationMapping) SetStripePriceId(v string)

SetStripePriceId sets field value

func (CreateIntegrationMapping) ToMap

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

func (*CreateIntegrationMapping) UnmarshalJSON

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

type CreateLicense

type CreateLicense struct {
	// Email of the customer the license belongs to. The product's customer with this email, compared regardless of case, or a new one when there's none.
	Email string `json:"email"`
	// Unique within the product. Case sensitive: `validateKey` compares keys exactly. Defaults to a random key of 5 groups of 5 characters separated by dashes, each character an upper case letter or a digit other than `O`, `0`, `I` and `1`, for 125 random bits. Starts with `TEST-` in test products, which is added when missing, and removed in live products.
	Key *string `json:"key,omitempty"`
	// Policy of the product the license follows. Defaults to the product's default policy.
	PolicyId *string `json:"policyId,omitempty"`
	// `null` makes the license never expire. Defaults to the creation date plus the duration of the policy, or `null` when the policy has none.
	ExpiresAt NullableTime `json:"expiresAt,omitempty"`
	// Free-form JSON object.
	Meta map[string]*interface{} `json:"meta,omitempty"`
	// Maximum number of active machines the license can be used on. `null` for no limit. Defaults to the one of the policy.
	MaxMachines NullableInt32 `json:"maxMachines,omitempty"`
	// Longest the applications can run offline with the license, in seconds. At least one hour (`3600`). Defaults to the one of the policy.
	MaxOfflineDurationSeconds *int32                  `json:"maxOfflineDurationSeconds,omitempty"`
	Price                     NullablePriceInput      `json:"price,omitempty"`
	MaxVersion                *LicenseMaxVersionInput `json:"maxVersion,omitempty"`
	// `true` emails the key to the customer once the license is created, like `sendLicenseKeys`. Sent in the background: a failed email doesn't fail the creation. In test products, it's only sent when the customer's email is a member's of the organization. Defaults to `false`.
	SendKey              *bool `json:"sendKey,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateLicense struct for CreateLicense

func NewCreateLicense

func NewCreateLicense(email string) *CreateLicense

NewCreateLicense instantiates a new CreateLicense 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 NewCreateLicenseWithDefaults

func NewCreateLicenseWithDefaults() *CreateLicense

NewCreateLicenseWithDefaults instantiates a new CreateLicense 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 (*CreateLicense) GetEmail

func (o *CreateLicense) GetEmail() string

GetEmail returns the Email field value

func (*CreateLicense) GetEmailOk

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

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

func (*CreateLicense) GetExpiresAt

func (o *CreateLicense) GetExpiresAt() time.Time

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

func (*CreateLicense) GetExpiresAtOk

func (o *CreateLicense) GetExpiresAtOk() (*time.Time, bool)

GetExpiresAtOk returns a tuple with the ExpiresAt 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 (*CreateLicense) GetKey

func (o *CreateLicense) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*CreateLicense) GetKeyOk

func (o *CreateLicense) GetKeyOk() (*string, bool)

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

func (*CreateLicense) GetMaxMachines

func (o *CreateLicense) GetMaxMachines() int32

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

func (*CreateLicense) GetMaxMachinesOk

func (o *CreateLicense) GetMaxMachinesOk() (*int32, bool)

GetMaxMachinesOk returns a tuple with the MaxMachines 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 (*CreateLicense) GetMaxOfflineDurationSeconds

func (o *CreateLicense) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value if set, zero value otherwise.

func (*CreateLicense) GetMaxOfflineDurationSecondsOk

func (o *CreateLicense) GetMaxOfflineDurationSecondsOk() (*int32, bool)

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

func (*CreateLicense) GetMaxVersion

func (o *CreateLicense) GetMaxVersion() LicenseMaxVersionInput

GetMaxVersion returns the MaxVersion field value if set, zero value otherwise.

func (*CreateLicense) GetMaxVersionOk

func (o *CreateLicense) GetMaxVersionOk() (*LicenseMaxVersionInput, bool)

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

func (*CreateLicense) GetMeta

func (o *CreateLicense) GetMeta() map[string]*interface{}

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

func (*CreateLicense) GetMetaOk

func (o *CreateLicense) GetMetaOk() (map[string]*interface{}, bool)

GetMetaOk returns a tuple with the Meta 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 (*CreateLicense) GetPolicyId

func (o *CreateLicense) GetPolicyId() string

GetPolicyId returns the PolicyId field value if set, zero value otherwise.

func (*CreateLicense) GetPolicyIdOk

func (o *CreateLicense) GetPolicyIdOk() (*string, bool)

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

func (*CreateLicense) GetPrice

func (o *CreateLicense) GetPrice() PriceInput

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

func (*CreateLicense) GetPriceOk

func (o *CreateLicense) GetPriceOk() (*PriceInput, bool)

GetPriceOk returns a tuple with the Price 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 (*CreateLicense) GetSendKey

func (o *CreateLicense) GetSendKey() bool

GetSendKey returns the SendKey field value if set, zero value otherwise.

func (*CreateLicense) GetSendKeyOk

func (o *CreateLicense) GetSendKeyOk() (*bool, bool)

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

func (*CreateLicense) HasExpiresAt

func (o *CreateLicense) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (*CreateLicense) HasKey

func (o *CreateLicense) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*CreateLicense) HasMaxMachines

func (o *CreateLicense) HasMaxMachines() bool

HasMaxMachines returns a boolean if a field has been set.

func (*CreateLicense) HasMaxOfflineDurationSeconds

func (o *CreateLicense) HasMaxOfflineDurationSeconds() bool

HasMaxOfflineDurationSeconds returns a boolean if a field has been set.

func (*CreateLicense) HasMaxVersion

func (o *CreateLicense) HasMaxVersion() bool

HasMaxVersion returns a boolean if a field has been set.

func (*CreateLicense) HasMeta

func (o *CreateLicense) HasMeta() bool

HasMeta returns a boolean if a field has been set.

func (*CreateLicense) HasPolicyId

func (o *CreateLicense) HasPolicyId() bool

HasPolicyId returns a boolean if a field has been set.

func (*CreateLicense) HasPrice

func (o *CreateLicense) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*CreateLicense) HasSendKey

func (o *CreateLicense) HasSendKey() bool

HasSendKey returns a boolean if a field has been set.

func (CreateLicense) MarshalJSON

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

func (*CreateLicense) SetEmail

func (o *CreateLicense) SetEmail(v string)

SetEmail sets field value

func (*CreateLicense) SetExpiresAt

func (o *CreateLicense) SetExpiresAt(v time.Time)

SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field.

func (*CreateLicense) SetExpiresAtNil

func (o *CreateLicense) SetExpiresAtNil()

SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil

func (*CreateLicense) SetKey

func (o *CreateLicense) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*CreateLicense) SetMaxMachines

func (o *CreateLicense) SetMaxMachines(v int32)

SetMaxMachines gets a reference to the given NullableInt32 and assigns it to the MaxMachines field.

func (*CreateLicense) SetMaxMachinesNil

func (o *CreateLicense) SetMaxMachinesNil()

SetMaxMachinesNil sets the value for MaxMachines to be an explicit nil

func (*CreateLicense) SetMaxOfflineDurationSeconds

func (o *CreateLicense) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds gets a reference to the given int32 and assigns it to the MaxOfflineDurationSeconds field.

func (*CreateLicense) SetMaxVersion

func (o *CreateLicense) SetMaxVersion(v LicenseMaxVersionInput)

SetMaxVersion gets a reference to the given LicenseMaxVersionInput and assigns it to the MaxVersion field.

func (*CreateLicense) SetMeta

func (o *CreateLicense) SetMeta(v map[string]*interface{})

SetMeta gets a reference to the given map[string]*interface{} and assigns it to the Meta field.

func (*CreateLicense) SetPolicyId

func (o *CreateLicense) SetPolicyId(v string)

SetPolicyId gets a reference to the given string and assigns it to the PolicyId field.

func (*CreateLicense) SetPrice

func (o *CreateLicense) SetPrice(v PriceInput)

SetPrice gets a reference to the given NullablePriceInput and assigns it to the Price field.

func (*CreateLicense) SetPriceNil

func (o *CreateLicense) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (*CreateLicense) SetSendKey

func (o *CreateLicense) SetSendKey(v bool)

SetSendKey gets a reference to the given bool and assigns it to the SendKey field.

func (CreateLicense) ToMap

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

func (*CreateLicense) UnmarshalJSON

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

func (*CreateLicense) UnsetExpiresAt

func (o *CreateLicense) UnsetExpiresAt()

UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil

func (*CreateLicense) UnsetMaxMachines

func (o *CreateLicense) UnsetMaxMachines()

UnsetMaxMachines ensures that no value is present for MaxMachines, not even an explicit nil

func (*CreateLicense) UnsetPrice

func (o *CreateLicense) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

type CreatePolicy

type CreatePolicy struct {
	Name string `json:"name"`
	// Unique within the product. Defaults to the name, lower cased, without accents and special characters. Starts with `test_` in test products, which is added when missing, and removed in live products.
	Slug *string `json:"slug,omitempty" validate:"regexp=^(test_)?[a-z0-9]+(-[a-z0-9]+)*$"`
	// `true` makes this policy the product's default, in place of the current one.
	IsDefault *bool                          `json:"isDefault,omitempty"`
	Duration  NullablePolicySettingsDuration `json:"duration,omitempty"`
	// Maximum number of active machines of the licenses created with this policy, copied to each of them. `null` for no limit. Defaults to `null`.
	MaxMachines NullableInt32 `json:"maxMachines,omitempty"`
	// Longest the applications can run offline with the licenses created with this policy, in seconds, copied to each of them. At least one hour (`3600`). Defaults to one week.
	MaxOfflineDurationSeconds *int32                           `json:"maxOfflineDurationSeconds,omitempty"`
	MaxVersion                NullablePolicySettingsMaxVersion `json:"maxVersion,omitempty"`
	AdditionalProperties      map[string]interface{}
}

CreatePolicy struct for CreatePolicy

func NewCreatePolicy

func NewCreatePolicy(name string) *CreatePolicy

NewCreatePolicy instantiates a new CreatePolicy 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 NewCreatePolicyWithDefaults

func NewCreatePolicyWithDefaults() *CreatePolicy

NewCreatePolicyWithDefaults instantiates a new CreatePolicy 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 (*CreatePolicy) GetDuration

func (o *CreatePolicy) GetDuration() PolicySettingsDuration

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

func (*CreatePolicy) GetDurationOk

func (o *CreatePolicy) GetDurationOk() (*PolicySettingsDuration, bool)

GetDurationOk returns a tuple with the Duration 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 (*CreatePolicy) GetIsDefault

func (o *CreatePolicy) GetIsDefault() bool

GetIsDefault returns the IsDefault field value if set, zero value otherwise.

func (*CreatePolicy) GetIsDefaultOk

func (o *CreatePolicy) GetIsDefaultOk() (*bool, bool)

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

func (*CreatePolicy) GetMaxMachines

func (o *CreatePolicy) GetMaxMachines() int32

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

func (*CreatePolicy) GetMaxMachinesOk

func (o *CreatePolicy) GetMaxMachinesOk() (*int32, bool)

GetMaxMachinesOk returns a tuple with the MaxMachines 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 (*CreatePolicy) GetMaxOfflineDurationSeconds

func (o *CreatePolicy) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value if set, zero value otherwise.

func (*CreatePolicy) GetMaxOfflineDurationSecondsOk

func (o *CreatePolicy) GetMaxOfflineDurationSecondsOk() (*int32, bool)

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

func (*CreatePolicy) GetMaxVersion

func (o *CreatePolicy) GetMaxVersion() PolicySettingsMaxVersion

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

func (*CreatePolicy) GetMaxVersionOk

func (o *CreatePolicy) GetMaxVersionOk() (*PolicySettingsMaxVersion, bool)

GetMaxVersionOk returns a tuple with the MaxVersion 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 (*CreatePolicy) GetName

func (o *CreatePolicy) GetName() string

GetName returns the Name field value

func (*CreatePolicy) GetNameOk

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

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

func (*CreatePolicy) GetSlug

func (o *CreatePolicy) GetSlug() string

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

func (*CreatePolicy) GetSlugOk

func (o *CreatePolicy) 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 (*CreatePolicy) HasDuration

func (o *CreatePolicy) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*CreatePolicy) HasIsDefault

func (o *CreatePolicy) HasIsDefault() bool

HasIsDefault returns a boolean if a field has been set.

func (*CreatePolicy) HasMaxMachines

func (o *CreatePolicy) HasMaxMachines() bool

HasMaxMachines returns a boolean if a field has been set.

func (*CreatePolicy) HasMaxOfflineDurationSeconds

func (o *CreatePolicy) HasMaxOfflineDurationSeconds() bool

HasMaxOfflineDurationSeconds returns a boolean if a field has been set.

func (*CreatePolicy) HasMaxVersion

func (o *CreatePolicy) HasMaxVersion() bool

HasMaxVersion returns a boolean if a field has been set.

func (*CreatePolicy) HasSlug

func (o *CreatePolicy) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (CreatePolicy) MarshalJSON

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

func (*CreatePolicy) SetDuration

func (o *CreatePolicy) SetDuration(v PolicySettingsDuration)

SetDuration gets a reference to the given NullablePolicySettingsDuration and assigns it to the Duration field.

func (*CreatePolicy) SetDurationNil

func (o *CreatePolicy) SetDurationNil()

SetDurationNil sets the value for Duration to be an explicit nil

func (*CreatePolicy) SetIsDefault

func (o *CreatePolicy) SetIsDefault(v bool)

SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.

func (*CreatePolicy) SetMaxMachines

func (o *CreatePolicy) SetMaxMachines(v int32)

SetMaxMachines gets a reference to the given NullableInt32 and assigns it to the MaxMachines field.

func (*CreatePolicy) SetMaxMachinesNil

func (o *CreatePolicy) SetMaxMachinesNil()

SetMaxMachinesNil sets the value for MaxMachines to be an explicit nil

func (*CreatePolicy) SetMaxOfflineDurationSeconds

func (o *CreatePolicy) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds gets a reference to the given int32 and assigns it to the MaxOfflineDurationSeconds field.

func (*CreatePolicy) SetMaxVersion

func (o *CreatePolicy) SetMaxVersion(v PolicySettingsMaxVersion)

SetMaxVersion gets a reference to the given NullablePolicySettingsMaxVersion and assigns it to the MaxVersion field.

func (*CreatePolicy) SetMaxVersionNil

func (o *CreatePolicy) SetMaxVersionNil()

SetMaxVersionNil sets the value for MaxVersion to be an explicit nil

func (*CreatePolicy) SetName

func (o *CreatePolicy) SetName(v string)

SetName sets field value

func (*CreatePolicy) SetSlug

func (o *CreatePolicy) SetSlug(v string)

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

func (CreatePolicy) ToMap

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

func (*CreatePolicy) UnmarshalJSON

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

func (*CreatePolicy) UnsetDuration

func (o *CreatePolicy) UnsetDuration()

UnsetDuration ensures that no value is present for Duration, not even an explicit nil

func (*CreatePolicy) UnsetMaxMachines

func (o *CreatePolicy) UnsetMaxMachines()

UnsetMaxMachines ensures that no value is present for MaxMachines, not even an explicit nil

func (*CreatePolicy) UnsetMaxVersion

func (o *CreatePolicy) UnsetMaxVersion()

UnsetMaxVersion ensures that no value is present for MaxVersion, not even an explicit nil

type CreatePortalLink struct {
	// How long the link works, in seconds, from 300 (5 minutes) to 31536000 (365 days).
	ExpiresInSeconds     int32 `json:"expiresInSeconds"`
	AdditionalProperties map[string]interface{}
}

CreatePortalLink struct for CreatePortalLink

func NewCreatePortalLink(expiresInSeconds int32) *CreatePortalLink

NewCreatePortalLink instantiates a new CreatePortalLink 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 NewCreatePortalLinkWithDefaults

func NewCreatePortalLinkWithDefaults() *CreatePortalLink

NewCreatePortalLinkWithDefaults instantiates a new CreatePortalLink 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 (*CreatePortalLink) GetExpiresInSeconds

func (o *CreatePortalLink) GetExpiresInSeconds() int32

GetExpiresInSeconds returns the ExpiresInSeconds field value

func (*CreatePortalLink) GetExpiresInSecondsOk

func (o *CreatePortalLink) GetExpiresInSecondsOk() (*int32, bool)

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

func (CreatePortalLink) MarshalJSON

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

func (*CreatePortalLink) SetExpiresInSeconds

func (o *CreatePortalLink) SetExpiresInSeconds(v int32)

SetExpiresInSeconds sets field value

func (CreatePortalLink) ToMap

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

func (*CreatePortalLink) UnmarshalJSON

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

type CreateProduct

type CreateProduct struct {
	Name string `json:"name"`
	// Unique within the organization. Defaults to the name, lower cased, without accents and special characters. Starts with `test_` in test products, which is added when missing, and removed in live products.
	Slug                 *string `json:"slug,omitempty" validate:"regexp=^(test_)?[a-z0-9]+(-[a-z0-9]+)*$"`
	AdditionalProperties map[string]interface{}
}

CreateProduct struct for CreateProduct

func NewCreateProduct

func NewCreateProduct(name string) *CreateProduct

NewCreateProduct instantiates a new CreateProduct 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 NewCreateProductWithDefaults

func NewCreateProductWithDefaults() *CreateProduct

NewCreateProductWithDefaults instantiates a new CreateProduct 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 (*CreateProduct) GetName

func (o *CreateProduct) GetName() string

GetName returns the Name field value

func (*CreateProduct) GetNameOk

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

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

func (*CreateProduct) GetSlug

func (o *CreateProduct) GetSlug() string

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

func (*CreateProduct) GetSlugOk

func (o *CreateProduct) 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 (*CreateProduct) HasSlug

func (o *CreateProduct) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (CreateProduct) MarshalJSON

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

func (*CreateProduct) SetName

func (o *CreateProduct) SetName(v string)

SetName sets field value

func (*CreateProduct) SetSlug

func (o *CreateProduct) SetSlug(v string)

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

func (CreateProduct) ToMap

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

func (*CreateProduct) UnmarshalJSON

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

type CreateProductWithPolicy

type CreateProductWithPolicy struct {
	Name string `json:"name"`
	// Unique within the organization. Defaults to the name, lower cased, without accents and special characters. Starts with `test_` in test products, which is added when missing, and removed in live products.
	Slug          *string         `json:"slug,omitempty" validate:"regexp=^(test_)?[a-z0-9]+(-[a-z0-9]+)*$"`
	DefaultPolicy *PolicySettings `json:"defaultPolicy,omitempty"`
	// Creates a test product: a sandbox of this live product of the organization, starting with copies of its policies, releases and portal settings.
	IsTestFromProductId  *string `json:"isTestFromProductId,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateProductWithPolicy struct for CreateProductWithPolicy

func NewCreateProductWithPolicy

func NewCreateProductWithPolicy(name string) *CreateProductWithPolicy

NewCreateProductWithPolicy instantiates a new CreateProductWithPolicy 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 NewCreateProductWithPolicyWithDefaults

func NewCreateProductWithPolicyWithDefaults() *CreateProductWithPolicy

NewCreateProductWithPolicyWithDefaults instantiates a new CreateProductWithPolicy 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 (*CreateProductWithPolicy) GetDefaultPolicy

func (o *CreateProductWithPolicy) GetDefaultPolicy() PolicySettings

GetDefaultPolicy returns the DefaultPolicy field value if set, zero value otherwise.

func (*CreateProductWithPolicy) GetDefaultPolicyOk

func (o *CreateProductWithPolicy) GetDefaultPolicyOk() (*PolicySettings, bool)

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

func (*CreateProductWithPolicy) GetIsTestFromProductId

func (o *CreateProductWithPolicy) GetIsTestFromProductId() string

GetIsTestFromProductId returns the IsTestFromProductId field value if set, zero value otherwise.

func (*CreateProductWithPolicy) GetIsTestFromProductIdOk

func (o *CreateProductWithPolicy) GetIsTestFromProductIdOk() (*string, bool)

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

func (*CreateProductWithPolicy) GetName

func (o *CreateProductWithPolicy) GetName() string

GetName returns the Name field value

func (*CreateProductWithPolicy) GetNameOk

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

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

func (*CreateProductWithPolicy) GetSlug

func (o *CreateProductWithPolicy) GetSlug() string

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

func (*CreateProductWithPolicy) GetSlugOk

func (o *CreateProductWithPolicy) 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 (*CreateProductWithPolicy) HasDefaultPolicy

func (o *CreateProductWithPolicy) HasDefaultPolicy() bool

HasDefaultPolicy returns a boolean if a field has been set.

func (*CreateProductWithPolicy) HasIsTestFromProductId

func (o *CreateProductWithPolicy) HasIsTestFromProductId() bool

HasIsTestFromProductId returns a boolean if a field has been set.

func (*CreateProductWithPolicy) HasSlug

func (o *CreateProductWithPolicy) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (CreateProductWithPolicy) MarshalJSON

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

func (*CreateProductWithPolicy) SetDefaultPolicy

func (o *CreateProductWithPolicy) SetDefaultPolicy(v PolicySettings)

SetDefaultPolicy gets a reference to the given PolicySettings and assigns it to the DefaultPolicy field.

func (*CreateProductWithPolicy) SetIsTestFromProductId

func (o *CreateProductWithPolicy) SetIsTestFromProductId(v string)

SetIsTestFromProductId gets a reference to the given string and assigns it to the IsTestFromProductId field.

func (*CreateProductWithPolicy) SetName

func (o *CreateProductWithPolicy) SetName(v string)

SetName sets field value

func (*CreateProductWithPolicy) SetSlug

func (o *CreateProductWithPolicy) SetSlug(v string)

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

func (CreateProductWithPolicy) ToMap

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

func (*CreateProductWithPolicy) UnmarshalJSON

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

type CreateRelease

type CreateRelease struct {
	// Semantic version, like `\"2.3.1\"` or `\"2.4.0-beta.1\"`, without a `v` prefix. Unique within the product. Each number has at most 9 digits.
	Version string `` /* 136-byte string literal not displayed */
	// When the version is released, which can be in the future. Defaults to now.
	ReleasedAt           *time.Time `json:"releasedAt,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateRelease struct for CreateRelease

func NewCreateRelease

func NewCreateRelease(version string) *CreateRelease

NewCreateRelease instantiates a new CreateRelease 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 NewCreateReleaseWithDefaults

func NewCreateReleaseWithDefaults() *CreateRelease

NewCreateReleaseWithDefaults instantiates a new CreateRelease 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 (*CreateRelease) GetReleasedAt

func (o *CreateRelease) GetReleasedAt() time.Time

GetReleasedAt returns the ReleasedAt field value if set, zero value otherwise.

func (*CreateRelease) GetReleasedAtOk

func (o *CreateRelease) GetReleasedAtOk() (*time.Time, bool)

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

func (*CreateRelease) GetVersion

func (o *CreateRelease) GetVersion() string

GetVersion returns the Version field value

func (*CreateRelease) GetVersionOk

func (o *CreateRelease) GetVersionOk() (*string, bool)

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

func (*CreateRelease) HasReleasedAt

func (o *CreateRelease) HasReleasedAt() bool

HasReleasedAt returns a boolean if a field has been set.

func (CreateRelease) MarshalJSON

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

func (*CreateRelease) SetReleasedAt

func (o *CreateRelease) SetReleasedAt(v time.Time)

SetReleasedAt gets a reference to the given time.Time and assigns it to the ReleasedAt field.

func (*CreateRelease) SetVersion

func (o *CreateRelease) SetVersion(v string)

SetVersion sets field value

func (CreateRelease) ToMap

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

func (*CreateRelease) UnmarshalJSON

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

type CreateToken

type CreateToken struct {
	// Permissions of the token. A write permission implies the matching read one. A token creating a token can only give the permissions it has.
	Scope []string `json:"scope"`
	// How long the token works, in seconds, from 60 (1 minute) to 31536000 (365 days). Defaults to 900 (15 minutes). A token creating a token can't give it a later expiration than its own: it's shortened to it.
	ExpiresInSeconds     *int32 `json:"expiresInSeconds,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateToken struct for CreateToken

func NewCreateToken

func NewCreateToken(scope []string) *CreateToken

NewCreateToken instantiates a new CreateToken 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 NewCreateTokenWithDefaults

func NewCreateTokenWithDefaults() *CreateToken

NewCreateTokenWithDefaults instantiates a new CreateToken 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 (*CreateToken) GetExpiresInSeconds

func (o *CreateToken) GetExpiresInSeconds() int32

GetExpiresInSeconds returns the ExpiresInSeconds field value if set, zero value otherwise.

func (*CreateToken) GetExpiresInSecondsOk

func (o *CreateToken) GetExpiresInSecondsOk() (*int32, bool)

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

func (*CreateToken) GetScope

func (o *CreateToken) GetScope() []string

GetScope returns the Scope field value

func (*CreateToken) GetScopeOk

func (o *CreateToken) GetScopeOk() ([]string, bool)

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

func (*CreateToken) HasExpiresInSeconds

func (o *CreateToken) HasExpiresInSeconds() bool

HasExpiresInSeconds returns a boolean if a field has been set.

func (CreateToken) MarshalJSON

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

func (*CreateToken) SetExpiresInSeconds

func (o *CreateToken) SetExpiresInSeconds(v int32)

SetExpiresInSeconds gets a reference to the given int32 and assigns it to the ExpiresInSeconds field.

func (*CreateToken) SetScope

func (o *CreateToken) SetScope(v []string)

SetScope sets field value

func (CreateToken) ToMap

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

func (*CreateToken) UnmarshalJSON

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

type Customer

type Customer struct {
	Id        string `json:"id"`
	ProductId string `json:"productId"`
	Email     string `json:"email"`
	// Display name of the customer. `null` when unknown.
	Name NullableString `json:"name"`
	// Number of licenses of this customer.
	LicenseCount int32 `json:"licenseCount"`
	// Id of the Stripe customer, when the customer bought licenses through the Stripe integration as a Stripe customer. `null` otherwise, e.g. for a guest checkout.
	StripeCustomerId     NullableString `json:"stripeCustomerId"`
	CreatedAt            time.Time      `json:"createdAt"`
	AdditionalProperties map[string]interface{}
}

Customer struct for Customer

func NewCustomer

func NewCustomer(id string, productId string, email string, name NullableString, licenseCount int32, stripeCustomerId NullableString, createdAt time.Time) *Customer

NewCustomer instantiates a new Customer 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 NewCustomerWithDefaults

func NewCustomerWithDefaults() *Customer

NewCustomerWithDefaults instantiates a new Customer 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 (*Customer) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*Customer) GetCreatedAtOk

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

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

func (*Customer) GetEmail

func (o *Customer) GetEmail() string

GetEmail returns the Email field value

func (*Customer) GetEmailOk

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

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

func (*Customer) GetId

func (o *Customer) GetId() string

GetId returns the Id field value

func (*Customer) GetIdOk

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

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

func (*Customer) GetLicenseCount

func (o *Customer) GetLicenseCount() int32

GetLicenseCount returns the LicenseCount field value

func (*Customer) GetLicenseCountOk

func (o *Customer) GetLicenseCountOk() (*int32, bool)

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

func (*Customer) GetName

func (o *Customer) GetName() string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*Customer) GetNameOk

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

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

func (*Customer) GetProductId

func (o *Customer) GetProductId() string

GetProductId returns the ProductId field value

func (*Customer) GetProductIdOk

func (o *Customer) GetProductIdOk() (*string, bool)

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

func (*Customer) GetStripeCustomerId

func (o *Customer) GetStripeCustomerId() string

GetStripeCustomerId returns the StripeCustomerId field value If the value is explicit nil, the zero value for string will be returned

func (*Customer) GetStripeCustomerIdOk

func (o *Customer) GetStripeCustomerIdOk() (*string, bool)

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

func (Customer) MarshalJSON

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

func (*Customer) SetCreatedAt

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

SetCreatedAt sets field value

func (*Customer) SetEmail

func (o *Customer) SetEmail(v string)

SetEmail sets field value

func (*Customer) SetId

func (o *Customer) SetId(v string)

SetId sets field value

func (*Customer) SetLicenseCount

func (o *Customer) SetLicenseCount(v int32)

SetLicenseCount sets field value

func (*Customer) SetName

func (o *Customer) SetName(v string)

SetName sets field value

func (*Customer) SetProductId

func (o *Customer) SetProductId(v string)

SetProductId sets field value

func (*Customer) SetStripeCustomerId

func (o *Customer) SetStripeCustomerId(v string)

SetStripeCustomerId sets field value

func (Customer) ToMap

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

func (*Customer) UnmarshalJSON

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

type CustomerList

type CustomerList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []Customer `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

CustomerList struct for CustomerList

func NewCustomerList

func NewCustomerList(data []Customer, pagination Pagination) *CustomerList

NewCustomerList instantiates a new CustomerList 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 NewCustomerListWithDefaults

func NewCustomerListWithDefaults() *CustomerList

NewCustomerListWithDefaults instantiates a new CustomerList 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 (*CustomerList) GetData

func (o *CustomerList) GetData() []Customer

GetData returns the Data field value

func (*CustomerList) GetDataOk

func (o *CustomerList) GetDataOk() ([]Customer, bool)

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

func (*CustomerList) GetPagination

func (o *CustomerList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*CustomerList) GetPaginationOk

func (o *CustomerList) GetPaginationOk() (*Pagination, bool)

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

func (CustomerList) MarshalJSON

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

func (*CustomerList) SetData

func (o *CustomerList) SetData(v []Customer)

SetData sets field value

func (*CustomerList) SetPagination

func (o *CustomerList) SetPagination(v Pagination)

SetPagination sets field value

func (CustomerList) ToMap

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

func (*CustomerList) UnmarshalJSON

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

type CustomersAPIService

type CustomersAPIService service

CustomersAPIService CustomersAPI service

func (*CustomersAPIService) CreateCustomer

func (a *CustomersAPIService) CreateCustomer(ctx context.Context, productId string) ApiCreateCustomerRequest

CreateCustomer Create a customer

**Required role permission**: `customer:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*CustomersAPIService) CreateCustomerExecute

func (a *CustomersAPIService) CreateCustomerExecute(r ApiCreateCustomerRequest) (*Customer, *http.Response, error)

Execute executes the request

@return Customer

func (*CustomersAPIService) DeleteCustomer

DeleteCustomer Delete a customer

A customer that licenses belong to can't be deleted: delete them first. The customer tokens of the customer, like the ones of its portal links, stop working.

**Required role permission**: `customer:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*CustomersAPIService) DeleteCustomerExecute

func (a *CustomersAPIService) DeleteCustomerExecute(r ApiDeleteCustomerRequest) (*http.Response, error)

Execute executes the request

func (*CustomersAPIService) GetCustomer

GetCustomer Get a customer

**Token access**: customer, license, machine tokens with the `customer:read` permission (or the matching write one). A token reaches the customer it's scoped to, or the customer of its license or machine.

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

func (*CustomersAPIService) GetCustomerExecute

func (a *CustomersAPIService) GetCustomerExecute(r ApiGetCustomerRequest) (*Customer, *http.Response, error)

Execute executes the request

@return Customer

func (*CustomersAPIService) ListCustomers

func (a *CustomersAPIService) ListCustomers(ctx context.Context, productId string) ApiListCustomersRequest

ListCustomers List the customers of a product

Sorting by `name` puts the customers without a name last in both orders.

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

func (*CustomersAPIService) ListCustomersExecute

Execute executes the request

@return CustomerList

func (*CustomersAPIService) UpdateCustomer

UpdateCustomer Update a customer

**Required role permission**: `customer:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*CustomersAPIService) UpdateCustomerExecute

func (a *CustomersAPIService) UpdateCustomerExecute(r ApiUpdateCustomerRequest) (*Customer, *http.Response, error)

Execute executes the request

@return Customer

type Error

type Error struct {
	Error                ErrorError `json:"error"`
	AdditionalProperties map[string]interface{}
}

Error struct for Error

func NewError

func NewError(error_ ErrorError) *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) GetError

func (o *Error) GetError() ErrorError

GetError returns the Error field value

func (*Error) GetErrorOk

func (o *Error) GetErrorOk() (*ErrorError, bool)

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

func (Error) MarshalJSON

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

func (*Error) SetError

func (o *Error) SetError(v ErrorError)

SetError sets field value

func (Error) ToMap

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

func (*Error) UnmarshalJSON

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

type ErrorError

type ErrorError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	// Present on `validation_error` errors.
	Issues               []ErrorErrorIssuesInner `json:"issues,omitempty"`
	AdditionalProperties map[string]interface{}
}

ErrorError struct for ErrorError

func NewErrorError

func NewErrorError(code string, message string) *ErrorError

NewErrorError instantiates a new ErrorError 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 NewErrorErrorWithDefaults

func NewErrorErrorWithDefaults() *ErrorError

NewErrorErrorWithDefaults instantiates a new ErrorError 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 (*ErrorError) GetCode

func (o *ErrorError) GetCode() string

GetCode returns the Code field value

func (*ErrorError) GetCodeOk

func (o *ErrorError) GetCodeOk() (*string, bool)

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

func (*ErrorError) GetIssues

func (o *ErrorError) GetIssues() []ErrorErrorIssuesInner

GetIssues returns the Issues field value if set, zero value otherwise.

func (*ErrorError) GetIssuesOk

func (o *ErrorError) GetIssuesOk() ([]ErrorErrorIssuesInner, bool)

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

func (*ErrorError) GetMessage

func (o *ErrorError) GetMessage() string

GetMessage returns the Message field value

func (*ErrorError) GetMessageOk

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

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

func (*ErrorError) HasIssues

func (o *ErrorError) HasIssues() bool

HasIssues returns a boolean if a field has been set.

func (ErrorError) MarshalJSON

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

func (*ErrorError) SetCode

func (o *ErrorError) SetCode(v string)

SetCode sets field value

func (*ErrorError) SetIssues

func (o *ErrorError) SetIssues(v []ErrorErrorIssuesInner)

SetIssues gets a reference to the given []ErrorErrorIssuesInner and assigns it to the Issues field.

func (*ErrorError) SetMessage

func (o *ErrorError) SetMessage(v string)

SetMessage sets field value

func (ErrorError) ToMap

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

func (*ErrorError) UnmarshalJSON

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

type ErrorErrorIssuesInner

type ErrorErrorIssuesInner struct {
	Path                 []ErrorErrorIssuesInnerPathInner `json:"path"`
	Message              string                           `json:"message"`
	AdditionalProperties map[string]interface{}
}

ErrorErrorIssuesInner struct for ErrorErrorIssuesInner

func NewErrorErrorIssuesInner

func NewErrorErrorIssuesInner(path []ErrorErrorIssuesInnerPathInner, message string) *ErrorErrorIssuesInner

NewErrorErrorIssuesInner instantiates a new ErrorErrorIssuesInner 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 NewErrorErrorIssuesInnerWithDefaults

func NewErrorErrorIssuesInnerWithDefaults() *ErrorErrorIssuesInner

NewErrorErrorIssuesInnerWithDefaults instantiates a new ErrorErrorIssuesInner 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 (*ErrorErrorIssuesInner) GetMessage

func (o *ErrorErrorIssuesInner) GetMessage() string

GetMessage returns the Message field value

func (*ErrorErrorIssuesInner) GetMessageOk

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

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

func (*ErrorErrorIssuesInner) GetPath

GetPath returns the Path field value

func (*ErrorErrorIssuesInner) GetPathOk

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

func (ErrorErrorIssuesInner) MarshalJSON

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

func (*ErrorErrorIssuesInner) SetMessage

func (o *ErrorErrorIssuesInner) SetMessage(v string)

SetMessage sets field value

func (*ErrorErrorIssuesInner) SetPath

SetPath sets field value

func (ErrorErrorIssuesInner) ToMap

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

func (*ErrorErrorIssuesInner) UnmarshalJSON

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

type ErrorErrorIssuesInnerPathInner

type ErrorErrorIssuesInnerPathInner struct {
	Float32 *float32
	String  *string
}

ErrorErrorIssuesInnerPathInner struct for ErrorErrorIssuesInnerPathInner

func (ErrorErrorIssuesInnerPathInner) MarshalJSON

func (src ErrorErrorIssuesInnerPathInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*ErrorErrorIssuesInnerPathInner) UnmarshalJSON

func (dst *ErrorErrorIssuesInnerPathInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type Event

type Event struct {
	Id        string    `json:"id"`
	Type      EventType `json:"type"`
	CreatedAt time.Time `json:"createdAt"`
	// Details of the event, depending on its `type`.
	Payload              map[string]*interface{} `json:"payload"`
	PolicyId             NullableString          `json:"policyId"`
	LicenseId            NullableString          `json:"licenseId"`
	MachineId            NullableString          `json:"machineId"`
	Machine              NullableEventMachine    `json:"machine"`
	Actor                NullableEventActor      `json:"actor"`
	AdditionalProperties map[string]interface{}
}

Event struct for Event

func NewEvent

func NewEvent(id string, type_ EventType, createdAt time.Time, payload map[string]*interface{}, policyId NullableString, licenseId NullableString, machineId NullableString, machine NullableEventMachine, actor NullableEventActor) *Event

NewEvent instantiates a new Event 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 NewEventWithDefaults

func NewEventWithDefaults() *Event

NewEventWithDefaults instantiates a new Event 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 (*Event) GetActor

func (o *Event) GetActor() EventActor

GetActor returns the Actor field value If the value is explicit nil, the zero value for EventActor will be returned

func (*Event) GetActorOk

func (o *Event) GetActorOk() (*EventActor, bool)

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

func (*Event) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*Event) GetCreatedAtOk

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

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

func (*Event) GetId

func (o *Event) GetId() string

GetId returns the Id field value

func (*Event) GetIdOk

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

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

func (*Event) GetLicenseId

func (o *Event) GetLicenseId() string

GetLicenseId returns the LicenseId field value If the value is explicit nil, the zero value for string will be returned

func (*Event) GetLicenseIdOk

func (o *Event) GetLicenseIdOk() (*string, bool)

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

func (*Event) GetMachine

func (o *Event) GetMachine() EventMachine

GetMachine returns the Machine field value If the value is explicit nil, the zero value for EventMachine will be returned

func (*Event) GetMachineId

func (o *Event) GetMachineId() string

GetMachineId returns the MachineId field value If the value is explicit nil, the zero value for string will be returned

func (*Event) GetMachineIdOk

func (o *Event) GetMachineIdOk() (*string, bool)

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

func (*Event) GetMachineOk

func (o *Event) GetMachineOk() (*EventMachine, bool)

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

func (*Event) GetPayload

func (o *Event) GetPayload() map[string]*interface{}

GetPayload returns the Payload field value

func (*Event) GetPayloadOk

func (o *Event) GetPayloadOk() (map[string]*interface{}, bool)

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

func (*Event) GetPolicyId

func (o *Event) GetPolicyId() string

GetPolicyId returns the PolicyId field value If the value is explicit nil, the zero value for string will be returned

func (*Event) GetPolicyIdOk

func (o *Event) GetPolicyIdOk() (*string, bool)

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

func (*Event) GetType

func (o *Event) GetType() EventType

GetType returns the Type field value

func (*Event) GetTypeOk

func (o *Event) GetTypeOk() (*EventType, bool)

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

func (Event) MarshalJSON

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

func (*Event) SetActor

func (o *Event) SetActor(v EventActor)

SetActor sets field value

func (*Event) SetCreatedAt

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

SetCreatedAt sets field value

func (*Event) SetId

func (o *Event) SetId(v string)

SetId sets field value

func (*Event) SetLicenseId

func (o *Event) SetLicenseId(v string)

SetLicenseId sets field value

func (*Event) SetMachine

func (o *Event) SetMachine(v EventMachine)

SetMachine sets field value

func (*Event) SetMachineId

func (o *Event) SetMachineId(v string)

SetMachineId sets field value

func (*Event) SetPayload

func (o *Event) SetPayload(v map[string]*interface{})

SetPayload sets field value

func (*Event) SetPolicyId

func (o *Event) SetPolicyId(v string)

SetPolicyId sets field value

func (*Event) SetType

func (o *Event) SetType(v EventType)

SetType sets field value

func (Event) ToMap

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

func (*Event) UnmarshalJSON

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

type EventActor

type EventActor struct {
	EventActorOneOf  *EventActorOneOf
	EventActorOneOf1 *EventActorOneOf1
	EventActorOneOf2 *EventActorOneOf2
	EventActorOneOf3 *EventActorOneOf3
	EventActorOneOf4 *EventActorOneOf4
}

EventActor - Who caused the event: a user of the app, an API key, a token, `automation` for the changes the app makes on its own, like applying the version locks, or `integration` for the changes of an integration, like the licenses a Stripe payment creates. `null` for requests that don't authenticate, like validating a license key.

func EventActorOneOf1AsEventActor

func EventActorOneOf1AsEventActor(v *EventActorOneOf1) EventActor

EventActorOneOf1AsEventActor is a convenience function that returns EventActorOneOf1 wrapped in EventActor

func EventActorOneOf2AsEventActor

func EventActorOneOf2AsEventActor(v *EventActorOneOf2) EventActor

EventActorOneOf2AsEventActor is a convenience function that returns EventActorOneOf2 wrapped in EventActor

func EventActorOneOf3AsEventActor

func EventActorOneOf3AsEventActor(v *EventActorOneOf3) EventActor

EventActorOneOf3AsEventActor is a convenience function that returns EventActorOneOf3 wrapped in EventActor

func EventActorOneOf4AsEventActor

func EventActorOneOf4AsEventActor(v *EventActorOneOf4) EventActor

EventActorOneOf4AsEventActor is a convenience function that returns EventActorOneOf4 wrapped in EventActor

func EventActorOneOfAsEventActor

func EventActorOneOfAsEventActor(v *EventActorOneOf) EventActor

EventActorOneOfAsEventActor is a convenience function that returns EventActorOneOf wrapped in EventActor

func (*EventActor) GetActualInstance

func (obj *EventActor) GetActualInstance() interface{}

Get the actual instance

func (EventActor) GetActualInstanceValue

func (obj EventActor) GetActualInstanceValue() interface{}

Get the actual instance value

func (EventActor) MarshalJSON

func (src EventActor) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*EventActor) UnmarshalJSON

func (dst *EventActor) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type EventActorOneOf

type EventActorOneOf struct {
	Type string `json:"type"`
	// `null` when the user has been deleted.
	Id    NullableString `json:"id"`
	Name  NullableString `json:"name"`
	Email NullableString `json:"email"`
	// URL of the user's profile picture.
	Image                NullableString `json:"image"`
	AdditionalProperties map[string]interface{}
}

EventActorOneOf struct for EventActorOneOf

func NewEventActorOneOf

func NewEventActorOneOf(type_ string, id NullableString, name NullableString, email NullableString, image NullableString) *EventActorOneOf

NewEventActorOneOf instantiates a new EventActorOneOf 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 NewEventActorOneOfWithDefaults

func NewEventActorOneOfWithDefaults() *EventActorOneOf

NewEventActorOneOfWithDefaults instantiates a new EventActorOneOf 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 (*EventActorOneOf) GetEmail

func (o *EventActorOneOf) GetEmail() string

GetEmail returns the Email field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf) GetEmailOk

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

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

func (*EventActorOneOf) GetId

func (o *EventActorOneOf) GetId() string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf) GetIdOk

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

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

func (*EventActorOneOf) GetImage

func (o *EventActorOneOf) GetImage() string

GetImage returns the Image field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf) GetImageOk

func (o *EventActorOneOf) GetImageOk() (*string, bool)

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

func (*EventActorOneOf) GetName

func (o *EventActorOneOf) GetName() string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf) GetNameOk

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

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

func (*EventActorOneOf) GetType

func (o *EventActorOneOf) GetType() string

GetType returns the Type field value

func (*EventActorOneOf) GetTypeOk

func (o *EventActorOneOf) GetTypeOk() (*string, bool)

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

func (EventActorOneOf) MarshalJSON

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

func (*EventActorOneOf) SetEmail

func (o *EventActorOneOf) SetEmail(v string)

SetEmail sets field value

func (*EventActorOneOf) SetId

func (o *EventActorOneOf) SetId(v string)

SetId sets field value

func (*EventActorOneOf) SetImage

func (o *EventActorOneOf) SetImage(v string)

SetImage sets field value

func (*EventActorOneOf) SetName

func (o *EventActorOneOf) SetName(v string)

SetName sets field value

func (*EventActorOneOf) SetType

func (o *EventActorOneOf) SetType(v string)

SetType sets field value

func (EventActorOneOf) ToMap

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

func (*EventActorOneOf) UnmarshalJSON

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

type EventActorOneOf1

type EventActorOneOf1 struct {
	Type string `json:"type"`
	// `null` when the API key has been deleted.
	Id   NullableString `json:"id"`
	Name NullableString `json:"name"`
	// First characters of the key, to recognize it.
	Start                NullableString `json:"start"`
	AdditionalProperties map[string]interface{}
}

EventActorOneOf1 struct for EventActorOneOf1

func NewEventActorOneOf1

func NewEventActorOneOf1(type_ string, id NullableString, name NullableString, start NullableString) *EventActorOneOf1

NewEventActorOneOf1 instantiates a new EventActorOneOf1 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 NewEventActorOneOf1WithDefaults

func NewEventActorOneOf1WithDefaults() *EventActorOneOf1

NewEventActorOneOf1WithDefaults instantiates a new EventActorOneOf1 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 (*EventActorOneOf1) GetId

func (o *EventActorOneOf1) GetId() string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf1) GetIdOk

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

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

func (*EventActorOneOf1) GetName

func (o *EventActorOneOf1) GetName() string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf1) GetNameOk

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

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

func (*EventActorOneOf1) GetStart

func (o *EventActorOneOf1) GetStart() string

GetStart returns the Start field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf1) GetStartOk

func (o *EventActorOneOf1) GetStartOk() (*string, bool)

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

func (*EventActorOneOf1) GetType

func (o *EventActorOneOf1) GetType() string

GetType returns the Type field value

func (*EventActorOneOf1) GetTypeOk

func (o *EventActorOneOf1) GetTypeOk() (*string, bool)

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

func (EventActorOneOf1) MarshalJSON

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

func (*EventActorOneOf1) SetId

func (o *EventActorOneOf1) SetId(v string)

SetId sets field value

func (*EventActorOneOf1) SetName

func (o *EventActorOneOf1) SetName(v string)

SetName sets field value

func (*EventActorOneOf1) SetStart

func (o *EventActorOneOf1) SetStart(v string)

SetStart sets field value

func (*EventActorOneOf1) SetType

func (o *EventActorOneOf1) SetType(v string)

SetType sets field value

func (EventActorOneOf1) ToMap

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

func (*EventActorOneOf1) UnmarshalJSON

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

type EventActorOneOf2

type EventActorOneOf2 struct {
	Type string `json:"type"`
	// Type of resource the token is scoped to.
	TokenType string `json:"tokenType"`
	// Id of the resource the token is scoped to.
	SubjectId            string `json:"subjectId"`
	AdditionalProperties map[string]interface{}
}

EventActorOneOf2 struct for EventActorOneOf2

func NewEventActorOneOf2

func NewEventActorOneOf2(type_ string, tokenType string, subjectId string) *EventActorOneOf2

NewEventActorOneOf2 instantiates a new EventActorOneOf2 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 NewEventActorOneOf2WithDefaults

func NewEventActorOneOf2WithDefaults() *EventActorOneOf2

NewEventActorOneOf2WithDefaults instantiates a new EventActorOneOf2 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 (*EventActorOneOf2) GetSubjectId

func (o *EventActorOneOf2) GetSubjectId() string

GetSubjectId returns the SubjectId field value

func (*EventActorOneOf2) GetSubjectIdOk

func (o *EventActorOneOf2) GetSubjectIdOk() (*string, bool)

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

func (*EventActorOneOf2) GetTokenType

func (o *EventActorOneOf2) GetTokenType() string

GetTokenType returns the TokenType field value

func (*EventActorOneOf2) GetTokenTypeOk

func (o *EventActorOneOf2) GetTokenTypeOk() (*string, bool)

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

func (*EventActorOneOf2) GetType

func (o *EventActorOneOf2) GetType() string

GetType returns the Type field value

func (*EventActorOneOf2) GetTypeOk

func (o *EventActorOneOf2) GetTypeOk() (*string, bool)

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

func (EventActorOneOf2) MarshalJSON

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

func (*EventActorOneOf2) SetSubjectId

func (o *EventActorOneOf2) SetSubjectId(v string)

SetSubjectId sets field value

func (*EventActorOneOf2) SetTokenType

func (o *EventActorOneOf2) SetTokenType(v string)

SetTokenType sets field value

func (*EventActorOneOf2) SetType

func (o *EventActorOneOf2) SetType(v string)

SetType sets field value

func (EventActorOneOf2) ToMap

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

func (*EventActorOneOf2) UnmarshalJSON

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

type EventActorOneOf3

type EventActorOneOf3 struct {
	Type                 string `json:"type"`
	AdditionalProperties map[string]interface{}
}

EventActorOneOf3 struct for EventActorOneOf3

func NewEventActorOneOf3

func NewEventActorOneOf3(type_ string) *EventActorOneOf3

NewEventActorOneOf3 instantiates a new EventActorOneOf3 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 NewEventActorOneOf3WithDefaults

func NewEventActorOneOf3WithDefaults() *EventActorOneOf3

NewEventActorOneOf3WithDefaults instantiates a new EventActorOneOf3 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 (*EventActorOneOf3) GetType

func (o *EventActorOneOf3) GetType() string

GetType returns the Type field value

func (*EventActorOneOf3) GetTypeOk

func (o *EventActorOneOf3) GetTypeOk() (*string, bool)

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

func (EventActorOneOf3) MarshalJSON

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

func (*EventActorOneOf3) SetType

func (o *EventActorOneOf3) SetType(v string)

SetType sets field value

func (EventActorOneOf3) ToMap

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

func (*EventActorOneOf3) UnmarshalJSON

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

type EventActorOneOf4

type EventActorOneOf4 struct {
	Type string `json:"type"`
	// `null` when the integration has been disconnected.
	Id NullableString `json:"id"`
	// Service the integration connects to.
	Provider             string `json:"provider"`
	AdditionalProperties map[string]interface{}
}

EventActorOneOf4 struct for EventActorOneOf4

func NewEventActorOneOf4

func NewEventActorOneOf4(type_ string, id NullableString, provider string) *EventActorOneOf4

NewEventActorOneOf4 instantiates a new EventActorOneOf4 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 NewEventActorOneOf4WithDefaults

func NewEventActorOneOf4WithDefaults() *EventActorOneOf4

NewEventActorOneOf4WithDefaults instantiates a new EventActorOneOf4 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 (*EventActorOneOf4) GetId

func (o *EventActorOneOf4) GetId() string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*EventActorOneOf4) GetIdOk

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

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

func (*EventActorOneOf4) GetProvider

func (o *EventActorOneOf4) GetProvider() string

GetProvider returns the Provider field value

func (*EventActorOneOf4) GetProviderOk

func (o *EventActorOneOf4) GetProviderOk() (*string, bool)

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

func (*EventActorOneOf4) GetType

func (o *EventActorOneOf4) GetType() string

GetType returns the Type field value

func (*EventActorOneOf4) GetTypeOk

func (o *EventActorOneOf4) GetTypeOk() (*string, bool)

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

func (EventActorOneOf4) MarshalJSON

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

func (*EventActorOneOf4) SetId

func (o *EventActorOneOf4) SetId(v string)

SetId sets field value

func (*EventActorOneOf4) SetProvider

func (o *EventActorOneOf4) SetProvider(v string)

SetProvider sets field value

func (*EventActorOneOf4) SetType

func (o *EventActorOneOf4) SetType(v string)

SetType sets field value

func (EventActorOneOf4) ToMap

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

func (*EventActorOneOf4) UnmarshalJSON

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

type EventList

type EventList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []Event    `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

EventList struct for EventList

func NewEventList

func NewEventList(data []Event, pagination Pagination) *EventList

NewEventList instantiates a new EventList 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 NewEventListWithDefaults

func NewEventListWithDefaults() *EventList

NewEventListWithDefaults instantiates a new EventList 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 (*EventList) GetData

func (o *EventList) GetData() []Event

GetData returns the Data field value

func (*EventList) GetDataOk

func (o *EventList) GetDataOk() ([]Event, bool)

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

func (*EventList) GetPagination

func (o *EventList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*EventList) GetPaginationOk

func (o *EventList) GetPaginationOk() (*Pagination, bool)

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

func (EventList) MarshalJSON

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

func (*EventList) SetData

func (o *EventList) SetData(v []Event)

SetData sets field value

func (*EventList) SetPagination

func (o *EventList) SetPagination(v Pagination)

SetPagination sets field value

func (EventList) ToMap

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

func (*EventList) UnmarshalJSON

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

type EventMachine

type EventMachine struct {
	Id                   string         `json:"id"`
	Name                 NullableString `json:"name"`
	Fingerprint          string         `json:"fingerprint"`
	AdditionalProperties map[string]interface{}
}

EventMachine The machine the event is about, with its current name. `null` when the event has no machine or it has been deleted.

func NewEventMachine

func NewEventMachine(id string, name NullableString, fingerprint string) *EventMachine

NewEventMachine instantiates a new EventMachine 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 NewEventMachineWithDefaults

func NewEventMachineWithDefaults() *EventMachine

NewEventMachineWithDefaults instantiates a new EventMachine 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 (*EventMachine) GetFingerprint

func (o *EventMachine) GetFingerprint() string

GetFingerprint returns the Fingerprint field value

func (*EventMachine) GetFingerprintOk

func (o *EventMachine) GetFingerprintOk() (*string, bool)

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

func (*EventMachine) GetId

func (o *EventMachine) GetId() string

GetId returns the Id field value

func (*EventMachine) GetIdOk

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

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

func (*EventMachine) GetName

func (o *EventMachine) GetName() string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*EventMachine) GetNameOk

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

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

func (EventMachine) MarshalJSON

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

func (*EventMachine) SetFingerprint

func (o *EventMachine) SetFingerprint(v string)

SetFingerprint sets field value

func (*EventMachine) SetId

func (o *EventMachine) SetId(v string)

SetId sets field value

func (*EventMachine) SetName

func (o *EventMachine) SetName(v string)

SetName sets field value

func (EventMachine) ToMap

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

func (*EventMachine) UnmarshalJSON

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

type EventType

type EventType string

EventType - `policy.created`: `payload` holds the policy's settings. - `policy.updated`: `payload.changes` maps each changed field to its previous (`from`) and new (`to`) value. Making a policy the default also updates the previous default one. - `license.created`: `payload` holds the license's key, `policyId`, `customerId` and settings. Not linked to the policy. - `license.updated`: `payload.changes`, like `policy.updated`. - `license.validated`: a machine validated the license key. `payload` holds the machine's `fingerprint`, `name` and `version`, and whether the validation created the machine (`machineCreated`) or activated it again (`machineActivated`). - `license.validation_failed`: validating the license key failed. `payload` holds the error `code` and `message`, and the `fingerprint`, `name`, `platform` and `version` sent, the name and platform being the machine's when none is sent. Linked to the machine when it exists. - `machine.deactivated`: a machine was deactivated, so it no longer counts as using the license. `payload` holds the machine's `fingerprint` and `name`. Linked to the license and the machine. An update that changes nothing records no event. Deletions record no events, and customers, products and releases have none.

const (
	EVENTTYPE_POLICY_CREATED            EventType = "policy.created"
	EVENTTYPE_POLICY_UPDATED            EventType = "policy.updated"
	EVENTTYPE_LICENSE_CREATED           EventType = "license.created"
	EVENTTYPE_LICENSE_UPDATED           EventType = "license.updated"
	EVENTTYPE_LICENSE_VALIDATED         EventType = "license.validated"
	EVENTTYPE_LICENSE_VALIDATION_FAILED EventType = "license.validation_failed"
	EVENTTYPE_MACHINE_DEACTIVATED       EventType = "machine.deactivated"
	EVENTTYPE_UNKNOWN_DEFAULT_OPEN_API  EventType = "unknown_default_open_api"
)

List of EventType

func NewEventTypeFromValue

func NewEventTypeFromValue(v string) (*EventType, error)

NewEventTypeFromValue returns a pointer to a valid EventType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (EventType) IsValid

func (v EventType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (EventType) Ptr

func (v EventType) Ptr() *EventType

Ptr returns reference to EventType value

func (*EventType) UnmarshalJSON

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

type EventsAPIService

type EventsAPIService service

EventsAPIService EventsAPI service

func (*EventsAPIService) ListLicenseEvents

func (a *EventsAPIService) ListLicenseEvents(ctx context.Context, id string) ApiListLicenseEventsRequest

ListLicenseEvents List the events of a license

Includes the validations of the license on each of its machines. Doesn't accept tokens: only API keys and sessions.

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

func (*EventsAPIService) ListLicenseEventsExecute

func (a *EventsAPIService) ListLicenseEventsExecute(r ApiListLicenseEventsRequest) (*EventList, *http.Response, error)

Execute executes the request

@return EventList

func (*EventsAPIService) ListPolicyEvents

func (a *EventsAPIService) ListPolicyEvents(ctx context.Context, id string) ApiListPolicyEventsRequest

ListPolicyEvents List the events of a policy

Doesn't accept tokens: only API keys and sessions.

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

func (*EventsAPIService) ListPolicyEventsExecute

func (a *EventsAPIService) ListPolicyEventsExecute(r ApiListPolicyEventsRequest) (*EventList, *http.Response, error)

Execute executes the request

@return EventList

type FixedMaxVersion

type FixedMaxVersion struct {
	Type string `json:"type"`
	// `\"2\"` allows every 2.y.z version: the minor versions and bug fixes of version 2. `\"2.3\"` allows every 2.3.z version: the bug fixes of version 2.3. Bug fixes can't be locked, so patch numbers like `\"2.3.1\"` are rejected.
	Version              string `json:"version" validate:"regexp=^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*))?$"`
	AdditionalProperties map[string]interface{}
}

FixedMaxVersion The licenses can use up to `version`, whenever they're created.

func NewFixedMaxVersion

func NewFixedMaxVersion(type_ string, version string) *FixedMaxVersion

NewFixedMaxVersion instantiates a new FixedMaxVersion 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 NewFixedMaxVersionWithDefaults

func NewFixedMaxVersionWithDefaults() *FixedMaxVersion

NewFixedMaxVersionWithDefaults instantiates a new FixedMaxVersion 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 (*FixedMaxVersion) GetType

func (o *FixedMaxVersion) GetType() string

GetType returns the Type field value

func (*FixedMaxVersion) GetTypeOk

func (o *FixedMaxVersion) GetTypeOk() (*string, bool)

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

func (*FixedMaxVersion) GetVersion

func (o *FixedMaxVersion) GetVersion() string

GetVersion returns the Version field value

func (*FixedMaxVersion) GetVersionOk

func (o *FixedMaxVersion) GetVersionOk() (*string, bool)

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

func (FixedMaxVersion) MarshalJSON

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

func (*FixedMaxVersion) SetType

func (o *FixedMaxVersion) SetType(v string)

SetType sets field value

func (*FixedMaxVersion) SetVersion

func (o *FixedMaxVersion) SetVersion(v string)

SetVersion sets field value

func (FixedMaxVersion) ToMap

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

func (*FixedMaxVersion) UnmarshalJSON

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

type GenericOpenAPIError

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

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

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

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

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type Integration

type Integration struct {
	Id       string `json:"id"`
	Provider string `json:"provider"`
	// Whether it's connected in live mode, for the live products, or in test mode, for the test products.
	Livemode bool `json:"livemode"`
	// Name of the Stripe account, `null` when the API key can't read it.
	AccountName NullableString `json:"accountName"`
	// Start and end of the API key, to recognize it.
	ApiKeyHint string `json:"apiKeyHint"`
	// URL of the webhook endpoint created on the Stripe account.
	WebhookUrl string            `json:"webhookUrl"`
	Status     IntegrationStatus `json:"status"`
	// Why the integration isn't `active`, `null` when it is.
	StatusReason NullableString `json:"statusReason"`
	// Last time its health was checked, done every day.
	LastCheckedAt NullableTime `json:"lastCheckedAt"`
	// Last time it received an event from the provider.
	LastEventAt          NullableTime `json:"lastEventAt"`
	CreatedAt            time.Time    `json:"createdAt"`
	AdditionalProperties map[string]interface{}
}

Integration struct for Integration

func NewIntegration

func NewIntegration(id string, provider string, livemode bool, accountName NullableString, apiKeyHint string, webhookUrl string, status IntegrationStatus, statusReason NullableString, lastCheckedAt NullableTime, lastEventAt NullableTime, createdAt time.Time) *Integration

NewIntegration instantiates a new Integration 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 NewIntegrationWithDefaults

func NewIntegrationWithDefaults() *Integration

NewIntegrationWithDefaults instantiates a new Integration 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 (*Integration) GetAccountName

func (o *Integration) GetAccountName() string

GetAccountName returns the AccountName field value If the value is explicit nil, the zero value for string will be returned

func (*Integration) GetAccountNameOk

func (o *Integration) GetAccountNameOk() (*string, bool)

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

func (*Integration) GetApiKeyHint

func (o *Integration) GetApiKeyHint() string

GetApiKeyHint returns the ApiKeyHint field value

func (*Integration) GetApiKeyHintOk

func (o *Integration) GetApiKeyHintOk() (*string, bool)

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

func (*Integration) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*Integration) GetCreatedAtOk

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

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

func (*Integration) GetId

func (o *Integration) GetId() string

GetId returns the Id field value

func (*Integration) GetIdOk

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

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

func (*Integration) GetLastCheckedAt

func (o *Integration) GetLastCheckedAt() time.Time

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

func (*Integration) GetLastCheckedAtOk

func (o *Integration) GetLastCheckedAtOk() (*time.Time, bool)

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

func (*Integration) GetLastEventAt

func (o *Integration) GetLastEventAt() time.Time

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

func (*Integration) GetLastEventAtOk

func (o *Integration) GetLastEventAtOk() (*time.Time, bool)

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

func (*Integration) GetLivemode

func (o *Integration) GetLivemode() bool

GetLivemode returns the Livemode field value

func (*Integration) GetLivemodeOk

func (o *Integration) GetLivemodeOk() (*bool, bool)

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

func (*Integration) GetProvider

func (o *Integration) GetProvider() string

GetProvider returns the Provider field value

func (*Integration) GetProviderOk

func (o *Integration) GetProviderOk() (*string, bool)

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

func (*Integration) GetStatus

func (o *Integration) GetStatus() IntegrationStatus

GetStatus returns the Status field value

func (*Integration) GetStatusOk

func (o *Integration) GetStatusOk() (*IntegrationStatus, bool)

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

func (*Integration) GetStatusReason

func (o *Integration) GetStatusReason() string

GetStatusReason returns the StatusReason field value If the value is explicit nil, the zero value for string will be returned

func (*Integration) GetStatusReasonOk

func (o *Integration) GetStatusReasonOk() (*string, bool)

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

func (*Integration) GetWebhookUrl

func (o *Integration) GetWebhookUrl() string

GetWebhookUrl returns the WebhookUrl field value

func (*Integration) GetWebhookUrlOk

func (o *Integration) GetWebhookUrlOk() (*string, bool)

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

func (Integration) MarshalJSON

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

func (*Integration) SetAccountName

func (o *Integration) SetAccountName(v string)

SetAccountName sets field value

func (*Integration) SetApiKeyHint

func (o *Integration) SetApiKeyHint(v string)

SetApiKeyHint sets field value

func (*Integration) SetCreatedAt

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

SetCreatedAt sets field value

func (*Integration) SetId

func (o *Integration) SetId(v string)

SetId sets field value

func (*Integration) SetLastCheckedAt

func (o *Integration) SetLastCheckedAt(v time.Time)

SetLastCheckedAt sets field value

func (*Integration) SetLastEventAt

func (o *Integration) SetLastEventAt(v time.Time)

SetLastEventAt sets field value

func (*Integration) SetLivemode

func (o *Integration) SetLivemode(v bool)

SetLivemode sets field value

func (*Integration) SetProvider

func (o *Integration) SetProvider(v string)

SetProvider sets field value

func (*Integration) SetStatus

func (o *Integration) SetStatus(v IntegrationStatus)

SetStatus sets field value

func (*Integration) SetStatusReason

func (o *Integration) SetStatusReason(v string)

SetStatusReason sets field value

func (*Integration) SetWebhookUrl

func (o *Integration) SetWebhookUrl(v string)

SetWebhookUrl sets field value

func (Integration) ToMap

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

func (*Integration) UnmarshalJSON

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

type IntegrationMapping

type IntegrationMapping struct {
	Id              string `json:"id"`
	IntegrationId   string `json:"integrationId"`
	ProductId       string `json:"productId"`
	PolicyId        string `json:"policyId"`
	StripeProductId string `json:"stripeProductId"`
	StripePriceId   string `json:"stripePriceId"`
	// Name of the Stripe product when it was mapped.
	ProductName string        `json:"productName"`
	Price       NullablePrice `json:"price"`
	// `error` when the price can no longer be paid, explained by `statusReason`.
	Status               string         `json:"status"`
	StatusReason         NullableString `json:"statusReason"`
	CreatedAt            time.Time      `json:"createdAt"`
	AdditionalProperties map[string]interface{}
}

IntegrationMapping struct for IntegrationMapping

func NewIntegrationMapping

func NewIntegrationMapping(id string, integrationId string, productId string, policyId string, stripeProductId string, stripePriceId string, productName string, price NullablePrice, status string, statusReason NullableString, createdAt time.Time) *IntegrationMapping

NewIntegrationMapping instantiates a new IntegrationMapping 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 NewIntegrationMappingWithDefaults

func NewIntegrationMappingWithDefaults() *IntegrationMapping

NewIntegrationMappingWithDefaults instantiates a new IntegrationMapping 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 (*IntegrationMapping) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*IntegrationMapping) GetCreatedAtOk

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

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

func (*IntegrationMapping) GetId

func (o *IntegrationMapping) GetId() string

GetId returns the Id field value

func (*IntegrationMapping) GetIdOk

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

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

func (*IntegrationMapping) GetIntegrationId

func (o *IntegrationMapping) GetIntegrationId() string

GetIntegrationId returns the IntegrationId field value

func (*IntegrationMapping) GetIntegrationIdOk

func (o *IntegrationMapping) GetIntegrationIdOk() (*string, bool)

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

func (*IntegrationMapping) GetPolicyId

func (o *IntegrationMapping) GetPolicyId() string

GetPolicyId returns the PolicyId field value

func (*IntegrationMapping) GetPolicyIdOk

func (o *IntegrationMapping) GetPolicyIdOk() (*string, bool)

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

func (*IntegrationMapping) GetPrice

func (o *IntegrationMapping) GetPrice() Price

GetPrice returns the Price field value If the value is explicit nil, the zero value for Price will be returned

func (*IntegrationMapping) GetPriceOk

func (o *IntegrationMapping) GetPriceOk() (*Price, bool)

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

func (*IntegrationMapping) GetProductId

func (o *IntegrationMapping) GetProductId() string

GetProductId returns the ProductId field value

func (*IntegrationMapping) GetProductIdOk

func (o *IntegrationMapping) GetProductIdOk() (*string, bool)

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

func (*IntegrationMapping) GetProductName

func (o *IntegrationMapping) GetProductName() string

GetProductName returns the ProductName field value

func (*IntegrationMapping) GetProductNameOk

func (o *IntegrationMapping) GetProductNameOk() (*string, bool)

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

func (*IntegrationMapping) GetStatus

func (o *IntegrationMapping) GetStatus() string

GetStatus returns the Status field value

func (*IntegrationMapping) GetStatusOk

func (o *IntegrationMapping) GetStatusOk() (*string, bool)

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

func (*IntegrationMapping) GetStatusReason

func (o *IntegrationMapping) GetStatusReason() string

GetStatusReason returns the StatusReason field value If the value is explicit nil, the zero value for string will be returned

func (*IntegrationMapping) GetStatusReasonOk

func (o *IntegrationMapping) GetStatusReasonOk() (*string, bool)

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

func (*IntegrationMapping) GetStripePriceId

func (o *IntegrationMapping) GetStripePriceId() string

GetStripePriceId returns the StripePriceId field value

func (*IntegrationMapping) GetStripePriceIdOk

func (o *IntegrationMapping) GetStripePriceIdOk() (*string, bool)

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

func (*IntegrationMapping) GetStripeProductId

func (o *IntegrationMapping) GetStripeProductId() string

GetStripeProductId returns the StripeProductId field value

func (*IntegrationMapping) GetStripeProductIdOk

func (o *IntegrationMapping) GetStripeProductIdOk() (*string, bool)

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

func (IntegrationMapping) MarshalJSON

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

func (*IntegrationMapping) SetCreatedAt

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

SetCreatedAt sets field value

func (*IntegrationMapping) SetId

func (o *IntegrationMapping) SetId(v string)

SetId sets field value

func (*IntegrationMapping) SetIntegrationId

func (o *IntegrationMapping) SetIntegrationId(v string)

SetIntegrationId sets field value

func (*IntegrationMapping) SetPolicyId

func (o *IntegrationMapping) SetPolicyId(v string)

SetPolicyId sets field value

func (*IntegrationMapping) SetPrice

func (o *IntegrationMapping) SetPrice(v Price)

SetPrice sets field value

func (*IntegrationMapping) SetProductId

func (o *IntegrationMapping) SetProductId(v string)

SetProductId sets field value

func (*IntegrationMapping) SetProductName

func (o *IntegrationMapping) SetProductName(v string)

SetProductName sets field value

func (*IntegrationMapping) SetStatus

func (o *IntegrationMapping) SetStatus(v string)

SetStatus sets field value

func (*IntegrationMapping) SetStatusReason

func (o *IntegrationMapping) SetStatusReason(v string)

SetStatusReason sets field value

func (*IntegrationMapping) SetStripePriceId

func (o *IntegrationMapping) SetStripePriceId(v string)

SetStripePriceId sets field value

func (*IntegrationMapping) SetStripeProductId

func (o *IntegrationMapping) SetStripeProductId(v string)

SetStripeProductId sets field value

func (IntegrationMapping) ToMap

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

func (*IntegrationMapping) UnmarshalJSON

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

type IntegrationStatus

type IntegrationStatus string

IntegrationStatus `active`: the integration works. `error`: something needs fixing, explained by `statusReason`, like a permission missing from the API key or a mapped price archived. `disconnected`: the API key no longer works, connect a new one.

const (
	INTEGRATIONSTATUS_ACTIVE                   IntegrationStatus = "active"
	INTEGRATIONSTATUS_ERROR                    IntegrationStatus = "error"
	INTEGRATIONSTATUS_DISCONNECTED             IntegrationStatus = "disconnected"
	INTEGRATIONSTATUS_UNKNOWN_DEFAULT_OPEN_API IntegrationStatus = "unknown_default_open_api"
)

List of IntegrationStatus

func NewIntegrationStatusFromValue

func NewIntegrationStatusFromValue(v string) (*IntegrationStatus, error)

NewIntegrationStatusFromValue returns a pointer to a valid IntegrationStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (IntegrationStatus) IsValid

func (v IntegrationStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (IntegrationStatus) Ptr

Ptr returns reference to IntegrationStatus value

func (*IntegrationStatus) UnmarshalJSON

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

type IntegrationsAPIService

type IntegrationsAPIService service

IntegrationsAPIService IntegrationsAPI service

func (*IntegrationsAPIService) CheckIntegration

CheckIntegration Check an integration

Checks right away, as done every day, that the API key still works and can manage the webhook endpoint, which is pointed at the server's webhook URL again (or created again when it was deleted). Updates the status. Doesn't accept tokens: only API keys and sessions.

**Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*IntegrationsAPIService) CheckIntegrationExecute

Execute executes the request

@return Integration

func (*IntegrationsAPIService) ConnectStripe

func (a *IntegrationsAPIService) ConnectStripe(ctx context.Context, productId string) ApiConnectStripeRequest

ConnectStripe Connect Stripe

Connects the Stripe account of the API key for the organization's products of the product's mode, or replaces the key of the existing connection. Checks the key works and has the required permissions, then creates a webhook endpoint on the account, telling the app about payments. Doesn't accept tokens: only API keys and sessions.

**Required role permission**: `integration:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*IntegrationsAPIService) ConnectStripeExecute

Execute executes the request

@return StripeIntegration

func (*IntegrationsAPIService) CreateStripeMapping

func (a *IntegrationsAPIService) CreateStripeMapping(ctx context.Context, productId string) ApiCreateStripeMappingRequest

CreateStripeMapping Map a Stripe price to a policy

Paying the price then creates licenses of the product with the policy: one per unit bought. Doesn't accept tokens: only API keys and sessions.

**Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*IntegrationsAPIService) CreateStripeMappingExecute

Execute executes the request

@return IntegrationMapping

func (*IntegrationsAPIService) DeleteStripeMapping

DeleteStripeMapping Delete a mapping

Paying the price no longer creates licenses. The licenses it created stay. Doesn't accept tokens: only API keys and sessions.

**Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*IntegrationsAPIService) DeleteStripeMappingExecute

func (a *IntegrationsAPIService) DeleteStripeMappingExecute(r ApiDeleteStripeMappingRequest) (*http.Response, error)

Execute executes the request

func (*IntegrationsAPIService) DisconnectIntegration

DisconnectIntegration Disconnect an integration

Deletes the webhook endpoint from the Stripe account first, then the integration with its mappings, for every product. The endpoint is skipped when it's already gone or the key no longer works; otherwise, when it can't be deleted, the integration is kept. The licenses it created stay. Revoke the API key in Stripe afterwards. Doesn't accept tokens: only API keys and sessions.

**Required role permission**: `integration:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*IntegrationsAPIService) DisconnectIntegrationExecute

func (a *IntegrationsAPIService) DisconnectIntegrationExecute(r ApiDisconnectIntegrationRequest) (*http.Response, error)

Execute executes the request

func (*IntegrationsAPIService) GetStripeIntegration

func (a *IntegrationsAPIService) GetStripeIntegration(ctx context.Context, productId string) ApiGetStripeIntegrationRequest

GetStripeIntegration Get the Stripe integration of a product

The organization connects one Stripe account for its live products, and one in test mode for its test products. Its mappings tell which Stripe prices create licenses of the product. Doesn't accept tokens: only API keys and sessions.

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

func (*IntegrationsAPIService) GetStripeIntegrationExecute

Execute executes the request

@return StripeIntegration

func (*IntegrationsAPIService) ListStripePrices

ListStripePrices List the Stripe prices of an integration

Active one-time prices of active products of the Stripe account, the ones that can be mapped, up to 500. Doesn't accept tokens: only API keys and sessions.

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

func (*IntegrationsAPIService) ListStripePricesExecute

Execute executes the request

@return ListStripePrices200Response

func (*IntegrationsAPIService) UpdateStripeMapping

UpdateStripeMapping Change the policy of a mapping

Only affects the licenses created afterwards. Doesn't accept tokens: only API keys and sessions.

**Required role permission**: `integration:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*IntegrationsAPIService) UpdateStripeMappingExecute

Execute executes the request

@return IntegrationMapping

type License

type License struct {
	Id         string `json:"id"`
	ProductId  string `json:"productId"`
	PolicyId   string `json:"policyId"`
	CustomerId string `json:"customerId"`
	// Unique within the product. Case sensitive: `validateKey` compares keys exactly.
	Key       string    `json:"key"`
	CreatedAt time.Time `json:"createdAt"`
	// `null` when the license never expires.
	ExpiresAt NullableTime `json:"expiresAt"`
	// Free-form JSON object.
	Meta map[string]*interface{} `json:"meta"`
	// Id of the Stripe payment intent that paid the license, when it was bought through the Stripe integration. `null` otherwise, or when nothing was paid.
	StripePaymentIntentId NullableString `json:"stripePaymentIntentId"`
	// Maximum number of active machines the license can be used on. `null` when there's no limit. Can be lower than `activeMachineCount` after it was lowered: machines aren't deactivated to match it.
	MaxMachines NullableInt32 `json:"maxMachines"`
	// Longest the applications can run offline with the license: the license tokens returned by `validateKey` expire this long after they're issued, unless the license expires sooner.
	MaxOfflineDurationSeconds int32 `json:"maxOfflineDurationSeconds"`
	// Number of active machines the license is used on.
	ActiveMachineCount int32 `json:"activeMachineCount"`
	// Last time a machine validated the license key. `null` when it was never validated.
	LastActivatedAt NullableTime      `json:"lastActivatedAt"`
	MaxVersion      LicenseMaxVersion `json:"maxVersion"`
	Price           NullablePrice     `json:"price"`
	Status          LicenseStatus     `json:"status"`
	// Last time the license's settings were edited, not when its key was validated.
	UpdatedAt            time.Time `json:"updatedAt"`
	AdditionalProperties map[string]interface{}
}

License struct for License

func NewLicense

func NewLicense(id string, productId string, policyId string, customerId string, key string, createdAt time.Time, expiresAt NullableTime, meta map[string]*interface{}, stripePaymentIntentId NullableString, maxMachines NullableInt32, maxOfflineDurationSeconds int32, activeMachineCount int32, lastActivatedAt NullableTime, maxVersion LicenseMaxVersion, price NullablePrice, status LicenseStatus, updatedAt time.Time) *License

NewLicense instantiates a new License 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 NewLicenseWithDefaults

func NewLicenseWithDefaults() *License

NewLicenseWithDefaults instantiates a new License 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 (*License) GetActiveMachineCount

func (o *License) GetActiveMachineCount() int32

GetActiveMachineCount returns the ActiveMachineCount field value

func (*License) GetActiveMachineCountOk

func (o *License) GetActiveMachineCountOk() (*int32, bool)

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

func (*License) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*License) GetCreatedAtOk

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

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

func (*License) GetCustomerId

func (o *License) GetCustomerId() string

GetCustomerId returns the CustomerId field value

func (*License) GetCustomerIdOk

func (o *License) GetCustomerIdOk() (*string, bool)

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

func (*License) GetExpiresAt

func (o *License) GetExpiresAt() time.Time

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

func (*License) GetExpiresAtOk

func (o *License) GetExpiresAtOk() (*time.Time, bool)

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

func (*License) GetId

func (o *License) GetId() string

GetId returns the Id field value

func (*License) GetIdOk

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

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

func (*License) GetKey

func (o *License) GetKey() string

GetKey returns the Key field value

func (*License) GetKeyOk

func (o *License) GetKeyOk() (*string, bool)

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

func (*License) GetLastActivatedAt

func (o *License) GetLastActivatedAt() time.Time

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

func (*License) GetLastActivatedAtOk

func (o *License) GetLastActivatedAtOk() (*time.Time, bool)

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

func (*License) GetMaxMachines

func (o *License) GetMaxMachines() int32

GetMaxMachines returns the MaxMachines field value If the value is explicit nil, the zero value for int32 will be returned

func (*License) GetMaxMachinesOk

func (o *License) GetMaxMachinesOk() (*int32, bool)

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

func (*License) GetMaxOfflineDurationSeconds

func (o *License) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value

func (*License) GetMaxOfflineDurationSecondsOk

func (o *License) GetMaxOfflineDurationSecondsOk() (*int32, bool)

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

func (*License) GetMaxVersion

func (o *License) GetMaxVersion() LicenseMaxVersion

GetMaxVersion returns the MaxVersion field value

func (*License) GetMaxVersionOk

func (o *License) GetMaxVersionOk() (*LicenseMaxVersion, bool)

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

func (*License) GetMeta

func (o *License) GetMeta() map[string]*interface{}

GetMeta returns the Meta field value If the value is explicit nil, the zero value for map[string]*interface{} will be returned

func (*License) GetMetaOk

func (o *License) GetMetaOk() (map[string]*interface{}, bool)

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

func (*License) GetPolicyId

func (o *License) GetPolicyId() string

GetPolicyId returns the PolicyId field value

func (*License) GetPolicyIdOk

func (o *License) GetPolicyIdOk() (*string, bool)

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

func (*License) GetPrice

func (o *License) GetPrice() Price

GetPrice returns the Price field value If the value is explicit nil, the zero value for Price will be returned

func (*License) GetPriceOk

func (o *License) GetPriceOk() (*Price, bool)

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

func (*License) GetProductId

func (o *License) GetProductId() string

GetProductId returns the ProductId field value

func (*License) GetProductIdOk

func (o *License) GetProductIdOk() (*string, bool)

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

func (*License) GetStatus

func (o *License) GetStatus() LicenseStatus

GetStatus returns the Status field value

func (*License) GetStatusOk

func (o *License) GetStatusOk() (*LicenseStatus, bool)

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

func (*License) GetStripePaymentIntentId

func (o *License) GetStripePaymentIntentId() string

GetStripePaymentIntentId returns the StripePaymentIntentId field value If the value is explicit nil, the zero value for string will be returned

func (*License) GetStripePaymentIntentIdOk

func (o *License) GetStripePaymentIntentIdOk() (*string, bool)

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

func (*License) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*License) GetUpdatedAtOk

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

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

func (License) MarshalJSON

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

func (*License) SetActiveMachineCount

func (o *License) SetActiveMachineCount(v int32)

SetActiveMachineCount sets field value

func (*License) SetCreatedAt

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

SetCreatedAt sets field value

func (*License) SetCustomerId

func (o *License) SetCustomerId(v string)

SetCustomerId sets field value

func (*License) SetExpiresAt

func (o *License) SetExpiresAt(v time.Time)

SetExpiresAt sets field value

func (*License) SetId

func (o *License) SetId(v string)

SetId sets field value

func (*License) SetKey

func (o *License) SetKey(v string)

SetKey sets field value

func (*License) SetLastActivatedAt

func (o *License) SetLastActivatedAt(v time.Time)

SetLastActivatedAt sets field value

func (*License) SetMaxMachines

func (o *License) SetMaxMachines(v int32)

SetMaxMachines sets field value

func (*License) SetMaxOfflineDurationSeconds

func (o *License) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds sets field value

func (*License) SetMaxVersion

func (o *License) SetMaxVersion(v LicenseMaxVersion)

SetMaxVersion sets field value

func (*License) SetMeta

func (o *License) SetMeta(v map[string]*interface{})

SetMeta sets field value

func (*License) SetPolicyId

func (o *License) SetPolicyId(v string)

SetPolicyId sets field value

func (*License) SetPrice

func (o *License) SetPrice(v Price)

SetPrice sets field value

func (*License) SetProductId

func (o *License) SetProductId(v string)

SetProductId sets field value

func (*License) SetStatus

func (o *License) SetStatus(v LicenseStatus)

SetStatus sets field value

func (*License) SetStripePaymentIntentId

func (o *License) SetStripePaymentIntentId(v string)

SetStripePaymentIntentId sets field value

func (*License) SetUpdatedAt

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

SetUpdatedAt sets field value

func (License) ToMap

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

func (*License) UnmarshalJSON

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

type LicenseList

type LicenseList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []License  `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

LicenseList struct for LicenseList

func NewLicenseList

func NewLicenseList(data []License, pagination Pagination) *LicenseList

NewLicenseList instantiates a new LicenseList 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 NewLicenseListWithDefaults

func NewLicenseListWithDefaults() *LicenseList

NewLicenseListWithDefaults instantiates a new LicenseList 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 (*LicenseList) GetData

func (o *LicenseList) GetData() []License

GetData returns the Data field value

func (*LicenseList) GetDataOk

func (o *LicenseList) GetDataOk() ([]License, bool)

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

func (*LicenseList) GetPagination

func (o *LicenseList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*LicenseList) GetPaginationOk

func (o *LicenseList) GetPaginationOk() (*Pagination, bool)

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

func (LicenseList) MarshalJSON

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

func (*LicenseList) SetData

func (o *LicenseList) SetData(v []License)

SetData sets field value

func (*LicenseList) SetPagination

func (o *LicenseList) SetPagination(v Pagination)

SetPagination sets field value

func (LicenseList) ToMap

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

func (*LicenseList) UnmarshalJSON

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

type LicenseMaxVersion

type LicenseMaxVersion struct {
	// Hard-coded latest version, taking precedence over `lockMajorAt` and `lockMinorAt`. `\"2\"` allows every 2.y.z version: its minor versions and bug fixes. `\"2.3\"` allows every 2.3.z version: its bug fixes. `null` when it's not hard-coded.
	Version NullableString `json:"version" validate:"regexp=^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*))?$"`
	// When the major version of the license locks: it then only gets the minor versions and bug fixes of the major version released by then. Once reached, within the hour, the major version of the latest stable release by then is hard-coded in `version`, unless a version already is, and the lock is cleared. A lock reached before any stable release is cleared without hard-coding anything. `null` when it's never locked.
	LockMajorAt NullableTime `json:"lockMajorAt"`
	// When the minor version of the license locks: it then only gets the bug fixes of the minor version released by then, within the hard-coded major version when there's one. Never before `lockMajorAt`; without it, the major version locks along with the minor version. Once reached, within the hour, the major and minor version of the latest stable release by then is hard-coded in `version`, unless a minor version already is, and the lock is cleared. A lock reached before any matching stable release is cleared without hard-coding anything. `null` when it's never locked.
	LockMinorAt          NullableTime `json:"lockMinorAt"`
	AdditionalProperties map[string]interface{}
}

LicenseMaxVersion Latest version of the product the license can use: its hard-coded `version`, else the versions released before its locks. All `null` when it can use every version.

func NewLicenseMaxVersion

func NewLicenseMaxVersion(version NullableString, lockMajorAt NullableTime, lockMinorAt NullableTime) *LicenseMaxVersion

NewLicenseMaxVersion instantiates a new LicenseMaxVersion 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 NewLicenseMaxVersionWithDefaults

func NewLicenseMaxVersionWithDefaults() *LicenseMaxVersion

NewLicenseMaxVersionWithDefaults instantiates a new LicenseMaxVersion 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 (*LicenseMaxVersion) GetLockMajorAt

func (o *LicenseMaxVersion) GetLockMajorAt() time.Time

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

func (*LicenseMaxVersion) GetLockMajorAtOk

func (o *LicenseMaxVersion) GetLockMajorAtOk() (*time.Time, bool)

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

func (*LicenseMaxVersion) GetLockMinorAt

func (o *LicenseMaxVersion) GetLockMinorAt() time.Time

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

func (*LicenseMaxVersion) GetLockMinorAtOk

func (o *LicenseMaxVersion) GetLockMinorAtOk() (*time.Time, bool)

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

func (*LicenseMaxVersion) GetVersion

func (o *LicenseMaxVersion) GetVersion() string

GetVersion returns the Version field value If the value is explicit nil, the zero value for string will be returned

func (*LicenseMaxVersion) GetVersionOk

func (o *LicenseMaxVersion) GetVersionOk() (*string, bool)

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

func (LicenseMaxVersion) MarshalJSON

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

func (*LicenseMaxVersion) SetLockMajorAt

func (o *LicenseMaxVersion) SetLockMajorAt(v time.Time)

SetLockMajorAt sets field value

func (*LicenseMaxVersion) SetLockMinorAt

func (o *LicenseMaxVersion) SetLockMinorAt(v time.Time)

SetLockMinorAt sets field value

func (*LicenseMaxVersion) SetVersion

func (o *LicenseMaxVersion) SetVersion(v string)

SetVersion sets field value

func (LicenseMaxVersion) ToMap

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

func (*LicenseMaxVersion) UnmarshalJSON

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

type LicenseMaxVersionInput

type LicenseMaxVersionInput struct {
	// Hard-coded latest version, taking precedence over `lockMajorAt` and `lockMinorAt`. `\"2\"` allows every 2.y.z version: its minor versions and bug fixes. `\"2.3\"` allows every 2.3.z version: its bug fixes. `null` to not hard-code it.
	Version NullableString `json:"version,omitempty" validate:"regexp=^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*))?$"`
	// When the major version of the license locks: it then only gets the minor versions and bug fixes of the major version released by then. Once reached, within the hour, the major version of the latest stable release by then is hard-coded in `version`, unless a version already is, and the lock is cleared. A lock reached before any stable release is cleared without hard-coding anything. `null` to never lock it.
	LockMajorAt NullableTime `json:"lockMajorAt,omitempty"`
	// When the minor version of the license locks: it then only gets the bug fixes of the minor version released by then, within the hard-coded major version when there's one. Never before `lockMajorAt`; without it, the major version locks along with the minor version. Once reached, within the hour, the major and minor version of the latest stable release by then is hard-coded in `version`, unless a minor version already is, and the lock is cleared. A lock reached before any matching stable release is cleared without hard-coding anything. `null` to never lock it.
	LockMinorAt          NullableTime `json:"lockMinorAt,omitempty"`
	AdditionalProperties map[string]interface{}
}

LicenseMaxVersionInput Latest version of the product the license can use. Each value left out defaults to the policy's max version: `version` to its hard-coded version, else `null`, and `lockMajorAt` and `lockMinorAt` to the creation date plus its `majorAfter` and `minorAfter` when it locks, else `null`.

func NewLicenseMaxVersionInput

func NewLicenseMaxVersionInput() *LicenseMaxVersionInput

NewLicenseMaxVersionInput instantiates a new LicenseMaxVersionInput 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 NewLicenseMaxVersionInputWithDefaults

func NewLicenseMaxVersionInputWithDefaults() *LicenseMaxVersionInput

NewLicenseMaxVersionInputWithDefaults instantiates a new LicenseMaxVersionInput 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 (*LicenseMaxVersionInput) GetLockMajorAt

func (o *LicenseMaxVersionInput) GetLockMajorAt() time.Time

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

func (*LicenseMaxVersionInput) GetLockMajorAtOk

func (o *LicenseMaxVersionInput) GetLockMajorAtOk() (*time.Time, bool)

GetLockMajorAtOk returns a tuple with the LockMajorAt 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 (*LicenseMaxVersionInput) GetLockMinorAt

func (o *LicenseMaxVersionInput) GetLockMinorAt() time.Time

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

func (*LicenseMaxVersionInput) GetLockMinorAtOk

func (o *LicenseMaxVersionInput) GetLockMinorAtOk() (*time.Time, bool)

GetLockMinorAtOk returns a tuple with the LockMinorAt 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 (*LicenseMaxVersionInput) GetVersion

func (o *LicenseMaxVersionInput) GetVersion() string

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

func (*LicenseMaxVersionInput) GetVersionOk

func (o *LicenseMaxVersionInput) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version 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 (*LicenseMaxVersionInput) HasLockMajorAt

func (o *LicenseMaxVersionInput) HasLockMajorAt() bool

HasLockMajorAt returns a boolean if a field has been set.

func (*LicenseMaxVersionInput) HasLockMinorAt

func (o *LicenseMaxVersionInput) HasLockMinorAt() bool

HasLockMinorAt returns a boolean if a field has been set.

func (*LicenseMaxVersionInput) HasVersion

func (o *LicenseMaxVersionInput) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (LicenseMaxVersionInput) MarshalJSON

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

func (*LicenseMaxVersionInput) SetLockMajorAt

func (o *LicenseMaxVersionInput) SetLockMajorAt(v time.Time)

SetLockMajorAt gets a reference to the given NullableTime and assigns it to the LockMajorAt field.

func (*LicenseMaxVersionInput) SetLockMajorAtNil

func (o *LicenseMaxVersionInput) SetLockMajorAtNil()

SetLockMajorAtNil sets the value for LockMajorAt to be an explicit nil

func (*LicenseMaxVersionInput) SetLockMinorAt

func (o *LicenseMaxVersionInput) SetLockMinorAt(v time.Time)

SetLockMinorAt gets a reference to the given NullableTime and assigns it to the LockMinorAt field.

func (*LicenseMaxVersionInput) SetLockMinorAtNil

func (o *LicenseMaxVersionInput) SetLockMinorAtNil()

SetLockMinorAtNil sets the value for LockMinorAt to be an explicit nil

func (*LicenseMaxVersionInput) SetVersion

func (o *LicenseMaxVersionInput) SetVersion(v string)

SetVersion gets a reference to the given NullableString and assigns it to the Version field.

func (*LicenseMaxVersionInput) SetVersionNil

func (o *LicenseMaxVersionInput) SetVersionNil()

SetVersionNil sets the value for Version to be an explicit nil

func (LicenseMaxVersionInput) ToMap

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

func (*LicenseMaxVersionInput) UnmarshalJSON

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

func (*LicenseMaxVersionInput) UnsetLockMajorAt

func (o *LicenseMaxVersionInput) UnsetLockMajorAt()

UnsetLockMajorAt ensures that no value is present for LockMajorAt, not even an explicit nil

func (*LicenseMaxVersionInput) UnsetLockMinorAt

func (o *LicenseMaxVersionInput) UnsetLockMinorAt()

UnsetLockMinorAt ensures that no value is present for LockMinorAt, not even an explicit nil

func (*LicenseMaxVersionInput) UnsetVersion

func (o *LicenseMaxVersionInput) UnsetVersion()

UnsetVersion ensures that no value is present for Version, not even an explicit nil

type LicenseStats

type LicenseStats struct {
	// First day covered, in UTC.
	From string `json:"from"`
	// Last day covered, in UTC: today.
	To string `json:"to"`
	// The 90 days covered, from the oldest one, in UTC.
	Days []string `json:"days"`
	// Machines that activated the license in the period, from the one with the most activations.
	ActivationsByMachine []LicenseStatsActivationsByMachineInner `json:"activationsByMachine"`
	// Versions of the application that activated the license in the period, from the most recent one.
	ActivationsByVersion []LicenseStatsActivationsByVersionInner `json:"activationsByVersion"`
	AdditionalProperties map[string]interface{}
}

LicenseStats struct for LicenseStats

func NewLicenseStats

func NewLicenseStats(from string, to string, days []string, activationsByMachine []LicenseStatsActivationsByMachineInner, activationsByVersion []LicenseStatsActivationsByVersionInner) *LicenseStats

NewLicenseStats instantiates a new LicenseStats 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 NewLicenseStatsWithDefaults

func NewLicenseStatsWithDefaults() *LicenseStats

NewLicenseStatsWithDefaults instantiates a new LicenseStats 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 (*LicenseStats) GetActivationsByMachine

func (o *LicenseStats) GetActivationsByMachine() []LicenseStatsActivationsByMachineInner

GetActivationsByMachine returns the ActivationsByMachine field value

func (*LicenseStats) GetActivationsByMachineOk

func (o *LicenseStats) GetActivationsByMachineOk() ([]LicenseStatsActivationsByMachineInner, bool)

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

func (*LicenseStats) GetActivationsByVersion

func (o *LicenseStats) GetActivationsByVersion() []LicenseStatsActivationsByVersionInner

GetActivationsByVersion returns the ActivationsByVersion field value

func (*LicenseStats) GetActivationsByVersionOk

func (o *LicenseStats) GetActivationsByVersionOk() ([]LicenseStatsActivationsByVersionInner, bool)

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

func (*LicenseStats) GetDays

func (o *LicenseStats) GetDays() []string

GetDays returns the Days field value

func (*LicenseStats) GetDaysOk

func (o *LicenseStats) GetDaysOk() ([]string, bool)

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

func (*LicenseStats) GetFrom

func (o *LicenseStats) GetFrom() string

GetFrom returns the From field value

func (*LicenseStats) GetFromOk

func (o *LicenseStats) GetFromOk() (*string, bool)

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

func (*LicenseStats) GetTo

func (o *LicenseStats) GetTo() string

GetTo returns the To field value

func (*LicenseStats) GetToOk

func (o *LicenseStats) GetToOk() (*string, bool)

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

func (LicenseStats) MarshalJSON

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

func (*LicenseStats) SetActivationsByMachine

func (o *LicenseStats) SetActivationsByMachine(v []LicenseStatsActivationsByMachineInner)

SetActivationsByMachine sets field value

func (*LicenseStats) SetActivationsByVersion

func (o *LicenseStats) SetActivationsByVersion(v []LicenseStatsActivationsByVersionInner)

SetActivationsByVersion sets field value

func (*LicenseStats) SetDays

func (o *LicenseStats) SetDays(v []string)

SetDays sets field value

func (*LicenseStats) SetFrom

func (o *LicenseStats) SetFrom(v string)

SetFrom sets field value

func (*LicenseStats) SetTo

func (o *LicenseStats) SetTo(v string)

SetTo sets field value

func (LicenseStats) ToMap

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

func (*LicenseStats) UnmarshalJSON

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

type LicenseStatsActivationsByMachineInner

type LicenseStatsActivationsByMachineInner struct {
	MachineId   string         `json:"machineId"`
	Name        NullableString `json:"name"`
	Fingerprint string         `json:"fingerprint"`
	// Number of successful activations each day, aligned on `days`.
	Counts               []int32 `json:"counts"`
	AdditionalProperties map[string]interface{}
}

LicenseStatsActivationsByMachineInner struct for LicenseStatsActivationsByMachineInner

func NewLicenseStatsActivationsByMachineInner

func NewLicenseStatsActivationsByMachineInner(machineId string, name NullableString, fingerprint string, counts []int32) *LicenseStatsActivationsByMachineInner

NewLicenseStatsActivationsByMachineInner instantiates a new LicenseStatsActivationsByMachineInner 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 NewLicenseStatsActivationsByMachineInnerWithDefaults

func NewLicenseStatsActivationsByMachineInnerWithDefaults() *LicenseStatsActivationsByMachineInner

NewLicenseStatsActivationsByMachineInnerWithDefaults instantiates a new LicenseStatsActivationsByMachineInner 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 (*LicenseStatsActivationsByMachineInner) GetCounts

GetCounts returns the Counts field value

func (*LicenseStatsActivationsByMachineInner) GetCountsOk

func (o *LicenseStatsActivationsByMachineInner) GetCountsOk() ([]int32, bool)

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

func (*LicenseStatsActivationsByMachineInner) GetFingerprint

func (o *LicenseStatsActivationsByMachineInner) GetFingerprint() string

GetFingerprint returns the Fingerprint field value

func (*LicenseStatsActivationsByMachineInner) GetFingerprintOk

func (o *LicenseStatsActivationsByMachineInner) GetFingerprintOk() (*string, bool)

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

func (*LicenseStatsActivationsByMachineInner) GetMachineId

GetMachineId returns the MachineId field value

func (*LicenseStatsActivationsByMachineInner) GetMachineIdOk

func (o *LicenseStatsActivationsByMachineInner) GetMachineIdOk() (*string, bool)

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

func (*LicenseStatsActivationsByMachineInner) GetName

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*LicenseStatsActivationsByMachineInner) GetNameOk

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

func (LicenseStatsActivationsByMachineInner) MarshalJSON

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

func (*LicenseStatsActivationsByMachineInner) SetCounts

func (o *LicenseStatsActivationsByMachineInner) SetCounts(v []int32)

SetCounts sets field value

func (*LicenseStatsActivationsByMachineInner) SetFingerprint

func (o *LicenseStatsActivationsByMachineInner) SetFingerprint(v string)

SetFingerprint sets field value

func (*LicenseStatsActivationsByMachineInner) SetMachineId

func (o *LicenseStatsActivationsByMachineInner) SetMachineId(v string)

SetMachineId sets field value

func (*LicenseStatsActivationsByMachineInner) SetName

SetName sets field value

func (LicenseStatsActivationsByMachineInner) ToMap

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

func (*LicenseStatsActivationsByMachineInner) UnmarshalJSON

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

type LicenseStatsActivationsByVersionInner

type LicenseStatsActivationsByVersionInner struct {
	Version string `json:"version"`
	// Number of successful activations each day, aligned on `days`.
	Counts               []int32 `json:"counts"`
	AdditionalProperties map[string]interface{}
}

LicenseStatsActivationsByVersionInner struct for LicenseStatsActivationsByVersionInner

func NewLicenseStatsActivationsByVersionInner

func NewLicenseStatsActivationsByVersionInner(version string, counts []int32) *LicenseStatsActivationsByVersionInner

NewLicenseStatsActivationsByVersionInner instantiates a new LicenseStatsActivationsByVersionInner 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 NewLicenseStatsActivationsByVersionInnerWithDefaults

func NewLicenseStatsActivationsByVersionInnerWithDefaults() *LicenseStatsActivationsByVersionInner

NewLicenseStatsActivationsByVersionInnerWithDefaults instantiates a new LicenseStatsActivationsByVersionInner 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 (*LicenseStatsActivationsByVersionInner) GetCounts

GetCounts returns the Counts field value

func (*LicenseStatsActivationsByVersionInner) GetCountsOk

func (o *LicenseStatsActivationsByVersionInner) GetCountsOk() ([]int32, bool)

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

func (*LicenseStatsActivationsByVersionInner) GetVersion

GetVersion returns the Version field value

func (*LicenseStatsActivationsByVersionInner) GetVersionOk

func (o *LicenseStatsActivationsByVersionInner) GetVersionOk() (*string, bool)

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

func (LicenseStatsActivationsByVersionInner) MarshalJSON

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

func (*LicenseStatsActivationsByVersionInner) SetCounts

func (o *LicenseStatsActivationsByVersionInner) SetCounts(v []int32)

SetCounts sets field value

func (*LicenseStatsActivationsByVersionInner) SetVersion

SetVersion sets field value

func (LicenseStatsActivationsByVersionInner) ToMap

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

func (*LicenseStatsActivationsByVersionInner) UnmarshalJSON

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

type LicenseStatus

type LicenseStatus string

LicenseStatus `expired` when the license has expired, `active` when a machine validated its key in the last 90 days, `inactive` otherwise.

const (
	LICENSESTATUS_ACTIVE                   LicenseStatus = "active"
	LICENSESTATUS_INACTIVE                 LicenseStatus = "inactive"
	LICENSESTATUS_EXPIRED                  LicenseStatus = "expired"
	LICENSESTATUS_UNKNOWN_DEFAULT_OPEN_API LicenseStatus = "unknown_default_open_api"
)

List of LicenseStatus

func NewLicenseStatusFromValue

func NewLicenseStatusFromValue(v string) (*LicenseStatus, error)

NewLicenseStatusFromValue returns a pointer to a valid LicenseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (LicenseStatus) IsValid

func (v LicenseStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (LicenseStatus) Ptr

func (v LicenseStatus) Ptr() *LicenseStatus

Ptr returns reference to LicenseStatus value

func (*LicenseStatus) UnmarshalJSON

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

type LicenseToken

type LicenseToken struct {
	// JWT signed with the Ed25519 key of the product's organization (`alg: EdDSA`, `kid`: id of the key). Its claims:  - `iss`: name of the organization. It changes when the organization is renamed: check `aud` rather than `iss`. - `aud`: id of the product. Test and live products share the organization's key, so check `aud` to refuse the tokens of a test product. - `sub`: license key. - `fp`: fingerprint of the machine. - `mv`: the license's `maxVersion.version`, like `\"2.3\"`, so the application can check the versions it updates to offline. `null` when it allows every version. - `iat`: when the token was issued. - `nbf`: two hours before `iat`, so machines whose clock is behind accept the token. - `exp`: the license's `maxOfflineDurationSeconds` after `iat`, or when the license expires if that's sooner.
	License              string `json:"license"`
	AdditionalProperties map[string]interface{}
}

LicenseToken struct for LicenseToken

func NewLicenseToken

func NewLicenseToken(license string) *LicenseToken

NewLicenseToken instantiates a new LicenseToken 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 NewLicenseTokenWithDefaults

func NewLicenseTokenWithDefaults() *LicenseToken

NewLicenseTokenWithDefaults instantiates a new LicenseToken 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 (*LicenseToken) GetLicense

func (o *LicenseToken) GetLicense() string

GetLicense returns the License field value

func (*LicenseToken) GetLicenseOk

func (o *LicenseToken) GetLicenseOk() (*string, bool)

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

func (LicenseToken) MarshalJSON

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

func (*LicenseToken) SetLicense

func (o *LicenseToken) SetLicense(v string)

SetLicense sets field value

func (LicenseToken) ToMap

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

func (*LicenseToken) UnmarshalJSON

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

type LicensesAPIService

type LicensesAPIService service

LicensesAPIService LicensesAPI service

func (*LicensesAPIService) CreateLicense

func (a *LicensesAPIService) CreateLicense(ctx context.Context, productId string) ApiCreateLicenseRequest

CreateLicense Create a license

Without a `key`, the license gets a random one, like `7KQ2M-X9ZPA-H4TRC-WN6EY-B3JDF`: 5 groups of 5 characters separated by dashes, each character an upper case letter or a digit other than `O`, `0`, `I` and `1`. That's 32 possible characters encoding 5 bits each, for 125 random bits.

Without a `policyId`, the license follows the product's default policy.

Without an `expiresAt`, the license expires after the duration of its policy, or never when the policy has none. `expiresAt: null` makes it never expire.

Without a `price`, the price paid for the license is unknown: it's left out of the revenue stats.

The values of `maxVersion` left out are taken from the max version of the policy: its hard-coded version, or the times after the creation of the license its versions lock.

The license belongs to the product's customer with the given `email`, which is created when there's none.

With `sendKey: true`, the key is emailed to the customer once the license is created.

The license copies the settings of its policy when it's created: later changes to the policy don't affect it. Its key, policy and customer can't be changed afterwards.

**Required role permission**: `license:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*LicensesAPIService) CreateLicenseExecute

func (a *LicensesAPIService) CreateLicenseExecute(r ApiCreateLicenseRequest) (*License, *http.Response, error)

Execute executes the request

@return License

func (*LicensesAPIService) DeleteLicense

DeleteLicense Delete a license

Deletes the license along with its deactivated machines. A license used on active machines can't be deleted: deactivate them first. The tokens scoped to the license or its machines stop working, but the license tokens `validateKey` already returned stay valid until they expire. Its events can no longer be listed.

**Required role permission**: `license:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*LicensesAPIService) DeleteLicenseExecute

func (a *LicensesAPIService) DeleteLicenseExecute(r ApiDeleteLicenseRequest) (*http.Response, error)

Execute executes the request

func (*LicensesAPIService) GetLicense

GetLicense Get a license

**Token access**: customer, license, machine tokens with the `license:read` permission (or the matching write one). A token reaches the license it's scoped to, the licenses of its customer, or the license of its machine.

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

func (*LicensesAPIService) GetLicenseExecute

func (a *LicensesAPIService) GetLicenseExecute(r ApiGetLicenseRequest) (*License, *http.Response, error)

Execute executes the request

@return License

func (*LicensesAPIService) GetLicenseStats

GetLicenseStats Get the stats of a license

Daily number of successful activations of the license over the last 90 days, today included, per machine and per version of the application. Days are in UTC.

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

func (*LicensesAPIService) GetLicenseStatsExecute

func (a *LicensesAPIService) GetLicenseStatsExecute(r ApiGetLicenseStatsRequest) (*LicenseStats, *http.Response, error)

Execute executes the request

@return LicenseStats

func (*LicensesAPIService) GetSigningKey

GetSigningKey Get the organization's signing key

Public key verifying the license tokens returned by `validateKey`, to embed in applications. Created the first time it's needed, and never rotated. The organization has a single key, signing the tokens of its live and test products alike: check the tokens' `aud` to tell them apart.

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

func (*LicensesAPIService) GetSigningKeyExecute

func (a *LicensesAPIService) GetSigningKeyExecute(r ApiGetSigningKeyRequest) (*SigningKey, *http.Response, error)

Execute executes the request

@return SigningKey

func (*LicensesAPIService) ListCustomerLicenses

func (a *LicensesAPIService) ListCustomerLicenses(ctx context.Context, customerId string) ApiListCustomerLicensesRequest

ListCustomerLicenses List the licenses of a customer

Sorting by `lastActivatedAt` puts the licenses never activated last in both orders. Sorting by `price` compares the amounts whatever their currency, and puts the licenses without a price last in both orders.

**Token access**: customer tokens with the `license:read` permission (or the matching write one). A customer token reaches its own licenses.

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

func (*LicensesAPIService) ListCustomerLicensesExecute

func (a *LicensesAPIService) ListCustomerLicensesExecute(r ApiListCustomerLicensesRequest) (*LicenseList, *http.Response, error)

Execute executes the request

@return LicenseList

func (*LicensesAPIService) ListLicenses

func (a *LicensesAPIService) ListLicenses(ctx context.Context, productId string) ApiListLicensesRequest

ListLicenses List the licenses of a product

Sorting by `lastActivatedAt` puts the licenses never activated last in both orders. Sorting by `price` compares the amounts whatever their currency, and puts the licenses without a price last in both orders.

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

func (*LicensesAPIService) ListLicensesExecute

func (a *LicensesAPIService) ListLicensesExecute(r ApiListLicensesRequest) (*LicenseList, *http.Response, error)

Execute executes the request

@return LicenseList

func (*LicensesAPIService) SendLicenseKeys

SendLicenseKeys Email license keys to their customers

Emails each customer the keys of its licenses among `ids`, with their expiration date: one email per customer, whatever their number of licenses. The licenses can belong to different products of the organization.

Test products only email the members of the organization, so testing never emails real customers: nothing is sent when a license of a test product belongs to a customer whose email isn't a member's.

**Required role permission**: `license:send` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*LicensesAPIService) SendLicenseKeysExecute

func (a *LicensesAPIService) SendLicenseKeysExecute(r ApiSendLicenseKeysRequest) (*http.Response, error)

Execute executes the request

func (*LicensesAPIService) UpdateLicense

UpdateLicense Update a license

The key, policy and customer of a license can't be changed: sending them does nothing.

The changes apply to the next validations of the key, not to the license tokens `validateKey` already returned, which stay valid until they expire. Lowering `maxMachines` doesn't deactivate machines: the ones already active keep validating, and new ones are refused until enough are deactivated.

**Required role permission**: `license:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*LicensesAPIService) UpdateLicenseExecute

func (a *LicensesAPIService) UpdateLicenseExecute(r ApiUpdateLicenseRequest) (*License, *http.Response, error)

Execute executes the request

@return License

func (*LicensesAPIService) ValidateKey

func (a *LicensesAPIService) ValidateKey(ctx context.Context, productId string) ApiValidateKeyRequest

ValidateKey Validate a license key

Checks the license key of the product on a machine and returns a token the application can verify offline with the organization's public key. Doesn't need authentication.

The license must allow the `version`: up to its `maxVersion.version` when it has one, like `"2.3"` for every 2.3.z version and older. Its `maxVersion.lockMajorAt` and `maxVersion.lockMinorAt` are enforced once they hard-code `maxVersion.version`, within the hour they're reached. When it doesn't, the error's `latestAllowedVersion` is the latest release of the product the license allows, so the application can offer to install it.

The machine with the `fingerprint` is created when the license has none, and activated when it's deactivated, unless the license is already active on its maximum number of machines. A machine that's already active is never refused for the maximum number of machines, even when it was lowered below the number of active machines. Its `version`, and its `name` and `platform` when given, are updated: they can't be cleared.

The checks run in this order, and the first one failing answers: the license has expired, then it doesn't allow the version, then it's on its maximum number of machines. Each failure is recorded as a `license.validation_failed` event, except for keys that don't exist.

Changes to the license, like deactivating the machine or shortening its expiration, don't revoke the tokens already returned: the application only sees them when it validates its key again, at the latest when its token expires.

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

func (*LicensesAPIService) ValidateKeyExecute

Execute executes the request

@return LicenseToken

type ListPolicyEventsTypeParameter

type ListPolicyEventsTypeParameter struct {
	EventType        *EventType
	ArrayOfEventType *[]EventType
}

ListPolicyEventsTypeParameter Only returns the events of this type. Repeat it to return the events of any of these types.

func (ListPolicyEventsTypeParameter) MarshalJSON

func (src ListPolicyEventsTypeParameter) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*ListPolicyEventsTypeParameter) UnmarshalJSON

func (dst *ListPolicyEventsTypeParameter) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type ListStripePrices200Response

type ListStripePrices200Response struct {
	Data                 []StripePrice `json:"data"`
	AdditionalProperties map[string]interface{}
}

ListStripePrices200Response struct for ListStripePrices200Response

func NewListStripePrices200Response

func NewListStripePrices200Response(data []StripePrice) *ListStripePrices200Response

NewListStripePrices200Response instantiates a new ListStripePrices200Response 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 NewListStripePrices200ResponseWithDefaults

func NewListStripePrices200ResponseWithDefaults() *ListStripePrices200Response

NewListStripePrices200ResponseWithDefaults instantiates a new ListStripePrices200Response 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 (*ListStripePrices200Response) GetData

GetData returns the Data field value

func (*ListStripePrices200Response) GetDataOk

func (o *ListStripePrices200Response) GetDataOk() ([]StripePrice, bool)

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

func (ListStripePrices200Response) MarshalJSON

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

func (*ListStripePrices200Response) SetData

func (o *ListStripePrices200Response) SetData(v []StripePrice)

SetData sets field value

func (ListStripePrices200Response) ToMap

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

func (*ListStripePrices200Response) UnmarshalJSON

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

type LockMaxVersion

type LockMaxVersion struct {
	Type                 string                           `json:"type"`
	MajorAfter           LockMaxVersionMajorAfter         `json:"majorAfter"`
	MinorAfter           NullableLockMaxVersionMinorAfter `json:"minorAfter"`
	AdditionalProperties map[string]interface{}
}

LockMaxVersion The licenses can use every version released after their creation, until their major version locks `majorAfter` it, then the updates of their major version until their minor version locks `minorAfter` it, if ever. Bug fixes are never locked.

func NewLockMaxVersion

func NewLockMaxVersion(type_ string, majorAfter LockMaxVersionMajorAfter, minorAfter NullableLockMaxVersionMinorAfter) *LockMaxVersion

NewLockMaxVersion instantiates a new LockMaxVersion 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 NewLockMaxVersionWithDefaults

func NewLockMaxVersionWithDefaults() *LockMaxVersion

NewLockMaxVersionWithDefaults instantiates a new LockMaxVersion 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 (*LockMaxVersion) GetMajorAfter

func (o *LockMaxVersion) GetMajorAfter() LockMaxVersionMajorAfter

GetMajorAfter returns the MajorAfter field value

func (*LockMaxVersion) GetMajorAfterOk

func (o *LockMaxVersion) GetMajorAfterOk() (*LockMaxVersionMajorAfter, bool)

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

func (*LockMaxVersion) GetMinorAfter

func (o *LockMaxVersion) GetMinorAfter() LockMaxVersionMinorAfter

GetMinorAfter returns the MinorAfter field value If the value is explicit nil, the zero value for LockMaxVersionMinorAfter will be returned

func (*LockMaxVersion) GetMinorAfterOk

func (o *LockMaxVersion) GetMinorAfterOk() (*LockMaxVersionMinorAfter, bool)

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

func (*LockMaxVersion) GetType

func (o *LockMaxVersion) GetType() string

GetType returns the Type field value

func (*LockMaxVersion) GetTypeOk

func (o *LockMaxVersion) GetTypeOk() (*string, bool)

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

func (LockMaxVersion) MarshalJSON

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

func (*LockMaxVersion) SetMajorAfter

func (o *LockMaxVersion) SetMajorAfter(v LockMaxVersionMajorAfter)

SetMajorAfter sets field value

func (*LockMaxVersion) SetMinorAfter

func (o *LockMaxVersion) SetMinorAfter(v LockMaxVersionMinorAfter)

SetMinorAfter sets field value

func (*LockMaxVersion) SetType

func (o *LockMaxVersion) SetType(v string)

SetType sets field value

func (LockMaxVersion) ToMap

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

func (*LockMaxVersion) UnmarshalJSON

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

type LockMaxVersionMajorAfter

type LockMaxVersionMajorAfter struct {
	LockMaxVersionMajorAfterOneOf  *LockMaxVersionMajorAfterOneOf
	LockMaxVersionMajorAfterOneOf1 *LockMaxVersionMajorAfterOneOf1
}

LockMaxVersionMajorAfter - Time after the creation of a license its major version is locked, in seconds or calendar months: it then only gets the minor versions and bug fixes of the major version released by then. `0` locks it when the license is created.

func LockMaxVersionMajorAfterOneOf1AsLockMaxVersionMajorAfter

func LockMaxVersionMajorAfterOneOf1AsLockMaxVersionMajorAfter(v *LockMaxVersionMajorAfterOneOf1) LockMaxVersionMajorAfter

LockMaxVersionMajorAfterOneOf1AsLockMaxVersionMajorAfter is a convenience function that returns LockMaxVersionMajorAfterOneOf1 wrapped in LockMaxVersionMajorAfter

func LockMaxVersionMajorAfterOneOfAsLockMaxVersionMajorAfter

func LockMaxVersionMajorAfterOneOfAsLockMaxVersionMajorAfter(v *LockMaxVersionMajorAfterOneOf) LockMaxVersionMajorAfter

LockMaxVersionMajorAfterOneOfAsLockMaxVersionMajorAfter is a convenience function that returns LockMaxVersionMajorAfterOneOf wrapped in LockMaxVersionMajorAfter

func (*LockMaxVersionMajorAfter) GetActualInstance

func (obj *LockMaxVersionMajorAfter) GetActualInstance() interface{}

Get the actual instance

func (LockMaxVersionMajorAfter) GetActualInstanceValue

func (obj LockMaxVersionMajorAfter) GetActualInstanceValue() interface{}

Get the actual instance value

func (LockMaxVersionMajorAfter) MarshalJSON

func (src LockMaxVersionMajorAfter) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*LockMaxVersionMajorAfter) UnmarshalJSON

func (dst *LockMaxVersionMajorAfter) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type LockMaxVersionMajorAfterOneOf

type LockMaxVersionMajorAfterOneOf struct {
	Value                int32  `json:"value"`
	Unit                 string `json:"unit"`
	AdditionalProperties map[string]interface{}
}

LockMaxVersionMajorAfterOneOf struct for LockMaxVersionMajorAfterOneOf

func NewLockMaxVersionMajorAfterOneOf

func NewLockMaxVersionMajorAfterOneOf(value int32, unit string) *LockMaxVersionMajorAfterOneOf

NewLockMaxVersionMajorAfterOneOf instantiates a new LockMaxVersionMajorAfterOneOf 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 NewLockMaxVersionMajorAfterOneOfWithDefaults

func NewLockMaxVersionMajorAfterOneOfWithDefaults() *LockMaxVersionMajorAfterOneOf

NewLockMaxVersionMajorAfterOneOfWithDefaults instantiates a new LockMaxVersionMajorAfterOneOf 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 (*LockMaxVersionMajorAfterOneOf) GetUnit

GetUnit returns the Unit field value

func (*LockMaxVersionMajorAfterOneOf) GetUnitOk

func (o *LockMaxVersionMajorAfterOneOf) GetUnitOk() (*string, bool)

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

func (*LockMaxVersionMajorAfterOneOf) GetValue

func (o *LockMaxVersionMajorAfterOneOf) GetValue() int32

GetValue returns the Value field value

func (*LockMaxVersionMajorAfterOneOf) GetValueOk

func (o *LockMaxVersionMajorAfterOneOf) GetValueOk() (*int32, bool)

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

func (LockMaxVersionMajorAfterOneOf) MarshalJSON

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

func (*LockMaxVersionMajorAfterOneOf) SetUnit

func (o *LockMaxVersionMajorAfterOneOf) SetUnit(v string)

SetUnit sets field value

func (*LockMaxVersionMajorAfterOneOf) SetValue

func (o *LockMaxVersionMajorAfterOneOf) SetValue(v int32)

SetValue sets field value

func (LockMaxVersionMajorAfterOneOf) ToMap

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

func (*LockMaxVersionMajorAfterOneOf) UnmarshalJSON

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

type LockMaxVersionMajorAfterOneOf1

type LockMaxVersionMajorAfterOneOf1 struct {
	Value int32 `json:"value"`
	// Calendar months: a license created on January 31 with a 1 month duration expires on the last day of February.
	Unit                 string `json:"unit"`
	AdditionalProperties map[string]interface{}
}

LockMaxVersionMajorAfterOneOf1 struct for LockMaxVersionMajorAfterOneOf1

func NewLockMaxVersionMajorAfterOneOf1

func NewLockMaxVersionMajorAfterOneOf1(value int32, unit string) *LockMaxVersionMajorAfterOneOf1

NewLockMaxVersionMajorAfterOneOf1 instantiates a new LockMaxVersionMajorAfterOneOf1 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 NewLockMaxVersionMajorAfterOneOf1WithDefaults

func NewLockMaxVersionMajorAfterOneOf1WithDefaults() *LockMaxVersionMajorAfterOneOf1

NewLockMaxVersionMajorAfterOneOf1WithDefaults instantiates a new LockMaxVersionMajorAfterOneOf1 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 (*LockMaxVersionMajorAfterOneOf1) GetUnit

GetUnit returns the Unit field value

func (*LockMaxVersionMajorAfterOneOf1) GetUnitOk

func (o *LockMaxVersionMajorAfterOneOf1) GetUnitOk() (*string, bool)

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

func (*LockMaxVersionMajorAfterOneOf1) GetValue

func (o *LockMaxVersionMajorAfterOneOf1) GetValue() int32

GetValue returns the Value field value

func (*LockMaxVersionMajorAfterOneOf1) GetValueOk

func (o *LockMaxVersionMajorAfterOneOf1) GetValueOk() (*int32, bool)

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

func (LockMaxVersionMajorAfterOneOf1) MarshalJSON

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

func (*LockMaxVersionMajorAfterOneOf1) SetUnit

func (o *LockMaxVersionMajorAfterOneOf1) SetUnit(v string)

SetUnit sets field value

func (*LockMaxVersionMajorAfterOneOf1) SetValue

func (o *LockMaxVersionMajorAfterOneOf1) SetValue(v int32)

SetValue sets field value

func (LockMaxVersionMajorAfterOneOf1) ToMap

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

func (*LockMaxVersionMajorAfterOneOf1) UnmarshalJSON

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

type LockMaxVersionMinorAfter

type LockMaxVersionMinorAfter struct {
	LockMaxVersionMajorAfterOneOf  *LockMaxVersionMajorAfterOneOf
	LockMaxVersionMajorAfterOneOf1 *LockMaxVersionMajorAfterOneOf1
}

LockMaxVersionMinorAfter Time after the creation of a license its minor version is locked, in seconds or calendar months: it then only gets the bug fixes of the minor version released by then. Never shorter than `majorAfter`, whatever the length of the months: 1 month is longer than 28 days but may be shorter than 31. `0` locks it when the license is created. `null` to never lock it.

func (LockMaxVersionMinorAfter) MarshalJSON

func (src LockMaxVersionMinorAfter) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*LockMaxVersionMinorAfter) UnmarshalJSON

func (dst *LockMaxVersionMinorAfter) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type Machine

type Machine struct {
	Id        string `json:"id"`
	LicenseId string `json:"licenseId"`
	// Identifies the machine. Unique within the license.
	Fingerprint string         `json:"fingerprint"`
	Platform    NullableString `json:"platform"`
	Name        NullableString `json:"name"`
	// Whether the machine counts as using the license.
	Status string `json:"status"`
	// Version of the application last validated on the machine.
	Version NullableString `json:"version"`
	// When the license was last validated on the machine.
	LastValidatedAt      NullableTime `json:"lastValidatedAt"`
	CreatedAt            time.Time    `json:"createdAt"`
	UpdatedAt            time.Time    `json:"updatedAt"`
	AdditionalProperties map[string]interface{}
}

Machine struct for Machine

func NewMachine

func NewMachine(id string, licenseId string, fingerprint string, platform NullableString, name NullableString, status string, version NullableString, lastValidatedAt NullableTime, createdAt time.Time, updatedAt time.Time) *Machine

NewMachine instantiates a new Machine 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 NewMachineWithDefaults

func NewMachineWithDefaults() *Machine

NewMachineWithDefaults instantiates a new Machine 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 (*Machine) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*Machine) GetCreatedAtOk

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

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

func (*Machine) GetFingerprint

func (o *Machine) GetFingerprint() string

GetFingerprint returns the Fingerprint field value

func (*Machine) GetFingerprintOk

func (o *Machine) GetFingerprintOk() (*string, bool)

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

func (*Machine) GetId

func (o *Machine) GetId() string

GetId returns the Id field value

func (*Machine) GetIdOk

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

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

func (*Machine) GetLastValidatedAt

func (o *Machine) GetLastValidatedAt() time.Time

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

func (*Machine) GetLastValidatedAtOk

func (o *Machine) GetLastValidatedAtOk() (*time.Time, bool)

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

func (*Machine) GetLicenseId

func (o *Machine) GetLicenseId() string

GetLicenseId returns the LicenseId field value

func (*Machine) GetLicenseIdOk

func (o *Machine) GetLicenseIdOk() (*string, bool)

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

func (*Machine) GetName

func (o *Machine) GetName() string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*Machine) GetNameOk

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

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

func (*Machine) GetPlatform

func (o *Machine) GetPlatform() string

GetPlatform returns the Platform field value If the value is explicit nil, the zero value for string will be returned

func (*Machine) GetPlatformOk

func (o *Machine) GetPlatformOk() (*string, bool)

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

func (*Machine) GetStatus

func (o *Machine) GetStatus() string

GetStatus returns the Status field value

func (*Machine) GetStatusOk

func (o *Machine) GetStatusOk() (*string, bool)

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

func (*Machine) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*Machine) GetUpdatedAtOk

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

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

func (*Machine) GetVersion

func (o *Machine) GetVersion() string

GetVersion returns the Version field value If the value is explicit nil, the zero value for string will be returned

func (*Machine) GetVersionOk

func (o *Machine) GetVersionOk() (*string, bool)

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

func (Machine) MarshalJSON

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

func (*Machine) SetCreatedAt

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

SetCreatedAt sets field value

func (*Machine) SetFingerprint

func (o *Machine) SetFingerprint(v string)

SetFingerprint sets field value

func (*Machine) SetId

func (o *Machine) SetId(v string)

SetId sets field value

func (*Machine) SetLastValidatedAt

func (o *Machine) SetLastValidatedAt(v time.Time)

SetLastValidatedAt sets field value

func (*Machine) SetLicenseId

func (o *Machine) SetLicenseId(v string)

SetLicenseId sets field value

func (*Machine) SetName

func (o *Machine) SetName(v string)

SetName sets field value

func (*Machine) SetPlatform

func (o *Machine) SetPlatform(v string)

SetPlatform sets field value

func (*Machine) SetStatus

func (o *Machine) SetStatus(v string)

SetStatus sets field value

func (*Machine) SetUpdatedAt

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

SetUpdatedAt sets field value

func (*Machine) SetVersion

func (o *Machine) SetVersion(v string)

SetVersion sets field value

func (Machine) ToMap

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

func (*Machine) UnmarshalJSON

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

type MachineList

type MachineList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []Machine  `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

MachineList struct for MachineList

func NewMachineList

func NewMachineList(data []Machine, pagination Pagination) *MachineList

NewMachineList instantiates a new MachineList 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 NewMachineListWithDefaults

func NewMachineListWithDefaults() *MachineList

NewMachineListWithDefaults instantiates a new MachineList 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 (*MachineList) GetData

func (o *MachineList) GetData() []Machine

GetData returns the Data field value

func (*MachineList) GetDataOk

func (o *MachineList) GetDataOk() ([]Machine, bool)

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

func (*MachineList) GetPagination

func (o *MachineList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*MachineList) GetPaginationOk

func (o *MachineList) GetPaginationOk() (*Pagination, bool)

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

func (MachineList) MarshalJSON

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

func (*MachineList) SetData

func (o *MachineList) SetData(v []Machine)

SetData sets field value

func (*MachineList) SetPagination

func (o *MachineList) SetPagination(v Pagination)

SetPagination sets field value

func (MachineList) ToMap

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

func (*MachineList) UnmarshalJSON

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

type MachinesAPIService

type MachinesAPIService service

MachinesAPIService MachinesAPI service

func (*MachinesAPIService) DeactivateMachine

DeactivateMachine Deactivate a machine

The machine no longer counts as using the license, freeing its place when the license has a maximum number of machines. Validating the license key on the machine activates it again, unless the license is on its maximum number of machines by then. Deactivating a deactivated machine does nothing.

The license token `validateKey` returned to the machine isn't revoked: the application can keep running offline until it expires. Machines can't be deleted: they're deleted with their license.

**Token access**: customer, license, machine tokens with the `machine:write` permission (or the matching write one). A token reaches the machine it's scoped to, or the machines of its license or customer.

**Required role permission**: `machine:deactivate` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*MachinesAPIService) DeactivateMachineExecute

func (a *MachinesAPIService) DeactivateMachineExecute(r ApiDeactivateMachineRequest) (*Machine, *http.Response, error)

Execute executes the request

@return Machine

func (*MachinesAPIService) GetMachine

GetMachine Get a machine

**Token access**: customer, license, machine tokens with the `machine:read` permission (or the matching write one). A token reaches the machine it's scoped to, or the machines of its license or customer.

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

func (*MachinesAPIService) GetMachineExecute

func (a *MachinesAPIService) GetMachineExecute(r ApiGetMachineRequest) (*Machine, *http.Response, error)

Execute executes the request

@return Machine

func (*MachinesAPIService) ListMachines

func (a *MachinesAPIService) ListMachines(ctx context.Context, licenseId string) ApiListMachinesRequest

ListMachines List the machines of a license

**Token access**: customer, license tokens with the `machine:read` permission (or the matching write one). A token reaches the license it's scoped to, or the licenses of its customer.

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

func (*MachinesAPIService) ListMachinesExecute

func (a *MachinesAPIService) ListMachinesExecute(r ApiListMachinesRequest) (*MachineList, *http.Response, error)

Execute executes the request

@return MachineList

type MappedNullable

type MappedNullable interface {
	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 NullableConnectStripe

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

func NewNullableConnectStripe

func NewNullableConnectStripe(val *ConnectStripe) *NullableConnectStripe

func (NullableConnectStripe) Get

func (NullableConnectStripe) IsSet

func (v NullableConnectStripe) IsSet() bool

func (NullableConnectStripe) MarshalJSON

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

func (*NullableConnectStripe) Set

func (v *NullableConnectStripe) Set(val *ConnectStripe)

func (*NullableConnectStripe) UnmarshalJSON

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

func (*NullableConnectStripe) Unset

func (v *NullableConnectStripe) Unset()

type NullableCreateCustomer

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

func NewNullableCreateCustomer

func NewNullableCreateCustomer(val *CreateCustomer) *NullableCreateCustomer

func (NullableCreateCustomer) Get

func (NullableCreateCustomer) IsSet

func (v NullableCreateCustomer) IsSet() bool

func (NullableCreateCustomer) MarshalJSON

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

func (*NullableCreateCustomer) Set

func (*NullableCreateCustomer) UnmarshalJSON

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

func (*NullableCreateCustomer) Unset

func (v *NullableCreateCustomer) Unset()

type NullableCreateIntegrationMapping

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

func (NullableCreateIntegrationMapping) Get

func (NullableCreateIntegrationMapping) IsSet

func (NullableCreateIntegrationMapping) MarshalJSON

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

func (*NullableCreateIntegrationMapping) Set

func (*NullableCreateIntegrationMapping) UnmarshalJSON

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

func (*NullableCreateIntegrationMapping) Unset

type NullableCreateLicense

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

func NewNullableCreateLicense

func NewNullableCreateLicense(val *CreateLicense) *NullableCreateLicense

func (NullableCreateLicense) Get

func (NullableCreateLicense) IsSet

func (v NullableCreateLicense) IsSet() bool

func (NullableCreateLicense) MarshalJSON

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

func (*NullableCreateLicense) Set

func (v *NullableCreateLicense) Set(val *CreateLicense)

func (*NullableCreateLicense) UnmarshalJSON

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

func (*NullableCreateLicense) Unset

func (v *NullableCreateLicense) Unset()

type NullableCreatePolicy

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

func NewNullableCreatePolicy

func NewNullableCreatePolicy(val *CreatePolicy) *NullableCreatePolicy

func (NullableCreatePolicy) Get

func (NullableCreatePolicy) IsSet

func (v NullableCreatePolicy) IsSet() bool

func (NullableCreatePolicy) MarshalJSON

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

func (*NullableCreatePolicy) Set

func (v *NullableCreatePolicy) Set(val *CreatePolicy)

func (*NullableCreatePolicy) UnmarshalJSON

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

func (*NullableCreatePolicy) Unset

func (v *NullableCreatePolicy) Unset()
type NullableCreatePortalLink struct {
	// contains filtered or unexported fields
}
func NewNullableCreatePortalLink(val *CreatePortalLink) *NullableCreatePortalLink

func (NullableCreatePortalLink) Get

func (NullableCreatePortalLink) IsSet

func (v NullableCreatePortalLink) IsSet() bool

func (NullableCreatePortalLink) MarshalJSON

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

func (*NullableCreatePortalLink) Set

func (*NullableCreatePortalLink) UnmarshalJSON

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

func (*NullableCreatePortalLink) Unset

func (v *NullableCreatePortalLink) Unset()

type NullableCreateProduct

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

func NewNullableCreateProduct

func NewNullableCreateProduct(val *CreateProduct) *NullableCreateProduct

func (NullableCreateProduct) Get

func (NullableCreateProduct) IsSet

func (v NullableCreateProduct) IsSet() bool

func (NullableCreateProduct) MarshalJSON

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

func (*NullableCreateProduct) Set

func (v *NullableCreateProduct) Set(val *CreateProduct)

func (*NullableCreateProduct) UnmarshalJSON

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

func (*NullableCreateProduct) Unset

func (v *NullableCreateProduct) Unset()

type NullableCreateProductWithPolicy

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

func (NullableCreateProductWithPolicy) Get

func (NullableCreateProductWithPolicy) IsSet

func (NullableCreateProductWithPolicy) MarshalJSON

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

func (*NullableCreateProductWithPolicy) Set

func (*NullableCreateProductWithPolicy) UnmarshalJSON

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

func (*NullableCreateProductWithPolicy) Unset

type NullableCreateRelease

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

func NewNullableCreateRelease

func NewNullableCreateRelease(val *CreateRelease) *NullableCreateRelease

func (NullableCreateRelease) Get

func (NullableCreateRelease) IsSet

func (v NullableCreateRelease) IsSet() bool

func (NullableCreateRelease) MarshalJSON

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

func (*NullableCreateRelease) Set

func (v *NullableCreateRelease) Set(val *CreateRelease)

func (*NullableCreateRelease) UnmarshalJSON

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

func (*NullableCreateRelease) Unset

func (v *NullableCreateRelease) Unset()

type NullableCreateToken

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

func NewNullableCreateToken

func NewNullableCreateToken(val *CreateToken) *NullableCreateToken

func (NullableCreateToken) Get

func (NullableCreateToken) IsSet

func (v NullableCreateToken) IsSet() bool

func (NullableCreateToken) MarshalJSON

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

func (*NullableCreateToken) Set

func (v *NullableCreateToken) Set(val *CreateToken)

func (*NullableCreateToken) UnmarshalJSON

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

func (*NullableCreateToken) Unset

func (v *NullableCreateToken) Unset()

type NullableCustomer

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

func NewNullableCustomer

func NewNullableCustomer(val *Customer) *NullableCustomer

func (NullableCustomer) Get

func (v NullableCustomer) Get() *Customer

func (NullableCustomer) IsSet

func (v NullableCustomer) IsSet() bool

func (NullableCustomer) MarshalJSON

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

func (*NullableCustomer) Set

func (v *NullableCustomer) Set(val *Customer)

func (*NullableCustomer) UnmarshalJSON

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

func (*NullableCustomer) Unset

func (v *NullableCustomer) Unset()

type NullableCustomerList

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

func NewNullableCustomerList

func NewNullableCustomerList(val *CustomerList) *NullableCustomerList

func (NullableCustomerList) Get

func (NullableCustomerList) IsSet

func (v NullableCustomerList) IsSet() bool

func (NullableCustomerList) MarshalJSON

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

func (*NullableCustomerList) Set

func (v *NullableCustomerList) Set(val *CustomerList)

func (*NullableCustomerList) UnmarshalJSON

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

func (*NullableCustomerList) Unset

func (v *NullableCustomerList) 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 NullableErrorError

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

func NewNullableErrorError

func NewNullableErrorError(val *ErrorError) *NullableErrorError

func (NullableErrorError) Get

func (v NullableErrorError) Get() *ErrorError

func (NullableErrorError) IsSet

func (v NullableErrorError) IsSet() bool

func (NullableErrorError) MarshalJSON

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

func (*NullableErrorError) Set

func (v *NullableErrorError) Set(val *ErrorError)

func (*NullableErrorError) UnmarshalJSON

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

func (*NullableErrorError) Unset

func (v *NullableErrorError) Unset()

type NullableErrorErrorIssuesInner

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

func (NullableErrorErrorIssuesInner) Get

func (NullableErrorErrorIssuesInner) IsSet

func (NullableErrorErrorIssuesInner) MarshalJSON

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

func (*NullableErrorErrorIssuesInner) Set

func (*NullableErrorErrorIssuesInner) UnmarshalJSON

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

func (*NullableErrorErrorIssuesInner) Unset

func (v *NullableErrorErrorIssuesInner) Unset()

type NullableErrorErrorIssuesInnerPathInner

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

func (NullableErrorErrorIssuesInnerPathInner) Get

func (NullableErrorErrorIssuesInnerPathInner) IsSet

func (NullableErrorErrorIssuesInnerPathInner) MarshalJSON

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

func (*NullableErrorErrorIssuesInnerPathInner) Set

func (*NullableErrorErrorIssuesInnerPathInner) UnmarshalJSON

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

func (*NullableErrorErrorIssuesInnerPathInner) Unset

type NullableEvent

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

func NewNullableEvent

func NewNullableEvent(val *Event) *NullableEvent

func (NullableEvent) Get

func (v NullableEvent) Get() *Event

func (NullableEvent) IsSet

func (v NullableEvent) IsSet() bool

func (NullableEvent) MarshalJSON

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

func (*NullableEvent) Set

func (v *NullableEvent) Set(val *Event)

func (*NullableEvent) UnmarshalJSON

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

func (*NullableEvent) Unset

func (v *NullableEvent) Unset()

type NullableEventActor

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

func NewNullableEventActor

func NewNullableEventActor(val *EventActor) *NullableEventActor

func (NullableEventActor) Get

func (v NullableEventActor) Get() *EventActor

func (NullableEventActor) IsSet

func (v NullableEventActor) IsSet() bool

func (NullableEventActor) MarshalJSON

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

func (*NullableEventActor) Set

func (v *NullableEventActor) Set(val *EventActor)

func (*NullableEventActor) UnmarshalJSON

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

func (*NullableEventActor) Unset

func (v *NullableEventActor) Unset()

type NullableEventActorOneOf

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

func NewNullableEventActorOneOf

func NewNullableEventActorOneOf(val *EventActorOneOf) *NullableEventActorOneOf

func (NullableEventActorOneOf) Get

func (NullableEventActorOneOf) IsSet

func (v NullableEventActorOneOf) IsSet() bool

func (NullableEventActorOneOf) MarshalJSON

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

func (*NullableEventActorOneOf) Set

func (*NullableEventActorOneOf) UnmarshalJSON

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

func (*NullableEventActorOneOf) Unset

func (v *NullableEventActorOneOf) Unset()

type NullableEventActorOneOf1

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

func NewNullableEventActorOneOf1

func NewNullableEventActorOneOf1(val *EventActorOneOf1) *NullableEventActorOneOf1

func (NullableEventActorOneOf1) Get

func (NullableEventActorOneOf1) IsSet

func (v NullableEventActorOneOf1) IsSet() bool

func (NullableEventActorOneOf1) MarshalJSON

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

func (*NullableEventActorOneOf1) Set

func (*NullableEventActorOneOf1) UnmarshalJSON

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

func (*NullableEventActorOneOf1) Unset

func (v *NullableEventActorOneOf1) Unset()

type NullableEventActorOneOf2

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

func NewNullableEventActorOneOf2

func NewNullableEventActorOneOf2(val *EventActorOneOf2) *NullableEventActorOneOf2

func (NullableEventActorOneOf2) Get

func (NullableEventActorOneOf2) IsSet

func (v NullableEventActorOneOf2) IsSet() bool

func (NullableEventActorOneOf2) MarshalJSON

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

func (*NullableEventActorOneOf2) Set

func (*NullableEventActorOneOf2) UnmarshalJSON

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

func (*NullableEventActorOneOf2) Unset

func (v *NullableEventActorOneOf2) Unset()

type NullableEventActorOneOf3

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

func NewNullableEventActorOneOf3

func NewNullableEventActorOneOf3(val *EventActorOneOf3) *NullableEventActorOneOf3

func (NullableEventActorOneOf3) Get

func (NullableEventActorOneOf3) IsSet

func (v NullableEventActorOneOf3) IsSet() bool

func (NullableEventActorOneOf3) MarshalJSON

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

func (*NullableEventActorOneOf3) Set

func (*NullableEventActorOneOf3) UnmarshalJSON

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

func (*NullableEventActorOneOf3) Unset

func (v *NullableEventActorOneOf3) Unset()

type NullableEventActorOneOf4

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

func NewNullableEventActorOneOf4

func NewNullableEventActorOneOf4(val *EventActorOneOf4) *NullableEventActorOneOf4

func (NullableEventActorOneOf4) Get

func (NullableEventActorOneOf4) IsSet

func (v NullableEventActorOneOf4) IsSet() bool

func (NullableEventActorOneOf4) MarshalJSON

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

func (*NullableEventActorOneOf4) Set

func (*NullableEventActorOneOf4) UnmarshalJSON

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

func (*NullableEventActorOneOf4) Unset

func (v *NullableEventActorOneOf4) Unset()

type NullableEventList

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

func NewNullableEventList

func NewNullableEventList(val *EventList) *NullableEventList

func (NullableEventList) Get

func (v NullableEventList) Get() *EventList

func (NullableEventList) IsSet

func (v NullableEventList) IsSet() bool

func (NullableEventList) MarshalJSON

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

func (*NullableEventList) Set

func (v *NullableEventList) Set(val *EventList)

func (*NullableEventList) UnmarshalJSON

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

func (*NullableEventList) Unset

func (v *NullableEventList) Unset()

type NullableEventMachine

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

func NewNullableEventMachine

func NewNullableEventMachine(val *EventMachine) *NullableEventMachine

func (NullableEventMachine) Get

func (NullableEventMachine) IsSet

func (v NullableEventMachine) IsSet() bool

func (NullableEventMachine) MarshalJSON

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

func (*NullableEventMachine) Set

func (v *NullableEventMachine) Set(val *EventMachine)

func (*NullableEventMachine) UnmarshalJSON

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

func (*NullableEventMachine) Unset

func (v *NullableEventMachine) Unset()

type NullableEventType

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

func NewNullableEventType

func NewNullableEventType(val *EventType) *NullableEventType

func (NullableEventType) Get

func (v NullableEventType) Get() *EventType

func (NullableEventType) IsSet

func (v NullableEventType) IsSet() bool

func (NullableEventType) MarshalJSON

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

func (*NullableEventType) Set

func (v *NullableEventType) Set(val *EventType)

func (*NullableEventType) UnmarshalJSON

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

func (*NullableEventType) Unset

func (v *NullableEventType) Unset()

type NullableFixedMaxVersion

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

func NewNullableFixedMaxVersion

func NewNullableFixedMaxVersion(val *FixedMaxVersion) *NullableFixedMaxVersion

func (NullableFixedMaxVersion) Get

func (NullableFixedMaxVersion) IsSet

func (v NullableFixedMaxVersion) IsSet() bool

func (NullableFixedMaxVersion) MarshalJSON

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

func (*NullableFixedMaxVersion) Set

func (*NullableFixedMaxVersion) UnmarshalJSON

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

func (*NullableFixedMaxVersion) Unset

func (v *NullableFixedMaxVersion) 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 NullableIntegration

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

func NewNullableIntegration

func NewNullableIntegration(val *Integration) *NullableIntegration

func (NullableIntegration) Get

func (NullableIntegration) IsSet

func (v NullableIntegration) IsSet() bool

func (NullableIntegration) MarshalJSON

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

func (*NullableIntegration) Set

func (v *NullableIntegration) Set(val *Integration)

func (*NullableIntegration) UnmarshalJSON

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

func (*NullableIntegration) Unset

func (v *NullableIntegration) Unset()

type NullableIntegrationMapping

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

func NewNullableIntegrationMapping

func NewNullableIntegrationMapping(val *IntegrationMapping) *NullableIntegrationMapping

func (NullableIntegrationMapping) Get

func (NullableIntegrationMapping) IsSet

func (v NullableIntegrationMapping) IsSet() bool

func (NullableIntegrationMapping) MarshalJSON

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

func (*NullableIntegrationMapping) Set

func (*NullableIntegrationMapping) UnmarshalJSON

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

func (*NullableIntegrationMapping) Unset

func (v *NullableIntegrationMapping) Unset()

type NullableIntegrationStatus

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

func NewNullableIntegrationStatus

func NewNullableIntegrationStatus(val *IntegrationStatus) *NullableIntegrationStatus

func (NullableIntegrationStatus) Get

func (NullableIntegrationStatus) IsSet

func (v NullableIntegrationStatus) IsSet() bool

func (NullableIntegrationStatus) MarshalJSON

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

func (*NullableIntegrationStatus) Set

func (*NullableIntegrationStatus) UnmarshalJSON

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

func (*NullableIntegrationStatus) Unset

func (v *NullableIntegrationStatus) Unset()

type NullableLicense

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

func NewNullableLicense

func NewNullableLicense(val *License) *NullableLicense

func (NullableLicense) Get

func (v NullableLicense) Get() *License

func (NullableLicense) IsSet

func (v NullableLicense) IsSet() bool

func (NullableLicense) MarshalJSON

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

func (*NullableLicense) Set

func (v *NullableLicense) Set(val *License)

func (*NullableLicense) UnmarshalJSON

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

func (*NullableLicense) Unset

func (v *NullableLicense) Unset()

type NullableLicenseList

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

func NewNullableLicenseList

func NewNullableLicenseList(val *LicenseList) *NullableLicenseList

func (NullableLicenseList) Get

func (NullableLicenseList) IsSet

func (v NullableLicenseList) IsSet() bool

func (NullableLicenseList) MarshalJSON

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

func (*NullableLicenseList) Set

func (v *NullableLicenseList) Set(val *LicenseList)

func (*NullableLicenseList) UnmarshalJSON

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

func (*NullableLicenseList) Unset

func (v *NullableLicenseList) Unset()

type NullableLicenseMaxVersion

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

func NewNullableLicenseMaxVersion

func NewNullableLicenseMaxVersion(val *LicenseMaxVersion) *NullableLicenseMaxVersion

func (NullableLicenseMaxVersion) Get

func (NullableLicenseMaxVersion) IsSet

func (v NullableLicenseMaxVersion) IsSet() bool

func (NullableLicenseMaxVersion) MarshalJSON

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

func (*NullableLicenseMaxVersion) Set

func (*NullableLicenseMaxVersion) UnmarshalJSON

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

func (*NullableLicenseMaxVersion) Unset

func (v *NullableLicenseMaxVersion) Unset()

type NullableLicenseMaxVersionInput

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

func (NullableLicenseMaxVersionInput) Get

func (NullableLicenseMaxVersionInput) IsSet

func (NullableLicenseMaxVersionInput) MarshalJSON

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

func (*NullableLicenseMaxVersionInput) Set

func (*NullableLicenseMaxVersionInput) UnmarshalJSON

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

func (*NullableLicenseMaxVersionInput) Unset

func (v *NullableLicenseMaxVersionInput) Unset()

type NullableLicenseStats

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

func NewNullableLicenseStats

func NewNullableLicenseStats(val *LicenseStats) *NullableLicenseStats

func (NullableLicenseStats) Get

func (NullableLicenseStats) IsSet

func (v NullableLicenseStats) IsSet() bool

func (NullableLicenseStats) MarshalJSON

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

func (*NullableLicenseStats) Set

func (v *NullableLicenseStats) Set(val *LicenseStats)

func (*NullableLicenseStats) UnmarshalJSON

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

func (*NullableLicenseStats) Unset

func (v *NullableLicenseStats) Unset()

type NullableLicenseStatsActivationsByMachineInner

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

func (NullableLicenseStatsActivationsByMachineInner) Get

func (NullableLicenseStatsActivationsByMachineInner) IsSet

func (NullableLicenseStatsActivationsByMachineInner) MarshalJSON

func (*NullableLicenseStatsActivationsByMachineInner) Set

func (*NullableLicenseStatsActivationsByMachineInner) UnmarshalJSON

func (*NullableLicenseStatsActivationsByMachineInner) Unset

type NullableLicenseStatsActivationsByVersionInner

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

func (NullableLicenseStatsActivationsByVersionInner) Get

func (NullableLicenseStatsActivationsByVersionInner) IsSet

func (NullableLicenseStatsActivationsByVersionInner) MarshalJSON

func (*NullableLicenseStatsActivationsByVersionInner) Set

func (*NullableLicenseStatsActivationsByVersionInner) UnmarshalJSON

func (*NullableLicenseStatsActivationsByVersionInner) Unset

type NullableLicenseStatus

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

func NewNullableLicenseStatus

func NewNullableLicenseStatus(val *LicenseStatus) *NullableLicenseStatus

func (NullableLicenseStatus) Get

func (NullableLicenseStatus) IsSet

func (v NullableLicenseStatus) IsSet() bool

func (NullableLicenseStatus) MarshalJSON

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

func (*NullableLicenseStatus) Set

func (v *NullableLicenseStatus) Set(val *LicenseStatus)

func (*NullableLicenseStatus) UnmarshalJSON

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

func (*NullableLicenseStatus) Unset

func (v *NullableLicenseStatus) Unset()

type NullableLicenseToken

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

func NewNullableLicenseToken

func NewNullableLicenseToken(val *LicenseToken) *NullableLicenseToken

func (NullableLicenseToken) Get

func (NullableLicenseToken) IsSet

func (v NullableLicenseToken) IsSet() bool

func (NullableLicenseToken) MarshalJSON

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

func (*NullableLicenseToken) Set

func (v *NullableLicenseToken) Set(val *LicenseToken)

func (*NullableLicenseToken) UnmarshalJSON

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

func (*NullableLicenseToken) Unset

func (v *NullableLicenseToken) Unset()

type NullableListPolicyEventsTypeParameter

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

func (NullableListPolicyEventsTypeParameter) Get

func (NullableListPolicyEventsTypeParameter) IsSet

func (NullableListPolicyEventsTypeParameter) MarshalJSON

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

func (*NullableListPolicyEventsTypeParameter) Set

func (*NullableListPolicyEventsTypeParameter) UnmarshalJSON

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

func (*NullableListPolicyEventsTypeParameter) Unset

type NullableListStripePrices200Response

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

func (NullableListStripePrices200Response) Get

func (NullableListStripePrices200Response) IsSet

func (NullableListStripePrices200Response) MarshalJSON

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

func (*NullableListStripePrices200Response) Set

func (*NullableListStripePrices200Response) UnmarshalJSON

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

func (*NullableListStripePrices200Response) Unset

type NullableLockMaxVersion

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

func NewNullableLockMaxVersion

func NewNullableLockMaxVersion(val *LockMaxVersion) *NullableLockMaxVersion

func (NullableLockMaxVersion) Get

func (NullableLockMaxVersion) IsSet

func (v NullableLockMaxVersion) IsSet() bool

func (NullableLockMaxVersion) MarshalJSON

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

func (*NullableLockMaxVersion) Set

func (*NullableLockMaxVersion) UnmarshalJSON

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

func (*NullableLockMaxVersion) Unset

func (v *NullableLockMaxVersion) Unset()

type NullableLockMaxVersionMajorAfter

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

func (NullableLockMaxVersionMajorAfter) Get

func (NullableLockMaxVersionMajorAfter) IsSet

func (NullableLockMaxVersionMajorAfter) MarshalJSON

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

func (*NullableLockMaxVersionMajorAfter) Set

func (*NullableLockMaxVersionMajorAfter) UnmarshalJSON

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

func (*NullableLockMaxVersionMajorAfter) Unset

type NullableLockMaxVersionMajorAfterOneOf

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

func (NullableLockMaxVersionMajorAfterOneOf) Get

func (NullableLockMaxVersionMajorAfterOneOf) IsSet

func (NullableLockMaxVersionMajorAfterOneOf) MarshalJSON

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

func (*NullableLockMaxVersionMajorAfterOneOf) Set

func (*NullableLockMaxVersionMajorAfterOneOf) UnmarshalJSON

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

func (*NullableLockMaxVersionMajorAfterOneOf) Unset

type NullableLockMaxVersionMajorAfterOneOf1

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

func (NullableLockMaxVersionMajorAfterOneOf1) Get

func (NullableLockMaxVersionMajorAfterOneOf1) IsSet

func (NullableLockMaxVersionMajorAfterOneOf1) MarshalJSON

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

func (*NullableLockMaxVersionMajorAfterOneOf1) Set

func (*NullableLockMaxVersionMajorAfterOneOf1) UnmarshalJSON

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

func (*NullableLockMaxVersionMajorAfterOneOf1) Unset

type NullableLockMaxVersionMinorAfter

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

func (NullableLockMaxVersionMinorAfter) Get

func (NullableLockMaxVersionMinorAfter) IsSet

func (NullableLockMaxVersionMinorAfter) MarshalJSON

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

func (*NullableLockMaxVersionMinorAfter) Set

func (*NullableLockMaxVersionMinorAfter) UnmarshalJSON

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

func (*NullableLockMaxVersionMinorAfter) Unset

type NullableMachine

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

func NewNullableMachine

func NewNullableMachine(val *Machine) *NullableMachine

func (NullableMachine) Get

func (v NullableMachine) Get() *Machine

func (NullableMachine) IsSet

func (v NullableMachine) IsSet() bool

func (NullableMachine) MarshalJSON

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

func (*NullableMachine) Set

func (v *NullableMachine) Set(val *Machine)

func (*NullableMachine) UnmarshalJSON

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

func (*NullableMachine) Unset

func (v *NullableMachine) Unset()

type NullableMachineList

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

func NewNullableMachineList

func NewNullableMachineList(val *MachineList) *NullableMachineList

func (NullableMachineList) Get

func (NullableMachineList) IsSet

func (v NullableMachineList) IsSet() bool

func (NullableMachineList) MarshalJSON

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

func (*NullableMachineList) Set

func (v *NullableMachineList) Set(val *MachineList)

func (*NullableMachineList) UnmarshalJSON

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

func (*NullableMachineList) Unset

func (v *NullableMachineList) Unset()

type NullablePagination

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

func NewNullablePagination

func NewNullablePagination(val *Pagination) *NullablePagination

func (NullablePagination) Get

func (v NullablePagination) Get() *Pagination

func (NullablePagination) IsSet

func (v NullablePagination) IsSet() bool

func (NullablePagination) MarshalJSON

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

func (*NullablePagination) Set

func (v *NullablePagination) Set(val *Pagination)

func (*NullablePagination) UnmarshalJSON

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

func (*NullablePagination) Unset

func (v *NullablePagination) Unset()

type NullablePolicy

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

func NewNullablePolicy

func NewNullablePolicy(val *Policy) *NullablePolicy

func (NullablePolicy) Get

func (v NullablePolicy) Get() *Policy

func (NullablePolicy) IsSet

func (v NullablePolicy) IsSet() bool

func (NullablePolicy) MarshalJSON

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

func (*NullablePolicy) Set

func (v *NullablePolicy) Set(val *Policy)

func (*NullablePolicy) UnmarshalJSON

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

func (*NullablePolicy) Unset

func (v *NullablePolicy) Unset()

type NullablePolicyDuration

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

func NewNullablePolicyDuration

func NewNullablePolicyDuration(val *PolicyDuration) *NullablePolicyDuration

func (NullablePolicyDuration) Get

func (NullablePolicyDuration) IsSet

func (v NullablePolicyDuration) IsSet() bool

func (NullablePolicyDuration) MarshalJSON

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

func (*NullablePolicyDuration) Set

func (*NullablePolicyDuration) UnmarshalJSON

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

func (*NullablePolicyDuration) Unset

func (v *NullablePolicyDuration) Unset()

type NullablePolicyList

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

func NewNullablePolicyList

func NewNullablePolicyList(val *PolicyList) *NullablePolicyList

func (NullablePolicyList) Get

func (v NullablePolicyList) Get() *PolicyList

func (NullablePolicyList) IsSet

func (v NullablePolicyList) IsSet() bool

func (NullablePolicyList) MarshalJSON

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

func (*NullablePolicyList) Set

func (v *NullablePolicyList) Set(val *PolicyList)

func (*NullablePolicyList) UnmarshalJSON

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

func (*NullablePolicyList) Unset

func (v *NullablePolicyList) Unset()

type NullablePolicyMaxVersion

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

func NewNullablePolicyMaxVersion

func NewNullablePolicyMaxVersion(val *PolicyMaxVersion) *NullablePolicyMaxVersion

func (NullablePolicyMaxVersion) Get

func (NullablePolicyMaxVersion) IsSet

func (v NullablePolicyMaxVersion) IsSet() bool

func (NullablePolicyMaxVersion) MarshalJSON

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

func (*NullablePolicyMaxVersion) Set

func (*NullablePolicyMaxVersion) UnmarshalJSON

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

func (*NullablePolicyMaxVersion) Unset

func (v *NullablePolicyMaxVersion) Unset()

type NullablePolicySettings

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

func NewNullablePolicySettings

func NewNullablePolicySettings(val *PolicySettings) *NullablePolicySettings

func (NullablePolicySettings) Get

func (NullablePolicySettings) IsSet

func (v NullablePolicySettings) IsSet() bool

func (NullablePolicySettings) MarshalJSON

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

func (*NullablePolicySettings) Set

func (*NullablePolicySettings) UnmarshalJSON

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

func (*NullablePolicySettings) Unset

func (v *NullablePolicySettings) Unset()

type NullablePolicySettingsDuration

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

func (NullablePolicySettingsDuration) Get

func (NullablePolicySettingsDuration) IsSet

func (NullablePolicySettingsDuration) MarshalJSON

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

func (*NullablePolicySettingsDuration) Set

func (*NullablePolicySettingsDuration) UnmarshalJSON

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

func (*NullablePolicySettingsDuration) Unset

func (v *NullablePolicySettingsDuration) Unset()

type NullablePolicySettingsDurationAnyOf

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

func (NullablePolicySettingsDurationAnyOf) Get

func (NullablePolicySettingsDurationAnyOf) IsSet

func (NullablePolicySettingsDurationAnyOf) MarshalJSON

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

func (*NullablePolicySettingsDurationAnyOf) Set

func (*NullablePolicySettingsDurationAnyOf) UnmarshalJSON

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

func (*NullablePolicySettingsDurationAnyOf) Unset

type NullablePolicySettingsDurationAnyOf1

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

func (NullablePolicySettingsDurationAnyOf1) Get

func (NullablePolicySettingsDurationAnyOf1) IsSet

func (NullablePolicySettingsDurationAnyOf1) MarshalJSON

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

func (*NullablePolicySettingsDurationAnyOf1) Set

func (*NullablePolicySettingsDurationAnyOf1) UnmarshalJSON

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

func (*NullablePolicySettingsDurationAnyOf1) Unset

type NullablePolicySettingsMaxVersion

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

func (NullablePolicySettingsMaxVersion) Get

func (NullablePolicySettingsMaxVersion) IsSet

func (NullablePolicySettingsMaxVersion) MarshalJSON

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

func (*NullablePolicySettingsMaxVersion) Set

func (*NullablePolicySettingsMaxVersion) UnmarshalJSON

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

func (*NullablePolicySettingsMaxVersion) Unset

type NullablePortal

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

func NewNullablePortal

func NewNullablePortal(val *Portal) *NullablePortal

func (NullablePortal) Get

func (v NullablePortal) Get() *Portal

func (NullablePortal) IsSet

func (v NullablePortal) IsSet() bool

func (NullablePortal) MarshalJSON

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

func (*NullablePortal) Set

func (v *NullablePortal) Set(val *Portal)

func (*NullablePortal) UnmarshalJSON

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

func (*NullablePortal) Unset

func (v *NullablePortal) Unset()
type NullablePortalLink struct {
	// contains filtered or unexported fields
}
func NewNullablePortalLink(val *PortalLink) *NullablePortalLink

func (NullablePortalLink) Get

func (v NullablePortalLink) Get() *PortalLink

func (NullablePortalLink) IsSet

func (v NullablePortalLink) IsSet() bool

func (NullablePortalLink) MarshalJSON

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

func (*NullablePortalLink) Set

func (v *NullablePortalLink) Set(val *PortalLink)

func (*NullablePortalLink) UnmarshalJSON

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

func (*NullablePortalLink) Unset

func (v *NullablePortalLink) Unset()

type NullablePortalNotFound

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

func NewNullablePortalNotFound

func NewNullablePortalNotFound(val *PortalNotFound) *NullablePortalNotFound

func (NullablePortalNotFound) Get

func (NullablePortalNotFound) IsSet

func (v NullablePortalNotFound) IsSet() bool

func (NullablePortalNotFound) MarshalJSON

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

func (*NullablePortalNotFound) Set

func (*NullablePortalNotFound) UnmarshalJSON

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

func (*NullablePortalNotFound) Unset

func (v *NullablePortalNotFound) Unset()

type NullablePortalSettings

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

func NewNullablePortalSettings

func NewNullablePortalSettings(val *PortalSettings) *NullablePortalSettings

func (NullablePortalSettings) Get

func (NullablePortalSettings) IsSet

func (v NullablePortalSettings) IsSet() bool

func (NullablePortalSettings) MarshalJSON

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

func (*NullablePortalSettings) Set

func (*NullablePortalSettings) UnmarshalJSON

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

func (*NullablePortalSettings) Unset

func (v *NullablePortalSettings) Unset()

type NullablePrice

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

func NewNullablePrice

func NewNullablePrice(val *Price) *NullablePrice

func (NullablePrice) Get

func (v NullablePrice) Get() *Price

func (NullablePrice) IsSet

func (v NullablePrice) IsSet() bool

func (NullablePrice) MarshalJSON

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

func (*NullablePrice) Set

func (v *NullablePrice) Set(val *Price)

func (*NullablePrice) UnmarshalJSON

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

func (*NullablePrice) Unset

func (v *NullablePrice) Unset()

type NullablePriceInput

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

func NewNullablePriceInput

func NewNullablePriceInput(val *PriceInput) *NullablePriceInput

func (NullablePriceInput) Get

func (v NullablePriceInput) Get() *PriceInput

func (NullablePriceInput) IsSet

func (v NullablePriceInput) IsSet() bool

func (NullablePriceInput) MarshalJSON

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

func (*NullablePriceInput) Set

func (v *NullablePriceInput) Set(val *PriceInput)

func (*NullablePriceInput) UnmarshalJSON

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

func (*NullablePriceInput) Unset

func (v *NullablePriceInput) Unset()

type NullableProduct

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

func NewNullableProduct

func NewNullableProduct(val *Product) *NullableProduct

func (NullableProduct) Get

func (v NullableProduct) Get() *Product

func (NullableProduct) IsSet

func (v NullableProduct) IsSet() bool

func (NullableProduct) MarshalJSON

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

func (*NullableProduct) Set

func (v *NullableProduct) Set(val *Product)

func (*NullableProduct) UnmarshalJSON

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

func (*NullableProduct) Unset

func (v *NullableProduct) Unset()

type NullableProductList

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

func NewNullableProductList

func NewNullableProductList(val *ProductList) *NullableProductList

func (NullableProductList) Get

func (NullableProductList) IsSet

func (v NullableProductList) IsSet() bool

func (NullableProductList) MarshalJSON

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

func (*NullableProductList) Set

func (v *NullableProductList) Set(val *ProductList)

func (*NullableProductList) UnmarshalJSON

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

func (*NullableProductList) Unset

func (v *NullableProductList) Unset()

type NullableProductStats

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

func NewNullableProductStats

func NewNullableProductStats(val *ProductStats) *NullableProductStats

func (NullableProductStats) Get

func (NullableProductStats) IsSet

func (v NullableProductStats) IsSet() bool

func (NullableProductStats) MarshalJSON

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

func (*NullableProductStats) Set

func (v *NullableProductStats) Set(val *ProductStats)

func (*NullableProductStats) UnmarshalJSON

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

func (*NullableProductStats) Unset

func (v *NullableProductStats) Unset()

type NullableProductStatsActivationsByVersionInner

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

func (NullableProductStatsActivationsByVersionInner) Get

func (NullableProductStatsActivationsByVersionInner) IsSet

func (NullableProductStatsActivationsByVersionInner) MarshalJSON

func (*NullableProductStatsActivationsByVersionInner) Set

func (*NullableProductStatsActivationsByVersionInner) UnmarshalJSON

func (*NullableProductStatsActivationsByVersionInner) Unset

type NullableProductStatsActiveMachinesByPlatformInner

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

func (NullableProductStatsActiveMachinesByPlatformInner) Get

func (NullableProductStatsActiveMachinesByPlatformInner) IsSet

func (NullableProductStatsActiveMachinesByPlatformInner) MarshalJSON

func (*NullableProductStatsActiveMachinesByPlatformInner) Set

func (*NullableProductStatsActiveMachinesByPlatformInner) UnmarshalJSON

func (*NullableProductStatsActiveMachinesByPlatformInner) Unset

type NullableProductStatsActiveMachinesByVersionInner

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

func (NullableProductStatsActiveMachinesByVersionInner) Get

func (NullableProductStatsActiveMachinesByVersionInner) IsSet

func (NullableProductStatsActiveMachinesByVersionInner) MarshalJSON

func (*NullableProductStatsActiveMachinesByVersionInner) Set

func (*NullableProductStatsActiveMachinesByVersionInner) UnmarshalJSON

func (*NullableProductStatsActiveMachinesByVersionInner) Unset

type NullableProductStatsNewLicensesByPolicyInner

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

func (NullableProductStatsNewLicensesByPolicyInner) Get

func (NullableProductStatsNewLicensesByPolicyInner) IsSet

func (NullableProductStatsNewLicensesByPolicyInner) MarshalJSON

func (*NullableProductStatsNewLicensesByPolicyInner) Set

func (*NullableProductStatsNewLicensesByPolicyInner) UnmarshalJSON

func (*NullableProductStatsNewLicensesByPolicyInner) Unset

type NullableRelease

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

func NewNullableRelease

func NewNullableRelease(val *Release) *NullableRelease

func (NullableRelease) Get

func (v NullableRelease) Get() *Release

func (NullableRelease) IsSet

func (v NullableRelease) IsSet() bool

func (NullableRelease) MarshalJSON

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

func (*NullableRelease) Set

func (v *NullableRelease) Set(val *Release)

func (*NullableRelease) UnmarshalJSON

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

func (*NullableRelease) Unset

func (v *NullableRelease) Unset()

type NullableReleaseList

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

func NewNullableReleaseList

func NewNullableReleaseList(val *ReleaseList) *NullableReleaseList

func (NullableReleaseList) Get

func (NullableReleaseList) IsSet

func (v NullableReleaseList) IsSet() bool

func (NullableReleaseList) MarshalJSON

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

func (*NullableReleaseList) Set

func (v *NullableReleaseList) Set(val *ReleaseList)

func (*NullableReleaseList) UnmarshalJSON

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

func (*NullableReleaseList) Unset

func (v *NullableReleaseList) Unset()
type NullableRequestPortalLink struct {
	// contains filtered or unexported fields
}
func NewNullableRequestPortalLink(val *RequestPortalLink) *NullableRequestPortalLink

func (NullableRequestPortalLink) Get

func (NullableRequestPortalLink) IsSet

func (v NullableRequestPortalLink) IsSet() bool

func (NullableRequestPortalLink) MarshalJSON

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

func (*NullableRequestPortalLink) Set

func (*NullableRequestPortalLink) UnmarshalJSON

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

func (*NullableRequestPortalLink) Unset

func (v *NullableRequestPortalLink) Unset()

type NullableRevenue

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

func NewNullableRevenue

func NewNullableRevenue(val *Revenue) *NullableRevenue

func (NullableRevenue) Get

func (v NullableRevenue) Get() *Revenue

func (NullableRevenue) IsSet

func (v NullableRevenue) IsSet() bool

func (NullableRevenue) MarshalJSON

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

func (*NullableRevenue) Set

func (v *NullableRevenue) Set(val *Revenue)

func (*NullableRevenue) UnmarshalJSON

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

func (*NullableRevenue) Unset

func (v *NullableRevenue) Unset()

type NullableSendLicenseKeys

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

func NewNullableSendLicenseKeys

func NewNullableSendLicenseKeys(val *SendLicenseKeys) *NullableSendLicenseKeys

func (NullableSendLicenseKeys) Get

func (NullableSendLicenseKeys) IsSet

func (v NullableSendLicenseKeys) IsSet() bool

func (NullableSendLicenseKeys) MarshalJSON

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

func (*NullableSendLicenseKeys) Set

func (*NullableSendLicenseKeys) UnmarshalJSON

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

func (*NullableSendLicenseKeys) Unset

func (v *NullableSendLicenseKeys) Unset()
type NullableSendPortalLink struct {
	// contains filtered or unexported fields
}
func NewNullableSendPortalLink(val *SendPortalLink) *NullableSendPortalLink

func (NullableSendPortalLink) Get

func (NullableSendPortalLink) IsSet

func (v NullableSendPortalLink) IsSet() bool

func (NullableSendPortalLink) MarshalJSON

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

func (*NullableSendPortalLink) Set

func (*NullableSendPortalLink) UnmarshalJSON

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

func (*NullableSendPortalLink) Unset

func (v *NullableSendPortalLink) Unset()

type NullableSigningKey

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

func NewNullableSigningKey

func NewNullableSigningKey(val *SigningKey) *NullableSigningKey

func (NullableSigningKey) Get

func (v NullableSigningKey) Get() *SigningKey

func (NullableSigningKey) IsSet

func (v NullableSigningKey) IsSet() bool

func (NullableSigningKey) MarshalJSON

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

func (*NullableSigningKey) Set

func (v *NullableSigningKey) Set(val *SigningKey)

func (*NullableSigningKey) UnmarshalJSON

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

func (*NullableSigningKey) Unset

func (v *NullableSigningKey) 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 NullableStripeIntegration

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

func NewNullableStripeIntegration

func NewNullableStripeIntegration(val *StripeIntegration) *NullableStripeIntegration

func (NullableStripeIntegration) Get

func (NullableStripeIntegration) IsSet

func (v NullableStripeIntegration) IsSet() bool

func (NullableStripeIntegration) MarshalJSON

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

func (*NullableStripeIntegration) Set

func (*NullableStripeIntegration) UnmarshalJSON

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

func (*NullableStripeIntegration) Unset

func (v *NullableStripeIntegration) Unset()

type NullableStripePermission

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

func NewNullableStripePermission

func NewNullableStripePermission(val *StripePermission) *NullableStripePermission

func (NullableStripePermission) Get

func (NullableStripePermission) IsSet

func (v NullableStripePermission) IsSet() bool

func (NullableStripePermission) MarshalJSON

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

func (*NullableStripePermission) Set

func (*NullableStripePermission) UnmarshalJSON

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

func (*NullableStripePermission) Unset

func (v *NullableStripePermission) Unset()

type NullableStripePrice

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

func NewNullableStripePrice

func NewNullableStripePrice(val *StripePrice) *NullableStripePrice

func (NullableStripePrice) Get

func (NullableStripePrice) IsSet

func (v NullableStripePrice) IsSet() bool

func (NullableStripePrice) MarshalJSON

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

func (*NullableStripePrice) Set

func (v *NullableStripePrice) Set(val *StripePrice)

func (*NullableStripePrice) UnmarshalJSON

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

func (*NullableStripePrice) Unset

func (v *NullableStripePrice) 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 NullableToken

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

func NewNullableToken

func NewNullableToken(val *Token) *NullableToken

func (NullableToken) Get

func (v NullableToken) Get() *Token

func (NullableToken) IsSet

func (v NullableToken) IsSet() bool

func (NullableToken) MarshalJSON

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

func (*NullableToken) Set

func (v *NullableToken) Set(val *Token)

func (*NullableToken) UnmarshalJSON

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

func (*NullableToken) Unset

func (v *NullableToken) Unset()

type NullableUpdateCustomer

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

func NewNullableUpdateCustomer

func NewNullableUpdateCustomer(val *UpdateCustomer) *NullableUpdateCustomer

func (NullableUpdateCustomer) Get

func (NullableUpdateCustomer) IsSet

func (v NullableUpdateCustomer) IsSet() bool

func (NullableUpdateCustomer) MarshalJSON

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

func (*NullableUpdateCustomer) Set

func (*NullableUpdateCustomer) UnmarshalJSON

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

func (*NullableUpdateCustomer) Unset

func (v *NullableUpdateCustomer) Unset()

type NullableUpdateIntegrationMapping

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

func (NullableUpdateIntegrationMapping) Get

func (NullableUpdateIntegrationMapping) IsSet

func (NullableUpdateIntegrationMapping) MarshalJSON

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

func (*NullableUpdateIntegrationMapping) Set

func (*NullableUpdateIntegrationMapping) UnmarshalJSON

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

func (*NullableUpdateIntegrationMapping) Unset

type NullableUpdateLicense

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

func NewNullableUpdateLicense

func NewNullableUpdateLicense(val *UpdateLicense) *NullableUpdateLicense

func (NullableUpdateLicense) Get

func (NullableUpdateLicense) IsSet

func (v NullableUpdateLicense) IsSet() bool

func (NullableUpdateLicense) MarshalJSON

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

func (*NullableUpdateLicense) Set

func (v *NullableUpdateLicense) Set(val *UpdateLicense)

func (*NullableUpdateLicense) UnmarshalJSON

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

func (*NullableUpdateLicense) Unset

func (v *NullableUpdateLicense) Unset()

type NullableUpdatePolicy

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

func NewNullableUpdatePolicy

func NewNullableUpdatePolicy(val *UpdatePolicy) *NullableUpdatePolicy

func (NullableUpdatePolicy) Get

func (NullableUpdatePolicy) IsSet

func (v NullableUpdatePolicy) IsSet() bool

func (NullableUpdatePolicy) MarshalJSON

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

func (*NullableUpdatePolicy) Set

func (v *NullableUpdatePolicy) Set(val *UpdatePolicy)

func (*NullableUpdatePolicy) UnmarshalJSON

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

func (*NullableUpdatePolicy) Unset

func (v *NullableUpdatePolicy) Unset()

type NullableUpdateProduct

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

func NewNullableUpdateProduct

func NewNullableUpdateProduct(val *UpdateProduct) *NullableUpdateProduct

func (NullableUpdateProduct) Get

func (NullableUpdateProduct) IsSet

func (v NullableUpdateProduct) IsSet() bool

func (NullableUpdateProduct) MarshalJSON

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

func (*NullableUpdateProduct) Set

func (v *NullableUpdateProduct) Set(val *UpdateProduct)

func (*NullableUpdateProduct) UnmarshalJSON

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

func (*NullableUpdateProduct) Unset

func (v *NullableUpdateProduct) Unset()

type NullableUpdateProductPortal

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

func NewNullableUpdateProductPortal

func NewNullableUpdateProductPortal(val *UpdateProductPortal) *NullableUpdateProductPortal

func (NullableUpdateProductPortal) Get

func (NullableUpdateProductPortal) IsSet

func (NullableUpdateProductPortal) MarshalJSON

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

func (*NullableUpdateProductPortal) Set

func (*NullableUpdateProductPortal) UnmarshalJSON

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

func (*NullableUpdateProductPortal) Unset

func (v *NullableUpdateProductPortal) Unset()

type NullableUpdateRelease

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

func NewNullableUpdateRelease

func NewNullableUpdateRelease(val *UpdateRelease) *NullableUpdateRelease

func (NullableUpdateRelease) Get

func (NullableUpdateRelease) IsSet

func (v NullableUpdateRelease) IsSet() bool

func (NullableUpdateRelease) MarshalJSON

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

func (*NullableUpdateRelease) Set

func (v *NullableUpdateRelease) Set(val *UpdateRelease)

func (*NullableUpdateRelease) UnmarshalJSON

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

func (*NullableUpdateRelease) Unset

func (v *NullableUpdateRelease) Unset()

type NullableValidateKey

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

func NewNullableValidateKey

func NewNullableValidateKey(val *ValidateKey) *NullableValidateKey

func (NullableValidateKey) Get

func (NullableValidateKey) IsSet

func (v NullableValidateKey) IsSet() bool

func (NullableValidateKey) MarshalJSON

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

func (*NullableValidateKey) Set

func (v *NullableValidateKey) Set(val *ValidateKey)

func (*NullableValidateKey) UnmarshalJSON

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

func (*NullableValidateKey) Unset

func (v *NullableValidateKey) Unset()

type NullableValidateKeyError

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

func NewNullableValidateKeyError

func NewNullableValidateKeyError(val *ValidateKeyError) *NullableValidateKeyError

func (NullableValidateKeyError) Get

func (NullableValidateKeyError) IsSet

func (v NullableValidateKeyError) IsSet() bool

func (NullableValidateKeyError) MarshalJSON

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

func (*NullableValidateKeyError) Set

func (*NullableValidateKeyError) UnmarshalJSON

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

func (*NullableValidateKeyError) Unset

func (v *NullableValidateKeyError) Unset()

type NullableValidateKeyErrorError

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

func (NullableValidateKeyErrorError) Get

func (NullableValidateKeyErrorError) IsSet

func (NullableValidateKeyErrorError) MarshalJSON

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

func (*NullableValidateKeyErrorError) Set

func (*NullableValidateKeyErrorError) UnmarshalJSON

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

func (*NullableValidateKeyErrorError) Unset

func (v *NullableValidateKeyErrorError) Unset()

type Pagination

type Pagination struct {
	// Number of the returned page, as requested. Pages are numbered from 1: `1` is the first page.
	Page int32 `json:"page"`
	// Maximum number of items per page, as requested. `data` holds fewer items on the last page, and none past it.
	PageSize int32 `json:"pageSize"`
	// Number of items matching the filters, across all pages. `0` when nothing matches.
	Total int32 `json:"total"`
	// Number of pages, which is also the number of the last page. `0` when nothing matches. There's a next page while `page` is lower than `totalPages`.
	TotalPages           int32 `json:"totalPages"`
	AdditionalProperties map[string]interface{}
}

Pagination Where the returned page stands among all the items matching the filters. Pages are numbered from 1.

func NewPagination

func NewPagination(page int32, pageSize int32, total int32, totalPages int32) *Pagination

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

func NewPaginationWithDefaults

func NewPaginationWithDefaults() *Pagination

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

func (*Pagination) GetPage

func (o *Pagination) GetPage() int32

GetPage returns the Page field value

func (*Pagination) GetPageOk

func (o *Pagination) GetPageOk() (*int32, bool)

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

func (*Pagination) GetPageSize

func (o *Pagination) GetPageSize() int32

GetPageSize returns the PageSize field value

func (*Pagination) GetPageSizeOk

func (o *Pagination) GetPageSizeOk() (*int32, bool)

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

func (*Pagination) GetTotal

func (o *Pagination) GetTotal() int32

GetTotal returns the Total field value

func (*Pagination) GetTotalOk

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

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

func (*Pagination) GetTotalPages

func (o *Pagination) GetTotalPages() int32

GetTotalPages returns the TotalPages field value

func (*Pagination) GetTotalPagesOk

func (o *Pagination) GetTotalPagesOk() (*int32, bool)

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

func (Pagination) MarshalJSON

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

func (*Pagination) SetPage

func (o *Pagination) SetPage(v int32)

SetPage sets field value

func (*Pagination) SetPageSize

func (o *Pagination) SetPageSize(v int32)

SetPageSize sets field value

func (*Pagination) SetTotal

func (o *Pagination) SetTotal(v int32)

SetTotal sets field value

func (*Pagination) SetTotalPages

func (o *Pagination) SetTotalPages(v int32)

SetTotalPages sets field value

func (Pagination) ToMap

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

func (*Pagination) UnmarshalJSON

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

type PoliciesAPIService

type PoliciesAPIService service

PoliciesAPIService PoliciesAPI service

func (*PoliciesAPIService) CreatePolicy

func (a *PoliciesAPIService) CreatePolicy(ctx context.Context, productId string) ApiCreatePolicyRequest

CreatePolicy Create a policy

Without a `slug`, the policy gets one derived from its name, made unique within the product by appending a dash and 3 random lowercase letters or digits when needed. An explicit `slug` is used as is: the request fails with a `409` when it's taken.

With `isDefault: true`, the new policy replaces the product's current default policy.

A product always has a default policy, so when it has no policies the new one becomes the default: the request fails with a `409` when `isDefault` is `false`.

**Required role permission**: `policy:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*PoliciesAPIService) CreatePolicyExecute

func (a *PoliciesAPIService) CreatePolicyExecute(r ApiCreatePolicyRequest) (*Policy, *http.Response, error)

Execute executes the request

@return Policy

func (*PoliciesAPIService) DeletePolicy

DeletePolicy Delete a policy

Deleting the default policy makes the oldest remaining policy of the product the default. The last policy of a product can't be deleted, nor a policy that licenses follow. Its events can no longer be listed.

**Required role permission**: `policy:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*PoliciesAPIService) DeletePolicyExecute

func (a *PoliciesAPIService) DeletePolicyExecute(r ApiDeletePolicyRequest) (*http.Response, error)

Execute executes the request

func (*PoliciesAPIService) GetPolicy

GetPolicy Get a policy

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

func (*PoliciesAPIService) GetPolicyExecute

func (a *PoliciesAPIService) GetPolicyExecute(r ApiGetPolicyRequest) (*Policy, *http.Response, error)

Execute executes the request

@return Policy

func (*PoliciesAPIService) ListPolicies

func (a *PoliciesAPIService) ListPolicies(ctx context.Context, productId string) ApiListPoliciesRequest

ListPolicies List the policies of a product

`?isDefault=true` returns the product's default policy alone: a product always has exactly one. Sorting by `duration` counts months for their average length, about 30.4 days.

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

func (*PoliciesAPIService) ListPoliciesExecute

func (a *PoliciesAPIService) ListPoliciesExecute(r ApiListPoliciesRequest) (*PolicyList, *http.Response, error)

Execute executes the request

@return PolicyList

func (*PoliciesAPIService) UpdatePolicy

UpdatePolicy Update a policy

`isDefault: true` makes the policy the product's default, in place of the current one. A product always has a default policy, so the default can't be unset with `isDefault: false`: make another policy the default instead.

Licenses copy the settings of their policy when they're created, so changing them only affects the licenses created afterwards: update the existing licenses to change theirs.

**Required role permission**: `policy:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*PoliciesAPIService) UpdatePolicyExecute

func (a *PoliciesAPIService) UpdatePolicyExecute(r ApiUpdatePolicyRequest) (*Policy, *http.Response, error)

Execute executes the request

@return Policy

type Policy

type Policy struct {
	Id        string `json:"id"`
	ProductId string `json:"productId"`
	Slug      string `json:"slug"`
	Name      string `json:"name"`
	// Whether this is the product's default policy. Each product has exactly one.
	IsDefault bool                   `json:"isDefault"`
	Duration  NullablePolicyDuration `json:"duration"`
	// Maximum number of active machines of the licenses created with this policy. `null` when there's no limit.
	MaxMachines NullableInt32 `json:"maxMachines"`
	// Longest the applications can run offline with the licenses created with this policy, in seconds.
	MaxOfflineDurationSeconds int32                    `json:"maxOfflineDurationSeconds"`
	MaxVersion                NullablePolicyMaxVersion `json:"maxVersion"`
	// Number of licenses following this policy.
	LicenseCount         int32     `json:"licenseCount"`
	CreatedAt            time.Time `json:"createdAt"`
	UpdatedAt            time.Time `json:"updatedAt"`
	AdditionalProperties map[string]interface{}
}

Policy struct for Policy

func NewPolicy

func NewPolicy(id string, productId string, slug string, name string, isDefault bool, duration NullablePolicyDuration, maxMachines NullableInt32, maxOfflineDurationSeconds int32, maxVersion NullablePolicyMaxVersion, licenseCount int32, createdAt time.Time, updatedAt time.Time) *Policy

NewPolicy instantiates a new Policy 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 NewPolicyWithDefaults

func NewPolicyWithDefaults() *Policy

NewPolicyWithDefaults instantiates a new Policy 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 (*Policy) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*Policy) GetCreatedAtOk

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

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

func (*Policy) GetDuration

func (o *Policy) GetDuration() PolicyDuration

GetDuration returns the Duration field value If the value is explicit nil, the zero value for PolicyDuration will be returned

func (*Policy) GetDurationOk

func (o *Policy) GetDurationOk() (*PolicyDuration, bool)

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

func (*Policy) GetId

func (o *Policy) GetId() string

GetId returns the Id field value

func (*Policy) GetIdOk

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

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

func (*Policy) GetIsDefault

func (o *Policy) GetIsDefault() bool

GetIsDefault returns the IsDefault field value

func (*Policy) GetIsDefaultOk

func (o *Policy) GetIsDefaultOk() (*bool, bool)

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

func (*Policy) GetLicenseCount

func (o *Policy) GetLicenseCount() int32

GetLicenseCount returns the LicenseCount field value

func (*Policy) GetLicenseCountOk

func (o *Policy) GetLicenseCountOk() (*int32, bool)

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

func (*Policy) GetMaxMachines

func (o *Policy) GetMaxMachines() int32

GetMaxMachines returns the MaxMachines field value If the value is explicit nil, the zero value for int32 will be returned

func (*Policy) GetMaxMachinesOk

func (o *Policy) GetMaxMachinesOk() (*int32, bool)

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

func (*Policy) GetMaxOfflineDurationSeconds

func (o *Policy) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value

func (*Policy) GetMaxOfflineDurationSecondsOk

func (o *Policy) GetMaxOfflineDurationSecondsOk() (*int32, bool)

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

func (*Policy) GetMaxVersion

func (o *Policy) GetMaxVersion() PolicyMaxVersion

GetMaxVersion returns the MaxVersion field value If the value is explicit nil, the zero value for PolicyMaxVersion will be returned

func (*Policy) GetMaxVersionOk

func (o *Policy) GetMaxVersionOk() (*PolicyMaxVersion, bool)

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

func (*Policy) GetName

func (o *Policy) GetName() string

GetName returns the Name field value

func (*Policy) GetNameOk

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

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

func (*Policy) GetProductId

func (o *Policy) GetProductId() string

GetProductId returns the ProductId field value

func (*Policy) GetProductIdOk

func (o *Policy) GetProductIdOk() (*string, bool)

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

func (*Policy) GetSlug

func (o *Policy) GetSlug() string

GetSlug returns the Slug field value

func (*Policy) GetSlugOk

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

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

func (*Policy) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*Policy) GetUpdatedAtOk

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

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

func (Policy) MarshalJSON

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

func (*Policy) SetCreatedAt

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

SetCreatedAt sets field value

func (*Policy) SetDuration

func (o *Policy) SetDuration(v PolicyDuration)

SetDuration sets field value

func (*Policy) SetId

func (o *Policy) SetId(v string)

SetId sets field value

func (*Policy) SetIsDefault

func (o *Policy) SetIsDefault(v bool)

SetIsDefault sets field value

func (*Policy) SetLicenseCount

func (o *Policy) SetLicenseCount(v int32)

SetLicenseCount sets field value

func (*Policy) SetMaxMachines

func (o *Policy) SetMaxMachines(v int32)

SetMaxMachines sets field value

func (*Policy) SetMaxOfflineDurationSeconds

func (o *Policy) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds sets field value

func (*Policy) SetMaxVersion

func (o *Policy) SetMaxVersion(v PolicyMaxVersion)

SetMaxVersion sets field value

func (*Policy) SetName

func (o *Policy) SetName(v string)

SetName sets field value

func (*Policy) SetProductId

func (o *Policy) SetProductId(v string)

SetProductId sets field value

func (*Policy) SetSlug

func (o *Policy) SetSlug(v string)

SetSlug sets field value

func (*Policy) SetUpdatedAt

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

SetUpdatedAt sets field value

func (Policy) ToMap

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

func (*Policy) UnmarshalJSON

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

type PolicyDuration

type PolicyDuration struct {
	PolicySettingsDurationAnyOf  *PolicySettingsDurationAnyOf
	PolicySettingsDurationAnyOf1 *PolicySettingsDurationAnyOf1
}

PolicyDuration Duration of the licenses created with this policy. `null` when they never expire.

func (PolicyDuration) MarshalJSON

func (src PolicyDuration) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*PolicyDuration) UnmarshalJSON

func (dst *PolicyDuration) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type PolicyList

type PolicyList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []Policy   `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

PolicyList struct for PolicyList

func NewPolicyList

func NewPolicyList(data []Policy, pagination Pagination) *PolicyList

NewPolicyList instantiates a new PolicyList 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 NewPolicyListWithDefaults

func NewPolicyListWithDefaults() *PolicyList

NewPolicyListWithDefaults instantiates a new PolicyList 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 (*PolicyList) GetData

func (o *PolicyList) GetData() []Policy

GetData returns the Data field value

func (*PolicyList) GetDataOk

func (o *PolicyList) GetDataOk() ([]Policy, bool)

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

func (*PolicyList) GetPagination

func (o *PolicyList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*PolicyList) GetPaginationOk

func (o *PolicyList) GetPaginationOk() (*Pagination, bool)

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

func (PolicyList) MarshalJSON

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

func (*PolicyList) SetData

func (o *PolicyList) SetData(v []Policy)

SetData sets field value

func (*PolicyList) SetPagination

func (o *PolicyList) SetPagination(v Pagination)

SetPagination sets field value

func (PolicyList) ToMap

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

func (*PolicyList) UnmarshalJSON

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

type PolicyMaxVersion

type PolicyMaxVersion struct {
	FixedMaxVersion *FixedMaxVersion
	LockMaxVersion  *LockMaxVersion
}

PolicyMaxVersion Latest version of the product the licenses created with this policy can use. `null` when they can use every version. - `fixed`: up to a hard-coded `version`. `\"2\"` allows every 2.y.z version: its minor versions and bug fixes. `\"2.3\"` allows every 2.3.z version: its bug fixes. - `lock`: every version released during some time after the license is created, then only the updates of the version reached by then. The major version locks `majorAfter` the creation of the license, then the license only gets the minor versions and bug fixes of its major version. The minor version optionally locks `minorAfter` it, never sooner than the major version, then the license only gets the bug fixes of its minor version. `{ \"type\": \"lock\", \"majorAfter\": { \"value\": 1, \"unit\": \"months\" }, \"minorAfter\": { \"value\": 12, \"unit\": \"months\" } }` allows every version released during the month after the license is created, then the minor versions and bug fixes of the major version reached by then until the end of the first year, then only the bug fixes of the minor version reached by then. `majorAfter` at 0 allows minor versions only, and both at 0 allows bug fixes only: no updates. Bug fixes are never locked: a hard-coded version has no patch number, like `\"2.3.1\"`, and a lock only locks major and minor versions.

func (PolicyMaxVersion) MarshalJSON

func (src PolicyMaxVersion) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*PolicyMaxVersion) UnmarshalJSON

func (dst *PolicyMaxVersion) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type PolicySettings

type PolicySettings struct {
	Duration NullablePolicySettingsDuration `json:"duration,omitempty"`
	// Maximum number of active machines of the licenses created with this policy, copied to each of them. `null` for no limit. Defaults to `null`.
	MaxMachines NullableInt32 `json:"maxMachines,omitempty"`
	// Longest the applications can run offline with the licenses created with this policy, in seconds, copied to each of them. At least one hour (`3600`). Defaults to one week.
	MaxOfflineDurationSeconds *int32                           `json:"maxOfflineDurationSeconds,omitempty"`
	MaxVersion                NullablePolicySettingsMaxVersion `json:"maxVersion,omitempty"`
	AdditionalProperties      map[string]interface{}
}

PolicySettings struct for PolicySettings

func NewPolicySettings

func NewPolicySettings() *PolicySettings

NewPolicySettings instantiates a new PolicySettings 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 NewPolicySettingsWithDefaults

func NewPolicySettingsWithDefaults() *PolicySettings

NewPolicySettingsWithDefaults instantiates a new PolicySettings 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 (*PolicySettings) GetDuration

func (o *PolicySettings) GetDuration() PolicySettingsDuration

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

func (*PolicySettings) GetDurationOk

func (o *PolicySettings) GetDurationOk() (*PolicySettingsDuration, bool)

GetDurationOk returns a tuple with the Duration 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 (*PolicySettings) GetMaxMachines

func (o *PolicySettings) GetMaxMachines() int32

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

func (*PolicySettings) GetMaxMachinesOk

func (o *PolicySettings) GetMaxMachinesOk() (*int32, bool)

GetMaxMachinesOk returns a tuple with the MaxMachines 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 (*PolicySettings) GetMaxOfflineDurationSeconds

func (o *PolicySettings) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value if set, zero value otherwise.

func (*PolicySettings) GetMaxOfflineDurationSecondsOk

func (o *PolicySettings) GetMaxOfflineDurationSecondsOk() (*int32, bool)

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

func (*PolicySettings) GetMaxVersion

func (o *PolicySettings) GetMaxVersion() PolicySettingsMaxVersion

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

func (*PolicySettings) GetMaxVersionOk

func (o *PolicySettings) GetMaxVersionOk() (*PolicySettingsMaxVersion, bool)

GetMaxVersionOk returns a tuple with the MaxVersion 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 (*PolicySettings) HasDuration

func (o *PolicySettings) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*PolicySettings) HasMaxMachines

func (o *PolicySettings) HasMaxMachines() bool

HasMaxMachines returns a boolean if a field has been set.

func (*PolicySettings) HasMaxOfflineDurationSeconds

func (o *PolicySettings) HasMaxOfflineDurationSeconds() bool

HasMaxOfflineDurationSeconds returns a boolean if a field has been set.

func (*PolicySettings) HasMaxVersion

func (o *PolicySettings) HasMaxVersion() bool

HasMaxVersion returns a boolean if a field has been set.

func (PolicySettings) MarshalJSON

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

func (*PolicySettings) SetDuration

func (o *PolicySettings) SetDuration(v PolicySettingsDuration)

SetDuration gets a reference to the given NullablePolicySettingsDuration and assigns it to the Duration field.

func (*PolicySettings) SetDurationNil

func (o *PolicySettings) SetDurationNil()

SetDurationNil sets the value for Duration to be an explicit nil

func (*PolicySettings) SetMaxMachines

func (o *PolicySettings) SetMaxMachines(v int32)

SetMaxMachines gets a reference to the given NullableInt32 and assigns it to the MaxMachines field.

func (*PolicySettings) SetMaxMachinesNil

func (o *PolicySettings) SetMaxMachinesNil()

SetMaxMachinesNil sets the value for MaxMachines to be an explicit nil

func (*PolicySettings) SetMaxOfflineDurationSeconds

func (o *PolicySettings) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds gets a reference to the given int32 and assigns it to the MaxOfflineDurationSeconds field.

func (*PolicySettings) SetMaxVersion

func (o *PolicySettings) SetMaxVersion(v PolicySettingsMaxVersion)

SetMaxVersion gets a reference to the given NullablePolicySettingsMaxVersion and assigns it to the MaxVersion field.

func (*PolicySettings) SetMaxVersionNil

func (o *PolicySettings) SetMaxVersionNil()

SetMaxVersionNil sets the value for MaxVersion to be an explicit nil

func (PolicySettings) ToMap

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

func (*PolicySettings) UnmarshalJSON

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

func (*PolicySettings) UnsetDuration

func (o *PolicySettings) UnsetDuration()

UnsetDuration ensures that no value is present for Duration, not even an explicit nil

func (*PolicySettings) UnsetMaxMachines

func (o *PolicySettings) UnsetMaxMachines()

UnsetMaxMachines ensures that no value is present for MaxMachines, not even an explicit nil

func (*PolicySettings) UnsetMaxVersion

func (o *PolicySettings) UnsetMaxVersion()

UnsetMaxVersion ensures that no value is present for MaxVersion, not even an explicit nil

type PolicySettingsDuration

type PolicySettingsDuration struct {
	PolicySettingsDurationAnyOf  *PolicySettingsDurationAnyOf
	PolicySettingsDurationAnyOf1 *PolicySettingsDurationAnyOf1
}

PolicySettingsDuration Duration of the licenses created with this policy. `null` makes them never expire. Defaults to `null`.

func (PolicySettingsDuration) MarshalJSON

func (src PolicySettingsDuration) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*PolicySettingsDuration) UnmarshalJSON

func (dst *PolicySettingsDuration) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type PolicySettingsDurationAnyOf

type PolicySettingsDurationAnyOf struct {
	Value                int32  `json:"value"`
	Unit                 string `json:"unit"`
	AdditionalProperties map[string]interface{}
}

PolicySettingsDurationAnyOf struct for PolicySettingsDurationAnyOf

func NewPolicySettingsDurationAnyOf

func NewPolicySettingsDurationAnyOf(value int32, unit string) *PolicySettingsDurationAnyOf

NewPolicySettingsDurationAnyOf instantiates a new PolicySettingsDurationAnyOf 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 NewPolicySettingsDurationAnyOfWithDefaults

func NewPolicySettingsDurationAnyOfWithDefaults() *PolicySettingsDurationAnyOf

NewPolicySettingsDurationAnyOfWithDefaults instantiates a new PolicySettingsDurationAnyOf 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 (*PolicySettingsDurationAnyOf) GetUnit

func (o *PolicySettingsDurationAnyOf) GetUnit() string

GetUnit returns the Unit field value

func (*PolicySettingsDurationAnyOf) GetUnitOk

func (o *PolicySettingsDurationAnyOf) GetUnitOk() (*string, bool)

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

func (*PolicySettingsDurationAnyOf) GetValue

func (o *PolicySettingsDurationAnyOf) GetValue() int32

GetValue returns the Value field value

func (*PolicySettingsDurationAnyOf) GetValueOk

func (o *PolicySettingsDurationAnyOf) GetValueOk() (*int32, bool)

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

func (PolicySettingsDurationAnyOf) MarshalJSON

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

func (*PolicySettingsDurationAnyOf) SetUnit

func (o *PolicySettingsDurationAnyOf) SetUnit(v string)

SetUnit sets field value

func (*PolicySettingsDurationAnyOf) SetValue

func (o *PolicySettingsDurationAnyOf) SetValue(v int32)

SetValue sets field value

func (PolicySettingsDurationAnyOf) ToMap

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

func (*PolicySettingsDurationAnyOf) UnmarshalJSON

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

type PolicySettingsDurationAnyOf1

type PolicySettingsDurationAnyOf1 struct {
	Value int32 `json:"value"`
	// Calendar months: a license created on January 31 with a 1 month duration expires on the last day of February.
	Unit                 string `json:"unit"`
	AdditionalProperties map[string]interface{}
}

PolicySettingsDurationAnyOf1 struct for PolicySettingsDurationAnyOf1

func NewPolicySettingsDurationAnyOf1

func NewPolicySettingsDurationAnyOf1(value int32, unit string) *PolicySettingsDurationAnyOf1

NewPolicySettingsDurationAnyOf1 instantiates a new PolicySettingsDurationAnyOf1 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 NewPolicySettingsDurationAnyOf1WithDefaults

func NewPolicySettingsDurationAnyOf1WithDefaults() *PolicySettingsDurationAnyOf1

NewPolicySettingsDurationAnyOf1WithDefaults instantiates a new PolicySettingsDurationAnyOf1 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 (*PolicySettingsDurationAnyOf1) GetUnit

func (o *PolicySettingsDurationAnyOf1) GetUnit() string

GetUnit returns the Unit field value

func (*PolicySettingsDurationAnyOf1) GetUnitOk

func (o *PolicySettingsDurationAnyOf1) GetUnitOk() (*string, bool)

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

func (*PolicySettingsDurationAnyOf1) GetValue

func (o *PolicySettingsDurationAnyOf1) GetValue() int32

GetValue returns the Value field value

func (*PolicySettingsDurationAnyOf1) GetValueOk

func (o *PolicySettingsDurationAnyOf1) GetValueOk() (*int32, bool)

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

func (PolicySettingsDurationAnyOf1) MarshalJSON

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

func (*PolicySettingsDurationAnyOf1) SetUnit

func (o *PolicySettingsDurationAnyOf1) SetUnit(v string)

SetUnit sets field value

func (*PolicySettingsDurationAnyOf1) SetValue

func (o *PolicySettingsDurationAnyOf1) SetValue(v int32)

SetValue sets field value

func (PolicySettingsDurationAnyOf1) ToMap

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

func (*PolicySettingsDurationAnyOf1) UnmarshalJSON

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

type PolicySettingsMaxVersion

type PolicySettingsMaxVersion struct {
	FixedMaxVersion *FixedMaxVersion
	LockMaxVersion  *LockMaxVersion
}

PolicySettingsMaxVersion Latest version of the product the licenses created with this policy can use. `null` allows every version. Defaults to `null`. - `fixed`: up to a hard-coded `version`. `\"2\"` allows every 2.y.z version: its minor versions and bug fixes. `\"2.3\"` allows every 2.3.z version: its bug fixes. - `lock`: every version released during some time after the license is created, then only the updates of the version reached by then. The major version locks `majorAfter` the creation of the license, then the license only gets the minor versions and bug fixes of its major version. The minor version optionally locks `minorAfter` it, never sooner than the major version, then the license only gets the bug fixes of its minor version. `{ \"type\": \"lock\", \"majorAfter\": { \"value\": 1, \"unit\": \"months\" }, \"minorAfter\": { \"value\": 12, \"unit\": \"months\" } }` allows every version released during the month after the license is created, then the minor versions and bug fixes of the major version reached by then until the end of the first year, then only the bug fixes of the minor version reached by then. `majorAfter` at 0 allows minor versions only, and both at 0 allows bug fixes only: no updates. Bug fixes are never locked: a hard-coded version has no patch number, like `\"2.3.1\"`, and a lock only locks major and minor versions.

func (PolicySettingsMaxVersion) MarshalJSON

func (src PolicySettingsMaxVersion) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*PolicySettingsMaxVersion) UnmarshalJSON

func (dst *PolicySettingsMaxVersion) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type Portal

type Portal struct {
	ProductId        string `json:"productId"`
	ProductName      string `json:"productName"`
	OrganizationName string `json:"organizationName"`
	// Public URL of the product's logo. `null` without a logo.
	LogoUrl NullableString `json:"logoUrl"`
	// Background of the side panel, as `#rrggbb`. `null` for the default color.
	BrandColor NullableString `json:"brandColor"`
	// Color of the inputs and buttons, as `#rrggbb`. `null` for the default color.
	AccentColor NullableString `json:"accentColor"`
	// Link back to the product's website: the requested `returnUrl` when its domain is allowed, the product's default return link otherwise. `null` for no link.
	ReturnUrl            NullableString `json:"returnUrl"`
	AdditionalProperties map[string]interface{}
}

Portal struct for Portal

func NewPortal

func NewPortal(productId string, productName string, organizationName string, logoUrl NullableString, brandColor NullableString, accentColor NullableString, returnUrl NullableString) *Portal

NewPortal instantiates a new Portal 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 NewPortalWithDefaults

func NewPortalWithDefaults() *Portal

NewPortalWithDefaults instantiates a new Portal 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 (*Portal) GetAccentColor

func (o *Portal) GetAccentColor() string

GetAccentColor returns the AccentColor field value If the value is explicit nil, the zero value for string will be returned

func (*Portal) GetAccentColorOk

func (o *Portal) GetAccentColorOk() (*string, bool)

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

func (*Portal) GetBrandColor

func (o *Portal) GetBrandColor() string

GetBrandColor returns the BrandColor field value If the value is explicit nil, the zero value for string will be returned

func (*Portal) GetBrandColorOk

func (o *Portal) GetBrandColorOk() (*string, bool)

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

func (*Portal) GetLogoUrl

func (o *Portal) GetLogoUrl() string

GetLogoUrl returns the LogoUrl field value If the value is explicit nil, the zero value for string will be returned

func (*Portal) GetLogoUrlOk

func (o *Portal) GetLogoUrlOk() (*string, bool)

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

func (*Portal) GetOrganizationName

func (o *Portal) GetOrganizationName() string

GetOrganizationName returns the OrganizationName field value

func (*Portal) GetOrganizationNameOk

func (o *Portal) GetOrganizationNameOk() (*string, bool)

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

func (*Portal) GetProductId

func (o *Portal) GetProductId() string

GetProductId returns the ProductId field value

func (*Portal) GetProductIdOk

func (o *Portal) GetProductIdOk() (*string, bool)

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

func (*Portal) GetProductName

func (o *Portal) GetProductName() string

GetProductName returns the ProductName field value

func (*Portal) GetProductNameOk

func (o *Portal) GetProductNameOk() (*string, bool)

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

func (*Portal) GetReturnUrl

func (o *Portal) GetReturnUrl() string

GetReturnUrl returns the ReturnUrl field value If the value is explicit nil, the zero value for string will be returned

func (*Portal) GetReturnUrlOk

func (o *Portal) GetReturnUrlOk() (*string, bool)

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

func (Portal) MarshalJSON

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

func (*Portal) SetAccentColor

func (o *Portal) SetAccentColor(v string)

SetAccentColor sets field value

func (*Portal) SetBrandColor

func (o *Portal) SetBrandColor(v string)

SetBrandColor sets field value

func (*Portal) SetLogoUrl

func (o *Portal) SetLogoUrl(v string)

SetLogoUrl sets field value

func (*Portal) SetOrganizationName

func (o *Portal) SetOrganizationName(v string)

SetOrganizationName sets field value

func (*Portal) SetProductId

func (o *Portal) SetProductId(v string)

SetProductId sets field value

func (*Portal) SetProductName

func (o *Portal) SetProductName(v string)

SetProductName sets field value

func (*Portal) SetReturnUrl

func (o *Portal) SetReturnUrl(v string)

SetReturnUrl sets field value

func (Portal) ToMap

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

func (*Portal) UnmarshalJSON

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

type PortalAPIService

type PortalAPIService service

PortalAPIService PortalAPI service

func (a *PortalAPIService) CreatePortalLink(ctx context.Context, id string) ApiCreatePortalLinkRequest

CreatePortalLink Create a link to the customer portal

Link letting the customer see their licenses and deactivate their machines in the customer portal, without signing in. Anyone with the link can, until it expires or the customer is deleted: it can't be revoked otherwise. The token also works with the API endpoints that accept customer tokens.

Links can be created while the product's customer portal is disabled, but the portal answers `404` until it's enabled, and `sendPortalLink` refuses to email them.

**Required role permission**: `portalLink:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*PortalAPIService) CreatePortalLinkExecute

func (a *PortalAPIService) CreatePortalLinkExecute(r ApiCreatePortalLinkRequest) (*PortalLink, *http.Response, error)

Execute executes the request

@return PortalLink

func (*PortalAPIService) GetPortal

func (a *PortalAPIService) GetPortal(ctx context.Context, productId string) ApiGetPortalRequest

GetPortal Get the customer portal of a product

Names of the product and of its organization, colors of the customer portal, and link back to the product's website. Answers `404` when the product's customer portal is disabled: with the `portal_disabled` code and the slugs of the product and its organization when signed in as a member of the organization, so they can enable it. Doesn't need authentication.

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

func (*PortalAPIService) GetPortalExecute

func (a *PortalAPIService) GetPortalExecute(r ApiGetPortalRequest) (*Portal, *http.Response, error)

Execute executes the request

@return Portal
func (a *PortalAPIService) RequestPortalLink(ctx context.Context, productId string) ApiRequestPortalLinkRequest

RequestPortalLink Email a link to the customer portal

Emails the customer of the product with this email a link to the customer portal, working for 1 hour. Answers `404` when the product's customer portal is disabled. Answers the same whether the customer exists or not, so the API doesn't tell which emails are customers. Test products only email the members of the organization: the link isn't sent to other customers, with the same answer. Doesn't need authentication.

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

func (*PortalAPIService) RequestPortalLinkExecute

func (a *PortalAPIService) RequestPortalLinkExecute(r ApiRequestPortalLinkRequest) (*http.Response, error)

Execute executes the request

func (a *PortalAPIService) SendPortalLink(ctx context.Context, id string) ApiSendPortalLinkRequest

SendPortalLink Email a link to the customer portal to the customer

Emails a link created with `createPortalLink` to the customer's email. Fails while the product's customer portal is disabled, and, in test products, when the customer's email isn't a member's of the organization: test products only email members, so testing never emails real customers.

**Required role permission**: `portalLink:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

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

func (*PortalAPIService) SendPortalLinkExecute

func (a *PortalAPIService) SendPortalLinkExecute(r ApiSendPortalLinkRequest) (*http.Response, error)

Execute executes the request

type PortalLink struct {
	// Link to the customer portal, holding the token.
	Url string `json:"url"`
	// Customer token in the link, with the `customer:read`, `license:read` and `machine:write` permissions.
	Token string `json:"token"`
	// When the link stops working.
	ExpiresAt            time.Time `json:"expiresAt"`
	AdditionalProperties map[string]interface{}
}

PortalLink struct for PortalLink

func NewPortalLink(url string, token string, expiresAt time.Time) *PortalLink

NewPortalLink instantiates a new PortalLink 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 NewPortalLinkWithDefaults

func NewPortalLinkWithDefaults() *PortalLink

NewPortalLinkWithDefaults instantiates a new PortalLink 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 (*PortalLink) GetExpiresAt

func (o *PortalLink) GetExpiresAt() time.Time

GetExpiresAt returns the ExpiresAt field value

func (*PortalLink) GetExpiresAtOk

func (o *PortalLink) GetExpiresAtOk() (*time.Time, bool)

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

func (*PortalLink) GetToken

func (o *PortalLink) GetToken() string

GetToken returns the Token field value

func (*PortalLink) GetTokenOk

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

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

func (*PortalLink) GetUrl

func (o *PortalLink) GetUrl() string

GetUrl returns the Url field value

func (*PortalLink) GetUrlOk

func (o *PortalLink) GetUrlOk() (*string, bool)

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

func (PortalLink) MarshalJSON

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

func (*PortalLink) SetExpiresAt

func (o *PortalLink) SetExpiresAt(v time.Time)

SetExpiresAt sets field value

func (*PortalLink) SetToken

func (o *PortalLink) SetToken(v string)

SetToken sets field value

func (*PortalLink) SetUrl

func (o *PortalLink) SetUrl(v string)

SetUrl sets field value

func (PortalLink) ToMap

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

func (*PortalLink) UnmarshalJSON

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

type PortalNotFound

type PortalNotFound struct {
	Error ErrorError `json:"error"`
	// Slug of the product's organization. Present on `portal_disabled` errors.
	OrganizationSlug *string `json:"organizationSlug,omitempty"`
	// Slug of the product. Present on `portal_disabled` errors.
	ProductSlug          *string `json:"productSlug,omitempty"`
	AdditionalProperties map[string]interface{}
}

PortalNotFound struct for PortalNotFound

func NewPortalNotFound

func NewPortalNotFound(error_ ErrorError) *PortalNotFound

NewPortalNotFound instantiates a new PortalNotFound 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 NewPortalNotFoundWithDefaults

func NewPortalNotFoundWithDefaults() *PortalNotFound

NewPortalNotFoundWithDefaults instantiates a new PortalNotFound 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 (*PortalNotFound) GetError

func (o *PortalNotFound) GetError() ErrorError

GetError returns the Error field value

func (*PortalNotFound) GetErrorOk

func (o *PortalNotFound) GetErrorOk() (*ErrorError, bool)

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

func (*PortalNotFound) GetOrganizationSlug

func (o *PortalNotFound) GetOrganizationSlug() string

GetOrganizationSlug returns the OrganizationSlug field value if set, zero value otherwise.

func (*PortalNotFound) GetOrganizationSlugOk

func (o *PortalNotFound) GetOrganizationSlugOk() (*string, bool)

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

func (*PortalNotFound) GetProductSlug

func (o *PortalNotFound) GetProductSlug() string

GetProductSlug returns the ProductSlug field value if set, zero value otherwise.

func (*PortalNotFound) GetProductSlugOk

func (o *PortalNotFound) GetProductSlugOk() (*string, bool)

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

func (*PortalNotFound) HasOrganizationSlug

func (o *PortalNotFound) HasOrganizationSlug() bool

HasOrganizationSlug returns a boolean if a field has been set.

func (*PortalNotFound) HasProductSlug

func (o *PortalNotFound) HasProductSlug() bool

HasProductSlug returns a boolean if a field has been set.

func (PortalNotFound) MarshalJSON

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

func (*PortalNotFound) SetError

func (o *PortalNotFound) SetError(v ErrorError)

SetError sets field value

func (*PortalNotFound) SetOrganizationSlug

func (o *PortalNotFound) SetOrganizationSlug(v string)

SetOrganizationSlug gets a reference to the given string and assigns it to the OrganizationSlug field.

func (*PortalNotFound) SetProductSlug

func (o *PortalNotFound) SetProductSlug(v string)

SetProductSlug gets a reference to the given string and assigns it to the ProductSlug field.

func (PortalNotFound) ToMap

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

func (*PortalNotFound) UnmarshalJSON

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

type PortalSettings

type PortalSettings struct {
	// Whether customers can use the customer portal. When disabled, it answers `404`.
	Enabled bool `json:"enabled"`
	// Background of the portal's side panel, as `#rrggbb`, stored lower cased. `null` for the default color.
	BrandColor NullableString `json:"brandColor" validate:"regexp=^#[0-9a-f]{6}$/i"`
	// Color of the portal's inputs and buttons, as `#rrggbb`, stored lower cased. `null` for the default color.
	AccentColor NullableString `json:"accentColor" validate:"regexp=^#[0-9a-f]{6}$/i"`
	// Link back to your website shown in the portal, when the portal's URL has no allowed `return_url`. `null` for no link.
	ReturnUrl NullableString `json:"returnUrl"`
	// Domains the portal's `return_url` query parameter may point to, their subdomains included. Other return URLs are ignored, in favor of `returnUrl`.
	ReturnDomains        []string `json:"returnDomains"`
	AdditionalProperties map[string]interface{}
}

PortalSettings struct for PortalSettings

func NewPortalSettings

func NewPortalSettings(enabled bool, brandColor NullableString, accentColor NullableString, returnUrl NullableString, returnDomains []string) *PortalSettings

NewPortalSettings instantiates a new PortalSettings 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 NewPortalSettingsWithDefaults

func NewPortalSettingsWithDefaults() *PortalSettings

NewPortalSettingsWithDefaults instantiates a new PortalSettings 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 (*PortalSettings) GetAccentColor

func (o *PortalSettings) GetAccentColor() string

GetAccentColor returns the AccentColor field value If the value is explicit nil, the zero value for string will be returned

func (*PortalSettings) GetAccentColorOk

func (o *PortalSettings) GetAccentColorOk() (*string, bool)

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

func (*PortalSettings) GetBrandColor

func (o *PortalSettings) GetBrandColor() string

GetBrandColor returns the BrandColor field value If the value is explicit nil, the zero value for string will be returned

func (*PortalSettings) GetBrandColorOk

func (o *PortalSettings) GetBrandColorOk() (*string, bool)

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

func (*PortalSettings) GetEnabled

func (o *PortalSettings) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*PortalSettings) GetEnabledOk

func (o *PortalSettings) GetEnabledOk() (*bool, bool)

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

func (*PortalSettings) GetReturnDomains

func (o *PortalSettings) GetReturnDomains() []string

GetReturnDomains returns the ReturnDomains field value

func (*PortalSettings) GetReturnDomainsOk

func (o *PortalSettings) GetReturnDomainsOk() ([]string, bool)

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

func (*PortalSettings) GetReturnUrl

func (o *PortalSettings) GetReturnUrl() string

GetReturnUrl returns the ReturnUrl field value If the value is explicit nil, the zero value for string will be returned

func (*PortalSettings) GetReturnUrlOk

func (o *PortalSettings) GetReturnUrlOk() (*string, bool)

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

func (PortalSettings) MarshalJSON

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

func (*PortalSettings) SetAccentColor

func (o *PortalSettings) SetAccentColor(v string)

SetAccentColor sets field value

func (*PortalSettings) SetBrandColor

func (o *PortalSettings) SetBrandColor(v string)

SetBrandColor sets field value

func (*PortalSettings) SetEnabled

func (o *PortalSettings) SetEnabled(v bool)

SetEnabled sets field value

func (*PortalSettings) SetReturnDomains

func (o *PortalSettings) SetReturnDomains(v []string)

SetReturnDomains sets field value

func (*PortalSettings) SetReturnUrl

func (o *PortalSettings) SetReturnUrl(v string)

SetReturnUrl sets field value

func (PortalSettings) ToMap

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

func (*PortalSettings) UnmarshalJSON

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

type Price

type Price struct {
	// Amount in major units of the currency: `49.99` for $49.99, `5000` for ¥5,000. `0` for a free license.
	Amount float32 `json:"amount"`
	// ISO 4217 code of the currency, in upper case.
	Currency             string `json:"currency"`
	AdditionalProperties map[string]interface{}
}

Price Price paid for a license. Licenses have `null` instead when it's unknown, which leaves them out of the revenue stats.

func NewPrice

func NewPrice(amount float32, currency string) *Price

NewPrice instantiates a new Price 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 NewPriceWithDefaults

func NewPriceWithDefaults() *Price

NewPriceWithDefaults instantiates a new Price 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 (*Price) GetAmount

func (o *Price) GetAmount() float32

GetAmount returns the Amount field value

func (*Price) GetAmountOk

func (o *Price) GetAmountOk() (*float32, bool)

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

func (*Price) GetCurrency

func (o *Price) GetCurrency() string

GetCurrency returns the Currency field value

func (*Price) GetCurrencyOk

func (o *Price) GetCurrencyOk() (*string, bool)

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

func (Price) MarshalJSON

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

func (*Price) SetAmount

func (o *Price) SetAmount(v float32)

SetAmount sets field value

func (*Price) SetCurrency

func (o *Price) SetCurrency(v string)

SetCurrency sets field value

func (Price) ToMap

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

func (*Price) UnmarshalJSON

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

type PriceInput

type PriceInput struct {
	// Amount in major units of the currency: `49.99` for $49.99, `5000` for ¥5,000. `0` for a free license. At most as many decimals as the currency's minor unit: 2 for USD, 0 for JPY.
	Amount float32 `json:"amount"`
	// ISO 4217 code of the currency, in upper case.
	Currency             string `json:"currency"`
	AdditionalProperties map[string]interface{}
}

PriceInput Price paid for a license. Send `null` instead when it's unknown, which leaves the license out of the revenue stats. Left out on creation, it's `null`.

func NewPriceInput

func NewPriceInput(amount float32, currency string) *PriceInput

NewPriceInput instantiates a new PriceInput 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 NewPriceInputWithDefaults

func NewPriceInputWithDefaults() *PriceInput

NewPriceInputWithDefaults instantiates a new PriceInput 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 (*PriceInput) GetAmount

func (o *PriceInput) GetAmount() float32

GetAmount returns the Amount field value

func (*PriceInput) GetAmountOk

func (o *PriceInput) GetAmountOk() (*float32, bool)

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

func (*PriceInput) GetCurrency

func (o *PriceInput) GetCurrency() string

GetCurrency returns the Currency field value

func (*PriceInput) GetCurrencyOk

func (o *PriceInput) GetCurrencyOk() (*string, bool)

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

func (PriceInput) MarshalJSON

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

func (*PriceInput) SetAmount

func (o *PriceInput) SetAmount(v float32)

SetAmount sets field value

func (*PriceInput) SetCurrency

func (o *PriceInput) SetCurrency(v string)

SetCurrency sets field value

func (PriceInput) ToMap

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

func (*PriceInput) UnmarshalJSON

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

type Product

type Product struct {
	Id   string `json:"id"`
	Slug string `json:"slug"`
	Name string `json:"name"`
	// For test products, id of the live product they're a sandbox of. `null` for live products.
	IsTestFromProductId NullableString `json:"isTestFromProductId"`
	// Public URL of the product's logo, shown in the web app and the customer portal. `null` without a logo.
	LogoUrl              NullableString `json:"logoUrl"`
	Portal               PortalSettings `json:"portal"`
	CreatedAt            time.Time      `json:"createdAt"`
	UpdatedAt            time.Time      `json:"updatedAt"`
	AdditionalProperties map[string]interface{}
}

Product struct for Product

func NewProduct

func NewProduct(id string, slug string, name string, isTestFromProductId NullableString, logoUrl NullableString, portal PortalSettings, createdAt time.Time, updatedAt time.Time) *Product

NewProduct instantiates a new Product 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 NewProductWithDefaults

func NewProductWithDefaults() *Product

NewProductWithDefaults instantiates a new Product 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 (*Product) GetCreatedAt

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

GetCreatedAt returns the CreatedAt field value

func (*Product) GetCreatedAtOk

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

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

func (*Product) GetId

func (o *Product) GetId() string

GetId returns the Id field value

func (*Product) GetIdOk

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

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

func (*Product) GetIsTestFromProductId

func (o *Product) GetIsTestFromProductId() string

GetIsTestFromProductId returns the IsTestFromProductId field value If the value is explicit nil, the zero value for string will be returned

func (*Product) GetIsTestFromProductIdOk

func (o *Product) GetIsTestFromProductIdOk() (*string, bool)

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

func (*Product) GetLogoUrl

func (o *Product) GetLogoUrl() string

GetLogoUrl returns the LogoUrl field value If the value is explicit nil, the zero value for string will be returned

func (*Product) GetLogoUrlOk

func (o *Product) GetLogoUrlOk() (*string, bool)

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

func (*Product) GetName

func (o *Product) GetName() string

GetName returns the Name field value

func (*Product) GetNameOk

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

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

func (*Product) GetPortal

func (o *Product) GetPortal() PortalSettings

GetPortal returns the Portal field value

func (*Product) GetPortalOk

func (o *Product) GetPortalOk() (*PortalSettings, bool)

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

func (*Product) GetSlug

func (o *Product) GetSlug() string

GetSlug returns the Slug field value

func (*Product) GetSlugOk

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

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

func (*Product) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*Product) GetUpdatedAtOk

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

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

func (Product) MarshalJSON

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

func (*Product) SetCreatedAt

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

SetCreatedAt sets field value

func (*Product) SetId

func (o *Product) SetId(v string)

SetId sets field value

func (*Product) SetIsTestFromProductId

func (o *Product) SetIsTestFromProductId(v string)

SetIsTestFromProductId sets field value

func (*Product) SetLogoUrl

func (o *Product) SetLogoUrl(v string)

SetLogoUrl sets field value

func (*Product) SetName

func (o *Product) SetName(v string)

SetName sets field value

func (*Product) SetPortal

func (o *Product) SetPortal(v PortalSettings)

SetPortal sets field value

func (*Product) SetSlug

func (o *Product) SetSlug(v string)

SetSlug sets field value

func (*Product) SetUpdatedAt

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

SetUpdatedAt sets field value

func (Product) ToMap

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

func (*Product) UnmarshalJSON

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

type ProductList

type ProductList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []Product  `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

ProductList struct for ProductList

func NewProductList

func NewProductList(data []Product, pagination Pagination) *ProductList

NewProductList instantiates a new ProductList 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 NewProductListWithDefaults

func NewProductListWithDefaults() *ProductList

NewProductListWithDefaults instantiates a new ProductList 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 (*ProductList) GetData

func (o *ProductList) GetData() []Product

GetData returns the Data field value

func (*ProductList) GetDataOk

func (o *ProductList) GetDataOk() ([]Product, bool)

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

func (*ProductList) GetPagination

func (o *ProductList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*ProductList) GetPaginationOk

func (o *ProductList) GetPaginationOk() (*Pagination, bool)

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

func (ProductList) MarshalJSON

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

func (*ProductList) SetData

func (o *ProductList) SetData(v []Product)

SetData sets field value

func (*ProductList) SetPagination

func (o *ProductList) SetPagination(v Pagination)

SetPagination sets field value

func (ProductList) ToMap

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

func (*ProductList) UnmarshalJSON

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

type ProductStats

type ProductStats struct {
	// Number of licenses of the product.
	LicenseCount int32 `json:"licenseCount"`
	// Number of licenses that haven't expired, and that a machine validated in the last 90 days.
	ActiveLicenseCount int32 `json:"activeLicenseCount"`
	// Number of licenses created in the last 30 days, today included, in UTC.
	NewLicenseCount int32 `json:"newLicenseCount"`
	// Number of licenses expiring in the next 30 days.
	ExpiringLicenseCount int32 `json:"expiringLicenseCount"`
	// Number of licenses that expired in the last 30 days.
	ExpiredLicenseCount int32 `json:"expiredLicenseCount"`
	// Number of active machines of the licenses of the product.
	ActiveMachineCount int32 `json:"activeMachineCount"`
	// Number of licenses with at least one active machine.
	InUseLicenseCount int32 `json:"inUseLicenseCount"`
	// Sum of the maximum numbers of machines of the licenses that haven't expired. Licenses without a maximum are left out.
	SeatCount int32 `json:"seatCount"`
	// Number of active machines of the licenses counted in `seatCount`, at most their maximum number of machines each.
	UsedSeatCount int32 `json:"usedSeatCount"`
	// Number of licenses counted in `seatCount` active on their maximum number of machines.
	FullLicenseCount int32 `json:"fullLicenseCount"`
	// The 30 days covered by the daily stats, from the oldest one, in UTC.
	Days []string `json:"days"`
	// The 12 months covered by the monthly stats, from the oldest one, in UTC.
	Months []string `json:"months"`
	// Number of licenses created each day, aligned on `days`.
	NewLicensesByDay []int32 `json:"newLicensesByDay"`
	// Number of licenses created each month, aligned on `months`.
	NewLicensesByMonth []int32 `json:"newLicensesByMonth"`
	// Number of licenses of each policy created each day and each month, for the policies with licenses created over the covered months.
	NewLicensesByPolicy []ProductStatsNewLicensesByPolicyInner `json:"newLicensesByPolicy"`
	// Revenue in each currency licenses were sold in, from the one with the most licenses sold. Amounts aren't converted between currencies.
	Revenue []Revenue `json:"revenue"`
	// Successful activations of the licenses of the product each day, per version of the application, from the most recent one.
	ActivationsByVersion []ProductStatsActivationsByVersionInner `json:"activationsByVersion"`
	// Number of active machines running each version of the application, from the most recent one.
	ActiveMachinesByVersion []ProductStatsActiveMachinesByVersionInner `json:"activeMachinesByVersion"`
	// Number of active machines on each platform, from the one with the most machines.
	ActiveMachinesByPlatform []ProductStatsActiveMachinesByPlatformInner `json:"activeMachinesByPlatform"`
	AdditionalProperties     map[string]interface{}
}

ProductStats struct for ProductStats

func NewProductStats

func NewProductStats(licenseCount int32, activeLicenseCount int32, newLicenseCount int32, expiringLicenseCount int32, expiredLicenseCount int32, activeMachineCount int32, inUseLicenseCount int32, seatCount int32, usedSeatCount int32, fullLicenseCount int32, days []string, months []string, newLicensesByDay []int32, newLicensesByMonth []int32, newLicensesByPolicy []ProductStatsNewLicensesByPolicyInner, revenue []Revenue, activationsByVersion []ProductStatsActivationsByVersionInner, activeMachinesByVersion []ProductStatsActiveMachinesByVersionInner, activeMachinesByPlatform []ProductStatsActiveMachinesByPlatformInner) *ProductStats

NewProductStats instantiates a new ProductStats 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 NewProductStatsWithDefaults

func NewProductStatsWithDefaults() *ProductStats

NewProductStatsWithDefaults instantiates a new ProductStats 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 (*ProductStats) GetActivationsByVersion

func (o *ProductStats) GetActivationsByVersion() []ProductStatsActivationsByVersionInner

GetActivationsByVersion returns the ActivationsByVersion field value

func (*ProductStats) GetActivationsByVersionOk

func (o *ProductStats) GetActivationsByVersionOk() ([]ProductStatsActivationsByVersionInner, bool)

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

func (*ProductStats) GetActiveLicenseCount

func (o *ProductStats) GetActiveLicenseCount() int32

GetActiveLicenseCount returns the ActiveLicenseCount field value

func (*ProductStats) GetActiveLicenseCountOk

func (o *ProductStats) GetActiveLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetActiveMachineCount

func (o *ProductStats) GetActiveMachineCount() int32

GetActiveMachineCount returns the ActiveMachineCount field value

func (*ProductStats) GetActiveMachineCountOk

func (o *ProductStats) GetActiveMachineCountOk() (*int32, bool)

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

func (*ProductStats) GetActiveMachinesByPlatform

func (o *ProductStats) GetActiveMachinesByPlatform() []ProductStatsActiveMachinesByPlatformInner

GetActiveMachinesByPlatform returns the ActiveMachinesByPlatform field value

func (*ProductStats) GetActiveMachinesByPlatformOk

func (o *ProductStats) GetActiveMachinesByPlatformOk() ([]ProductStatsActiveMachinesByPlatformInner, bool)

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

func (*ProductStats) GetActiveMachinesByVersion

func (o *ProductStats) GetActiveMachinesByVersion() []ProductStatsActiveMachinesByVersionInner

GetActiveMachinesByVersion returns the ActiveMachinesByVersion field value

func (*ProductStats) GetActiveMachinesByVersionOk

func (o *ProductStats) GetActiveMachinesByVersionOk() ([]ProductStatsActiveMachinesByVersionInner, bool)

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

func (*ProductStats) GetDays

func (o *ProductStats) GetDays() []string

GetDays returns the Days field value

func (*ProductStats) GetDaysOk

func (o *ProductStats) GetDaysOk() ([]string, bool)

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

func (*ProductStats) GetExpiredLicenseCount

func (o *ProductStats) GetExpiredLicenseCount() int32

GetExpiredLicenseCount returns the ExpiredLicenseCount field value

func (*ProductStats) GetExpiredLicenseCountOk

func (o *ProductStats) GetExpiredLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetExpiringLicenseCount

func (o *ProductStats) GetExpiringLicenseCount() int32

GetExpiringLicenseCount returns the ExpiringLicenseCount field value

func (*ProductStats) GetExpiringLicenseCountOk

func (o *ProductStats) GetExpiringLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetFullLicenseCount

func (o *ProductStats) GetFullLicenseCount() int32

GetFullLicenseCount returns the FullLicenseCount field value

func (*ProductStats) GetFullLicenseCountOk

func (o *ProductStats) GetFullLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetInUseLicenseCount

func (o *ProductStats) GetInUseLicenseCount() int32

GetInUseLicenseCount returns the InUseLicenseCount field value

func (*ProductStats) GetInUseLicenseCountOk

func (o *ProductStats) GetInUseLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetLicenseCount

func (o *ProductStats) GetLicenseCount() int32

GetLicenseCount returns the LicenseCount field value

func (*ProductStats) GetLicenseCountOk

func (o *ProductStats) GetLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetMonths

func (o *ProductStats) GetMonths() []string

GetMonths returns the Months field value

func (*ProductStats) GetMonthsOk

func (o *ProductStats) GetMonthsOk() ([]string, bool)

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

func (*ProductStats) GetNewLicenseCount

func (o *ProductStats) GetNewLicenseCount() int32

GetNewLicenseCount returns the NewLicenseCount field value

func (*ProductStats) GetNewLicenseCountOk

func (o *ProductStats) GetNewLicenseCountOk() (*int32, bool)

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

func (*ProductStats) GetNewLicensesByDay

func (o *ProductStats) GetNewLicensesByDay() []int32

GetNewLicensesByDay returns the NewLicensesByDay field value

func (*ProductStats) GetNewLicensesByDayOk

func (o *ProductStats) GetNewLicensesByDayOk() ([]int32, bool)

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

func (*ProductStats) GetNewLicensesByMonth

func (o *ProductStats) GetNewLicensesByMonth() []int32

GetNewLicensesByMonth returns the NewLicensesByMonth field value

func (*ProductStats) GetNewLicensesByMonthOk

func (o *ProductStats) GetNewLicensesByMonthOk() ([]int32, bool)

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

func (*ProductStats) GetNewLicensesByPolicy

func (o *ProductStats) GetNewLicensesByPolicy() []ProductStatsNewLicensesByPolicyInner

GetNewLicensesByPolicy returns the NewLicensesByPolicy field value

func (*ProductStats) GetNewLicensesByPolicyOk

func (o *ProductStats) GetNewLicensesByPolicyOk() ([]ProductStatsNewLicensesByPolicyInner, bool)

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

func (*ProductStats) GetRevenue

func (o *ProductStats) GetRevenue() []Revenue

GetRevenue returns the Revenue field value

func (*ProductStats) GetRevenueOk

func (o *ProductStats) GetRevenueOk() ([]Revenue, bool)

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

func (*ProductStats) GetSeatCount

func (o *ProductStats) GetSeatCount() int32

GetSeatCount returns the SeatCount field value

func (*ProductStats) GetSeatCountOk

func (o *ProductStats) GetSeatCountOk() (*int32, bool)

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

func (*ProductStats) GetUsedSeatCount

func (o *ProductStats) GetUsedSeatCount() int32

GetUsedSeatCount returns the UsedSeatCount field value

func (*ProductStats) GetUsedSeatCountOk

func (o *ProductStats) GetUsedSeatCountOk() (*int32, bool)

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

func (ProductStats) MarshalJSON

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

func (*ProductStats) SetActivationsByVersion

func (o *ProductStats) SetActivationsByVersion(v []ProductStatsActivationsByVersionInner)

SetActivationsByVersion sets field value

func (*ProductStats) SetActiveLicenseCount

func (o *ProductStats) SetActiveLicenseCount(v int32)

SetActiveLicenseCount sets field value

func (*ProductStats) SetActiveMachineCount

func (o *ProductStats) SetActiveMachineCount(v int32)

SetActiveMachineCount sets field value

func (*ProductStats) SetActiveMachinesByPlatform

func (o *ProductStats) SetActiveMachinesByPlatform(v []ProductStatsActiveMachinesByPlatformInner)

SetActiveMachinesByPlatform sets field value

func (*ProductStats) SetActiveMachinesByVersion

func (o *ProductStats) SetActiveMachinesByVersion(v []ProductStatsActiveMachinesByVersionInner)

SetActiveMachinesByVersion sets field value

func (*ProductStats) SetDays

func (o *ProductStats) SetDays(v []string)

SetDays sets field value

func (*ProductStats) SetExpiredLicenseCount

func (o *ProductStats) SetExpiredLicenseCount(v int32)

SetExpiredLicenseCount sets field value

func (*ProductStats) SetExpiringLicenseCount

func (o *ProductStats) SetExpiringLicenseCount(v int32)

SetExpiringLicenseCount sets field value

func (*ProductStats) SetFullLicenseCount

func (o *ProductStats) SetFullLicenseCount(v int32)

SetFullLicenseCount sets field value

func (*ProductStats) SetInUseLicenseCount

func (o *ProductStats) SetInUseLicenseCount(v int32)

SetInUseLicenseCount sets field value

func (*ProductStats) SetLicenseCount

func (o *ProductStats) SetLicenseCount(v int32)

SetLicenseCount sets field value

func (*ProductStats) SetMonths

func (o *ProductStats) SetMonths(v []string)

SetMonths sets field value

func (*ProductStats) SetNewLicenseCount

func (o *ProductStats) SetNewLicenseCount(v int32)

SetNewLicenseCount sets field value

func (*ProductStats) SetNewLicensesByDay

func (o *ProductStats) SetNewLicensesByDay(v []int32)

SetNewLicensesByDay sets field value

func (*ProductStats) SetNewLicensesByMonth

func (o *ProductStats) SetNewLicensesByMonth(v []int32)

SetNewLicensesByMonth sets field value

func (*ProductStats) SetNewLicensesByPolicy

func (o *ProductStats) SetNewLicensesByPolicy(v []ProductStatsNewLicensesByPolicyInner)

SetNewLicensesByPolicy sets field value

func (*ProductStats) SetRevenue

func (o *ProductStats) SetRevenue(v []Revenue)

SetRevenue sets field value

func (*ProductStats) SetSeatCount

func (o *ProductStats) SetSeatCount(v int32)

SetSeatCount sets field value

func (*ProductStats) SetUsedSeatCount

func (o *ProductStats) SetUsedSeatCount(v int32)

SetUsedSeatCount sets field value

func (ProductStats) ToMap

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

func (*ProductStats) UnmarshalJSON

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

type ProductStatsActivationsByVersionInner

type ProductStatsActivationsByVersionInner struct {
	// `null` for the activations that didn't send a version.
	Version NullableString `json:"version"`
	// Number of successful activations each day, aligned on `days`.
	Counts               []int32 `json:"counts"`
	AdditionalProperties map[string]interface{}
}

ProductStatsActivationsByVersionInner struct for ProductStatsActivationsByVersionInner

func NewProductStatsActivationsByVersionInner

func NewProductStatsActivationsByVersionInner(version NullableString, counts []int32) *ProductStatsActivationsByVersionInner

NewProductStatsActivationsByVersionInner instantiates a new ProductStatsActivationsByVersionInner 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 NewProductStatsActivationsByVersionInnerWithDefaults

func NewProductStatsActivationsByVersionInnerWithDefaults() *ProductStatsActivationsByVersionInner

NewProductStatsActivationsByVersionInnerWithDefaults instantiates a new ProductStatsActivationsByVersionInner 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 (*ProductStatsActivationsByVersionInner) GetCounts

GetCounts returns the Counts field value

func (*ProductStatsActivationsByVersionInner) GetCountsOk

func (o *ProductStatsActivationsByVersionInner) GetCountsOk() ([]int32, bool)

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

func (*ProductStatsActivationsByVersionInner) GetVersion

GetVersion returns the Version field value If the value is explicit nil, the zero value for string will be returned

func (*ProductStatsActivationsByVersionInner) GetVersionOk

func (o *ProductStatsActivationsByVersionInner) GetVersionOk() (*string, bool)

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

func (ProductStatsActivationsByVersionInner) MarshalJSON

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

func (*ProductStatsActivationsByVersionInner) SetCounts

func (o *ProductStatsActivationsByVersionInner) SetCounts(v []int32)

SetCounts sets field value

func (*ProductStatsActivationsByVersionInner) SetVersion

SetVersion sets field value

func (ProductStatsActivationsByVersionInner) ToMap

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

func (*ProductStatsActivationsByVersionInner) UnmarshalJSON

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

type ProductStatsActiveMachinesByPlatformInner

type ProductStatsActiveMachinesByPlatformInner struct {
	// `null` for the machines that didn't send a platform.
	Platform             NullableString `json:"platform"`
	Count                int32          `json:"count"`
	AdditionalProperties map[string]interface{}
}

ProductStatsActiveMachinesByPlatformInner struct for ProductStatsActiveMachinesByPlatformInner

func NewProductStatsActiveMachinesByPlatformInner

func NewProductStatsActiveMachinesByPlatformInner(platform NullableString, count int32) *ProductStatsActiveMachinesByPlatformInner

NewProductStatsActiveMachinesByPlatformInner instantiates a new ProductStatsActiveMachinesByPlatformInner 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 NewProductStatsActiveMachinesByPlatformInnerWithDefaults

func NewProductStatsActiveMachinesByPlatformInnerWithDefaults() *ProductStatsActiveMachinesByPlatformInner

NewProductStatsActiveMachinesByPlatformInnerWithDefaults instantiates a new ProductStatsActiveMachinesByPlatformInner 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 (*ProductStatsActiveMachinesByPlatformInner) GetCount

GetCount returns the Count field value

func (*ProductStatsActiveMachinesByPlatformInner) GetCountOk

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

func (*ProductStatsActiveMachinesByPlatformInner) GetPlatform

GetPlatform returns the Platform field value If the value is explicit nil, the zero value for string will be returned

func (*ProductStatsActiveMachinesByPlatformInner) GetPlatformOk

func (o *ProductStatsActiveMachinesByPlatformInner) GetPlatformOk() (*string, bool)

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

func (ProductStatsActiveMachinesByPlatformInner) MarshalJSON

func (*ProductStatsActiveMachinesByPlatformInner) SetCount

SetCount sets field value

func (*ProductStatsActiveMachinesByPlatformInner) SetPlatform

SetPlatform sets field value

func (ProductStatsActiveMachinesByPlatformInner) ToMap

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

func (*ProductStatsActiveMachinesByPlatformInner) UnmarshalJSON

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

type ProductStatsActiveMachinesByVersionInner

type ProductStatsActiveMachinesByVersionInner struct {
	// `null` for the machines that didn't send a version.
	Version              NullableString `json:"version"`
	Count                int32          `json:"count"`
	AdditionalProperties map[string]interface{}
}

ProductStatsActiveMachinesByVersionInner struct for ProductStatsActiveMachinesByVersionInner

func NewProductStatsActiveMachinesByVersionInner

func NewProductStatsActiveMachinesByVersionInner(version NullableString, count int32) *ProductStatsActiveMachinesByVersionInner

NewProductStatsActiveMachinesByVersionInner instantiates a new ProductStatsActiveMachinesByVersionInner 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 NewProductStatsActiveMachinesByVersionInnerWithDefaults

func NewProductStatsActiveMachinesByVersionInnerWithDefaults() *ProductStatsActiveMachinesByVersionInner

NewProductStatsActiveMachinesByVersionInnerWithDefaults instantiates a new ProductStatsActiveMachinesByVersionInner 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 (*ProductStatsActiveMachinesByVersionInner) GetCount

GetCount returns the Count field value

func (*ProductStatsActiveMachinesByVersionInner) GetCountOk

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

func (*ProductStatsActiveMachinesByVersionInner) GetVersion

GetVersion returns the Version field value If the value is explicit nil, the zero value for string will be returned

func (*ProductStatsActiveMachinesByVersionInner) GetVersionOk

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

func (ProductStatsActiveMachinesByVersionInner) MarshalJSON

func (*ProductStatsActiveMachinesByVersionInner) SetCount

SetCount sets field value

func (*ProductStatsActiveMachinesByVersionInner) SetVersion

SetVersion sets field value

func (ProductStatsActiveMachinesByVersionInner) ToMap

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

func (*ProductStatsActiveMachinesByVersionInner) UnmarshalJSON

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

type ProductStatsNewLicensesByPolicyInner

type ProductStatsNewLicensesByPolicyInner struct {
	PolicyId string `json:"policyId"`
	// Value each day, aligned on `days`.
	ByDay []float32 `json:"byDay"`
	// Value each month, aligned on `months`.
	ByMonth              []float32 `json:"byMonth"`
	AdditionalProperties map[string]interface{}
}

ProductStatsNewLicensesByPolicyInner struct for ProductStatsNewLicensesByPolicyInner

func NewProductStatsNewLicensesByPolicyInner

func NewProductStatsNewLicensesByPolicyInner(policyId string, byDay []float32, byMonth []float32) *ProductStatsNewLicensesByPolicyInner

NewProductStatsNewLicensesByPolicyInner instantiates a new ProductStatsNewLicensesByPolicyInner 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 NewProductStatsNewLicensesByPolicyInnerWithDefaults

func NewProductStatsNewLicensesByPolicyInnerWithDefaults() *ProductStatsNewLicensesByPolicyInner

NewProductStatsNewLicensesByPolicyInnerWithDefaults instantiates a new ProductStatsNewLicensesByPolicyInner 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 (*ProductStatsNewLicensesByPolicyInner) GetByDay

GetByDay returns the ByDay field value

func (*ProductStatsNewLicensesByPolicyInner) GetByDayOk

func (o *ProductStatsNewLicensesByPolicyInner) GetByDayOk() ([]float32, bool)

GetByDayOk returns a tuple with the ByDay field value and a boolean to check if the value has been set.

func (*ProductStatsNewLicensesByPolicyInner) GetByMonth

GetByMonth returns the ByMonth field value

func (*ProductStatsNewLicensesByPolicyInner) GetByMonthOk

func (o *ProductStatsNewLicensesByPolicyInner) GetByMonthOk() ([]float32, bool)

GetByMonthOk returns a tuple with the ByMonth field value and a boolean to check if the value has been set.

func (*ProductStatsNewLicensesByPolicyInner) GetPolicyId

GetPolicyId returns the PolicyId field value

func (*ProductStatsNewLicensesByPolicyInner) GetPolicyIdOk

func (o *ProductStatsNewLicensesByPolicyInner) GetPolicyIdOk() (*string, bool)

GetPolicyIdOk returns a tuple with the PolicyId field value and a boolean to check if the value has been set.

func (ProductStatsNewLicensesByPolicyInner) MarshalJSON

func (o ProductStatsNewLicensesByPolicyInner) MarshalJSON() ([]byte, error)

func (*ProductStatsNewLicensesByPolicyInner) SetByDay

SetByDay sets field value

func (*ProductStatsNewLicensesByPolicyInner) SetByMonth

func (o *ProductStatsNewLicensesByPolicyInner) SetByMonth(v []float32)

SetByMonth sets field value

func (*ProductStatsNewLicensesByPolicyInner) SetPolicyId

func (o *ProductStatsNewLicensesByPolicyInner) SetPolicyId(v string)

SetPolicyId sets field value

func (ProductStatsNewLicensesByPolicyInner) ToMap

func (o ProductStatsNewLicensesByPolicyInner) ToMap() (map[string]interface{}, error)

func (*ProductStatsNewLicensesByPolicyInner) UnmarshalJSON

func (o *ProductStatsNewLicensesByPolicyInner) UnmarshalJSON(data []byte) (err error)

type ProductsAPIService

type ProductsAPIService service

ProductsAPIService ProductsAPI service

func (*ProductsAPIService) CreateProduct

CreateProduct Create a product

Without a `slug`, the product gets one derived from its name: lower cased, without accents and special characters (`Élan Pro 2!` becomes `elan-pro-2`). When another product of the organization already uses it, a dash and 3 random lowercase letters or digits are appended (`elan-pro-2-k3f`), until the slug is free.

An explicit `slug` is used as is: the request fails with a `409` when it's taken, it's never changed.

Slug uniqueness is enforced by the database, so when concurrent requests end up with the same slug, only one succeeds and the others get a `409`, even without an explicit `slug`. Retrying such a request without a `slug` derives a new one.

The product is created with its default policy, named `Default policy` with the `default` slug, whose settings are given by `defaultPolicy`. Omitted settings default to licenses that never expire, on a single machine, offline for one week, for every version of the product. Unlike `createPolicy`, where `maxMachines` defaults to no limit.

With `isTestFromProductId`, the product is a test product: its id, its slug, and the ids, slugs and license keys of its resources start with `test_` (`TEST-` for license keys), and only test API keys reach it. It starts with copies of the policies, releases and portal settings of the live product, `defaultPolicy` is ignored. Later changes to the live product aren't copied: reset the test product to copy them again. Test API keys can only create test products, live API keys only live ones.

**Required role permission**: `product:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateProductRequest

func (*ProductsAPIService) CreateProductExecute

func (a *ProductsAPIService) CreateProductExecute(r ApiCreateProductRequest) (*Product, *http.Response, error)

Execute executes the request

@return Product

func (*ProductsAPIService) DeleteProduct

DeleteProduct Delete a product

Deletes the product along with its policies, customers and releases, and its test products with everything they hold. A live product that licenses belong to can't be deleted: delete them first. A test product can always be deleted, along with its licenses and machines. The events of the deleted policies and licenses can no longer be listed.

**Required role permission**: `product:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiDeleteProductRequest

func (*ProductsAPIService) DeleteProductExecute

func (a *ProductsAPIService) DeleteProductExecute(r ApiDeleteProductRequest) (*http.Response, error)

Execute executes the request

DeleteProductLogo Delete a product logo

Removes the logo of the product, and deletes its image. Succeeds when the product has no logo.

**Required role permission**: `product:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiDeleteProductLogoRequest

func (*ProductsAPIService) DeleteProductLogoExecute

func (a *ProductsAPIService) DeleteProductLogoExecute(r ApiDeleteProductLogoRequest) (*Product, *http.Response, error)

Execute executes the request

@return Product

func (*ProductsAPIService) GetProduct

GetProduct Get a product

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiGetProductRequest

func (*ProductsAPIService) GetProductExecute

func (a *ProductsAPIService) GetProductExecute(r ApiGetProductRequest) (*Product, *http.Response, error)

Execute executes the request

@return Product

func (*ProductsAPIService) GetProductStats

GetProductStats Get the stats of a product

Counts of the licenses and machines of the product, number of licenses created each day over the last 30 days and each month over the last 12 months, overall and per policy, revenue per currency over the same periods, and successful activations each day over the last 30 days. Days and months are in UTC.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiGetProductStatsRequest

func (*ProductsAPIService) GetProductStatsExecute

func (a *ProductsAPIService) GetProductStatsExecute(r ApiGetProductStatsRequest) (*ProductStats, *http.Response, error)

Execute executes the request

@return ProductStats

func (*ProductsAPIService) ListProducts

ListProducts List products

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListProductsRequest

func (*ProductsAPIService) ListProductsExecute

func (a *ProductsAPIService) ListProductsExecute(r ApiListProductsRequest) (*ProductList, *http.Response, error)

Execute executes the request

@return ProductList

func (*ProductsAPIService) ResetProduct

ResetProduct Reset a test product

Deletes the customers, licenses, machines, policies and releases of the test product, with their events, then copies the policies, releases and portal settings of its live product again. Its id, name and slug are kept, but the copied policies get new ids. The tokens of its customers, licenses and machines stop working.

**Required role permission**: `product:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiResetProductRequest

func (*ProductsAPIService) ResetProductExecute

func (a *ProductsAPIService) ResetProductExecute(r ApiResetProductRequest) (*Product, *http.Response, error)

Execute executes the request

@return Product

func (*ProductsAPIService) UpdateProduct

UpdateProduct Update a product

A product can't be turned into a test product, or back: `isTestFromProductId` can't be changed.

**Required role permission**: `product:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiUpdateProductRequest

func (*ProductsAPIService) UpdateProductExecute

func (a *ProductsAPIService) UpdateProductExecute(r ApiUpdateProductRequest) (*Product, *http.Response, error)

Execute executes the request

@return Product

UploadProductLogo Upload a product logo

Replaces the logo of the product, shown in the web app and the customer portal. The previous logo is deleted.

Accepts WebP, PNG, JPEG and SVG images up to 1 MB, recognized by their content. Logos are shown in squares: use square images, 256×256 pixels for bitmaps. The web app crops and resizes images to this size, and converts them to WebP, before uploading them.

**Required role permission**: `product:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiUploadProductLogoRequest

func (*ProductsAPIService) UploadProductLogoExecute

func (a *ProductsAPIService) UploadProductLogoExecute(r ApiUploadProductLogoRequest) (*Product, *http.Response, error)

Execute executes the request

@return Product

type Release

type Release struct {
	Id         string    `json:"id"`
	ProductId  string    `json:"productId"`
	Version    string    `json:"version"`
	ReleasedAt time.Time `json:"releasedAt"`
	CreatedAt  time.Time `json:"createdAt"`
	// Number of active machines of the product's licenses running this version: the ones whose `version` is exactly the release's, so `v2.3.1` doesn't count for `2.3.1`.
	ActiveMachineCount   int32 `json:"activeMachineCount"`
	AdditionalProperties map[string]interface{}
}

Release struct for Release

func NewRelease

func NewRelease(id string, productId string, version string, releasedAt time.Time, createdAt time.Time, activeMachineCount int32) *Release

NewRelease instantiates a new Release 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 NewReleaseWithDefaults

func NewReleaseWithDefaults() *Release

NewReleaseWithDefaults instantiates a new Release 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 (*Release) GetActiveMachineCount

func (o *Release) GetActiveMachineCount() int32

GetActiveMachineCount returns the ActiveMachineCount field value

func (*Release) GetActiveMachineCountOk

func (o *Release) GetActiveMachineCountOk() (*int32, bool)

GetActiveMachineCountOk returns a tuple with the ActiveMachineCount field value and a boolean to check if the value has been set.

func (*Release) GetCreatedAt

func (o *Release) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value

func (*Release) GetCreatedAtOk

func (o *Release) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Release) GetId

func (o *Release) GetId() string

GetId returns the Id field value

func (*Release) GetIdOk

func (o *Release) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Release) GetProductId

func (o *Release) GetProductId() string

GetProductId returns the ProductId field value

func (*Release) GetProductIdOk

func (o *Release) GetProductIdOk() (*string, bool)

GetProductIdOk returns a tuple with the ProductId field value and a boolean to check if the value has been set.

func (*Release) GetReleasedAt

func (o *Release) GetReleasedAt() time.Time

GetReleasedAt returns the ReleasedAt field value

func (*Release) GetReleasedAtOk

func (o *Release) GetReleasedAtOk() (*time.Time, bool)

GetReleasedAtOk returns a tuple with the ReleasedAt field value and a boolean to check if the value has been set.

func (*Release) GetVersion

func (o *Release) GetVersion() string

GetVersion returns the Version field value

func (*Release) GetVersionOk

func (o *Release) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (Release) MarshalJSON

func (o Release) MarshalJSON() ([]byte, error)

func (*Release) SetActiveMachineCount

func (o *Release) SetActiveMachineCount(v int32)

SetActiveMachineCount sets field value

func (*Release) SetCreatedAt

func (o *Release) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*Release) SetId

func (o *Release) SetId(v string)

SetId sets field value

func (*Release) SetProductId

func (o *Release) SetProductId(v string)

SetProductId sets field value

func (*Release) SetReleasedAt

func (o *Release) SetReleasedAt(v time.Time)

SetReleasedAt sets field value

func (*Release) SetVersion

func (o *Release) SetVersion(v string)

SetVersion sets field value

func (Release) ToMap

func (o Release) ToMap() (map[string]interface{}, error)

func (*Release) UnmarshalJSON

func (o *Release) UnmarshalJSON(data []byte) (err error)

type ReleaseList

type ReleaseList struct {
	// Items of the page, in the requested order. Empty past the last page.
	Data                 []Release  `json:"data"`
	Pagination           Pagination `json:"pagination"`
	AdditionalProperties map[string]interface{}
}

ReleaseList struct for ReleaseList

func NewReleaseList

func NewReleaseList(data []Release, pagination Pagination) *ReleaseList

NewReleaseList instantiates a new ReleaseList 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 NewReleaseListWithDefaults

func NewReleaseListWithDefaults() *ReleaseList

NewReleaseListWithDefaults instantiates a new ReleaseList 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 (*ReleaseList) GetData

func (o *ReleaseList) GetData() []Release

GetData returns the Data field value

func (*ReleaseList) GetDataOk

func (o *ReleaseList) GetDataOk() ([]Release, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*ReleaseList) GetPagination

func (o *ReleaseList) GetPagination() Pagination

GetPagination returns the Pagination field value

func (*ReleaseList) GetPaginationOk

func (o *ReleaseList) GetPaginationOk() (*Pagination, bool)

GetPaginationOk returns a tuple with the Pagination field value and a boolean to check if the value has been set.

func (ReleaseList) MarshalJSON

func (o ReleaseList) MarshalJSON() ([]byte, error)

func (*ReleaseList) SetData

func (o *ReleaseList) SetData(v []Release)

SetData sets field value

func (*ReleaseList) SetPagination

func (o *ReleaseList) SetPagination(v Pagination)

SetPagination sets field value

func (ReleaseList) ToMap

func (o ReleaseList) ToMap() (map[string]interface{}, error)

func (*ReleaseList) UnmarshalJSON

func (o *ReleaseList) UnmarshalJSON(data []byte) (err error)

type ReleasesAPIService

type ReleasesAPIService service

ReleasesAPIService ReleasesAPI service

func (*ReleasesAPIService) CreateRelease

func (a *ReleasesAPIService) CreateRelease(ctx context.Context, productId string) ApiCreateReleaseRequest

CreateRelease Create a release

Releases don't restrict which versions `validateKey` accepts: a machine can run a version without a release. They give the `latestAllowedVersion` of its `version_not_allowed` errors, among the stable releases already released, and the number of active machines running each version.

**Required role permission**: `release:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId
@return ApiCreateReleaseRequest

func (*ReleasesAPIService) CreateReleaseExecute

func (a *ReleasesAPIService) CreateReleaseExecute(r ApiCreateReleaseRequest) (*Release, *http.Response, error)

Execute executes the request

@return Release

func (*ReleasesAPIService) DeleteRelease

DeleteRelease Delete a release

**Required role permission**: `release:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiDeleteReleaseRequest

func (*ReleasesAPIService) DeleteReleaseExecute

func (a *ReleasesAPIService) DeleteReleaseExecute(r ApiDeleteReleaseRequest) (*http.Response, error)

Execute executes the request

func (*ReleasesAPIService) GetRelease

GetRelease Get a release

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiGetReleaseRequest

func (*ReleasesAPIService) GetReleaseExecute

func (a *ReleasesAPIService) GetReleaseExecute(r ApiGetReleaseRequest) (*Release, *http.Response, error)

Execute executes the request

@return Release

func (*ReleasesAPIService) ListReleases

func (a *ReleasesAPIService) ListReleases(ctx context.Context, productId string) ApiListReleasesRequest

ListReleases List the releases of a product

Sorting by `version` compares the major, minor and patch numbers as numbers, then puts a pre-release before its stable release. Pre-releases of the same version compare as text, unlike semantic versioning: `2.0.0-beta.10` comes before `2.0.0-beta.2`. Build metadata is ignored.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param productId
@return ApiListReleasesRequest

func (*ReleasesAPIService) ListReleasesExecute

func (a *ReleasesAPIService) ListReleasesExecute(r ApiListReleasesRequest) (*ReleaseList, *http.Response, error)

Execute executes the request

@return ReleaseList

func (*ReleasesAPIService) UpdateRelease

UpdateRelease Update a release

**Required role permission**: `release:update` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiUpdateReleaseRequest

func (*ReleasesAPIService) UpdateReleaseExecute

func (a *ReleasesAPIService) UpdateReleaseExecute(r ApiUpdateReleaseRequest) (*Release, *http.Response, error)

Execute executes the request

@return Release
type RequestPortalLink struct {
	// Email of the customer.
	Email string `json:"email"`
	// Link back to your website, kept in the emailed link when its domain is one of the product's `returnDomains`.
	ReturnUrl            *string `json:"returnUrl,omitempty"`
	AdditionalProperties map[string]interface{}
}

RequestPortalLink struct for RequestPortalLink

func NewRequestPortalLink(email string) *RequestPortalLink

NewRequestPortalLink instantiates a new RequestPortalLink 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 NewRequestPortalLinkWithDefaults

func NewRequestPortalLinkWithDefaults() *RequestPortalLink

NewRequestPortalLinkWithDefaults instantiates a new RequestPortalLink 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 (*RequestPortalLink) GetEmail

func (o *RequestPortalLink) GetEmail() string

GetEmail returns the Email field value

func (*RequestPortalLink) GetEmailOk

func (o *RequestPortalLink) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*RequestPortalLink) GetReturnUrl

func (o *RequestPortalLink) GetReturnUrl() string

GetReturnUrl returns the ReturnUrl field value if set, zero value otherwise.

func (*RequestPortalLink) GetReturnUrlOk

func (o *RequestPortalLink) GetReturnUrlOk() (*string, bool)

GetReturnUrlOk returns a tuple with the ReturnUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RequestPortalLink) HasReturnUrl

func (o *RequestPortalLink) HasReturnUrl() bool

HasReturnUrl returns a boolean if a field has been set.

func (RequestPortalLink) MarshalJSON

func (o RequestPortalLink) MarshalJSON() ([]byte, error)

func (*RequestPortalLink) SetEmail

func (o *RequestPortalLink) SetEmail(v string)

SetEmail sets field value

func (*RequestPortalLink) SetReturnUrl

func (o *RequestPortalLink) SetReturnUrl(v string)

SetReturnUrl gets a reference to the given string and assigns it to the ReturnUrl field.

func (RequestPortalLink) ToMap

func (o RequestPortalLink) ToMap() (map[string]interface{}, error)

func (*RequestPortalLink) UnmarshalJSON

func (o *RequestPortalLink) UnmarshalJSON(data []byte) (err error)

type Revenue

type Revenue struct {
	// ISO 4217 code of the currency of the revenue.
	Currency string `json:"currency"`
	// Number of licenses sold in the currency, free ones included.
	LicenseCount int32 `json:"licenseCount"`
	// Sum of the prices of the licenses sold in the currency, in major units.
	Total float32 `json:"total"`
	// Revenue of the current month, in UTC.
	ThisMonth float32 `json:"thisMonth"`
	// Revenue of the previous month, in UTC.
	LastMonth float32 `json:"lastMonth"`
	// Revenue of the last 30 days, today included, in UTC.
	Last30Days float32 `json:"last30Days"`
	// Revenue each day, aligned on `days`.
	ByDay []float32 `json:"byDay"`
	// Revenue each month, aligned on `months`.
	ByMonth []float32 `json:"byMonth"`
	// Revenue of the licenses of each policy, for the policies with licenses sold in the currency over the covered months.
	ByPolicy             []ProductStatsNewLicensesByPolicyInner `json:"byPolicy"`
	AdditionalProperties map[string]interface{}
}

Revenue Revenue of the licenses sold in one currency, each license counting on the day it was created. Licenses without a price are left out.

func NewRevenue

func NewRevenue(currency string, licenseCount int32, total float32, thisMonth float32, lastMonth float32, last30Days float32, byDay []float32, byMonth []float32, byPolicy []ProductStatsNewLicensesByPolicyInner) *Revenue

NewRevenue instantiates a new Revenue 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 NewRevenueWithDefaults

func NewRevenueWithDefaults() *Revenue

NewRevenueWithDefaults instantiates a new Revenue 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 (*Revenue) GetByDay

func (o *Revenue) GetByDay() []float32

GetByDay returns the ByDay field value

func (*Revenue) GetByDayOk

func (o *Revenue) GetByDayOk() ([]float32, bool)

GetByDayOk returns a tuple with the ByDay field value and a boolean to check if the value has been set.

func (*Revenue) GetByMonth

func (o *Revenue) GetByMonth() []float32

GetByMonth returns the ByMonth field value

func (*Revenue) GetByMonthOk

func (o *Revenue) GetByMonthOk() ([]float32, bool)

GetByMonthOk returns a tuple with the ByMonth field value and a boolean to check if the value has been set.

func (*Revenue) GetByPolicy

func (o *Revenue) GetByPolicy() []ProductStatsNewLicensesByPolicyInner

GetByPolicy returns the ByPolicy field value

func (*Revenue) GetByPolicyOk

func (o *Revenue) GetByPolicyOk() ([]ProductStatsNewLicensesByPolicyInner, bool)

GetByPolicyOk returns a tuple with the ByPolicy field value and a boolean to check if the value has been set.

func (*Revenue) GetCurrency

func (o *Revenue) GetCurrency() string

GetCurrency returns the Currency field value

func (*Revenue) GetCurrencyOk

func (o *Revenue) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*Revenue) GetLast30Days

func (o *Revenue) GetLast30Days() float32

GetLast30Days returns the Last30Days field value

func (*Revenue) GetLast30DaysOk

func (o *Revenue) GetLast30DaysOk() (*float32, bool)

GetLast30DaysOk returns a tuple with the Last30Days field value and a boolean to check if the value has been set.

func (*Revenue) GetLastMonth

func (o *Revenue) GetLastMonth() float32

GetLastMonth returns the LastMonth field value

func (*Revenue) GetLastMonthOk

func (o *Revenue) GetLastMonthOk() (*float32, bool)

GetLastMonthOk returns a tuple with the LastMonth field value and a boolean to check if the value has been set.

func (*Revenue) GetLicenseCount

func (o *Revenue) GetLicenseCount() int32

GetLicenseCount returns the LicenseCount field value

func (*Revenue) GetLicenseCountOk

func (o *Revenue) GetLicenseCountOk() (*int32, bool)

GetLicenseCountOk returns a tuple with the LicenseCount field value and a boolean to check if the value has been set.

func (*Revenue) GetThisMonth

func (o *Revenue) GetThisMonth() float32

GetThisMonth returns the ThisMonth field value

func (*Revenue) GetThisMonthOk

func (o *Revenue) GetThisMonthOk() (*float32, bool)

GetThisMonthOk returns a tuple with the ThisMonth field value and a boolean to check if the value has been set.

func (*Revenue) GetTotal

func (o *Revenue) GetTotal() float32

GetTotal returns the Total field value

func (*Revenue) GetTotalOk

func (o *Revenue) GetTotalOk() (*float32, bool)

GetTotalOk returns a tuple with the Total field value and a boolean to check if the value has been set.

func (Revenue) MarshalJSON

func (o Revenue) MarshalJSON() ([]byte, error)

func (*Revenue) SetByDay

func (o *Revenue) SetByDay(v []float32)

SetByDay sets field value

func (*Revenue) SetByMonth

func (o *Revenue) SetByMonth(v []float32)

SetByMonth sets field value

func (*Revenue) SetByPolicy

func (o *Revenue) SetByPolicy(v []ProductStatsNewLicensesByPolicyInner)

SetByPolicy sets field value

func (*Revenue) SetCurrency

func (o *Revenue) SetCurrency(v string)

SetCurrency sets field value

func (*Revenue) SetLast30Days

func (o *Revenue) SetLast30Days(v float32)

SetLast30Days sets field value

func (*Revenue) SetLastMonth

func (o *Revenue) SetLastMonth(v float32)

SetLastMonth sets field value

func (*Revenue) SetLicenseCount

func (o *Revenue) SetLicenseCount(v int32)

SetLicenseCount sets field value

func (*Revenue) SetThisMonth

func (o *Revenue) SetThisMonth(v float32)

SetThisMonth sets field value

func (*Revenue) SetTotal

func (o *Revenue) SetTotal(v float32)

SetTotal sets field value

func (Revenue) ToMap

func (o Revenue) ToMap() (map[string]interface{}, error)

func (*Revenue) UnmarshalJSON

func (o *Revenue) UnmarshalJSON(data []byte) (err error)

type SendLicenseKeys

type SendLicenseKeys struct {
	// Ids of the licenses whose keys to email, up to 100.
	Ids                  []string `json:"ids"`
	AdditionalProperties map[string]interface{}
}

SendLicenseKeys struct for SendLicenseKeys

func NewSendLicenseKeys

func NewSendLicenseKeys(ids []string) *SendLicenseKeys

NewSendLicenseKeys instantiates a new SendLicenseKeys 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 NewSendLicenseKeysWithDefaults

func NewSendLicenseKeysWithDefaults() *SendLicenseKeys

NewSendLicenseKeysWithDefaults instantiates a new SendLicenseKeys 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 (*SendLicenseKeys) GetIds

func (o *SendLicenseKeys) GetIds() []string

GetIds returns the Ids field value

func (*SendLicenseKeys) GetIdsOk

func (o *SendLicenseKeys) GetIdsOk() ([]string, bool)

GetIdsOk returns a tuple with the Ids field value and a boolean to check if the value has been set.

func (SendLicenseKeys) MarshalJSON

func (o SendLicenseKeys) MarshalJSON() ([]byte, error)

func (*SendLicenseKeys) SetIds

func (o *SendLicenseKeys) SetIds(v []string)

SetIds sets field value

func (SendLicenseKeys) ToMap

func (o SendLicenseKeys) ToMap() (map[string]interface{}, error)

func (*SendLicenseKeys) UnmarshalJSON

func (o *SendLicenseKeys) UnmarshalJSON(data []byte) (err error)
type SendPortalLink struct {
	// Token of a link created for the customer.
	Token                string `json:"token"`
	AdditionalProperties map[string]interface{}
}

SendPortalLink struct for SendPortalLink

func NewSendPortalLink(token string) *SendPortalLink

NewSendPortalLink instantiates a new SendPortalLink 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 NewSendPortalLinkWithDefaults

func NewSendPortalLinkWithDefaults() *SendPortalLink

NewSendPortalLinkWithDefaults instantiates a new SendPortalLink 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 (*SendPortalLink) GetToken

func (o *SendPortalLink) GetToken() string

GetToken returns the Token field value

func (*SendPortalLink) GetTokenOk

func (o *SendPortalLink) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.

func (SendPortalLink) MarshalJSON

func (o SendPortalLink) MarshalJSON() ([]byte, error)

func (*SendPortalLink) SetToken

func (o *SendPortalLink) SetToken(v string)

SetToken sets field value

func (SendPortalLink) ToMap

func (o SendPortalLink) ToMap() (map[string]interface{}, error)

func (*SendPortalLink) UnmarshalJSON

func (o *SendPortalLink) UnmarshalJSON(data []byte) (err error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SigningKey

type SigningKey struct {
	// Id of the key, in the `kid` header of the tokens it signs.
	Id string `json:"id"`
	// JWT algorithm of the tokens it signs, with an Ed25519 key.
	Algorithm string `json:"algorithm"`
	// PEM encoded SPKI public key.
	PublicKey            string    `json:"publicKey"`
	CreatedAt            time.Time `json:"createdAt"`
	AdditionalProperties map[string]interface{}
}

SigningKey struct for SigningKey

func NewSigningKey

func NewSigningKey(id string, algorithm string, publicKey string, createdAt time.Time) *SigningKey

NewSigningKey instantiates a new SigningKey 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 NewSigningKeyWithDefaults

func NewSigningKeyWithDefaults() *SigningKey

NewSigningKeyWithDefaults instantiates a new SigningKey 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 (*SigningKey) GetAlgorithm

func (o *SigningKey) GetAlgorithm() string

GetAlgorithm returns the Algorithm field value

func (*SigningKey) GetAlgorithmOk

func (o *SigningKey) GetAlgorithmOk() (*string, bool)

GetAlgorithmOk returns a tuple with the Algorithm field value and a boolean to check if the value has been set.

func (*SigningKey) GetCreatedAt

func (o *SigningKey) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value

func (*SigningKey) GetCreatedAtOk

func (o *SigningKey) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*SigningKey) GetId

func (o *SigningKey) GetId() string

GetId returns the Id field value

func (*SigningKey) GetIdOk

func (o *SigningKey) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*SigningKey) GetPublicKey

func (o *SigningKey) GetPublicKey() string

GetPublicKey returns the PublicKey field value

func (*SigningKey) GetPublicKeyOk

func (o *SigningKey) GetPublicKeyOk() (*string, bool)

GetPublicKeyOk returns a tuple with the PublicKey field value and a boolean to check if the value has been set.

func (SigningKey) MarshalJSON

func (o SigningKey) MarshalJSON() ([]byte, error)

func (*SigningKey) SetAlgorithm

func (o *SigningKey) SetAlgorithm(v string)

SetAlgorithm sets field value

func (*SigningKey) SetCreatedAt

func (o *SigningKey) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*SigningKey) SetId

func (o *SigningKey) SetId(v string)

SetId sets field value

func (*SigningKey) SetPublicKey

func (o *SigningKey) SetPublicKey(v string)

SetPublicKey sets field value

func (SigningKey) ToMap

func (o SigningKey) ToMap() (map[string]interface{}, error)

func (*SigningKey) UnmarshalJSON

func (o *SigningKey) UnmarshalJSON(data []byte) (err error)

type StripeIntegration

type StripeIntegration struct {
	// Mode of the Stripe connection the product uses: live for live products, test for test products.
	Livemode bool `json:"livemode"`
	// Whether Stripe can reach the API's webhook URL. A local URL can't be: set `WEBHOOK_URL` on the server, like to a tunnel in development.
	WebhookUrlReachable bool `json:"webhookUrlReachable"`
	// Permissions the restricted API key needs, and why. Every other permission can stay `None`.
	RequiredPermissions []StripePermission `json:"requiredPermissions"`
	// The organization's Stripe connection in this mode, `null` when there's none.
	Integration NullableIntegration `json:"integration"`
	// Stripe prices creating licenses of the product.
	Mappings             []IntegrationMapping `json:"mappings"`
	AdditionalProperties map[string]interface{}
}

StripeIntegration struct for StripeIntegration

func NewStripeIntegration

func NewStripeIntegration(livemode bool, webhookUrlReachable bool, requiredPermissions []StripePermission, integration NullableIntegration, mappings []IntegrationMapping) *StripeIntegration

NewStripeIntegration instantiates a new StripeIntegration 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 NewStripeIntegrationWithDefaults

func NewStripeIntegrationWithDefaults() *StripeIntegration

NewStripeIntegrationWithDefaults instantiates a new StripeIntegration 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 (*StripeIntegration) GetIntegration

func (o *StripeIntegration) GetIntegration() Integration

GetIntegration returns the Integration field value If the value is explicit nil, the zero value for Integration will be returned

func (*StripeIntegration) GetIntegrationOk

func (o *StripeIntegration) GetIntegrationOk() (*Integration, bool)

GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*StripeIntegration) GetLivemode

func (o *StripeIntegration) GetLivemode() bool

GetLivemode returns the Livemode field value

func (*StripeIntegration) GetLivemodeOk

func (o *StripeIntegration) GetLivemodeOk() (*bool, bool)

GetLivemodeOk returns a tuple with the Livemode field value and a boolean to check if the value has been set.

func (*StripeIntegration) GetMappings

func (o *StripeIntegration) GetMappings() []IntegrationMapping

GetMappings returns the Mappings field value

func (*StripeIntegration) GetMappingsOk

func (o *StripeIntegration) GetMappingsOk() ([]IntegrationMapping, bool)

GetMappingsOk returns a tuple with the Mappings field value and a boolean to check if the value has been set.

func (*StripeIntegration) GetRequiredPermissions

func (o *StripeIntegration) GetRequiredPermissions() []StripePermission

GetRequiredPermissions returns the RequiredPermissions field value

func (*StripeIntegration) GetRequiredPermissionsOk

func (o *StripeIntegration) GetRequiredPermissionsOk() ([]StripePermission, bool)

GetRequiredPermissionsOk returns a tuple with the RequiredPermissions field value and a boolean to check if the value has been set.

func (*StripeIntegration) GetWebhookUrlReachable

func (o *StripeIntegration) GetWebhookUrlReachable() bool

GetWebhookUrlReachable returns the WebhookUrlReachable field value

func (*StripeIntegration) GetWebhookUrlReachableOk

func (o *StripeIntegration) GetWebhookUrlReachableOk() (*bool, bool)

GetWebhookUrlReachableOk returns a tuple with the WebhookUrlReachable field value and a boolean to check if the value has been set.

func (StripeIntegration) MarshalJSON

func (o StripeIntegration) MarshalJSON() ([]byte, error)

func (*StripeIntegration) SetIntegration

func (o *StripeIntegration) SetIntegration(v Integration)

SetIntegration sets field value

func (*StripeIntegration) SetLivemode

func (o *StripeIntegration) SetLivemode(v bool)

SetLivemode sets field value

func (*StripeIntegration) SetMappings

func (o *StripeIntegration) SetMappings(v []IntegrationMapping)

SetMappings sets field value

func (*StripeIntegration) SetRequiredPermissions

func (o *StripeIntegration) SetRequiredPermissions(v []StripePermission)

SetRequiredPermissions sets field value

func (*StripeIntegration) SetWebhookUrlReachable

func (o *StripeIntegration) SetWebhookUrlReachable(v bool)

SetWebhookUrlReachable sets field value

func (StripeIntegration) ToMap

func (o StripeIntegration) ToMap() (map[string]interface{}, error)

func (*StripeIntegration) UnmarshalJSON

func (o *StripeIntegration) UnmarshalJSON(data []byte) (err error)

type StripePermission

type StripePermission struct {
	Resource             string `json:"resource"`
	Access               string `json:"access"`
	Reason               string `json:"reason"`
	AdditionalProperties map[string]interface{}
}

StripePermission struct for StripePermission

func NewStripePermission

func NewStripePermission(resource string, access string, reason string) *StripePermission

NewStripePermission instantiates a new StripePermission 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 NewStripePermissionWithDefaults

func NewStripePermissionWithDefaults() *StripePermission

NewStripePermissionWithDefaults instantiates a new StripePermission 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 (*StripePermission) GetAccess

func (o *StripePermission) GetAccess() string

GetAccess returns the Access field value

func (*StripePermission) GetAccessOk

func (o *StripePermission) GetAccessOk() (*string, bool)

GetAccessOk returns a tuple with the Access field value and a boolean to check if the value has been set.

func (*StripePermission) GetReason

func (o *StripePermission) GetReason() string

GetReason returns the Reason field value

func (*StripePermission) GetReasonOk

func (o *StripePermission) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value and a boolean to check if the value has been set.

func (*StripePermission) GetResource

func (o *StripePermission) GetResource() string

GetResource returns the Resource field value

func (*StripePermission) GetResourceOk

func (o *StripePermission) GetResourceOk() (*string, bool)

GetResourceOk returns a tuple with the Resource field value and a boolean to check if the value has been set.

func (StripePermission) MarshalJSON

func (o StripePermission) MarshalJSON() ([]byte, error)

func (*StripePermission) SetAccess

func (o *StripePermission) SetAccess(v string)

SetAccess sets field value

func (*StripePermission) SetReason

func (o *StripePermission) SetReason(v string)

SetReason sets field value

func (*StripePermission) SetResource

func (o *StripePermission) SetResource(v string)

SetResource sets field value

func (StripePermission) ToMap

func (o StripePermission) ToMap() (map[string]interface{}, error)

func (*StripePermission) UnmarshalJSON

func (o *StripePermission) UnmarshalJSON(data []byte) (err error)

type StripePrice

type StripePrice struct {
	Id          string         `json:"id"`
	ProductId   string         `json:"productId"`
	ProductName string         `json:"productName"`
	Nickname    NullableString `json:"nickname"`
	Price       NullablePrice  `json:"price"`
	// Whether the price already creates licenses of a product.
	Mapped               bool `json:"mapped"`
	AdditionalProperties map[string]interface{}
}

StripePrice struct for StripePrice

func NewStripePrice

func NewStripePrice(id string, productId string, productName string, nickname NullableString, price NullablePrice, mapped bool) *StripePrice

NewStripePrice instantiates a new StripePrice 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 NewStripePriceWithDefaults

func NewStripePriceWithDefaults() *StripePrice

NewStripePriceWithDefaults instantiates a new StripePrice 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 (*StripePrice) GetId

func (o *StripePrice) GetId() string

GetId returns the Id field value

func (*StripePrice) GetIdOk

func (o *StripePrice) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*StripePrice) GetMapped

func (o *StripePrice) GetMapped() bool

GetMapped returns the Mapped field value

func (*StripePrice) GetMappedOk

func (o *StripePrice) GetMappedOk() (*bool, bool)

GetMappedOk returns a tuple with the Mapped field value and a boolean to check if the value has been set.

func (*StripePrice) GetNickname

func (o *StripePrice) GetNickname() string

GetNickname returns the Nickname field value If the value is explicit nil, the zero value for string will be returned

func (*StripePrice) GetNicknameOk

func (o *StripePrice) GetNicknameOk() (*string, bool)

GetNicknameOk returns a tuple with the Nickname field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*StripePrice) GetPrice

func (o *StripePrice) GetPrice() Price

GetPrice returns the Price field value If the value is explicit nil, the zero value for Price will be returned

func (*StripePrice) GetPriceOk

func (o *StripePrice) GetPriceOk() (*Price, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*StripePrice) GetProductId

func (o *StripePrice) GetProductId() string

GetProductId returns the ProductId field value

func (*StripePrice) GetProductIdOk

func (o *StripePrice) GetProductIdOk() (*string, bool)

GetProductIdOk returns a tuple with the ProductId field value and a boolean to check if the value has been set.

func (*StripePrice) GetProductName

func (o *StripePrice) GetProductName() string

GetProductName returns the ProductName field value

func (*StripePrice) GetProductNameOk

func (o *StripePrice) GetProductNameOk() (*string, bool)

GetProductNameOk returns a tuple with the ProductName field value and a boolean to check if the value has been set.

func (StripePrice) MarshalJSON

func (o StripePrice) MarshalJSON() ([]byte, error)

func (*StripePrice) SetId

func (o *StripePrice) SetId(v string)

SetId sets field value

func (*StripePrice) SetMapped

func (o *StripePrice) SetMapped(v bool)

SetMapped sets field value

func (*StripePrice) SetNickname

func (o *StripePrice) SetNickname(v string)

SetNickname sets field value

func (*StripePrice) SetPrice

func (o *StripePrice) SetPrice(v Price)

SetPrice sets field value

func (*StripePrice) SetProductId

func (o *StripePrice) SetProductId(v string)

SetProductId sets field value

func (*StripePrice) SetProductName

func (o *StripePrice) SetProductName(v string)

SetProductName sets field value

func (StripePrice) ToMap

func (o StripePrice) ToMap() (map[string]interface{}, error)

func (*StripePrice) UnmarshalJSON

func (o *StripePrice) UnmarshalJSON(data []byte) (err error)

type Token

type Token struct {
	// Token to send as `Authorization: Bearer <token>`.
	Token string `json:"token"`
	// Type of resource the token is scoped to.
	Type  string   `json:"type"`
	Scope []string `json:"scope"`
	// When the token stops working.
	ExpiresAt            time.Time `json:"expiresAt"`
	AdditionalProperties map[string]interface{}
}

Token struct for Token

func NewToken

func NewToken(token string, type_ string, scope []string, expiresAt time.Time) *Token

NewToken instantiates a new Token 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 NewTokenWithDefaults

func NewTokenWithDefaults() *Token

NewTokenWithDefaults instantiates a new Token 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 (*Token) GetExpiresAt

func (o *Token) GetExpiresAt() time.Time

GetExpiresAt returns the ExpiresAt field value

func (*Token) GetExpiresAtOk

func (o *Token) GetExpiresAtOk() (*time.Time, bool)

GetExpiresAtOk returns a tuple with the ExpiresAt field value and a boolean to check if the value has been set.

func (*Token) GetScope

func (o *Token) GetScope() []string

GetScope returns the Scope field value

func (*Token) GetScopeOk

func (o *Token) GetScopeOk() ([]string, bool)

GetScopeOk returns a tuple with the Scope field value and a boolean to check if the value has been set.

func (*Token) GetToken

func (o *Token) GetToken() string

GetToken returns the Token field value

func (*Token) GetTokenOk

func (o *Token) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.

func (*Token) GetType

func (o *Token) GetType() string

GetType returns the Type field value

func (*Token) GetTypeOk

func (o *Token) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (Token) MarshalJSON

func (o Token) MarshalJSON() ([]byte, error)

func (*Token) SetExpiresAt

func (o *Token) SetExpiresAt(v time.Time)

SetExpiresAt sets field value

func (*Token) SetScope

func (o *Token) SetScope(v []string)

SetScope sets field value

func (*Token) SetToken

func (o *Token) SetToken(v string)

SetToken sets field value

func (*Token) SetType

func (o *Token) SetType(v string)

SetType sets field value

func (Token) ToMap

func (o Token) ToMap() (map[string]interface{}, error)

func (*Token) UnmarshalJSON

func (o *Token) UnmarshalJSON(data []byte) (err error)

type TokensAPIService

type TokensAPIService service

TokensAPIService TokensAPI service

func (*TokensAPIService) CreateCustomerToken

func (a *TokensAPIService) CreateCustomerToken(ctx context.Context, id string) ApiCreateCustomerTokenRequest

CreateCustomerToken Create a customer token

Creates a token scoped to the customer, with the permissions of `scope`, to hand to your customers: a page of your website can then call the endpoints accepting tokens directly, without your API key. See the `token` security scheme for what a token reaches.

A token can't be revoked: it works until it expires, unless the resource it's scoped to is deleted.

**Required role permission**: `token:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiCreateCustomerTokenRequest

func (*TokensAPIService) CreateCustomerTokenExecute

func (a *TokensAPIService) CreateCustomerTokenExecute(r ApiCreateCustomerTokenRequest) (*Token, *http.Response, error)

Execute executes the request

@return Token

func (*TokensAPIService) CreateLicenseToken

func (a *TokensAPIService) CreateLicenseToken(ctx context.Context, id string) ApiCreateLicenseTokenRequest

CreateLicenseToken Create a license token

Creates a token scoped to the license, with the permissions of `scope`, to hand to your customers: a page of your website can then call the endpoints accepting tokens directly, without your API key. See the `token` security scheme for what a token reaches.

A token can't be revoked: it works until it expires, unless the resource it's scoped to is deleted.

**Token access**: customer tokens. A customer token creates tokens for its customer's licenses, with the permissions and at most the expiration it has.

**Required role permission**: `token:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiCreateLicenseTokenRequest

func (*TokensAPIService) CreateLicenseTokenExecute

func (a *TokensAPIService) CreateLicenseTokenExecute(r ApiCreateLicenseTokenRequest) (*Token, *http.Response, error)

Execute executes the request

@return Token

func (*TokensAPIService) CreateMachineToken

func (a *TokensAPIService) CreateMachineToken(ctx context.Context, id string) ApiCreateMachineTokenRequest

CreateMachineToken Create a machine token

Creates a token scoped to the machine, with the permissions of `scope`, to hand to your customers: a page of your website can then call the endpoints accepting tokens directly, without your API key. See the `token` security scheme for what a token reaches.

A token can't be revoked: it works until it expires, unless the resource it's scoped to is deleted.

**Token access**: customer, license tokens. A customer or license token creates tokens for the machines it reaches, with the permissions and at most the expiration it has.

**Required role permission**: `token:create` when called with a session, granted by the member's role. API keys aren't limited by roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiCreateMachineTokenRequest

func (*TokensAPIService) CreateMachineTokenExecute

func (a *TokensAPIService) CreateMachineTokenExecute(r ApiCreateMachineTokenRequest) (*Token, *http.Response, error)

Execute executes the request

@return Token

type UpdateCustomer

type UpdateCustomer struct {
	// Unique within the product, regardless of case. Stored lower cased.
	Email *string `json:"email,omitempty"`
	// Display name of the customer. `null` when unknown. Defaults to `null`.
	Name                 NullableString `json:"name,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateCustomer struct for UpdateCustomer

func NewUpdateCustomer

func NewUpdateCustomer() *UpdateCustomer

NewUpdateCustomer instantiates a new UpdateCustomer 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 NewUpdateCustomerWithDefaults

func NewUpdateCustomerWithDefaults() *UpdateCustomer

NewUpdateCustomerWithDefaults instantiates a new UpdateCustomer 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 (*UpdateCustomer) GetEmail

func (o *UpdateCustomer) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*UpdateCustomer) GetEmailOk

func (o *UpdateCustomer) 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 (*UpdateCustomer) GetName

func (o *UpdateCustomer) GetName() string

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateCustomer) GetNameOk

func (o *UpdateCustomer) 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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UpdateCustomer) HasEmail

func (o *UpdateCustomer) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*UpdateCustomer) HasName

func (o *UpdateCustomer) HasName() bool

HasName returns a boolean if a field has been set.

func (UpdateCustomer) MarshalJSON

func (o UpdateCustomer) MarshalJSON() ([]byte, error)

func (*UpdateCustomer) SetEmail

func (o *UpdateCustomer) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*UpdateCustomer) SetName

func (o *UpdateCustomer) SetName(v string)

SetName gets a reference to the given NullableString and assigns it to the Name field.

func (*UpdateCustomer) SetNameNil

func (o *UpdateCustomer) SetNameNil()

SetNameNil sets the value for Name to be an explicit nil

func (UpdateCustomer) ToMap

func (o UpdateCustomer) ToMap() (map[string]interface{}, error)

func (*UpdateCustomer) UnmarshalJSON

func (o *UpdateCustomer) UnmarshalJSON(data []byte) (err error)

func (*UpdateCustomer) UnsetName

func (o *UpdateCustomer) UnsetName()

UnsetName ensures that no value is present for Name, not even an explicit nil

type UpdateIntegrationMapping

type UpdateIntegrationMapping struct {
	PolicyId             string `json:"policyId"`
	AdditionalProperties map[string]interface{}
}

UpdateIntegrationMapping struct for UpdateIntegrationMapping

func NewUpdateIntegrationMapping

func NewUpdateIntegrationMapping(policyId string) *UpdateIntegrationMapping

NewUpdateIntegrationMapping instantiates a new UpdateIntegrationMapping 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 NewUpdateIntegrationMappingWithDefaults

func NewUpdateIntegrationMappingWithDefaults() *UpdateIntegrationMapping

NewUpdateIntegrationMappingWithDefaults instantiates a new UpdateIntegrationMapping 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 (*UpdateIntegrationMapping) GetPolicyId

func (o *UpdateIntegrationMapping) GetPolicyId() string

GetPolicyId returns the PolicyId field value

func (*UpdateIntegrationMapping) GetPolicyIdOk

func (o *UpdateIntegrationMapping) GetPolicyIdOk() (*string, bool)

GetPolicyIdOk returns a tuple with the PolicyId field value and a boolean to check if the value has been set.

func (UpdateIntegrationMapping) MarshalJSON

func (o UpdateIntegrationMapping) MarshalJSON() ([]byte, error)

func (*UpdateIntegrationMapping) SetPolicyId

func (o *UpdateIntegrationMapping) SetPolicyId(v string)

SetPolicyId sets field value

func (UpdateIntegrationMapping) ToMap

func (o UpdateIntegrationMapping) ToMap() (map[string]interface{}, error)

func (*UpdateIntegrationMapping) UnmarshalJSON

func (o *UpdateIntegrationMapping) UnmarshalJSON(data []byte) (err error)

type UpdateLicense

type UpdateLicense struct {
	// `null` makes the license never expire.
	ExpiresAt NullableTime `json:"expiresAt,omitempty"`
	// Free-form JSON object.
	Meta map[string]*interface{} `json:"meta,omitempty"`
	// Maximum number of active machines the license can be used on. `null` for no limit.
	MaxMachines NullableInt32 `json:"maxMachines,omitempty"`
	// Longest the applications can run offline with the license, in seconds. At least one hour (`3600`).
	MaxOfflineDurationSeconds *int32 `json:"maxOfflineDurationSeconds,omitempty"`
	// Latest version of the product the license can use. The values left out are kept.
	MaxVersion           *LicenseMaxVersionInput `json:"maxVersion,omitempty"`
	Price                NullablePriceInput      `json:"price,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateLicense struct for UpdateLicense

func NewUpdateLicense

func NewUpdateLicense() *UpdateLicense

NewUpdateLicense instantiates a new UpdateLicense 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 NewUpdateLicenseWithDefaults

func NewUpdateLicenseWithDefaults() *UpdateLicense

NewUpdateLicenseWithDefaults instantiates a new UpdateLicense 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 (*UpdateLicense) GetExpiresAt

func (o *UpdateLicense) GetExpiresAt() time.Time

GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateLicense) GetExpiresAtOk

func (o *UpdateLicense) GetExpiresAtOk() (*time.Time, bool)

GetExpiresAtOk returns a tuple with the ExpiresAt 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 (*UpdateLicense) GetMaxMachines

func (o *UpdateLicense) GetMaxMachines() int32

GetMaxMachines returns the MaxMachines field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateLicense) GetMaxMachinesOk

func (o *UpdateLicense) GetMaxMachinesOk() (*int32, bool)

GetMaxMachinesOk returns a tuple with the MaxMachines 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 (*UpdateLicense) GetMaxOfflineDurationSeconds

func (o *UpdateLicense) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value if set, zero value otherwise.

func (*UpdateLicense) GetMaxOfflineDurationSecondsOk

func (o *UpdateLicense) GetMaxOfflineDurationSecondsOk() (*int32, bool)

GetMaxOfflineDurationSecondsOk returns a tuple with the MaxOfflineDurationSeconds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateLicense) GetMaxVersion

func (o *UpdateLicense) GetMaxVersion() LicenseMaxVersionInput

GetMaxVersion returns the MaxVersion field value if set, zero value otherwise.

func (*UpdateLicense) GetMaxVersionOk

func (o *UpdateLicense) GetMaxVersionOk() (*LicenseMaxVersionInput, bool)

GetMaxVersionOk returns a tuple with the MaxVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateLicense) GetMeta

func (o *UpdateLicense) GetMeta() map[string]*interface{}

GetMeta returns the Meta field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateLicense) GetMetaOk

func (o *UpdateLicense) GetMetaOk() (map[string]*interface{}, bool)

GetMetaOk returns a tuple with the Meta 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 (*UpdateLicense) GetPrice

func (o *UpdateLicense) GetPrice() PriceInput

GetPrice returns the Price field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateLicense) GetPriceOk

func (o *UpdateLicense) GetPriceOk() (*PriceInput, bool)

GetPriceOk returns a tuple with the Price 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 (*UpdateLicense) HasExpiresAt

func (o *UpdateLicense) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (*UpdateLicense) HasMaxMachines

func (o *UpdateLicense) HasMaxMachines() bool

HasMaxMachines returns a boolean if a field has been set.

func (*UpdateLicense) HasMaxOfflineDurationSeconds

func (o *UpdateLicense) HasMaxOfflineDurationSeconds() bool

HasMaxOfflineDurationSeconds returns a boolean if a field has been set.

func (*UpdateLicense) HasMaxVersion

func (o *UpdateLicense) HasMaxVersion() bool

HasMaxVersion returns a boolean if a field has been set.

func (*UpdateLicense) HasMeta

func (o *UpdateLicense) HasMeta() bool

HasMeta returns a boolean if a field has been set.

func (*UpdateLicense) HasPrice

func (o *UpdateLicense) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (UpdateLicense) MarshalJSON

func (o UpdateLicense) MarshalJSON() ([]byte, error)

func (*UpdateLicense) SetExpiresAt

func (o *UpdateLicense) SetExpiresAt(v time.Time)

SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field.

func (*UpdateLicense) SetExpiresAtNil

func (o *UpdateLicense) SetExpiresAtNil()

SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil

func (*UpdateLicense) SetMaxMachines

func (o *UpdateLicense) SetMaxMachines(v int32)

SetMaxMachines gets a reference to the given NullableInt32 and assigns it to the MaxMachines field.

func (*UpdateLicense) SetMaxMachinesNil

func (o *UpdateLicense) SetMaxMachinesNil()

SetMaxMachinesNil sets the value for MaxMachines to be an explicit nil

func (*UpdateLicense) SetMaxOfflineDurationSeconds

func (o *UpdateLicense) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds gets a reference to the given int32 and assigns it to the MaxOfflineDurationSeconds field.

func (*UpdateLicense) SetMaxVersion

func (o *UpdateLicense) SetMaxVersion(v LicenseMaxVersionInput)

SetMaxVersion gets a reference to the given LicenseMaxVersionInput and assigns it to the MaxVersion field.

func (*UpdateLicense) SetMeta

func (o *UpdateLicense) SetMeta(v map[string]*interface{})

SetMeta gets a reference to the given map[string]*interface{} and assigns it to the Meta field.

func (*UpdateLicense) SetPrice

func (o *UpdateLicense) SetPrice(v PriceInput)

SetPrice gets a reference to the given NullablePriceInput and assigns it to the Price field.

func (*UpdateLicense) SetPriceNil

func (o *UpdateLicense) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (UpdateLicense) ToMap

func (o UpdateLicense) ToMap() (map[string]interface{}, error)

func (*UpdateLicense) UnmarshalJSON

func (o *UpdateLicense) UnmarshalJSON(data []byte) (err error)

func (*UpdateLicense) UnsetExpiresAt

func (o *UpdateLicense) UnsetExpiresAt()

UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil

func (*UpdateLicense) UnsetMaxMachines

func (o *UpdateLicense) UnsetMaxMachines()

UnsetMaxMachines ensures that no value is present for MaxMachines, not even an explicit nil

func (*UpdateLicense) UnsetPrice

func (o *UpdateLicense) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

type UpdatePolicy

type UpdatePolicy struct {
	Name *string `json:"name,omitempty"`
	// Unique within the product. Defaults to the name, lower cased, without accents and special characters. Starts with `test_` in test products, which is added when missing, and removed in live products.
	Slug *string `json:"slug,omitempty" validate:"regexp=^(test_)?[a-z0-9]+(-[a-z0-9]+)*$"`
	// `true` makes this policy the product's default, in place of the current one.
	IsDefault *bool                          `json:"isDefault,omitempty"`
	Duration  NullablePolicySettingsDuration `json:"duration,omitempty"`
	// Maximum number of active machines of the licenses created with this policy, copied to each of them. `null` for no limit. Defaults to `null`.
	MaxMachines NullableInt32 `json:"maxMachines,omitempty"`
	// Longest the applications can run offline with the licenses created with this policy, in seconds, copied to each of them. At least one hour (`3600`). Defaults to one week.
	MaxOfflineDurationSeconds *int32                           `json:"maxOfflineDurationSeconds,omitempty"`
	MaxVersion                NullablePolicySettingsMaxVersion `json:"maxVersion,omitempty"`
	AdditionalProperties      map[string]interface{}
}

UpdatePolicy struct for UpdatePolicy

func NewUpdatePolicy

func NewUpdatePolicy() *UpdatePolicy

NewUpdatePolicy instantiates a new UpdatePolicy 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 NewUpdatePolicyWithDefaults

func NewUpdatePolicyWithDefaults() *UpdatePolicy

NewUpdatePolicyWithDefaults instantiates a new UpdatePolicy 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 (*UpdatePolicy) GetDuration

func (o *UpdatePolicy) GetDuration() PolicySettingsDuration

GetDuration returns the Duration field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdatePolicy) GetDurationOk

func (o *UpdatePolicy) GetDurationOk() (*PolicySettingsDuration, bool)

GetDurationOk returns a tuple with the Duration 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 (*UpdatePolicy) GetIsDefault

func (o *UpdatePolicy) GetIsDefault() bool

GetIsDefault returns the IsDefault field value if set, zero value otherwise.

func (*UpdatePolicy) GetIsDefaultOk

func (o *UpdatePolicy) GetIsDefaultOk() (*bool, bool)

GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdatePolicy) GetMaxMachines

func (o *UpdatePolicy) GetMaxMachines() int32

GetMaxMachines returns the MaxMachines field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdatePolicy) GetMaxMachinesOk

func (o *UpdatePolicy) GetMaxMachinesOk() (*int32, bool)

GetMaxMachinesOk returns a tuple with the MaxMachines 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 (*UpdatePolicy) GetMaxOfflineDurationSeconds

func (o *UpdatePolicy) GetMaxOfflineDurationSeconds() int32

GetMaxOfflineDurationSeconds returns the MaxOfflineDurationSeconds field value if set, zero value otherwise.

func (*UpdatePolicy) GetMaxOfflineDurationSecondsOk

func (o *UpdatePolicy) GetMaxOfflineDurationSecondsOk() (*int32, bool)

GetMaxOfflineDurationSecondsOk returns a tuple with the MaxOfflineDurationSeconds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdatePolicy) GetMaxVersion

func (o *UpdatePolicy) GetMaxVersion() PolicySettingsMaxVersion

GetMaxVersion returns the MaxVersion field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdatePolicy) GetMaxVersionOk

func (o *UpdatePolicy) GetMaxVersionOk() (*PolicySettingsMaxVersion, bool)

GetMaxVersionOk returns a tuple with the MaxVersion 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 (*UpdatePolicy) GetName

func (o *UpdatePolicy) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*UpdatePolicy) GetNameOk

func (o *UpdatePolicy) 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 (*UpdatePolicy) GetSlug

func (o *UpdatePolicy) GetSlug() string

GetSlug returns the Slug field value if set, zero value otherwise.

func (*UpdatePolicy) GetSlugOk

func (o *UpdatePolicy) 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 (*UpdatePolicy) HasDuration

func (o *UpdatePolicy) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*UpdatePolicy) HasIsDefault

func (o *UpdatePolicy) HasIsDefault() bool

HasIsDefault returns a boolean if a field has been set.

func (*UpdatePolicy) HasMaxMachines

func (o *UpdatePolicy) HasMaxMachines() bool

HasMaxMachines returns a boolean if a field has been set.

func (*UpdatePolicy) HasMaxOfflineDurationSeconds

func (o *UpdatePolicy) HasMaxOfflineDurationSeconds() bool

HasMaxOfflineDurationSeconds returns a boolean if a field has been set.

func (*UpdatePolicy) HasMaxVersion

func (o *UpdatePolicy) HasMaxVersion() bool

HasMaxVersion returns a boolean if a field has been set.

func (*UpdatePolicy) HasName

func (o *UpdatePolicy) HasName() bool

HasName returns a boolean if a field has been set.

func (*UpdatePolicy) HasSlug

func (o *UpdatePolicy) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (UpdatePolicy) MarshalJSON

func (o UpdatePolicy) MarshalJSON() ([]byte, error)

func (*UpdatePolicy) SetDuration

func (o *UpdatePolicy) SetDuration(v PolicySettingsDuration)

SetDuration gets a reference to the given NullablePolicySettingsDuration and assigns it to the Duration field.

func (*UpdatePolicy) SetDurationNil

func (o *UpdatePolicy) SetDurationNil()

SetDurationNil sets the value for Duration to be an explicit nil

func (*UpdatePolicy) SetIsDefault

func (o *UpdatePolicy) SetIsDefault(v bool)

SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.

func (*UpdatePolicy) SetMaxMachines

func (o *UpdatePolicy) SetMaxMachines(v int32)

SetMaxMachines gets a reference to the given NullableInt32 and assigns it to the MaxMachines field.

func (*UpdatePolicy) SetMaxMachinesNil

func (o *UpdatePolicy) SetMaxMachinesNil()

SetMaxMachinesNil sets the value for MaxMachines to be an explicit nil

func (*UpdatePolicy) SetMaxOfflineDurationSeconds

func (o *UpdatePolicy) SetMaxOfflineDurationSeconds(v int32)

SetMaxOfflineDurationSeconds gets a reference to the given int32 and assigns it to the MaxOfflineDurationSeconds field.

func (*UpdatePolicy) SetMaxVersion

func (o *UpdatePolicy) SetMaxVersion(v PolicySettingsMaxVersion)

SetMaxVersion gets a reference to the given NullablePolicySettingsMaxVersion and assigns it to the MaxVersion field.

func (*UpdatePolicy) SetMaxVersionNil

func (o *UpdatePolicy) SetMaxVersionNil()

SetMaxVersionNil sets the value for MaxVersion to be an explicit nil

func (*UpdatePolicy) SetName

func (o *UpdatePolicy) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*UpdatePolicy) SetSlug

func (o *UpdatePolicy) SetSlug(v string)

SetSlug gets a reference to the given string and assigns it to the Slug field.

func (UpdatePolicy) ToMap

func (o UpdatePolicy) ToMap() (map[string]interface{}, error)

func (*UpdatePolicy) UnmarshalJSON

func (o *UpdatePolicy) UnmarshalJSON(data []byte) (err error)

func (*UpdatePolicy) UnsetDuration

func (o *UpdatePolicy) UnsetDuration()

UnsetDuration ensures that no value is present for Duration, not even an explicit nil

func (*UpdatePolicy) UnsetMaxMachines

func (o *UpdatePolicy) UnsetMaxMachines()

UnsetMaxMachines ensures that no value is present for MaxMachines, not even an explicit nil

func (*UpdatePolicy) UnsetMaxVersion

func (o *UpdatePolicy) UnsetMaxVersion()

UnsetMaxVersion ensures that no value is present for MaxVersion, not even an explicit nil

type UpdateProduct

type UpdateProduct struct {
	Name *string `json:"name,omitempty"`
	// Unique within the organization. Defaults to the name, lower cased, without accents and special characters. Starts with `test_` in test products, which is added when missing, and removed in live products.
	Slug                 *string              `json:"slug,omitempty" validate:"regexp=^(test_)?[a-z0-9]+(-[a-z0-9]+)*$"`
	Portal               *UpdateProductPortal `json:"portal,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateProduct struct for UpdateProduct

func NewUpdateProduct

func NewUpdateProduct() *UpdateProduct

NewUpdateProduct instantiates a new UpdateProduct 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 NewUpdateProductWithDefaults

func NewUpdateProductWithDefaults() *UpdateProduct

NewUpdateProductWithDefaults instantiates a new UpdateProduct 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 (*UpdateProduct) GetName

func (o *UpdateProduct) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*UpdateProduct) GetNameOk

func (o *UpdateProduct) 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 (*UpdateProduct) GetPortal

func (o *UpdateProduct) GetPortal() UpdateProductPortal

GetPortal returns the Portal field value if set, zero value otherwise.

func (*UpdateProduct) GetPortalOk

func (o *UpdateProduct) GetPortalOk() (*UpdateProductPortal, bool)

GetPortalOk returns a tuple with the Portal field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateProduct) GetSlug

func (o *UpdateProduct) GetSlug() string

GetSlug returns the Slug field value if set, zero value otherwise.

func (*UpdateProduct) GetSlugOk

func (o *UpdateProduct) 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 (*UpdateProduct) HasName

func (o *UpdateProduct) HasName() bool

HasName returns a boolean if a field has been set.

func (*UpdateProduct) HasPortal

func (o *UpdateProduct) HasPortal() bool

HasPortal returns a boolean if a field has been set.

func (*UpdateProduct) HasSlug

func (o *UpdateProduct) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (UpdateProduct) MarshalJSON

func (o UpdateProduct) MarshalJSON() ([]byte, error)

func (*UpdateProduct) SetName

func (o *UpdateProduct) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*UpdateProduct) SetPortal

func (o *UpdateProduct) SetPortal(v UpdateProductPortal)

SetPortal gets a reference to the given UpdateProductPortal and assigns it to the Portal field.

func (*UpdateProduct) SetSlug

func (o *UpdateProduct) SetSlug(v string)

SetSlug gets a reference to the given string and assigns it to the Slug field.

func (UpdateProduct) ToMap

func (o UpdateProduct) ToMap() (map[string]interface{}, error)

func (*UpdateProduct) UnmarshalJSON

func (o *UpdateProduct) UnmarshalJSON(data []byte) (err error)

type UpdateProductPortal

type UpdateProductPortal struct {
	// Whether customers can use the customer portal. When disabled, it answers `404`.
	Enabled *bool `json:"enabled,omitempty"`
	// Background of the portal's side panel, as `#rrggbb`, stored lower cased. `null` for the default color.
	BrandColor NullableString `json:"brandColor,omitempty" validate:"regexp=^#[0-9a-f]{6}$/i"`
	// Color of the portal's inputs and buttons, as `#rrggbb`, stored lower cased. `null` for the default color.
	AccentColor NullableString `json:"accentColor,omitempty" validate:"regexp=^#[0-9a-f]{6}$/i"`
	// Link back to your website shown in the portal, when the portal's URL has no allowed `return_url`. `null` for no link.
	ReturnUrl NullableString `json:"returnUrl,omitempty"`
	// Domains the portal's `return_url` query parameter may point to, their subdomains included. Other return URLs are ignored, in favor of `returnUrl`.
	ReturnDomains        []string `json:"returnDomains,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateProductPortal struct for UpdateProductPortal

func NewUpdateProductPortal

func NewUpdateProductPortal() *UpdateProductPortal

NewUpdateProductPortal instantiates a new UpdateProductPortal 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 NewUpdateProductPortalWithDefaults

func NewUpdateProductPortalWithDefaults() *UpdateProductPortal

NewUpdateProductPortalWithDefaults instantiates a new UpdateProductPortal 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 (*UpdateProductPortal) GetAccentColor

func (o *UpdateProductPortal) GetAccentColor() string

GetAccentColor returns the AccentColor field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateProductPortal) GetAccentColorOk

func (o *UpdateProductPortal) GetAccentColorOk() (*string, bool)

GetAccentColorOk returns a tuple with the AccentColor 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 (*UpdateProductPortal) GetBrandColor

func (o *UpdateProductPortal) GetBrandColor() string

GetBrandColor returns the BrandColor field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateProductPortal) GetBrandColorOk

func (o *UpdateProductPortal) GetBrandColorOk() (*string, bool)

GetBrandColorOk returns a tuple with the BrandColor 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 (*UpdateProductPortal) GetEnabled

func (o *UpdateProductPortal) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*UpdateProductPortal) GetEnabledOk

func (o *UpdateProductPortal) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateProductPortal) GetReturnDomains

func (o *UpdateProductPortal) GetReturnDomains() []string

GetReturnDomains returns the ReturnDomains field value if set, zero value otherwise.

func (*UpdateProductPortal) GetReturnDomainsOk

func (o *UpdateProductPortal) GetReturnDomainsOk() ([]string, bool)

GetReturnDomainsOk returns a tuple with the ReturnDomains field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateProductPortal) GetReturnUrl

func (o *UpdateProductPortal) GetReturnUrl() string

GetReturnUrl returns the ReturnUrl field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateProductPortal) GetReturnUrlOk

func (o *UpdateProductPortal) GetReturnUrlOk() (*string, bool)

GetReturnUrlOk returns a tuple with the ReturnUrl 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 (*UpdateProductPortal) HasAccentColor

func (o *UpdateProductPortal) HasAccentColor() bool

HasAccentColor returns a boolean if a field has been set.

func (*UpdateProductPortal) HasBrandColor

func (o *UpdateProductPortal) HasBrandColor() bool

HasBrandColor returns a boolean if a field has been set.

func (*UpdateProductPortal) HasEnabled

func (o *UpdateProductPortal) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*UpdateProductPortal) HasReturnDomains

func (o *UpdateProductPortal) HasReturnDomains() bool

HasReturnDomains returns a boolean if a field has been set.

func (*UpdateProductPortal) HasReturnUrl

func (o *UpdateProductPortal) HasReturnUrl() bool

HasReturnUrl returns a boolean if a field has been set.

func (UpdateProductPortal) MarshalJSON

func (o UpdateProductPortal) MarshalJSON() ([]byte, error)

func (*UpdateProductPortal) SetAccentColor

func (o *UpdateProductPortal) SetAccentColor(v string)

SetAccentColor gets a reference to the given NullableString and assigns it to the AccentColor field.

func (*UpdateProductPortal) SetAccentColorNil

func (o *UpdateProductPortal) SetAccentColorNil()

SetAccentColorNil sets the value for AccentColor to be an explicit nil

func (*UpdateProductPortal) SetBrandColor

func (o *UpdateProductPortal) SetBrandColor(v string)

SetBrandColor gets a reference to the given NullableString and assigns it to the BrandColor field.

func (*UpdateProductPortal) SetBrandColorNil

func (o *UpdateProductPortal) SetBrandColorNil()

SetBrandColorNil sets the value for BrandColor to be an explicit nil

func (*UpdateProductPortal) SetEnabled

func (o *UpdateProductPortal) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*UpdateProductPortal) SetReturnDomains

func (o *UpdateProductPortal) SetReturnDomains(v []string)

SetReturnDomains gets a reference to the given []string and assigns it to the ReturnDomains field.

func (*UpdateProductPortal) SetReturnUrl

func (o *UpdateProductPortal) SetReturnUrl(v string)

SetReturnUrl gets a reference to the given NullableString and assigns it to the ReturnUrl field.

func (*UpdateProductPortal) SetReturnUrlNil

func (o *UpdateProductPortal) SetReturnUrlNil()

SetReturnUrlNil sets the value for ReturnUrl to be an explicit nil

func (UpdateProductPortal) ToMap

func (o UpdateProductPortal) ToMap() (map[string]interface{}, error)

func (*UpdateProductPortal) UnmarshalJSON

func (o *UpdateProductPortal) UnmarshalJSON(data []byte) (err error)

func (*UpdateProductPortal) UnsetAccentColor

func (o *UpdateProductPortal) UnsetAccentColor()

UnsetAccentColor ensures that no value is present for AccentColor, not even an explicit nil

func (*UpdateProductPortal) UnsetBrandColor

func (o *UpdateProductPortal) UnsetBrandColor()

UnsetBrandColor ensures that no value is present for BrandColor, not even an explicit nil

func (*UpdateProductPortal) UnsetReturnUrl

func (o *UpdateProductPortal) UnsetReturnUrl()

UnsetReturnUrl ensures that no value is present for ReturnUrl, not even an explicit nil

type UpdateRelease

type UpdateRelease struct {
	// Semantic version, like `\"2.3.1\"` or `\"2.4.0-beta.1\"`, without a `v` prefix. Unique within the product. Each number has at most 9 digits.
	Version *string `` /* 146-byte string literal not displayed */
	// When the version is released, which can be in the future. Defaults to now.
	ReleasedAt           *time.Time `json:"releasedAt,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateRelease struct for UpdateRelease

func NewUpdateRelease

func NewUpdateRelease() *UpdateRelease

NewUpdateRelease instantiates a new UpdateRelease 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 NewUpdateReleaseWithDefaults

func NewUpdateReleaseWithDefaults() *UpdateRelease

NewUpdateReleaseWithDefaults instantiates a new UpdateRelease 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 (*UpdateRelease) GetReleasedAt

func (o *UpdateRelease) GetReleasedAt() time.Time

GetReleasedAt returns the ReleasedAt field value if set, zero value otherwise.

func (*UpdateRelease) GetReleasedAtOk

func (o *UpdateRelease) GetReleasedAtOk() (*time.Time, bool)

GetReleasedAtOk returns a tuple with the ReleasedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateRelease) GetVersion

func (o *UpdateRelease) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*UpdateRelease) GetVersionOk

func (o *UpdateRelease) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateRelease) HasReleasedAt

func (o *UpdateRelease) HasReleasedAt() bool

HasReleasedAt returns a boolean if a field has been set.

func (*UpdateRelease) HasVersion

func (o *UpdateRelease) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (UpdateRelease) MarshalJSON

func (o UpdateRelease) MarshalJSON() ([]byte, error)

func (*UpdateRelease) SetReleasedAt

func (o *UpdateRelease) SetReleasedAt(v time.Time)

SetReleasedAt gets a reference to the given time.Time and assigns it to the ReleasedAt field.

func (*UpdateRelease) SetVersion

func (o *UpdateRelease) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (UpdateRelease) ToMap

func (o UpdateRelease) ToMap() (map[string]interface{}, error)

func (*UpdateRelease) UnmarshalJSON

func (o *UpdateRelease) UnmarshalJSON(data []byte) (err error)

type ValidateKey

type ValidateKey struct {
	// License key, compared exactly: keys are case sensitive.
	Key string `json:"key"`
	// Identifies the machine. Unique within the license. Compared exactly, case included: a different fingerprint is another machine.
	Fingerprint string `json:"fingerprint"`
	// Version of the application running on the machine, like `\"1.4.2\"`. Its major and minor numbers are checked against the license's `maxVersion.version`: a `v` prefix and a pre-release are accepted, `\"v2.3.0-beta.1\"` counting as 2.3, and a version that doesn't start with a number is refused when the license has a `maxVersion.version`. It doesn't have to be one of the product's releases.
	Version string `json:"version"`
	// Name of the machine. Replaces the current one when given.
	Name *string `json:"name,omitempty"`
	// Platform of the machine. Replaces the current one when given.
	Platform             *string `json:"platform,omitempty"`
	AdditionalProperties map[string]interface{}
}

ValidateKey struct for ValidateKey

func NewValidateKey

func NewValidateKey(key string, fingerprint string, version string) *ValidateKey

NewValidateKey instantiates a new ValidateKey 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 NewValidateKeyWithDefaults

func NewValidateKeyWithDefaults() *ValidateKey

NewValidateKeyWithDefaults instantiates a new ValidateKey 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 (*ValidateKey) GetFingerprint

func (o *ValidateKey) GetFingerprint() string

GetFingerprint returns the Fingerprint field value

func (*ValidateKey) GetFingerprintOk

func (o *ValidateKey) GetFingerprintOk() (*string, bool)

GetFingerprintOk returns a tuple with the Fingerprint field value and a boolean to check if the value has been set.

func (*ValidateKey) GetKey

func (o *ValidateKey) GetKey() string

GetKey returns the Key field value

func (*ValidateKey) GetKeyOk

func (o *ValidateKey) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*ValidateKey) GetName

func (o *ValidateKey) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ValidateKey) GetNameOk

func (o *ValidateKey) 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 (*ValidateKey) GetPlatform

func (o *ValidateKey) GetPlatform() string

GetPlatform returns the Platform field value if set, zero value otherwise.

func (*ValidateKey) GetPlatformOk

func (o *ValidateKey) GetPlatformOk() (*string, bool)

GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidateKey) GetVersion

func (o *ValidateKey) GetVersion() string

GetVersion returns the Version field value

func (*ValidateKey) GetVersionOk

func (o *ValidateKey) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (*ValidateKey) HasName

func (o *ValidateKey) HasName() bool

HasName returns a boolean if a field has been set.

func (*ValidateKey) HasPlatform

func (o *ValidateKey) HasPlatform() bool

HasPlatform returns a boolean if a field has been set.

func (ValidateKey) MarshalJSON

func (o ValidateKey) MarshalJSON() ([]byte, error)

func (*ValidateKey) SetFingerprint

func (o *ValidateKey) SetFingerprint(v string)

SetFingerprint sets field value

func (*ValidateKey) SetKey

func (o *ValidateKey) SetKey(v string)

SetKey sets field value

func (*ValidateKey) SetName

func (o *ValidateKey) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ValidateKey) SetPlatform

func (o *ValidateKey) SetPlatform(v string)

SetPlatform gets a reference to the given string and assigns it to the Platform field.

func (*ValidateKey) SetVersion

func (o *ValidateKey) SetVersion(v string)

SetVersion sets field value

func (ValidateKey) ToMap

func (o ValidateKey) ToMap() (map[string]interface{}, error)

func (*ValidateKey) UnmarshalJSON

func (o *ValidateKey) UnmarshalJSON(data []byte) (err error)

type ValidateKeyError

type ValidateKeyError struct {
	Error                ValidateKeyErrorError `json:"error"`
	AdditionalProperties map[string]interface{}
}

ValidateKeyError struct for ValidateKeyError

func NewValidateKeyError

func NewValidateKeyError(error_ ValidateKeyErrorError) *ValidateKeyError

NewValidateKeyError instantiates a new ValidateKeyError 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 NewValidateKeyErrorWithDefaults

func NewValidateKeyErrorWithDefaults() *ValidateKeyError

NewValidateKeyErrorWithDefaults instantiates a new ValidateKeyError 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 (*ValidateKeyError) GetError

GetError returns the Error field value

func (*ValidateKeyError) GetErrorOk

func (o *ValidateKeyError) GetErrorOk() (*ValidateKeyErrorError, bool)

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (ValidateKeyError) MarshalJSON

func (o ValidateKeyError) MarshalJSON() ([]byte, error)

func (*ValidateKeyError) SetError

func (o *ValidateKeyError) SetError(v ValidateKeyErrorError)

SetError sets field value

func (ValidateKeyError) ToMap

func (o ValidateKeyError) ToMap() (map[string]interface{}, error)

func (*ValidateKeyError) UnmarshalJSON

func (o *ValidateKeyError) UnmarshalJSON(data []byte) (err error)

type ValidateKeyErrorError

type ValidateKeyErrorError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	// Present on `validation_error` errors.
	Issues []ErrorErrorIssuesInner `json:"issues,omitempty"`
	// On `version_not_allowed` errors: version of the latest stable release of the product the license allows, among the ones already released. `null` when it allows none of them.
	LatestAllowedVersion NullableString `json:"latestAllowedVersion,omitempty"`
	AdditionalProperties map[string]interface{}
}

ValidateKeyErrorError struct for ValidateKeyErrorError

func NewValidateKeyErrorError

func NewValidateKeyErrorError(code string, message string) *ValidateKeyErrorError

NewValidateKeyErrorError instantiates a new ValidateKeyErrorError 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 NewValidateKeyErrorErrorWithDefaults

func NewValidateKeyErrorErrorWithDefaults() *ValidateKeyErrorError

NewValidateKeyErrorErrorWithDefaults instantiates a new ValidateKeyErrorError 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 (*ValidateKeyErrorError) GetCode

func (o *ValidateKeyErrorError) GetCode() string

GetCode returns the Code field value

func (*ValidateKeyErrorError) GetCodeOk

func (o *ValidateKeyErrorError) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*ValidateKeyErrorError) GetIssues

GetIssues returns the Issues field value if set, zero value otherwise.

func (*ValidateKeyErrorError) GetIssuesOk

func (o *ValidateKeyErrorError) GetIssuesOk() ([]ErrorErrorIssuesInner, bool)

GetIssuesOk returns a tuple with the Issues field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValidateKeyErrorError) GetLatestAllowedVersion

func (o *ValidateKeyErrorError) GetLatestAllowedVersion() string

GetLatestAllowedVersion returns the LatestAllowedVersion field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ValidateKeyErrorError) GetLatestAllowedVersionOk

func (o *ValidateKeyErrorError) GetLatestAllowedVersionOk() (*string, bool)

GetLatestAllowedVersionOk returns a tuple with the LatestAllowedVersion 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 (*ValidateKeyErrorError) GetMessage

func (o *ValidateKeyErrorError) GetMessage() string

GetMessage returns the Message field value

func (*ValidateKeyErrorError) GetMessageOk

func (o *ValidateKeyErrorError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ValidateKeyErrorError) HasIssues

func (o *ValidateKeyErrorError) HasIssues() bool

HasIssues returns a boolean if a field has been set.

func (*ValidateKeyErrorError) HasLatestAllowedVersion

func (o *ValidateKeyErrorError) HasLatestAllowedVersion() bool

HasLatestAllowedVersion returns a boolean if a field has been set.

func (ValidateKeyErrorError) MarshalJSON

func (o ValidateKeyErrorError) MarshalJSON() ([]byte, error)

func (*ValidateKeyErrorError) SetCode

func (o *ValidateKeyErrorError) SetCode(v string)

SetCode sets field value

func (*ValidateKeyErrorError) SetIssues

func (o *ValidateKeyErrorError) SetIssues(v []ErrorErrorIssuesInner)

SetIssues gets a reference to the given []ErrorErrorIssuesInner and assigns it to the Issues field.

func (*ValidateKeyErrorError) SetLatestAllowedVersion

func (o *ValidateKeyErrorError) SetLatestAllowedVersion(v string)

SetLatestAllowedVersion gets a reference to the given NullableString and assigns it to the LatestAllowedVersion field.

func (*ValidateKeyErrorError) SetLatestAllowedVersionNil

func (o *ValidateKeyErrorError) SetLatestAllowedVersionNil()

SetLatestAllowedVersionNil sets the value for LatestAllowedVersion to be an explicit nil

func (*ValidateKeyErrorError) SetMessage

func (o *ValidateKeyErrorError) SetMessage(v string)

SetMessage sets field value

func (ValidateKeyErrorError) ToMap

func (o ValidateKeyErrorError) ToMap() (map[string]interface{}, error)

func (*ValidateKeyErrorError) UnmarshalJSON

func (o *ValidateKeyErrorError) UnmarshalJSON(data []byte) (err error)

func (*ValidateKeyErrorError) UnsetLatestAllowedVersion

func (o *ValidateKeyErrorError) UnsetLatestAllowedVersion()

UnsetLatestAllowedVersion ensures that no value is present for LatestAllowedVersion, not even an explicit nil

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL