isp

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const RelNext = "next"

RelNext is the `next` link relationship, used for pagination.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

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

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

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

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var (
	// ContextDisablePaging disable automatic pagination handling for a request.
	ContextDisablePaging = contextKey("paging")
)

Functions

func CacheExpires

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

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

func GetLink(resp *http.Response, rel string) *url.URL

GetLink returns the URI of the first HTTP Link header with the requested relationship value, nil otherwise.

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 {
	LifecycleApi LifecycleApi
	// contains filtered or unexported fields
}

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

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

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

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

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

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

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

type APIResponse

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

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiCalculateLifecycleStateRequest

type ApiCalculateLifecycleStateRequest struct {
	ApiService LifecycleApi
	// contains filtered or unexported fields
}

func (ApiCalculateLifecycleStateRequest) Execute

type ApiGetLifecycleComponentStateRequest

type ApiGetLifecycleComponentStateRequest struct {
	ApiService LifecycleApi
	// contains filtered or unexported fields
}

func (ApiGetLifecycleComponentStateRequest) Execute

type ApiListLifecycleComponentStatesRequest

type ApiListLifecycleComponentStatesRequest struct {
	ApiService LifecycleApi
	// contains filtered or unexported fields
}

func (ApiListLifecycleComponentStatesRequest) Execute

type ApiPutLifecycleComponentStateRequest

type ApiPutLifecycleComponentStateRequest struct {
	ApiService LifecycleApi
	// contains filtered or unexported fields
}

func (ApiPutLifecycleComponentStateRequest) Execute

func (ApiPutLifecycleComponentStateRequest) PutComponentBody

type BasicAuth

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

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

type Configuration

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

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

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

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

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type ErrorDetail

type ErrorDetail struct {
	// Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
	Location *string `json:"location,omitempty" doc:"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'"`
	// Error message text
	Message *string `json:"message,omitempty" doc:"Error message text"`
	// The value at the given location
	Value interface{} `json:"value,omitempty" doc:"The value at the given location"`
}

ErrorDetail struct for ErrorDetail

func NewErrorDetail

func NewErrorDetail() *ErrorDetail

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

func NewErrorDetailWithDefaults

func NewErrorDetailWithDefaults() *ErrorDetail

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

func (*ErrorDetail) GetLocation

func (o *ErrorDetail) GetLocation() string

GetLocation returns the Location field value if set, zero value otherwise.

func (*ErrorDetail) GetLocationOk

func (o *ErrorDetail) GetLocationOk() (*string, bool)

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

func (*ErrorDetail) GetMessage

func (o *ErrorDetail) GetMessage() string

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

func (*ErrorDetail) GetMessageOk

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

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

func (*ErrorDetail) GetValue

func (o *ErrorDetail) GetValue() interface{}

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

func (*ErrorDetail) GetValueOk

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

func (*ErrorDetail) HasLocation

func (o *ErrorDetail) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*ErrorDetail) HasMessage

func (o *ErrorDetail) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ErrorDetail) HasValue

func (o *ErrorDetail) HasValue() bool

HasValue returns a boolean if a field has been set.

func (ErrorDetail) MarshalJSON

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

func (*ErrorDetail) SetLocation

func (o *ErrorDetail) SetLocation(v string)

SetLocation gets a reference to the given string and assigns it to the Location field.

func (*ErrorDetail) SetMessage

func (o *ErrorDetail) SetMessage(v string)

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

func (*ErrorDetail) SetValue

func (o *ErrorDetail) SetValue(v interface{})

SetValue gets a reference to the given interface{} and assigns it to the Value field.

func (ErrorDetail) ToMap

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

type ErrorModel

type ErrorModel struct {
	// A URL to the JSON Schema for this object.
	Schema *string `json:"$schema,omitempty" format:"uri" doc:"A URL to the JSON Schema for this object."`
	// A human-readable explanation specific to this occurrence of the problem.
	Detail *string `json:"detail,omitempty" doc:"A human-readable explanation specific to this occurrence of the problem."`
	// Optional list of individual error details
	Errors []ErrorDetail `json:"errors,omitempty" doc:"Optional list of individual error details"`
	// A URI reference that identifies the specific occurrence of the problem.
	Instance *string `json:"instance,omitempty" format:"uri" doc:"A URI reference that identifies the specific occurrence of the problem."`
	// HTTP status code
	Status *int64 `json:"status,omitempty" format:"int64" doc:"HTTP status code"`
	// A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
	Title *string `` /* 144-byte string literal not displayed */
	// A URI reference to human-readable documentation for the error.
	Type *string `` /* 127-byte string literal not displayed */
}

ErrorModel struct for ErrorModel

func NewErrorModel

func NewErrorModel() *ErrorModel

NewErrorModel instantiates a new ErrorModel 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 NewErrorModelWithDefaults

func NewErrorModelWithDefaults() *ErrorModel

NewErrorModelWithDefaults instantiates a new ErrorModel 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 (*ErrorModel) GetDetail

func (o *ErrorModel) GetDetail() string

GetDetail returns the Detail field value if set, zero value otherwise.

func (*ErrorModel) GetDetailOk

func (o *ErrorModel) GetDetailOk() (*string, bool)

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

func (*ErrorModel) GetErrors

func (o *ErrorModel) GetErrors() []ErrorDetail

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

func (*ErrorModel) GetErrorsOk

func (o *ErrorModel) GetErrorsOk() ([]ErrorDetail, bool)

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

func (*ErrorModel) GetInstance

func (o *ErrorModel) GetInstance() string

GetInstance returns the Instance field value if set, zero value otherwise.

func (*ErrorModel) GetInstanceOk

func (o *ErrorModel) GetInstanceOk() (*string, bool)

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

func (*ErrorModel) GetSchema

func (o *ErrorModel) GetSchema() string

GetSchema returns the Schema field value if set, zero value otherwise.

func (*ErrorModel) GetSchemaOk

func (o *ErrorModel) GetSchemaOk() (*string, bool)

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

func (*ErrorModel) GetStatus

func (o *ErrorModel) GetStatus() int64

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

func (*ErrorModel) GetStatusOk

func (o *ErrorModel) GetStatusOk() (*int64, 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 (*ErrorModel) GetTitle

func (o *ErrorModel) GetTitle() string

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

func (*ErrorModel) GetTitleOk

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

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

func (*ErrorModel) GetType

func (o *ErrorModel) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*ErrorModel) GetTypeOk

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

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

func (*ErrorModel) HasDetail

func (o *ErrorModel) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*ErrorModel) HasErrors

func (o *ErrorModel) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*ErrorModel) HasInstance

func (o *ErrorModel) HasInstance() bool

HasInstance returns a boolean if a field has been set.

func (*ErrorModel) HasSchema

func (o *ErrorModel) HasSchema() bool

HasSchema returns a boolean if a field has been set.

func (*ErrorModel) HasStatus

func (o *ErrorModel) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*ErrorModel) HasTitle

func (o *ErrorModel) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ErrorModel) HasType

func (o *ErrorModel) HasType() bool

HasType returns a boolean if a field has been set.

func (ErrorModel) MarshalJSON

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

func (*ErrorModel) SetDetail

func (o *ErrorModel) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*ErrorModel) SetErrors

func (o *ErrorModel) SetErrors(v []ErrorDetail)

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

func (*ErrorModel) SetInstance

func (o *ErrorModel) SetInstance(v string)

SetInstance gets a reference to the given string and assigns it to the Instance field.

func (*ErrorModel) SetSchema

func (o *ErrorModel) SetSchema(v string)

SetSchema gets a reference to the given string and assigns it to the Schema field.

func (*ErrorModel) SetStatus

func (o *ErrorModel) SetStatus(v int64)

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

func (*ErrorModel) SetTitle

func (o *ErrorModel) SetTitle(v string)

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

func (*ErrorModel) SetType

func (o *ErrorModel) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (ErrorModel) ToMap

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

type GenericOpenAPIError

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

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

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

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

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetComponentStateResponseBody

type GetComponentStateResponseBody struct {
	// A URL to the JSON Schema for this object.
	Schema    *string `json:"$schema,omitempty" format:"uri" doc:"A URL to the JSON Schema for this object."`
	ChannelId string  `json:"channel_id"`
	// The ChannelDoc's revision
	ChannelRevision int32 `json:"channel_revision" format:"int32" doc:"The ChannelDoc's revision"`
	// A service or feature involved in a channel workflow/operations (ie. \"what\" the lifecycle system is concerned with).
	Component string `` /* 184-byte string literal not displayed */
	// The current state of the component.
	ComponentState string `json:"component_state" enum:"OFF,PROVISIONING,STREAMING,TERMINATING,ERROR" doc:"The current state of the component."`
	Org            string `json:"org"`
	// ISO 8601 timestamp when the component state was updated.
	UpdatedAt time.Time `json:"updated_at" format:"date-time" doc:"ISO 8601 timestamp when the component state was updated."`
}

GetComponentStateResponseBody struct for GetComponentStateResponseBody

func NewGetComponentStateResponseBody

func NewGetComponentStateResponseBody(channelId string, channelRevision int32, component string, componentState string, org string, updatedAt time.Time) *GetComponentStateResponseBody

NewGetComponentStateResponseBody instantiates a new GetComponentStateResponseBody 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 NewGetComponentStateResponseBodyWithDefaults

func NewGetComponentStateResponseBodyWithDefaults() *GetComponentStateResponseBody

NewGetComponentStateResponseBodyWithDefaults instantiates a new GetComponentStateResponseBody 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 (*GetComponentStateResponseBody) GetChannelId

func (o *GetComponentStateResponseBody) GetChannelId() string

GetChannelId returns the ChannelId field value

func (*GetComponentStateResponseBody) GetChannelIdOk

func (o *GetComponentStateResponseBody) GetChannelIdOk() (*string, bool)

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

func (*GetComponentStateResponseBody) GetChannelRevision

func (o *GetComponentStateResponseBody) GetChannelRevision() int32

GetChannelRevision returns the ChannelRevision field value

func (*GetComponentStateResponseBody) GetChannelRevisionOk

func (o *GetComponentStateResponseBody) GetChannelRevisionOk() (*int32, bool)

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

func (*GetComponentStateResponseBody) GetComponent

func (o *GetComponentStateResponseBody) GetComponent() string

GetComponent returns the Component field value

func (*GetComponentStateResponseBody) GetComponentOk

func (o *GetComponentStateResponseBody) GetComponentOk() (*string, bool)

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

func (*GetComponentStateResponseBody) GetComponentState

func (o *GetComponentStateResponseBody) GetComponentState() string

GetComponentState returns the ComponentState field value

func (*GetComponentStateResponseBody) GetComponentStateOk

func (o *GetComponentStateResponseBody) GetComponentStateOk() (*string, bool)

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

func (*GetComponentStateResponseBody) GetOrg

GetOrg returns the Org field value

func (*GetComponentStateResponseBody) GetOrgOk

func (o *GetComponentStateResponseBody) GetOrgOk() (*string, bool)

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

func (*GetComponentStateResponseBody) GetSchema

func (o *GetComponentStateResponseBody) GetSchema() string

GetSchema returns the Schema field value if set, zero value otherwise.

func (*GetComponentStateResponseBody) GetSchemaOk

func (o *GetComponentStateResponseBody) GetSchemaOk() (*string, bool)

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

func (*GetComponentStateResponseBody) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*GetComponentStateResponseBody) GetUpdatedAtOk

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

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

func (*GetComponentStateResponseBody) HasSchema

func (o *GetComponentStateResponseBody) HasSchema() bool

HasSchema returns a boolean if a field has been set.

func (GetComponentStateResponseBody) MarshalJSON

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

func (*GetComponentStateResponseBody) SetChannelId

func (o *GetComponentStateResponseBody) SetChannelId(v string)

SetChannelId sets field value

func (*GetComponentStateResponseBody) SetChannelRevision

func (o *GetComponentStateResponseBody) SetChannelRevision(v int32)

SetChannelRevision sets field value

func (*GetComponentStateResponseBody) SetComponent

func (o *GetComponentStateResponseBody) SetComponent(v string)

SetComponent sets field value

func (*GetComponentStateResponseBody) SetComponentState

func (o *GetComponentStateResponseBody) SetComponentState(v string)

SetComponentState sets field value

func (*GetComponentStateResponseBody) SetOrg

SetOrg sets field value

func (*GetComponentStateResponseBody) SetSchema

func (o *GetComponentStateResponseBody) SetSchema(v string)

SetSchema gets a reference to the given string and assigns it to the Schema field.

func (*GetComponentStateResponseBody) SetUpdatedAt

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

SetUpdatedAt sets field value

func (GetComponentStateResponseBody) ToMap

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

type GetStateResponseBody

type GetStateResponseBody struct {
	// A URL to the JSON Schema for this object.
	Schema *string `json:"$schema,omitempty" format:"uri" doc:"A URL to the JSON Schema for this object."`
	// The name of the channel.
	ChannelId string `json:"channel_id" minLength:"1" doc:"The name of the channel."`
	// Current revision of the channel.
	ChannelRevision int32 `json:"channel_revision" format:"int32" doc:"Current revision of the channel."`
	// Current state of the channel
	ChannelState string `json:"channel_state" enum:"OFF,PROVISIONING,STREAMING,TERMINATING,ERROR" doc:"Current state of the channel"`
	// The organization that owns the channel.
	Org string `json:"org" minLength:"1" doc:"The organization that owns the channel."`
	// Timestamp when the lifecycle state was updated. Timestamps are in ISO 8601.
	UpdatedAt time.Time `json:"updated_at" format:"date-time" doc:"Timestamp when the lifecycle state was updated. Timestamps are in ISO 8601."`
}

GetStateResponseBody struct for GetStateResponseBody

func NewGetStateResponseBody

func NewGetStateResponseBody(channelId string, channelRevision int32, channelState string, org string, updatedAt time.Time) *GetStateResponseBody

NewGetStateResponseBody instantiates a new GetStateResponseBody 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 NewGetStateResponseBodyWithDefaults

func NewGetStateResponseBodyWithDefaults() *GetStateResponseBody

NewGetStateResponseBodyWithDefaults instantiates a new GetStateResponseBody 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 (*GetStateResponseBody) GetChannelId

func (o *GetStateResponseBody) GetChannelId() string

GetChannelId returns the ChannelId field value

func (*GetStateResponseBody) GetChannelIdOk

func (o *GetStateResponseBody) GetChannelIdOk() (*string, bool)

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

func (*GetStateResponseBody) GetChannelRevision

func (o *GetStateResponseBody) GetChannelRevision() int32

GetChannelRevision returns the ChannelRevision field value

func (*GetStateResponseBody) GetChannelRevisionOk

func (o *GetStateResponseBody) GetChannelRevisionOk() (*int32, bool)

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

func (*GetStateResponseBody) GetChannelState

func (o *GetStateResponseBody) GetChannelState() string

GetChannelState returns the ChannelState field value

func (*GetStateResponseBody) GetChannelStateOk

func (o *GetStateResponseBody) GetChannelStateOk() (*string, bool)

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

func (*GetStateResponseBody) GetOrg

func (o *GetStateResponseBody) GetOrg() string

GetOrg returns the Org field value

func (*GetStateResponseBody) GetOrgOk

func (o *GetStateResponseBody) GetOrgOk() (*string, bool)

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

func (*GetStateResponseBody) GetSchema

func (o *GetStateResponseBody) GetSchema() string

GetSchema returns the Schema field value if set, zero value otherwise.

func (*GetStateResponseBody) GetSchemaOk

func (o *GetStateResponseBody) GetSchemaOk() (*string, bool)

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

func (*GetStateResponseBody) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*GetStateResponseBody) GetUpdatedAtOk

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

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

func (*GetStateResponseBody) HasSchema

func (o *GetStateResponseBody) HasSchema() bool

HasSchema returns a boolean if a field has been set.

func (GetStateResponseBody) MarshalJSON

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

func (*GetStateResponseBody) SetChannelId

func (o *GetStateResponseBody) SetChannelId(v string)

SetChannelId sets field value

func (*GetStateResponseBody) SetChannelRevision

func (o *GetStateResponseBody) SetChannelRevision(v int32)

SetChannelRevision sets field value

func (*GetStateResponseBody) SetChannelState

func (o *GetStateResponseBody) SetChannelState(v string)

SetChannelState sets field value

func (*GetStateResponseBody) SetOrg

func (o *GetStateResponseBody) SetOrg(v string)

SetOrg sets field value

func (*GetStateResponseBody) SetSchema

func (o *GetStateResponseBody) SetSchema(v string)

SetSchema gets a reference to the given string and assigns it to the Schema field.

func (*GetStateResponseBody) SetUpdatedAt

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

SetUpdatedAt sets field value

func (GetStateResponseBody) ToMap

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

type HighLevelClient

type HighLevelClient struct {
	*APIClient
	*http.Client
}

HighLevelClient wraps an APIClient and http.Client, as well as providing custom high-level functionality.

func NewWithAuthHeader

func NewWithAuthHeader(header string) *HighLevelClient

NewWithAuthHeader creates a new authenticated client using the given authorization header. The header format should be `Bearer <token>`, where `<token>` is replaced by the contents of the encoded & signed JWT.

func NewWithClientCredentials

func NewWithClientCredentials(clientID, clientSecret, organization string) *HighLevelClient

NewWithClientCredentials creates a new authenticated client using the OAuth 2.0 client credentials flow, caching and refreshing the access token as needed whenever requests to the API are made. Leave the organization blank if using multi-org tokens.

func NewWithOktaClientCredentials

func NewWithOktaClientCredentials(clientID, clientSecret string) *HighLevelClient

NewWithOktaClientCredentials creates a new authenticated client using the OAuth 2.0 client credentials flow, caching and refreshing the access token as needed whenever requests to the API are made. Leave the organization blank if using multi-org tokens. It is specific to WBD-Okta and replaces NewWithClientCredentials.

func (*HighLevelClient) Decode

func (c *HighLevelClient) Decode(v interface{}, body []byte, contentType string) error

Decode a response body based on the content type.

func (*HighLevelClient) Do

func (c *HighLevelClient) Do(req *http.Request) (*http.Response, error)

Do the request, logging the request/response if debugging is enabled.

func (*HighLevelClient) DoModel

func (c *HighLevelClient) DoModel(req *http.Request, model interface{}) (*http.Response, error)

DoModel takes an HTTP request like http.Client.Do and makes the request. If successful, it also loads the model from the response.

func (*HighLevelClient) GetModel

func (c *HighLevelClient) GetModel(uri string, model interface{}) (*http.Response, error)

GetModel performs an HTTP GET on the given URI and loads the model from the response if successful.

type LifecycleApi

type LifecycleApi interface {

	/*
		CalculateLifecycleState Calculates channel lifecycle state

		Calculates the current lifecycle state of the given channel. The Channel Lifecycle State is determined by evaluating the state of individual components.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param org The organization that owns the channel.
		@param channelId The name of the channel.
		@return ApiCalculateLifecycleStateRequest
	*/
	CalculateLifecycleState(ctx context.Context, org string, channelId string) ApiCalculateLifecycleStateRequest

	// CalculateLifecycleStateExecute executes the request
	//  @return GetStateResponseBody
	CalculateLifecycleStateExecute(r ApiCalculateLifecycleStateRequest) (*GetStateResponseBody, *http.Response, error)

	/*
		GetLifecycleComponentState Get component state

		Retrieve the current state of a component for a given channel.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param org The organization that owns the channel.
		@param channelId The name of the channel.
		@param component A service or feature involved in a channel workflow/operations (ie. \"what\" the lifecycle system is concerned with).
		@return ApiGetLifecycleComponentStateRequest
	*/
	GetLifecycleComponentState(ctx context.Context, org string, channelId string, component string) ApiGetLifecycleComponentStateRequest

	// GetLifecycleComponentStateExecute executes the request
	//  @return GetComponentStateResponseBody
	GetLifecycleComponentStateExecute(r ApiGetLifecycleComponentStateRequest) (*GetComponentStateResponseBody, *http.Response, error)

	/*
		ListLifecycleComponentStates List component states

		List the states of every component for the given channel ID.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param org The organization that owns the channel.
		@param channelId The name of the channel.
		@return ApiListLifecycleComponentStatesRequest
	*/
	ListLifecycleComponentStates(ctx context.Context, org string, channelId string) ApiListLifecycleComponentStatesRequest

	// ListLifecycleComponentStatesExecute executes the request
	//  @return ListComponentStatesResponseBody
	ListLifecycleComponentStatesExecute(r ApiListLifecycleComponentStatesRequest) (*ListComponentStatesResponseBody, *http.Response, error)

	/*
		PutLifecycleComponentState Put component state

		Update the state of a component associated with the given channel.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param channelUrn The channel_urn (channeldoc identifier).
		@param component A service or feature involved in a channel workflow/operations (ie. \"what\" the lifecycle system is concerned with).
		@return ApiPutLifecycleComponentStateRequest
	*/
	PutLifecycleComponentState(ctx context.Context, channelUrn string, component string) ApiPutLifecycleComponentStateRequest

	// PutLifecycleComponentStateExecute executes the request
	PutLifecycleComponentStateExecute(r ApiPutLifecycleComponentStateRequest) (*http.Response, error)
}

type LifecycleApiService

type LifecycleApiService service

LifecycleApiService LifecycleApi service

func (*LifecycleApiService) CalculateLifecycleState

func (a *LifecycleApiService) CalculateLifecycleState(ctx context.Context, org string, channelId string) ApiCalculateLifecycleStateRequest

CalculateLifecycleState Calculates channel lifecycle state

Calculates the current lifecycle state of the given channel. The Channel Lifecycle State is determined by evaluating the state of individual components.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param org The organization that owns the channel.
@param channelId The name of the channel.
@return ApiCalculateLifecycleStateRequest

func (*LifecycleApiService) CalculateLifecycleStateExecute

Execute executes the request

@return GetStateResponseBody

func (*LifecycleApiService) GetLifecycleComponentState

func (a *LifecycleApiService) GetLifecycleComponentState(ctx context.Context, org string, channelId string, component string) ApiGetLifecycleComponentStateRequest

GetLifecycleComponentState Get component state

Retrieve the current state of a component for a given channel.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param org The organization that owns the channel.
@param channelId The name of the channel.
@param component A service or feature involved in a channel workflow/operations (ie. \"what\" the lifecycle system is concerned with).
@return ApiGetLifecycleComponentStateRequest

func (*LifecycleApiService) GetLifecycleComponentStateExecute

Execute executes the request

@return GetComponentStateResponseBody

func (*LifecycleApiService) ListLifecycleComponentStates

func (a *LifecycleApiService) ListLifecycleComponentStates(ctx context.Context, org string, channelId string) ApiListLifecycleComponentStatesRequest

ListLifecycleComponentStates List component states

List the states of every component for the given channel ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param org The organization that owns the channel.
@param channelId The name of the channel.
@return ApiListLifecycleComponentStatesRequest

func (*LifecycleApiService) ListLifecycleComponentStatesExecute

Execute executes the request

@return ListComponentStatesResponseBody

func (*LifecycleApiService) PutLifecycleComponentState

func (a *LifecycleApiService) PutLifecycleComponentState(ctx context.Context, channelUrn string, component string) ApiPutLifecycleComponentStateRequest

PutLifecycleComponentState Put component state

Update the state of a component associated with the given channel.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param channelUrn The channel_urn (channeldoc identifier).
@param component A service or feature involved in a channel workflow/operations (ie. \"what\" the lifecycle system is concerned with).
@return ApiPutLifecycleComponentStateRequest

func (*LifecycleApiService) PutLifecycleComponentStateExecute

func (a *LifecycleApiService) PutLifecycleComponentStateExecute(r ApiPutLifecycleComponentStateRequest) (*http.Response, error)

Execute executes the request

type ListComponentStatesResponseBody

type ListComponentStatesResponseBody struct {
	// A URL to the JSON Schema for this object.
	Schema    *string `json:"$schema,omitempty" format:"uri" doc:"A URL to the JSON Schema for this object."`
	ChannelId string  `json:"channel_id"`
	// The list of components states.
	Components []ListComponentStatesResponseEntry `json:"components" doc:"The list of components states."`
	Org        string                             `json:"org"`
}

ListComponentStatesResponseBody struct for ListComponentStatesResponseBody

func NewListComponentStatesResponseBody

func NewListComponentStatesResponseBody(channelId string, components []ListComponentStatesResponseEntry, org string) *ListComponentStatesResponseBody

NewListComponentStatesResponseBody instantiates a new ListComponentStatesResponseBody 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 NewListComponentStatesResponseBodyWithDefaults

func NewListComponentStatesResponseBodyWithDefaults() *ListComponentStatesResponseBody

NewListComponentStatesResponseBodyWithDefaults instantiates a new ListComponentStatesResponseBody 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 (*ListComponentStatesResponseBody) GetChannelId added in v1.27.1

func (o *ListComponentStatesResponseBody) GetChannelId() string

GetChannelId returns the ChannelId field value

func (*ListComponentStatesResponseBody) GetChannelIdOk added in v1.27.1

func (o *ListComponentStatesResponseBody) GetChannelIdOk() (*string, bool)

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

func (*ListComponentStatesResponseBody) GetComponents

GetComponents returns the Components field value If the value is explicit nil, the zero value for []ListComponentStatesResponseEntry will be returned

func (*ListComponentStatesResponseBody) GetComponentsOk

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

func (*ListComponentStatesResponseBody) GetOrg added in v1.27.1

GetOrg returns the Org field value

func (*ListComponentStatesResponseBody) GetOrgOk added in v1.27.1

func (o *ListComponentStatesResponseBody) GetOrgOk() (*string, bool)

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

func (*ListComponentStatesResponseBody) GetSchema

func (o *ListComponentStatesResponseBody) GetSchema() string

GetSchema returns the Schema field value if set, zero value otherwise.

func (*ListComponentStatesResponseBody) GetSchemaOk

func (o *ListComponentStatesResponseBody) GetSchemaOk() (*string, bool)

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

func (*ListComponentStatesResponseBody) HasSchema

func (o *ListComponentStatesResponseBody) HasSchema() bool

HasSchema returns a boolean if a field has been set.

func (ListComponentStatesResponseBody) MarshalJSON

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

func (*ListComponentStatesResponseBody) SetChannelId added in v1.27.1

func (o *ListComponentStatesResponseBody) SetChannelId(v string)

SetChannelId sets field value

func (*ListComponentStatesResponseBody) SetComponents

SetComponents sets field value

func (*ListComponentStatesResponseBody) SetOrg added in v1.27.1

SetOrg sets field value

func (*ListComponentStatesResponseBody) SetSchema

func (o *ListComponentStatesResponseBody) SetSchema(v string)

SetSchema gets a reference to the given string and assigns it to the Schema field.

func (ListComponentStatesResponseBody) ToMap

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

type ListComponentStatesResponseEntry

type ListComponentStatesResponseEntry struct {
	// The ChannelDoc's revision
	ChannelRevision int32 `json:"channel_revision" format:"int32" doc:"The ChannelDoc's revision"`
	// A service or feature involved in a channel workflow/operations (ie. \"what\" the lifecycle system is concerned with).
	Component string `` /* 184-byte string literal not displayed */
	// The current state of the component.
	ComponentState string `json:"component_state" enum:"OFF,PROVISIONING,STREAMING,TERMINATING,ERROR" doc:"The current state of the component."`
	// ISO 8601 timestamp when the component state was updated.
	UpdatedAt time.Time `json:"updated_at" format:"date-time" doc:"ISO 8601 timestamp when the component state was updated."`
}

ListComponentStatesResponseEntry struct for ListComponentStatesResponseEntry

func NewListComponentStatesResponseEntry

func NewListComponentStatesResponseEntry(channelRevision int32, component string, componentState string, updatedAt time.Time) *ListComponentStatesResponseEntry

NewListComponentStatesResponseEntry instantiates a new ListComponentStatesResponseEntry 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 NewListComponentStatesResponseEntryWithDefaults

func NewListComponentStatesResponseEntryWithDefaults() *ListComponentStatesResponseEntry

NewListComponentStatesResponseEntryWithDefaults instantiates a new ListComponentStatesResponseEntry 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 (*ListComponentStatesResponseEntry) GetChannelRevision

func (o *ListComponentStatesResponseEntry) GetChannelRevision() int32

GetChannelRevision returns the ChannelRevision field value

func (*ListComponentStatesResponseEntry) GetChannelRevisionOk

func (o *ListComponentStatesResponseEntry) GetChannelRevisionOk() (*int32, bool)

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

func (*ListComponentStatesResponseEntry) GetComponent

func (o *ListComponentStatesResponseEntry) GetComponent() string

GetComponent returns the Component field value

func (*ListComponentStatesResponseEntry) GetComponentOk

func (o *ListComponentStatesResponseEntry) GetComponentOk() (*string, bool)

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

func (*ListComponentStatesResponseEntry) GetComponentState

func (o *ListComponentStatesResponseEntry) GetComponentState() string

GetComponentState returns the ComponentState field value

func (*ListComponentStatesResponseEntry) GetComponentStateOk

func (o *ListComponentStatesResponseEntry) GetComponentStateOk() (*string, bool)

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

func (*ListComponentStatesResponseEntry) GetUpdatedAt

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

GetUpdatedAt returns the UpdatedAt field value

func (*ListComponentStatesResponseEntry) GetUpdatedAtOk

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

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

func (ListComponentStatesResponseEntry) MarshalJSON

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

func (*ListComponentStatesResponseEntry) SetChannelRevision

func (o *ListComponentStatesResponseEntry) SetChannelRevision(v int32)

SetChannelRevision sets field value

func (*ListComponentStatesResponseEntry) SetComponent

func (o *ListComponentStatesResponseEntry) SetComponent(v string)

SetComponent sets field value

func (*ListComponentStatesResponseEntry) SetComponentState

func (o *ListComponentStatesResponseEntry) SetComponentState(v string)

SetComponentState sets field value

func (*ListComponentStatesResponseEntry) SetUpdatedAt

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

SetUpdatedAt sets field value

func (ListComponentStatesResponseEntry) ToMap

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

type MappedNullable

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

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

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

func (*NullableBool) UnmarshalJSON

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

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableErrorDetail

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

func NewNullableErrorDetail

func NewNullableErrorDetail(val *ErrorDetail) *NullableErrorDetail

func (NullableErrorDetail) Get

func (NullableErrorDetail) IsSet

func (v NullableErrorDetail) IsSet() bool

func (NullableErrorDetail) MarshalJSON

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

func (*NullableErrorDetail) Set

func (v *NullableErrorDetail) Set(val *ErrorDetail)

func (*NullableErrorDetail) UnmarshalJSON

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

func (*NullableErrorDetail) Unset

func (v *NullableErrorDetail) Unset()

type NullableErrorModel

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

func NewNullableErrorModel

func NewNullableErrorModel(val *ErrorModel) *NullableErrorModel

func (NullableErrorModel) Get

func (v NullableErrorModel) Get() *ErrorModel

func (NullableErrorModel) IsSet

func (v NullableErrorModel) IsSet() bool

func (NullableErrorModel) MarshalJSON

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

func (*NullableErrorModel) Set

func (v *NullableErrorModel) Set(val *ErrorModel)

func (*NullableErrorModel) UnmarshalJSON

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

func (*NullableErrorModel) Unset

func (v *NullableErrorModel) 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 NullableGetComponentStateResponseBody

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

func (NullableGetComponentStateResponseBody) Get

func (NullableGetComponentStateResponseBody) IsSet

func (NullableGetComponentStateResponseBody) MarshalJSON

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

func (*NullableGetComponentStateResponseBody) Set

func (*NullableGetComponentStateResponseBody) UnmarshalJSON

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

func (*NullableGetComponentStateResponseBody) Unset

type NullableGetStateResponseBody

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

func NewNullableGetStateResponseBody

func NewNullableGetStateResponseBody(val *GetStateResponseBody) *NullableGetStateResponseBody

func (NullableGetStateResponseBody) Get

func (NullableGetStateResponseBody) IsSet

func (NullableGetStateResponseBody) MarshalJSON

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

func (*NullableGetStateResponseBody) Set

func (*NullableGetStateResponseBody) UnmarshalJSON

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

func (*NullableGetStateResponseBody) Unset

func (v *NullableGetStateResponseBody) 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 NullableListComponentStatesResponseBody

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

func (NullableListComponentStatesResponseBody) Get

func (NullableListComponentStatesResponseBody) IsSet

func (NullableListComponentStatesResponseBody) MarshalJSON

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

func (*NullableListComponentStatesResponseBody) Set

func (*NullableListComponentStatesResponseBody) UnmarshalJSON

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

func (*NullableListComponentStatesResponseBody) Unset

type NullableListComponentStatesResponseEntry

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

func (NullableListComponentStatesResponseEntry) Get

func (NullableListComponentStatesResponseEntry) IsSet

func (NullableListComponentStatesResponseEntry) MarshalJSON

func (*NullableListComponentStatesResponseEntry) Set

func (*NullableListComponentStatesResponseEntry) UnmarshalJSON

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

func (*NullableListComponentStatesResponseEntry) Unset

type NullablePutComponentBody

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

func NewNullablePutComponentBody

func NewNullablePutComponentBody(val *PutComponentBody) *NullablePutComponentBody

func (NullablePutComponentBody) Get

func (NullablePutComponentBody) IsSet

func (v NullablePutComponentBody) IsSet() bool

func (NullablePutComponentBody) MarshalJSON

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

func (*NullablePutComponentBody) Set

func (*NullablePutComponentBody) UnmarshalJSON

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

func (*NullablePutComponentBody) Unset

func (v *NullablePutComponentBody) 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 PutComponentBody

type PutComponentBody struct {
	// A URL to the JSON Schema for this object.
	Schema *string `json:"$schema,omitempty" format:"uri" doc:"A URL to the JSON Schema for this object."`
	// The ChannelDoc's revision
	ChannelRevision int32 `json:"channel_revision" format:"int32" doc:"The ChannelDoc's revision"`
	// The current state of the component.
	ComponentState string `json:"component_state" enum:"OFF,PROVISIONING,STREAMING,TERMINATING,ERROR" doc:"The current state of the component."`
}

PutComponentBody struct for PutComponentBody

func NewPutComponentBody

func NewPutComponentBody(channelRevision int32, componentState string) *PutComponentBody

NewPutComponentBody instantiates a new PutComponentBody 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 NewPutComponentBodyWithDefaults

func NewPutComponentBodyWithDefaults() *PutComponentBody

NewPutComponentBodyWithDefaults instantiates a new PutComponentBody 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 (*PutComponentBody) GetChannelRevision

func (o *PutComponentBody) GetChannelRevision() int32

GetChannelRevision returns the ChannelRevision field value

func (*PutComponentBody) GetChannelRevisionOk

func (o *PutComponentBody) GetChannelRevisionOk() (*int32, bool)

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

func (*PutComponentBody) GetComponentState

func (o *PutComponentBody) GetComponentState() string

GetComponentState returns the ComponentState field value

func (*PutComponentBody) GetComponentStateOk

func (o *PutComponentBody) GetComponentStateOk() (*string, bool)

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

func (*PutComponentBody) GetSchema

func (o *PutComponentBody) GetSchema() string

GetSchema returns the Schema field value if set, zero value otherwise.

func (*PutComponentBody) GetSchemaOk

func (o *PutComponentBody) GetSchemaOk() (*string, bool)

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

func (*PutComponentBody) HasSchema

func (o *PutComponentBody) HasSchema() bool

HasSchema returns a boolean if a field has been set.

func (PutComponentBody) MarshalJSON

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

func (*PutComponentBody) SetChannelRevision

func (o *PutComponentBody) SetChannelRevision(v int32)

SetChannelRevision sets field value

func (*PutComponentBody) SetComponentState

func (o *PutComponentBody) SetComponentState(v string)

SetComponentState sets field value

func (*PutComponentBody) SetSchema

func (o *PutComponentBody) SetSchema(v string)

SetSchema gets a reference to the given string and assigns it to the Schema field.

func (PutComponentBody) ToMap

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

type ServerConfiguration

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

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

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

URL formats template on a index using given variables

type ServerVariable

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

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

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