infraprovision

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

Go API client for Host Activation Service

Host activation service provides a RESTful interface to manage cert and join token object. Join tokens are essentially a password that allows on-prem hosts to auto-associate themselves to a customer's account and receive a signed cert.

Overview

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

  • API version: v1
  • Generator version: 7.5.0
  • Build package: com.infoblox.codegen.BloxoneGoClientCodegen

Installation

Install the package using go get:

go get github.com/infobloxopen/bloxone-go-client/infraprovision

Import the package into your code:

import "github.com/infobloxopen/bloxone-go-client/infraprovision"

To use a proxy, set the environment variable HTTP_PROXY:

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

To create a new API client, you can use the NewAPIClient function as shown below

client := infraprovision.NewAPIClient()

Configuration

The NewAPIClient function accepts a variadic list of option.ClientOption functions that can be used to configure the client. It requires the option package to be imported. You can import the package using:

import "github.com/infobloxopen/bloxone-go-client/option"
Client Name

The client name is used to identify the client in the logs. By default, the client name is set to bloxone-go-client. You can change this using the option.WithClientName option. For example:

client := infraprovision.NewAPIClient(option.WithClientName("my-client"))
Server URL

The default URL for the Cloud Services Portal is https://csp.infoblox.com. If you need to change this, you can use option.WithCSPUrl to set the URL. For example:

client := infraprovision.NewAPIClient(option.WithCSPUrl("https://csp.eu.infoblox.com"))

You can also set the URL using the environment variable BLOXONE_CSP_URL

Authorization

An API key is required to access Host Activation Service. You can obtain an API key by following the instructions in the guide for Configuring User API Keys.

To use an API key with Host Activation Service, you can use the option.WithAPIKey option. For example:

client := infraprovision.NewAPIClient(option.WithAPIKey("YOUR_API_KEY"))

You can also set the API key using the environment variable BLOXONE_API_KEY

Note: The API key is a secret and should be handled securely. Hardcoding the API key in your code is not recommended.

Default Tags

You can set default tags for all API requests using the option.WithDefaultTags option. For example:

client := infraprovision.NewAPIClient(option.WithDefaultTags(map[string]string{"tag1": "value1", "tag2": "value2"}))

This will add the tags tag1=value1 and tag2=value2 to all API requests that support tags in the request body.

Documentation for API Endpoints

All URIs are relative to http://csp.infoblox.com/host-activation/v1

Class Method HTTP request Description
UICSRAPI Approve Post /csr/{activation_code}/approve Marks the certificate signing request as approved. The host activation service will then continue with the signing process.
UICSRAPI Deny Post /csr/{activation_code}/deny Marks the certificate signing request as denied.
UICSRAPI List Get /csr User can list the certificate signing requests for an account.
UICSRAPI Revoke Post /cert/{cert_serial}/revoke Invalidates a certificate by adding it to a certificate revocation list.
UICSRAPI Revoke2 Post /host/{ophid}/revoke Invalidates a certificate by adding it to a certificate revocation list.
UIJoinTokenAPI Create Post /jointoken User can create a join token. Join token is random character string which is used for instant validation of new hosts.
UIJoinTokenAPI Delete Delete /jointoken/{id} User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever.
UIJoinTokenAPI DeleteSet Delete /jointokens User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever.
UIJoinTokenAPI List Get /jointoken User can list the join tokens for an account.
UIJoinTokenAPI Read Get /jointoken/{id} User can get the join token providing its resource id in the parameter.
UIJoinTokenAPI Update Patch /jointoken/{id} User can modify the tags or expiration time of a join token.

Documentation For Models

Documentation for Utility Methods

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedCSRStateEnumValues = []CSRState{
	"UNKNOWN",
	"NEW",
	"VERIFIED",
	"DENIED",
	"TIMEOUT",
	"RENEWED",
}

All allowed values of CSRState enum

View Source
var AllowedJoinTokenJoinTokenStatusEnumValues = []JoinTokenJoinTokenStatus{
	"UNKNOWN",
	"ACTIVE",
	"EXPIRED",
	"REVOKED",
}

All allowed values of JoinTokenJoinTokenStatus enum

Functions

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 {
	*internal.APIClient

	// API Services
	UICSRAPI       UICSRAPI
	UIJoinTokenAPI UIJoinTokenAPI
}

APIClient manages communication with the Host Activation Service v1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(options ...option.ClientOption) *APIClient

NewAPIClient creates a new API client. The client can be configured with a variadic option. The following options are available: - WithClientName(string) sets the name of the client using the SDK. - WithCSPUrl(string) sets the URL for BloxOne Cloud Services Portal. - WithAPIKey(string) sets the APIKey for accessing the BloxOne API. - WithHTTPClient(*http.Client) sets the HTTPClient to use for the SDK. - WithDefaultTags(map[string]string) sets the tags the client can set by default for objects that has tags support. - WithDebug() sets the debug mode.

type ApiPageInfo

type ApiPageInfo struct {
	// The service may optionally include the offset of the next page of resources. A null value indicates no more pages.
	Offset *int32 `json:"offset,omitempty"`
	// The service response should contain a string to indicate the next page of resources. A null value indicates no more pages.
	PageToken *string `json:"page_token,omitempty"`
	// The service may optionally include the total number of resources being paged.
	Size                 *int32 `json:"size,omitempty"`
	AdditionalProperties map[string]interface{}
}

ApiPageInfo PageInfo represents both server-driven and client-driven pagination response. Server-driven pagination is a model in which the server returns some amount of data along with an token indicating there is more data and where subsequent queries can get the next page of data. Client-driven pagination is a model in which rows are addressable by offset and page size (limit).

func NewApiPageInfo

func NewApiPageInfo() *ApiPageInfo

NewApiPageInfo instantiates a new ApiPageInfo 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 NewApiPageInfoWithDefaults

func NewApiPageInfoWithDefaults() *ApiPageInfo

NewApiPageInfoWithDefaults instantiates a new ApiPageInfo 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 (*ApiPageInfo) GetOffset

func (o *ApiPageInfo) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*ApiPageInfo) GetOffsetOk

func (o *ApiPageInfo) GetOffsetOk() (*int32, bool)

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

func (*ApiPageInfo) GetPageToken

func (o *ApiPageInfo) GetPageToken() string

GetPageToken returns the PageToken field value if set, zero value otherwise.

func (*ApiPageInfo) GetPageTokenOk

func (o *ApiPageInfo) GetPageTokenOk() (*string, bool)

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

func (*ApiPageInfo) GetSize

func (o *ApiPageInfo) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*ApiPageInfo) GetSizeOk

func (o *ApiPageInfo) GetSizeOk() (*int32, bool)

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

func (*ApiPageInfo) HasOffset

func (o *ApiPageInfo) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*ApiPageInfo) HasPageToken

func (o *ApiPageInfo) HasPageToken() bool

HasPageToken returns a boolean if a field has been set.

func (*ApiPageInfo) HasSize

func (o *ApiPageInfo) HasSize() bool

HasSize returns a boolean if a field has been set.

func (ApiPageInfo) MarshalJSON

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

func (*ApiPageInfo) SetOffset

func (o *ApiPageInfo) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*ApiPageInfo) SetPageToken

func (o *ApiPageInfo) SetPageToken(v string)

SetPageToken gets a reference to the given string and assigns it to the PageToken field.

func (*ApiPageInfo) SetSize

func (o *ApiPageInfo) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (ApiPageInfo) ToMap

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

func (*ApiPageInfo) UnmarshalJSON

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

type ApproveCSRRequest

type ApproveCSRRequest struct {
	ActivationCode       *string `json:"activation_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

ApproveCSRRequest struct for ApproveCSRRequest

func NewApproveCSRRequest

func NewApproveCSRRequest() *ApproveCSRRequest

NewApproveCSRRequest instantiates a new ApproveCSRRequest 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 NewApproveCSRRequestWithDefaults

func NewApproveCSRRequestWithDefaults() *ApproveCSRRequest

NewApproveCSRRequestWithDefaults instantiates a new ApproveCSRRequest 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 (*ApproveCSRRequest) GetActivationCode

func (o *ApproveCSRRequest) GetActivationCode() string

GetActivationCode returns the ActivationCode field value if set, zero value otherwise.

func (*ApproveCSRRequest) GetActivationCodeOk

func (o *ApproveCSRRequest) GetActivationCodeOk() (*string, bool)

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

func (*ApproveCSRRequest) HasActivationCode

func (o *ApproveCSRRequest) HasActivationCode() bool

HasActivationCode returns a boolean if a field has been set.

func (ApproveCSRRequest) MarshalJSON

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

func (*ApproveCSRRequest) SetActivationCode

func (o *ApproveCSRRequest) SetActivationCode(v string)

SetActivationCode gets a reference to the given string and assigns it to the ActivationCode field.

func (ApproveCSRRequest) ToMap

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

func (*ApproveCSRRequest) UnmarshalJSON

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

type CSR

type CSR struct {
	ActivationCode *string         `json:"activation_code,omitempty"`
	ClientIp       *TypesInetValue `json:"client_ip,omitempty"`
	CreatedAt      *time.Time      `json:"created_at,omitempty"`
	Csr            *string         `json:"csr,omitempty"`
	HostSerial     *string         `json:"host_serial,omitempty"`
	// The resource identifier.
	Id                   *string         `json:"id,omitempty"`
	JoinToken            *JoinToken      `json:"join_token,omitempty"`
	Ophid                *string         `json:"ophid,omitempty"`
	Signature            *string         `json:"signature,omitempty"`
	SrcIp                *TypesInetValue `json:"src_ip,omitempty"`
	State                *CSRState       `json:"state,omitempty"`
	UpdatedAt            *time.Time      `json:"updated_at,omitempty"`
	AdditionalProperties map[string]interface{}
}

CSR Represents a certificate signing request from an on-prem host.

func NewCSR

func NewCSR() *CSR

NewCSR instantiates a new CSR 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 NewCSRWithDefaults

func NewCSRWithDefaults() *CSR

NewCSRWithDefaults instantiates a new CSR 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 (*CSR) GetActivationCode

func (o *CSR) GetActivationCode() string

GetActivationCode returns the ActivationCode field value if set, zero value otherwise.

func (*CSR) GetActivationCodeOk

func (o *CSR) GetActivationCodeOk() (*string, bool)

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

func (*CSR) GetClientIp

func (o *CSR) GetClientIp() TypesInetValue

GetClientIp returns the ClientIp field value if set, zero value otherwise.

func (*CSR) GetClientIpOk

func (o *CSR) GetClientIpOk() (*TypesInetValue, bool)

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

func (*CSR) GetCreatedAt

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

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

func (*CSR) GetCreatedAtOk

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

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

func (*CSR) GetCsr

func (o *CSR) GetCsr() string

GetCsr returns the Csr field value if set, zero value otherwise.

func (*CSR) GetCsrOk

func (o *CSR) GetCsrOk() (*string, bool)

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

func (*CSR) GetHostSerial

func (o *CSR) GetHostSerial() string

GetHostSerial returns the HostSerial field value if set, zero value otherwise.

func (*CSR) GetHostSerialOk

func (o *CSR) GetHostSerialOk() (*string, bool)

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

func (*CSR) GetId

func (o *CSR) GetId() string

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

func (*CSR) GetIdOk

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

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

func (*CSR) GetJoinToken

func (o *CSR) GetJoinToken() JoinToken

GetJoinToken returns the JoinToken field value if set, zero value otherwise.

func (*CSR) GetJoinTokenOk

func (o *CSR) GetJoinTokenOk() (*JoinToken, bool)

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

func (*CSR) GetOphid

func (o *CSR) GetOphid() string

GetOphid returns the Ophid field value if set, zero value otherwise.

func (*CSR) GetOphidOk

func (o *CSR) GetOphidOk() (*string, bool)

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

func (*CSR) GetSignature

func (o *CSR) GetSignature() string

GetSignature returns the Signature field value if set, zero value otherwise.

func (*CSR) GetSignatureOk

func (o *CSR) GetSignatureOk() (*string, bool)

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

func (*CSR) GetSrcIp

func (o *CSR) GetSrcIp() TypesInetValue

GetSrcIp returns the SrcIp field value if set, zero value otherwise.

func (*CSR) GetSrcIpOk

func (o *CSR) GetSrcIpOk() (*TypesInetValue, bool)

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

func (*CSR) GetState

func (o *CSR) GetState() CSRState

GetState returns the State field value if set, zero value otherwise.

func (*CSR) GetStateOk

func (o *CSR) GetStateOk() (*CSRState, bool)

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

func (*CSR) GetUpdatedAt

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

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

func (*CSR) GetUpdatedAtOk

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

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

func (*CSR) HasActivationCode

func (o *CSR) HasActivationCode() bool

HasActivationCode returns a boolean if a field has been set.

func (*CSR) HasClientIp

func (o *CSR) HasClientIp() bool

HasClientIp returns a boolean if a field has been set.

func (*CSR) HasCreatedAt

func (o *CSR) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*CSR) HasCsr

func (o *CSR) HasCsr() bool

HasCsr returns a boolean if a field has been set.

func (*CSR) HasHostSerial

func (o *CSR) HasHostSerial() bool

HasHostSerial returns a boolean if a field has been set.

func (*CSR) HasId

func (o *CSR) HasId() bool

HasId returns a boolean if a field has been set.

func (*CSR) HasJoinToken

func (o *CSR) HasJoinToken() bool

HasJoinToken returns a boolean if a field has been set.

func (*CSR) HasOphid

func (o *CSR) HasOphid() bool

HasOphid returns a boolean if a field has been set.

func (*CSR) HasSignature

func (o *CSR) HasSignature() bool

HasSignature returns a boolean if a field has been set.

func (*CSR) HasSrcIp

func (o *CSR) HasSrcIp() bool

HasSrcIp returns a boolean if a field has been set.

func (*CSR) HasState

func (o *CSR) HasState() bool

HasState returns a boolean if a field has been set.

func (*CSR) HasUpdatedAt

func (o *CSR) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (CSR) MarshalJSON

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

func (*CSR) SetActivationCode

func (o *CSR) SetActivationCode(v string)

SetActivationCode gets a reference to the given string and assigns it to the ActivationCode field.

func (*CSR) SetClientIp

func (o *CSR) SetClientIp(v TypesInetValue)

SetClientIp gets a reference to the given TypesInetValue and assigns it to the ClientIp field.

func (*CSR) SetCreatedAt

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

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

func (*CSR) SetCsr

func (o *CSR) SetCsr(v string)

SetCsr gets a reference to the given string and assigns it to the Csr field.

func (*CSR) SetHostSerial

func (o *CSR) SetHostSerial(v string)

SetHostSerial gets a reference to the given string and assigns it to the HostSerial field.

func (*CSR) SetId

func (o *CSR) SetId(v string)

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

func (*CSR) SetJoinToken

func (o *CSR) SetJoinToken(v JoinToken)

SetJoinToken gets a reference to the given JoinToken and assigns it to the JoinToken field.

func (*CSR) SetOphid

func (o *CSR) SetOphid(v string)

SetOphid gets a reference to the given string and assigns it to the Ophid field.

func (*CSR) SetSignature

func (o *CSR) SetSignature(v string)

SetSignature gets a reference to the given string and assigns it to the Signature field.

func (*CSR) SetSrcIp

func (o *CSR) SetSrcIp(v TypesInetValue)

SetSrcIp gets a reference to the given TypesInetValue and assigns it to the SrcIp field.

func (*CSR) SetState

func (o *CSR) SetState(v CSRState)

SetState gets a reference to the given CSRState and assigns it to the State field.

func (*CSR) SetUpdatedAt

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

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

func (CSR) ToMap

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

func (*CSR) UnmarshalJSON

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

type CSRState

type CSRState string

CSRState the model 'CSRState'

const (
	CSRSTATE_UNKNOWN  CSRState = "UNKNOWN"
	CSRSTATE_NEW      CSRState = "NEW"
	CSRSTATE_VERIFIED CSRState = "VERIFIED"
	CSRSTATE_DENIED   CSRState = "DENIED"
	CSRSTATE_TIMEOUT  CSRState = "TIMEOUT"
	CSRSTATE_RENEWED  CSRState = "RENEWED"
)

List of hostactivationCSRState

func NewCSRStateFromValue

func NewCSRStateFromValue(v string) (*CSRState, error)

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

func (CSRState) IsValid

func (v CSRState) IsValid() bool

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

func (CSRState) Ptr

func (v CSRState) Ptr() *CSRState

Ptr returns reference to hostactivationCSRState value

func (*CSRState) UnmarshalJSON

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

type CreateJoinTokenResponse

type CreateJoinTokenResponse struct {
	JoinToken            *string    `json:"join_token,omitempty"`
	Result               *JoinToken `json:"result,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateJoinTokenResponse struct for CreateJoinTokenResponse

func NewCreateJoinTokenResponse

func NewCreateJoinTokenResponse() *CreateJoinTokenResponse

NewCreateJoinTokenResponse instantiates a new CreateJoinTokenResponse 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 NewCreateJoinTokenResponseWithDefaults

func NewCreateJoinTokenResponseWithDefaults() *CreateJoinTokenResponse

NewCreateJoinTokenResponseWithDefaults instantiates a new CreateJoinTokenResponse 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 (*CreateJoinTokenResponse) GetJoinToken

func (o *CreateJoinTokenResponse) GetJoinToken() string

GetJoinToken returns the JoinToken field value if set, zero value otherwise.

func (*CreateJoinTokenResponse) GetJoinTokenOk

func (o *CreateJoinTokenResponse) GetJoinTokenOk() (*string, bool)

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

func (*CreateJoinTokenResponse) GetResult

func (o *CreateJoinTokenResponse) GetResult() JoinToken

GetResult returns the Result field value if set, zero value otherwise.

func (*CreateJoinTokenResponse) GetResultOk

func (o *CreateJoinTokenResponse) GetResultOk() (*JoinToken, bool)

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

func (*CreateJoinTokenResponse) HasJoinToken

func (o *CreateJoinTokenResponse) HasJoinToken() bool

HasJoinToken returns a boolean if a field has been set.

func (*CreateJoinTokenResponse) HasResult

func (o *CreateJoinTokenResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (CreateJoinTokenResponse) MarshalJSON

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

func (*CreateJoinTokenResponse) SetJoinToken

func (o *CreateJoinTokenResponse) SetJoinToken(v string)

SetJoinToken gets a reference to the given string and assigns it to the JoinToken field.

func (*CreateJoinTokenResponse) SetResult

func (o *CreateJoinTokenResponse) SetResult(v JoinToken)

SetResult gets a reference to the given JoinToken and assigns it to the Result field.

func (CreateJoinTokenResponse) ToMap

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

func (*CreateJoinTokenResponse) UnmarshalJSON

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

type DeleteJoinTokensRequest

type DeleteJoinTokensRequest struct {
	// The resource identifier.
	Ids                  []string `json:"ids,omitempty"`
	AdditionalProperties map[string]interface{}
}

DeleteJoinTokensRequest struct for DeleteJoinTokensRequest

func NewDeleteJoinTokensRequest

func NewDeleteJoinTokensRequest() *DeleteJoinTokensRequest

NewDeleteJoinTokensRequest instantiates a new DeleteJoinTokensRequest 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 NewDeleteJoinTokensRequestWithDefaults

func NewDeleteJoinTokensRequestWithDefaults() *DeleteJoinTokensRequest

NewDeleteJoinTokensRequestWithDefaults instantiates a new DeleteJoinTokensRequest 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 (*DeleteJoinTokensRequest) GetIds

func (o *DeleteJoinTokensRequest) GetIds() []string

GetIds returns the Ids field value if set, zero value otherwise.

func (*DeleteJoinTokensRequest) GetIdsOk

func (o *DeleteJoinTokensRequest) GetIdsOk() ([]string, bool)

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

func (*DeleteJoinTokensRequest) HasIds

func (o *DeleteJoinTokensRequest) HasIds() bool

HasIds returns a boolean if a field has been set.

func (DeleteJoinTokensRequest) MarshalJSON

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

func (*DeleteJoinTokensRequest) SetIds

func (o *DeleteJoinTokensRequest) SetIds(v []string)

SetIds gets a reference to the given []string and assigns it to the Ids field.

func (DeleteJoinTokensRequest) ToMap

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

func (*DeleteJoinTokensRequest) UnmarshalJSON

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

type DenyCSRRequest

type DenyCSRRequest struct {
	ActivationCode       *string `json:"activation_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

DenyCSRRequest struct for DenyCSRRequest

func NewDenyCSRRequest

func NewDenyCSRRequest() *DenyCSRRequest

NewDenyCSRRequest instantiates a new DenyCSRRequest 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 NewDenyCSRRequestWithDefaults

func NewDenyCSRRequestWithDefaults() *DenyCSRRequest

NewDenyCSRRequestWithDefaults instantiates a new DenyCSRRequest 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 (*DenyCSRRequest) GetActivationCode

func (o *DenyCSRRequest) GetActivationCode() string

GetActivationCode returns the ActivationCode field value if set, zero value otherwise.

func (*DenyCSRRequest) GetActivationCodeOk

func (o *DenyCSRRequest) GetActivationCodeOk() (*string, bool)

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

func (*DenyCSRRequest) HasActivationCode

func (o *DenyCSRRequest) HasActivationCode() bool

HasActivationCode returns a boolean if a field has been set.

func (DenyCSRRequest) MarshalJSON

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

func (*DenyCSRRequest) SetActivationCode

func (o *DenyCSRRequest) SetActivationCode(v string)

SetActivationCode gets a reference to the given string and assigns it to the ActivationCode field.

func (DenyCSRRequest) ToMap

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

func (*DenyCSRRequest) UnmarshalJSON

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

type JoinToken

type JoinToken struct {
	DeletedAt   *time.Time `json:"deleted_at,omitempty"`
	Description *string    `json:"description,omitempty"`
	ExpiresAt   *time.Time `json:"expires_at,omitempty"`
	// The resource identifier.
	Id         *string    `json:"id,omitempty"`
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`
	Name       *string    `json:"name,omitempty"`
	// derived field, \"active\" when expires_at and deleted_at are null.
	Status *JoinTokenJoinTokenStatus `json:"status,omitempty"`
	Tags   map[string]interface{}    `json:"tags,omitempty"`
	// first half of the token.
	TokenId              *string `json:"token_id,omitempty"`
	UseCounter           *int64  `json:"use_counter,omitempty"`
	AdditionalProperties map[string]interface{}
}

JoinToken struct for JoinToken

func NewJoinToken

func NewJoinToken() *JoinToken

NewJoinToken instantiates a new JoinToken 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 NewJoinTokenWithDefaults

func NewJoinTokenWithDefaults() *JoinToken

NewJoinTokenWithDefaults instantiates a new JoinToken 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 (*JoinToken) GetDeletedAt

func (o *JoinToken) GetDeletedAt() time.Time

GetDeletedAt returns the DeletedAt field value if set, zero value otherwise.

func (*JoinToken) GetDeletedAtOk

func (o *JoinToken) GetDeletedAtOk() (*time.Time, bool)

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

func (*JoinToken) GetDescription

func (o *JoinToken) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*JoinToken) GetDescriptionOk

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

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

func (*JoinToken) GetExpiresAt

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

GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.

func (*JoinToken) GetExpiresAtOk

func (o *JoinToken) 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.

func (*JoinToken) GetId

func (o *JoinToken) GetId() string

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

func (*JoinToken) GetIdOk

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

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

func (*JoinToken) GetLastUsedAt

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

GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise.

func (*JoinToken) GetLastUsedAtOk

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

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

func (*JoinToken) GetName

func (o *JoinToken) GetName() string

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

func (*JoinToken) GetNameOk

func (o *JoinToken) 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 (*JoinToken) GetStatus

func (o *JoinToken) GetStatus() JoinTokenJoinTokenStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*JoinToken) GetStatusOk

func (o *JoinToken) GetStatusOk() (*JoinTokenJoinTokenStatus, bool)

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

func (*JoinToken) GetTags

func (o *JoinToken) GetTags() map[string]interface{}

GetTags returns the Tags field value if set, zero value otherwise.

func (*JoinToken) GetTagsOk

func (o *JoinToken) GetTagsOk() (map[string]interface{}, bool)

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

func (*JoinToken) GetTokenId

func (o *JoinToken) GetTokenId() string

GetTokenId returns the TokenId field value if set, zero value otherwise.

func (*JoinToken) GetTokenIdOk

func (o *JoinToken) GetTokenIdOk() (*string, bool)

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

func (*JoinToken) GetUseCounter

func (o *JoinToken) GetUseCounter() int64

GetUseCounter returns the UseCounter field value if set, zero value otherwise.

func (*JoinToken) GetUseCounterOk

func (o *JoinToken) GetUseCounterOk() (*int64, bool)

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

func (*JoinToken) HasDeletedAt

func (o *JoinToken) HasDeletedAt() bool

HasDeletedAt returns a boolean if a field has been set.

func (*JoinToken) HasDescription

func (o *JoinToken) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*JoinToken) HasExpiresAt

func (o *JoinToken) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

func (*JoinToken) HasId

func (o *JoinToken) HasId() bool

HasId returns a boolean if a field has been set.

func (*JoinToken) HasLastUsedAt

func (o *JoinToken) HasLastUsedAt() bool

HasLastUsedAt returns a boolean if a field has been set.

func (*JoinToken) HasName

func (o *JoinToken) HasName() bool

HasName returns a boolean if a field has been set.

func (*JoinToken) HasStatus

func (o *JoinToken) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*JoinToken) HasTags

func (o *JoinToken) HasTags() bool

HasTags returns a boolean if a field has been set.

func (*JoinToken) HasTokenId

func (o *JoinToken) HasTokenId() bool

HasTokenId returns a boolean if a field has been set.

func (*JoinToken) HasUseCounter

func (o *JoinToken) HasUseCounter() bool

HasUseCounter returns a boolean if a field has been set.

func (JoinToken) MarshalJSON

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

func (*JoinToken) SetDeletedAt

func (o *JoinToken) SetDeletedAt(v time.Time)

SetDeletedAt gets a reference to the given time.Time and assigns it to the DeletedAt field.

func (*JoinToken) SetDescription

func (o *JoinToken) SetDescription(v string)

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

func (*JoinToken) SetExpiresAt

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

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

func (*JoinToken) SetId

func (o *JoinToken) SetId(v string)

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

func (*JoinToken) SetLastUsedAt

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

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

func (*JoinToken) SetName

func (o *JoinToken) SetName(v string)

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

func (*JoinToken) SetStatus

func (o *JoinToken) SetStatus(v JoinTokenJoinTokenStatus)

SetStatus gets a reference to the given JoinTokenJoinTokenStatus and assigns it to the Status field.

func (*JoinToken) SetTags

func (o *JoinToken) SetTags(v map[string]interface{})

SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field.

func (*JoinToken) SetTokenId

func (o *JoinToken) SetTokenId(v string)

SetTokenId gets a reference to the given string and assigns it to the TokenId field.

func (*JoinToken) SetUseCounter

func (o *JoinToken) SetUseCounter(v int64)

SetUseCounter gets a reference to the given int64 and assigns it to the UseCounter field.

func (JoinToken) ToMap

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

func (*JoinToken) UnmarshalJSON

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

type JoinTokenJoinTokenStatus

type JoinTokenJoinTokenStatus string

JoinTokenJoinTokenStatus the model 'JoinTokenJoinTokenStatus'

const (
	JOINTOKENJOINTOKENSTATUS_UNKNOWN JoinTokenJoinTokenStatus = "UNKNOWN"
	JOINTOKENJOINTOKENSTATUS_ACTIVE  JoinTokenJoinTokenStatus = "ACTIVE"
	JOINTOKENJOINTOKENSTATUS_EXPIRED JoinTokenJoinTokenStatus = "EXPIRED"
	JOINTOKENJOINTOKENSTATUS_REVOKED JoinTokenJoinTokenStatus = "REVOKED"
)

List of JoinTokenJoinTokenStatus

func NewJoinTokenJoinTokenStatusFromValue

func NewJoinTokenJoinTokenStatusFromValue(v string) (*JoinTokenJoinTokenStatus, error)

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

func (JoinTokenJoinTokenStatus) IsValid

func (v JoinTokenJoinTokenStatus) IsValid() bool

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

func (JoinTokenJoinTokenStatus) Ptr

Ptr returns reference to JoinTokenJoinTokenStatus value

func (*JoinTokenJoinTokenStatus) UnmarshalJSON

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

type ListCSRsResponse

type ListCSRsResponse struct {
	Page                 *ApiPageInfo `json:"page,omitempty"`
	Results              []CSR        `json:"results,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListCSRsResponse struct for ListCSRsResponse

func NewListCSRsResponse

func NewListCSRsResponse() *ListCSRsResponse

NewListCSRsResponse instantiates a new ListCSRsResponse 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 NewListCSRsResponseWithDefaults

func NewListCSRsResponseWithDefaults() *ListCSRsResponse

NewListCSRsResponseWithDefaults instantiates a new ListCSRsResponse 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 (*ListCSRsResponse) GetPage

func (o *ListCSRsResponse) GetPage() ApiPageInfo

GetPage returns the Page field value if set, zero value otherwise.

func (*ListCSRsResponse) GetPageOk

func (o *ListCSRsResponse) GetPageOk() (*ApiPageInfo, bool)

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

func (*ListCSRsResponse) GetResults

func (o *ListCSRsResponse) GetResults() []CSR

GetResults returns the Results field value if set, zero value otherwise.

func (*ListCSRsResponse) GetResultsOk

func (o *ListCSRsResponse) GetResultsOk() ([]CSR, bool)

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

func (*ListCSRsResponse) HasPage

func (o *ListCSRsResponse) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*ListCSRsResponse) HasResults

func (o *ListCSRsResponse) HasResults() bool

HasResults returns a boolean if a field has been set.

func (ListCSRsResponse) MarshalJSON

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

func (*ListCSRsResponse) SetPage

func (o *ListCSRsResponse) SetPage(v ApiPageInfo)

SetPage gets a reference to the given ApiPageInfo and assigns it to the Page field.

func (*ListCSRsResponse) SetResults

func (o *ListCSRsResponse) SetResults(v []CSR)

SetResults gets a reference to the given []CSR and assigns it to the Results field.

func (ListCSRsResponse) ToMap

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

func (*ListCSRsResponse) UnmarshalJSON

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

type ListJoinTokenResponse

type ListJoinTokenResponse struct {
	Page                 *ApiPageInfo `json:"page,omitempty"`
	Results              []JoinToken  `json:"results,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListJoinTokenResponse struct for ListJoinTokenResponse

func NewListJoinTokenResponse

func NewListJoinTokenResponse() *ListJoinTokenResponse

NewListJoinTokenResponse instantiates a new ListJoinTokenResponse 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 NewListJoinTokenResponseWithDefaults

func NewListJoinTokenResponseWithDefaults() *ListJoinTokenResponse

NewListJoinTokenResponseWithDefaults instantiates a new ListJoinTokenResponse 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 (*ListJoinTokenResponse) GetPage

func (o *ListJoinTokenResponse) GetPage() ApiPageInfo

GetPage returns the Page field value if set, zero value otherwise.

func (*ListJoinTokenResponse) GetPageOk

func (o *ListJoinTokenResponse) GetPageOk() (*ApiPageInfo, bool)

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

func (*ListJoinTokenResponse) GetResults

func (o *ListJoinTokenResponse) GetResults() []JoinToken

GetResults returns the Results field value if set, zero value otherwise.

func (*ListJoinTokenResponse) GetResultsOk

func (o *ListJoinTokenResponse) GetResultsOk() ([]JoinToken, bool)

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

func (*ListJoinTokenResponse) HasPage

func (o *ListJoinTokenResponse) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*ListJoinTokenResponse) HasResults

func (o *ListJoinTokenResponse) HasResults() bool

HasResults returns a boolean if a field has been set.

func (ListJoinTokenResponse) MarshalJSON

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

func (*ListJoinTokenResponse) SetPage

func (o *ListJoinTokenResponse) SetPage(v ApiPageInfo)

SetPage gets a reference to the given ApiPageInfo and assigns it to the Page field.

func (*ListJoinTokenResponse) SetResults

func (o *ListJoinTokenResponse) SetResults(v []JoinToken)

SetResults gets a reference to the given []JoinToken and assigns it to the Results field.

func (ListJoinTokenResponse) ToMap

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

func (*ListJoinTokenResponse) UnmarshalJSON

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

type MappedNullable

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

type NullableApiPageInfo

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

func NewNullableApiPageInfo

func NewNullableApiPageInfo(val *ApiPageInfo) *NullableApiPageInfo

func (NullableApiPageInfo) Get

func (NullableApiPageInfo) IsSet

func (v NullableApiPageInfo) IsSet() bool

func (NullableApiPageInfo) MarshalJSON

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

func (*NullableApiPageInfo) Set

func (v *NullableApiPageInfo) Set(val *ApiPageInfo)

func (*NullableApiPageInfo) UnmarshalJSON

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

func (*NullableApiPageInfo) Unset

func (v *NullableApiPageInfo) Unset()

type NullableApproveCSRRequest

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

func NewNullableApproveCSRRequest

func NewNullableApproveCSRRequest(val *ApproveCSRRequest) *NullableApproveCSRRequest

func (NullableApproveCSRRequest) Get

func (NullableApproveCSRRequest) IsSet

func (v NullableApproveCSRRequest) IsSet() bool

func (NullableApproveCSRRequest) MarshalJSON

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

func (*NullableApproveCSRRequest) Set

func (*NullableApproveCSRRequest) UnmarshalJSON

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

func (*NullableApproveCSRRequest) Unset

func (v *NullableApproveCSRRequest) Unset()

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

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

func (*NullableBool) UnmarshalJSON

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

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCSR

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

func NewNullableCSR

func NewNullableCSR(val *CSR) *NullableCSR

func (NullableCSR) Get

func (v NullableCSR) Get() *CSR

func (NullableCSR) IsSet

func (v NullableCSR) IsSet() bool

func (NullableCSR) MarshalJSON

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

func (*NullableCSR) Set

func (v *NullableCSR) Set(val *CSR)

func (*NullableCSR) UnmarshalJSON

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

func (*NullableCSR) Unset

func (v *NullableCSR) Unset()

type NullableCSRState

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

func NewNullableCSRState

func NewNullableCSRState(val *CSRState) *NullableCSRState

func (NullableCSRState) Get

func (v NullableCSRState) Get() *CSRState

func (NullableCSRState) IsSet

func (v NullableCSRState) IsSet() bool

func (NullableCSRState) MarshalJSON

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

func (*NullableCSRState) Set

func (v *NullableCSRState) Set(val *CSRState)

func (*NullableCSRState) UnmarshalJSON

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

func (*NullableCSRState) Unset

func (v *NullableCSRState) Unset()

type NullableCreateJoinTokenResponse

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

func (NullableCreateJoinTokenResponse) Get

func (NullableCreateJoinTokenResponse) IsSet

func (NullableCreateJoinTokenResponse) MarshalJSON

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

func (*NullableCreateJoinTokenResponse) Set

func (*NullableCreateJoinTokenResponse) UnmarshalJSON

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

func (*NullableCreateJoinTokenResponse) Unset

type NullableDeleteJoinTokensRequest

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

func (NullableDeleteJoinTokensRequest) Get

func (NullableDeleteJoinTokensRequest) IsSet

func (NullableDeleteJoinTokensRequest) MarshalJSON

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

func (*NullableDeleteJoinTokensRequest) Set

func (*NullableDeleteJoinTokensRequest) UnmarshalJSON

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

func (*NullableDeleteJoinTokensRequest) Unset

type NullableDenyCSRRequest

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

func NewNullableDenyCSRRequest

func NewNullableDenyCSRRequest(val *DenyCSRRequest) *NullableDenyCSRRequest

func (NullableDenyCSRRequest) Get

func (NullableDenyCSRRequest) IsSet

func (v NullableDenyCSRRequest) IsSet() bool

func (NullableDenyCSRRequest) MarshalJSON

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

func (*NullableDenyCSRRequest) Set

func (*NullableDenyCSRRequest) UnmarshalJSON

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

func (*NullableDenyCSRRequest) Unset

func (v *NullableDenyCSRRequest) 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 NullableJoinToken

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

func NewNullableJoinToken

func NewNullableJoinToken(val *JoinToken) *NullableJoinToken

func (NullableJoinToken) Get

func (v NullableJoinToken) Get() *JoinToken

func (NullableJoinToken) IsSet

func (v NullableJoinToken) IsSet() bool

func (NullableJoinToken) MarshalJSON

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

func (*NullableJoinToken) Set

func (v *NullableJoinToken) Set(val *JoinToken)

func (*NullableJoinToken) UnmarshalJSON

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

func (*NullableJoinToken) Unset

func (v *NullableJoinToken) Unset()

type NullableJoinTokenJoinTokenStatus

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

func (NullableJoinTokenJoinTokenStatus) Get

func (NullableJoinTokenJoinTokenStatus) IsSet

func (NullableJoinTokenJoinTokenStatus) MarshalJSON

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

func (*NullableJoinTokenJoinTokenStatus) Set

func (*NullableJoinTokenJoinTokenStatus) UnmarshalJSON

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

func (*NullableJoinTokenJoinTokenStatus) Unset

type NullableListCSRsResponse

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

func NewNullableListCSRsResponse

func NewNullableListCSRsResponse(val *ListCSRsResponse) *NullableListCSRsResponse

func (NullableListCSRsResponse) Get

func (NullableListCSRsResponse) IsSet

func (v NullableListCSRsResponse) IsSet() bool

func (NullableListCSRsResponse) MarshalJSON

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

func (*NullableListCSRsResponse) Set

func (*NullableListCSRsResponse) UnmarshalJSON

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

func (*NullableListCSRsResponse) Unset

func (v *NullableListCSRsResponse) Unset()

type NullableListJoinTokenResponse

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

func (NullableListJoinTokenResponse) Get

func (NullableListJoinTokenResponse) IsSet

func (NullableListJoinTokenResponse) MarshalJSON

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

func (*NullableListJoinTokenResponse) Set

func (*NullableListJoinTokenResponse) UnmarshalJSON

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

func (*NullableListJoinTokenResponse) Unset

func (v *NullableListJoinTokenResponse) Unset()

type NullableReadJoinTokenResponse

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

func (NullableReadJoinTokenResponse) Get

func (NullableReadJoinTokenResponse) IsSet

func (NullableReadJoinTokenResponse) MarshalJSON

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

func (*NullableReadJoinTokenResponse) Set

func (*NullableReadJoinTokenResponse) UnmarshalJSON

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

func (*NullableReadJoinTokenResponse) Unset

func (v *NullableReadJoinTokenResponse) Unset()

type NullableRevokeCertRequest

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

func NewNullableRevokeCertRequest

func NewNullableRevokeCertRequest(val *RevokeCertRequest) *NullableRevokeCertRequest

func (NullableRevokeCertRequest) Get

func (NullableRevokeCertRequest) IsSet

func (v NullableRevokeCertRequest) IsSet() bool

func (NullableRevokeCertRequest) MarshalJSON

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

func (*NullableRevokeCertRequest) Set

func (*NullableRevokeCertRequest) UnmarshalJSON

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

func (*NullableRevokeCertRequest) Unset

func (v *NullableRevokeCertRequest) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

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

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

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

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

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

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTypesInetValue

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

func NewNullableTypesInetValue

func NewNullableTypesInetValue(val *TypesInetValue) *NullableTypesInetValue

func (NullableTypesInetValue) Get

func (NullableTypesInetValue) IsSet

func (v NullableTypesInetValue) IsSet() bool

func (NullableTypesInetValue) MarshalJSON

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

func (*NullableTypesInetValue) Set

func (*NullableTypesInetValue) UnmarshalJSON

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

func (*NullableTypesInetValue) Unset

func (v *NullableTypesInetValue) Unset()

type NullableTypesJSONValue

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

func NewNullableTypesJSONValue

func NewNullableTypesJSONValue(val *TypesJSONValue) *NullableTypesJSONValue

func (NullableTypesJSONValue) Get

func (NullableTypesJSONValue) IsSet

func (v NullableTypesJSONValue) IsSet() bool

func (NullableTypesJSONValue) MarshalJSON

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

func (*NullableTypesJSONValue) Set

func (*NullableTypesJSONValue) UnmarshalJSON

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

func (*NullableTypesJSONValue) Unset

func (v *NullableTypesJSONValue) Unset()

type NullableUpdateJoinTokenResponse

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

func (NullableUpdateJoinTokenResponse) Get

func (NullableUpdateJoinTokenResponse) IsSet

func (NullableUpdateJoinTokenResponse) MarshalJSON

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

func (*NullableUpdateJoinTokenResponse) Set

func (*NullableUpdateJoinTokenResponse) UnmarshalJSON

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

func (*NullableUpdateJoinTokenResponse) Unset

type ReadJoinTokenResponse

type ReadJoinTokenResponse struct {
	Result               *JoinToken `json:"result,omitempty"`
	AdditionalProperties map[string]interface{}
}

ReadJoinTokenResponse struct for ReadJoinTokenResponse

func NewReadJoinTokenResponse

func NewReadJoinTokenResponse() *ReadJoinTokenResponse

NewReadJoinTokenResponse instantiates a new ReadJoinTokenResponse 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 NewReadJoinTokenResponseWithDefaults

func NewReadJoinTokenResponseWithDefaults() *ReadJoinTokenResponse

NewReadJoinTokenResponseWithDefaults instantiates a new ReadJoinTokenResponse 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 (*ReadJoinTokenResponse) GetResult

func (o *ReadJoinTokenResponse) GetResult() JoinToken

GetResult returns the Result field value if set, zero value otherwise.

func (*ReadJoinTokenResponse) GetResultOk

func (o *ReadJoinTokenResponse) GetResultOk() (*JoinToken, bool)

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

func (*ReadJoinTokenResponse) HasResult

func (o *ReadJoinTokenResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (ReadJoinTokenResponse) MarshalJSON

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

func (*ReadJoinTokenResponse) SetResult

func (o *ReadJoinTokenResponse) SetResult(v JoinToken)

SetResult gets a reference to the given JoinToken and assigns it to the Result field.

func (ReadJoinTokenResponse) ToMap

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

func (*ReadJoinTokenResponse) UnmarshalJSON

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

type RevokeCertRequest

type RevokeCertRequest struct {
	CertSerial *string `json:"cert_serial,omitempty"`
	// On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) .
	Ophid                *string `json:"ophid,omitempty"`
	RevokeReason         *string `json:"revoke_reason,omitempty"`
	AdditionalProperties map[string]interface{}
}

RevokeCertRequest struct for RevokeCertRequest

func NewRevokeCertRequest

func NewRevokeCertRequest() *RevokeCertRequest

NewRevokeCertRequest instantiates a new RevokeCertRequest 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 NewRevokeCertRequestWithDefaults

func NewRevokeCertRequestWithDefaults() *RevokeCertRequest

NewRevokeCertRequestWithDefaults instantiates a new RevokeCertRequest 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 (*RevokeCertRequest) GetCertSerial

func (o *RevokeCertRequest) GetCertSerial() string

GetCertSerial returns the CertSerial field value if set, zero value otherwise.

func (*RevokeCertRequest) GetCertSerialOk

func (o *RevokeCertRequest) GetCertSerialOk() (*string, bool)

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

func (*RevokeCertRequest) GetOphid

func (o *RevokeCertRequest) GetOphid() string

GetOphid returns the Ophid field value if set, zero value otherwise.

func (*RevokeCertRequest) GetOphidOk

func (o *RevokeCertRequest) GetOphidOk() (*string, bool)

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

func (*RevokeCertRequest) GetRevokeReason

func (o *RevokeCertRequest) GetRevokeReason() string

GetRevokeReason returns the RevokeReason field value if set, zero value otherwise.

func (*RevokeCertRequest) GetRevokeReasonOk

func (o *RevokeCertRequest) GetRevokeReasonOk() (*string, bool)

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

func (*RevokeCertRequest) HasCertSerial

func (o *RevokeCertRequest) HasCertSerial() bool

HasCertSerial returns a boolean if a field has been set.

func (*RevokeCertRequest) HasOphid

func (o *RevokeCertRequest) HasOphid() bool

HasOphid returns a boolean if a field has been set.

func (*RevokeCertRequest) HasRevokeReason

func (o *RevokeCertRequest) HasRevokeReason() bool

HasRevokeReason returns a boolean if a field has been set.

func (RevokeCertRequest) MarshalJSON

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

func (*RevokeCertRequest) SetCertSerial

func (o *RevokeCertRequest) SetCertSerial(v string)

SetCertSerial gets a reference to the given string and assigns it to the CertSerial field.

func (*RevokeCertRequest) SetOphid

func (o *RevokeCertRequest) SetOphid(v string)

SetOphid gets a reference to the given string and assigns it to the Ophid field.

func (*RevokeCertRequest) SetRevokeReason

func (o *RevokeCertRequest) SetRevokeReason(v string)

SetRevokeReason gets a reference to the given string and assigns it to the RevokeReason field.

func (RevokeCertRequest) ToMap

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

func (*RevokeCertRequest) UnmarshalJSON

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

type TypesInetValue

type TypesInetValue struct {
	Value                *string `json:"value,omitempty"`
	AdditionalProperties map[string]interface{}
}

TypesInetValue struct for TypesInetValue

func NewTypesInetValue

func NewTypesInetValue() *TypesInetValue

NewTypesInetValue instantiates a new TypesInetValue 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 NewTypesInetValueWithDefaults

func NewTypesInetValueWithDefaults() *TypesInetValue

NewTypesInetValueWithDefaults instantiates a new TypesInetValue 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 (*TypesInetValue) GetValue

func (o *TypesInetValue) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*TypesInetValue) GetValueOk

func (o *TypesInetValue) GetValueOk() (*string, bool)

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

func (*TypesInetValue) HasValue

func (o *TypesInetValue) HasValue() bool

HasValue returns a boolean if a field has been set.

func (TypesInetValue) MarshalJSON

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

func (*TypesInetValue) SetValue

func (o *TypesInetValue) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (TypesInetValue) ToMap

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

func (*TypesInetValue) UnmarshalJSON

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

type TypesJSONValue

type TypesJSONValue struct {
	Value                *string `json:"value,omitempty"`
	AdditionalProperties map[string]interface{}
}

TypesJSONValue struct for TypesJSONValue

func NewTypesJSONValue

func NewTypesJSONValue() *TypesJSONValue

NewTypesJSONValue instantiates a new TypesJSONValue 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 NewTypesJSONValueWithDefaults

func NewTypesJSONValueWithDefaults() *TypesJSONValue

NewTypesJSONValueWithDefaults instantiates a new TypesJSONValue 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 (*TypesJSONValue) GetValue

func (o *TypesJSONValue) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*TypesJSONValue) GetValueOk

func (o *TypesJSONValue) GetValueOk() (*string, bool)

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

func (*TypesJSONValue) HasValue

func (o *TypesJSONValue) HasValue() bool

HasValue returns a boolean if a field has been set.

func (TypesJSONValue) MarshalJSON

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

func (*TypesJSONValue) SetValue

func (o *TypesJSONValue) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (TypesJSONValue) ToMap

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

func (*TypesJSONValue) UnmarshalJSON

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

type UICSRAPI

type UICSRAPI interface {
	/*
		Approve Marks the certificate signing request as approved. The host activation service will then continue with the signing process.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param activationCode activation code is used by the clients to track the approval of the CSR
		@return UICSRAPIApproveRequest
	*/
	Approve(ctx context.Context, activationCode string) UICSRAPIApproveRequest

	// ApproveExecute executes the request
	//  @return map[string]interface{}
	ApproveExecute(r UICSRAPIApproveRequest) (map[string]interface{}, *http.Response, error)
	/*
		Deny Marks the certificate signing request as denied.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param activationCode activation code is used by the clients to track the approval of the CSR
		@return UICSRAPIDenyRequest
	*/
	Deny(ctx context.Context, activationCode string) UICSRAPIDenyRequest

	// DenyExecute executes the request
	//  @return map[string]interface{}
	DenyExecute(r UICSRAPIDenyRequest) (map[string]interface{}, *http.Response, error)
	/*
		List User can list the certificate signing requests for an account.

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

	// ListExecute executes the request
	//  @return ListCSRsResponse
	ListExecute(r UICSRAPIListRequest) (*ListCSRsResponse, *http.Response, error)
	/*
			Revoke Invalidates a certificate by adding it to a certificate revocation list.

			The user can revoke the cert from the cloud (for example, if in case a host is compromised).
		Validation:
		- one of "cert_serial" or "ophid" should be provided
		- "revoke_reason" is optional

			@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			@param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required
			@return UICSRAPIRevokeRequest
	*/
	Revoke(ctx context.Context, certSerial string) UICSRAPIRevokeRequest

	// RevokeExecute executes the request
	//  @return map[string]interface{}
	RevokeExecute(r UICSRAPIRevokeRequest) (map[string]interface{}, *http.Response, error)
	/*
			Revoke2 Invalidates a certificate by adding it to a certificate revocation list.

			The user can revoke the cert from the cloud (for example, if in case a host is compromised).
		Validation:
		- one of "cert_serial" or "ophid" should be provided
		- "revoke_reason" is optional

			@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			@param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) .
			@return UICSRAPIRevoke2Request
	*/
	Revoke2(ctx context.Context, ophid string) UICSRAPIRevoke2Request

	// Revoke2Execute executes the request
	//  @return map[string]interface{}
	Revoke2Execute(r UICSRAPIRevoke2Request) (map[string]interface{}, *http.Response, error)
}

type UICSRAPIApproveRequest

type UICSRAPIApproveRequest struct {
	ApiService UICSRAPI
	// contains filtered or unexported fields
}

func (UICSRAPIApproveRequest) Body

func (UICSRAPIApproveRequest) Execute

func (r UICSRAPIApproveRequest) Execute() (map[string]interface{}, *http.Response, error)

type UICSRAPIDenyRequest

type UICSRAPIDenyRequest struct {
	ApiService UICSRAPI
	// contains filtered or unexported fields
}

func (UICSRAPIDenyRequest) Body

func (UICSRAPIDenyRequest) Execute

func (r UICSRAPIDenyRequest) Execute() (map[string]interface{}, *http.Response, error)

type UICSRAPIListRequest

type UICSRAPIListRequest struct {
	ApiService UICSRAPI
	// contains filtered or unexported fields
}

func (UICSRAPIListRequest) Execute

func (UICSRAPIListRequest) Filter

A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators |

func (UICSRAPIListRequest) Limit

The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value.

func (UICSRAPIListRequest) Offset

The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'.

func (UICSRAPIListRequest) OrderBy

func (r UICSRAPIListRequest) OrderBy(orderBy string) UICSRAPIListRequest

A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order.

func (UICSRAPIListRequest) PageToken

func (r UICSRAPIListRequest) PageToken(pageToken string) UICSRAPIListRequest

The service-defined string used to identify a page of resources. A null value indicates the first page.

func (UICSRAPIListRequest) Tfilter

func (r UICSRAPIListRequest) Tfilter(tfilter string) UICSRAPIListRequest

This parameter is used for filtering by tags.

func (UICSRAPIListRequest) TorderBy

func (r UICSRAPIListRequest) TorderBy(torderBy string) UICSRAPIListRequest

This parameter is used for sorting by tags.

type UICSRAPIRevoke2Request

type UICSRAPIRevoke2Request struct {
	ApiService UICSRAPI
	// contains filtered or unexported fields
}

func (UICSRAPIRevoke2Request) Body

func (UICSRAPIRevoke2Request) Execute

func (r UICSRAPIRevoke2Request) Execute() (map[string]interface{}, *http.Response, error)

type UICSRAPIRevokeRequest

type UICSRAPIRevokeRequest struct {
	ApiService UICSRAPI
	// contains filtered or unexported fields
}

func (UICSRAPIRevokeRequest) Body

func (UICSRAPIRevokeRequest) Execute

func (r UICSRAPIRevokeRequest) Execute() (map[string]interface{}, *http.Response, error)

type UICSRAPIService

type UICSRAPIService internal.Service

UICSRAPIService UICSRAPI service

func (*UICSRAPIService) Approve

func (a *UICSRAPIService) Approve(ctx context.Context, activationCode string) UICSRAPIApproveRequest

Approve Marks the certificate signing request as approved. The host activation service will then continue with the signing process.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param activationCode activation code is used by the clients to track the approval of the CSR
@return UICSRAPIApproveRequest

func (*UICSRAPIService) ApproveExecute

func (a *UICSRAPIService) ApproveExecute(r UICSRAPIApproveRequest) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

func (*UICSRAPIService) Deny

func (a *UICSRAPIService) Deny(ctx context.Context, activationCode string) UICSRAPIDenyRequest

Deny Marks the certificate signing request as denied.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param activationCode activation code is used by the clients to track the approval of the CSR
@return UICSRAPIDenyRequest

func (*UICSRAPIService) DenyExecute

func (a *UICSRAPIService) DenyExecute(r UICSRAPIDenyRequest) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

func (*UICSRAPIService) List

List User can list the certificate signing requests for an account.

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

func (*UICSRAPIService) ListExecute

Execute executes the request

@return ListCSRsResponse

func (*UICSRAPIService) Revoke

func (a *UICSRAPIService) Revoke(ctx context.Context, certSerial string) UICSRAPIRevokeRequest

Revoke Invalidates a certificate by adding it to a certificate revocation list.

The user can revoke the cert from the cloud (for example, if in case a host is compromised). Validation: - one of "cert_serial" or "ophid" should be provided - "revoke_reason" is optional

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required
@return UICSRAPIRevokeRequest

func (*UICSRAPIService) Revoke2

Revoke2 Invalidates a certificate by adding it to a certificate revocation list.

The user can revoke the cert from the cloud (for example, if in case a host is compromised). Validation: - one of "cert_serial" or "ophid" should be provided - "revoke_reason" is optional

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) .
@return UICSRAPIRevoke2Request

func (*UICSRAPIService) Revoke2Execute

func (a *UICSRAPIService) Revoke2Execute(r UICSRAPIRevoke2Request) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

func (*UICSRAPIService) RevokeExecute

func (a *UICSRAPIService) RevokeExecute(r UICSRAPIRevokeRequest) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

type UIJoinTokenAPI

type UIJoinTokenAPI interface {
	/*
			Create User can create a join token. Join token is random character string which is used for instant validation of new hosts.

			Validation:
		- "name" is required and should be unique.
		- "description" is optioanl.

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

	// CreateExecute executes the request
	//  @return CreateJoinTokenResponse
	CreateExecute(r UIJoinTokenAPICreateRequest) (*CreateJoinTokenResponse, *http.Response, error)
	/*
		Delete User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param id An application specific resource identity of a resource
		@return UIJoinTokenAPIDeleteRequest
	*/
	Delete(ctx context.Context, id string) UIJoinTokenAPIDeleteRequest

	// DeleteExecute executes the request
	DeleteExecute(r UIJoinTokenAPIDeleteRequest) (*http.Response, error)
	/*
		DeleteSet User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever.

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

	// DeleteSetExecute executes the request
	DeleteSetExecute(r UIJoinTokenAPIDeleteSetRequest) (*http.Response, error)
	/*
		List User can list the join tokens for an account.

		Both active and revoked join tokens are listed by default.

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

	// ListExecute executes the request
	//  @return ListJoinTokenResponse
	ListExecute(r UIJoinTokenAPIListRequest) (*ListJoinTokenResponse, *http.Response, error)
	/*
		Read User can get the join token providing its resource id in the parameter.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param id An application specific resource identity of a resource
		@return UIJoinTokenAPIReadRequest
	*/
	Read(ctx context.Context, id string) UIJoinTokenAPIReadRequest

	// ReadExecute executes the request
	//  @return ReadJoinTokenResponse
	ReadExecute(r UIJoinTokenAPIReadRequest) (*ReadJoinTokenResponse, *http.Response, error)
	/*
			Update User can modify the tags or expiration time of a join token.

			Validation: Following fields is needed. Provide what needs to be
		- "expires_at"
		- "tags"

			@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			@param id An application specific resource identity of a resource
			@return UIJoinTokenAPIUpdateRequest
	*/
	Update(ctx context.Context, id string) UIJoinTokenAPIUpdateRequest

	// UpdateExecute executes the request
	//  @return UpdateJoinTokenResponse
	UpdateExecute(r UIJoinTokenAPIUpdateRequest) (*UpdateJoinTokenResponse, *http.Response, error)
}

type UIJoinTokenAPICreateRequest

type UIJoinTokenAPICreateRequest struct {
	ApiService UIJoinTokenAPI
	// contains filtered or unexported fields
}

func (UIJoinTokenAPICreateRequest) Body

func (UIJoinTokenAPICreateRequest) Execute

type UIJoinTokenAPIDeleteRequest

type UIJoinTokenAPIDeleteRequest struct {
	ApiService UIJoinTokenAPI
	// contains filtered or unexported fields
}

func (UIJoinTokenAPIDeleteRequest) Execute

type UIJoinTokenAPIDeleteSetRequest

type UIJoinTokenAPIDeleteSetRequest struct {
	ApiService UIJoinTokenAPI
	// contains filtered or unexported fields
}

func (UIJoinTokenAPIDeleteSetRequest) Body

func (UIJoinTokenAPIDeleteSetRequest) Execute

type UIJoinTokenAPIListRequest

type UIJoinTokenAPIListRequest struct {
	ApiService UIJoinTokenAPI
	// contains filtered or unexported fields
}

func (UIJoinTokenAPIListRequest) Execute

func (UIJoinTokenAPIListRequest) Filter

A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators |

func (UIJoinTokenAPIListRequest) Limit

The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value.

func (UIJoinTokenAPIListRequest) Offset

The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'.

func (UIJoinTokenAPIListRequest) OrderBy

A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order.

func (UIJoinTokenAPIListRequest) PageToken

The service-defined string used to identify a page of resources. A null value indicates the first page.

func (UIJoinTokenAPIListRequest) Tfilter

This parameter is used for filtering by tags.

func (UIJoinTokenAPIListRequest) TorderBy

This parameter is used for sorting by tags.

type UIJoinTokenAPIReadRequest

type UIJoinTokenAPIReadRequest struct {
	ApiService UIJoinTokenAPI
	// contains filtered or unexported fields
}

func (UIJoinTokenAPIReadRequest) Execute

func (UIJoinTokenAPIReadRequest) Fields

A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names.

type UIJoinTokenAPIService

type UIJoinTokenAPIService internal.Service

UIJoinTokenAPIService UIJoinTokenAPI service

func (*UIJoinTokenAPIService) Create

Create User can create a join token. Join token is random character string which is used for instant validation of new hosts.

Validation: - "name" is required and should be unique. - "description" is optioanl.

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

func (*UIJoinTokenAPIService) CreateExecute

Execute executes the request

@return CreateJoinTokenResponse

func (*UIJoinTokenAPIService) Delete

Delete User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id An application specific resource identity of a resource
@return UIJoinTokenAPIDeleteRequest

func (*UIJoinTokenAPIService) DeleteExecute

Execute executes the request

func (*UIJoinTokenAPIService) DeleteSet

DeleteSet User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever.

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

func (*UIJoinTokenAPIService) DeleteSetExecute

Execute executes the request

func (*UIJoinTokenAPIService) List

List User can list the join tokens for an account.

Both active and revoked join tokens are listed by default.

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

func (*UIJoinTokenAPIService) ListExecute

Execute executes the request

@return ListJoinTokenResponse

func (*UIJoinTokenAPIService) Read

Read User can get the join token providing its resource id in the parameter.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id An application specific resource identity of a resource
@return UIJoinTokenAPIReadRequest

func (*UIJoinTokenAPIService) ReadExecute

Execute executes the request

@return ReadJoinTokenResponse

func (*UIJoinTokenAPIService) Update

Update User can modify the tags or expiration time of a join token.

Validation: Following fields is needed. Provide what needs to be - "expires_at" - "tags"

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id An application specific resource identity of a resource
@return UIJoinTokenAPIUpdateRequest

func (*UIJoinTokenAPIService) UpdateExecute

Execute executes the request

@return UpdateJoinTokenResponse

type UIJoinTokenAPIUpdateRequest

type UIJoinTokenAPIUpdateRequest struct {
	ApiService UIJoinTokenAPI
	// contains filtered or unexported fields
}

func (UIJoinTokenAPIUpdateRequest) Body

func (UIJoinTokenAPIUpdateRequest) Execute

type UpdateJoinTokenResponse

type UpdateJoinTokenResponse struct {
	Result               *JoinToken `json:"result,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateJoinTokenResponse struct for UpdateJoinTokenResponse

func NewUpdateJoinTokenResponse

func NewUpdateJoinTokenResponse() *UpdateJoinTokenResponse

NewUpdateJoinTokenResponse instantiates a new UpdateJoinTokenResponse 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 NewUpdateJoinTokenResponseWithDefaults

func NewUpdateJoinTokenResponseWithDefaults() *UpdateJoinTokenResponse

NewUpdateJoinTokenResponseWithDefaults instantiates a new UpdateJoinTokenResponse 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 (*UpdateJoinTokenResponse) GetResult

func (o *UpdateJoinTokenResponse) GetResult() JoinToken

GetResult returns the Result field value if set, zero value otherwise.

func (*UpdateJoinTokenResponse) GetResultOk

func (o *UpdateJoinTokenResponse) GetResultOk() (*JoinToken, bool)

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

func (*UpdateJoinTokenResponse) HasResult

func (o *UpdateJoinTokenResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (UpdateJoinTokenResponse) MarshalJSON

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

func (*UpdateJoinTokenResponse) SetResult

func (o *UpdateJoinTokenResponse) SetResult(v JoinToken)

SetResult gets a reference to the given JoinToken and assigns it to the Result field.

func (UpdateJoinTokenResponse) ToMap

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

func (*UpdateJoinTokenResponse) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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