mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1011 lines
25 KiB
Go
1011 lines
25 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the StudioRun type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &StudioRun{}
|
|
|
|
// StudioRun struct for StudioRun
|
|
type StudioRun struct {
|
|
Brand *string `json:"brand,omitempty"`
|
|
// ChargedCents is what the finished steps cost; final once the run ends.
|
|
ChargedCents *int64 `json:"charged_cents,omitempty"`
|
|
Created *string `json:"created,omitempty"`
|
|
Creator *string `json:"creator,omitempty"`
|
|
Error *StudioProblem `json:"error,omitempty"`
|
|
// EstimateCents is what was reserved when the run started.
|
|
EstimateCents *int64 `json:"estimate_cents,omitempty"`
|
|
Finished *string `json:"finished,omitempty"`
|
|
Flow *string `json:"flow,omitempty"`
|
|
Graph *StudioGraph `json:"graph,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
// Input is what the run was given, as its inputs schema reads it.
|
|
Input map[string]interface{} `json:"input,omitempty"`
|
|
Kind *string `json:"kind,omitempty"`
|
|
Org *string `json:"org,omitempty"`
|
|
// Outputs are the Library items the run made, the final steps' first.
|
|
Outputs []StudioItem `json:"outputs,omitempty"`
|
|
Parent *string `json:"parent,omitempty"`
|
|
// Root is the first version's id; equal to id on version 1.
|
|
Root *string `json:"root,omitempty"`
|
|
Shared *bool `json:"shared,omitempty"`
|
|
Started *string `json:"started,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
Steps []StudioStep `json:"steps,omitempty"`
|
|
Template *string `json:"template,omitempty"`
|
|
// Text is the last chat step's text, when the run's product is words.
|
|
Text *string `json:"text,omitempty"`
|
|
Title *string `json:"title,omitempty"`
|
|
Version *int64 `json:"version,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _StudioRun StudioRun
|
|
|
|
// NewStudioRun instantiates a new StudioRun 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 NewStudioRun() *StudioRun {
|
|
this := StudioRun{}
|
|
return &this
|
|
}
|
|
|
|
// NewStudioRunWithDefaults instantiates a new StudioRun 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 NewStudioRunWithDefaults() *StudioRun {
|
|
this := StudioRun{}
|
|
return &this
|
|
}
|
|
|
|
// GetBrand returns the Brand field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetBrand() string {
|
|
if o == nil || IsNil(o.Brand) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Brand
|
|
}
|
|
|
|
// GetBrandOk returns a tuple with the Brand field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetBrandOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Brand) {
|
|
return nil, false
|
|
}
|
|
return o.Brand, true
|
|
}
|
|
|
|
// HasBrand returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasBrand() bool {
|
|
if o != nil && !IsNil(o.Brand) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBrand gets a reference to the given string and assigns it to the Brand field.
|
|
func (o *StudioRun) SetBrand(v string) {
|
|
o.Brand = &v
|
|
}
|
|
|
|
// GetChargedCents returns the ChargedCents field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetChargedCents() int64 {
|
|
if o == nil || IsNil(o.ChargedCents) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.ChargedCents
|
|
}
|
|
|
|
// GetChargedCentsOk returns a tuple with the ChargedCents field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetChargedCentsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.ChargedCents) {
|
|
return nil, false
|
|
}
|
|
return o.ChargedCents, true
|
|
}
|
|
|
|
// HasChargedCents returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasChargedCents() bool {
|
|
if o != nil && !IsNil(o.ChargedCents) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChargedCents gets a reference to the given int64 and assigns it to the ChargedCents field.
|
|
func (o *StudioRun) SetChargedCents(v int64) {
|
|
o.ChargedCents = &v
|
|
}
|
|
|
|
// GetCreated returns the Created field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetCreated() string {
|
|
if o == nil || IsNil(o.Created) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Created
|
|
}
|
|
|
|
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetCreatedOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Created) {
|
|
return nil, false
|
|
}
|
|
return o.Created, true
|
|
}
|
|
|
|
// HasCreated returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasCreated() bool {
|
|
if o != nil && !IsNil(o.Created) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreated gets a reference to the given string and assigns it to the Created field.
|
|
func (o *StudioRun) SetCreated(v string) {
|
|
o.Created = &v
|
|
}
|
|
|
|
// GetCreator returns the Creator field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetCreator() string {
|
|
if o == nil || IsNil(o.Creator) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Creator
|
|
}
|
|
|
|
// GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetCreatorOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Creator) {
|
|
return nil, false
|
|
}
|
|
return o.Creator, true
|
|
}
|
|
|
|
// HasCreator returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasCreator() bool {
|
|
if o != nil && !IsNil(o.Creator) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreator gets a reference to the given string and assigns it to the Creator field.
|
|
func (o *StudioRun) SetCreator(v string) {
|
|
o.Creator = &v
|
|
}
|
|
|
|
// GetError returns the Error field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetError() StudioProblem {
|
|
if o == nil || IsNil(o.Error) {
|
|
var ret StudioProblem
|
|
return ret
|
|
}
|
|
return *o.Error
|
|
}
|
|
|
|
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetErrorOk() (*StudioProblem, bool) {
|
|
if o == nil || IsNil(o.Error) {
|
|
return nil, false
|
|
}
|
|
return o.Error, true
|
|
}
|
|
|
|
// HasError returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasError() bool {
|
|
if o != nil && !IsNil(o.Error) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetError gets a reference to the given StudioProblem and assigns it to the Error field.
|
|
func (o *StudioRun) SetError(v StudioProblem) {
|
|
o.Error = &v
|
|
}
|
|
|
|
// GetEstimateCents returns the EstimateCents field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetEstimateCents() int64 {
|
|
if o == nil || IsNil(o.EstimateCents) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.EstimateCents
|
|
}
|
|
|
|
// GetEstimateCentsOk returns a tuple with the EstimateCents field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetEstimateCentsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.EstimateCents) {
|
|
return nil, false
|
|
}
|
|
return o.EstimateCents, true
|
|
}
|
|
|
|
// HasEstimateCents returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasEstimateCents() bool {
|
|
if o != nil && !IsNil(o.EstimateCents) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEstimateCents gets a reference to the given int64 and assigns it to the EstimateCents field.
|
|
func (o *StudioRun) SetEstimateCents(v int64) {
|
|
o.EstimateCents = &v
|
|
}
|
|
|
|
// GetFinished returns the Finished field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetFinished() string {
|
|
if o == nil || IsNil(o.Finished) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Finished
|
|
}
|
|
|
|
// GetFinishedOk returns a tuple with the Finished field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetFinishedOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Finished) {
|
|
return nil, false
|
|
}
|
|
return o.Finished, true
|
|
}
|
|
|
|
// HasFinished returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasFinished() bool {
|
|
if o != nil && !IsNil(o.Finished) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFinished gets a reference to the given string and assigns it to the Finished field.
|
|
func (o *StudioRun) SetFinished(v string) {
|
|
o.Finished = &v
|
|
}
|
|
|
|
// GetFlow returns the Flow field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetFlow() string {
|
|
if o == nil || IsNil(o.Flow) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Flow
|
|
}
|
|
|
|
// GetFlowOk returns a tuple with the Flow field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetFlowOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Flow) {
|
|
return nil, false
|
|
}
|
|
return o.Flow, true
|
|
}
|
|
|
|
// HasFlow returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasFlow() bool {
|
|
if o != nil && !IsNil(o.Flow) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFlow gets a reference to the given string and assigns it to the Flow field.
|
|
func (o *StudioRun) SetFlow(v string) {
|
|
o.Flow = &v
|
|
}
|
|
|
|
// GetGraph returns the Graph field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetGraph() StudioGraph {
|
|
if o == nil || IsNil(o.Graph) {
|
|
var ret StudioGraph
|
|
return ret
|
|
}
|
|
return *o.Graph
|
|
}
|
|
|
|
// GetGraphOk returns a tuple with the Graph field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetGraphOk() (*StudioGraph, bool) {
|
|
if o == nil || IsNil(o.Graph) {
|
|
return nil, false
|
|
}
|
|
return o.Graph, true
|
|
}
|
|
|
|
// HasGraph returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasGraph() bool {
|
|
if o != nil && !IsNil(o.Graph) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGraph gets a reference to the given StudioGraph and assigns it to the Graph field.
|
|
func (o *StudioRun) SetGraph(v StudioGraph) {
|
|
o.Graph = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// 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 (o *StudioRun) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *StudioRun) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetInput returns the Input field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetInput() map[string]interface{} {
|
|
if o == nil || IsNil(o.Input) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.Input
|
|
}
|
|
|
|
// GetInputOk returns a tuple with the Input field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetInputOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.Input) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.Input, true
|
|
}
|
|
|
|
// HasInput returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasInput() bool {
|
|
if o != nil && !IsNil(o.Input) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInput gets a reference to the given map[string]interface{} and assigns it to the Input field.
|
|
func (o *StudioRun) SetInput(v map[string]interface{}) {
|
|
o.Input = v
|
|
}
|
|
|
|
// GetKind returns the Kind field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetKind() string {
|
|
if o == nil || IsNil(o.Kind) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Kind
|
|
}
|
|
|
|
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetKindOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Kind) {
|
|
return nil, false
|
|
}
|
|
return o.Kind, true
|
|
}
|
|
|
|
// HasKind returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasKind() bool {
|
|
if o != nil && !IsNil(o.Kind) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetKind gets a reference to the given string and assigns it to the Kind field.
|
|
func (o *StudioRun) SetKind(v string) {
|
|
o.Kind = &v
|
|
}
|
|
|
|
// GetOrg returns the Org field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetOrg() string {
|
|
if o == nil || IsNil(o.Org) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Org
|
|
}
|
|
|
|
// GetOrgOk returns a tuple with the Org field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetOrgOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Org) {
|
|
return nil, false
|
|
}
|
|
return o.Org, true
|
|
}
|
|
|
|
// HasOrg returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasOrg() bool {
|
|
if o != nil && !IsNil(o.Org) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrg gets a reference to the given string and assigns it to the Org field.
|
|
func (o *StudioRun) SetOrg(v string) {
|
|
o.Org = &v
|
|
}
|
|
|
|
// GetOutputs returns the Outputs field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetOutputs() []StudioItem {
|
|
if o == nil || IsNil(o.Outputs) {
|
|
var ret []StudioItem
|
|
return ret
|
|
}
|
|
return o.Outputs
|
|
}
|
|
|
|
// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetOutputsOk() ([]StudioItem, bool) {
|
|
if o == nil || IsNil(o.Outputs) {
|
|
return nil, false
|
|
}
|
|
return o.Outputs, true
|
|
}
|
|
|
|
// HasOutputs returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasOutputs() bool {
|
|
if o != nil && !IsNil(o.Outputs) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOutputs gets a reference to the given []StudioItem and assigns it to the Outputs field.
|
|
func (o *StudioRun) SetOutputs(v []StudioItem) {
|
|
o.Outputs = v
|
|
}
|
|
|
|
// GetParent returns the Parent field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetParent() string {
|
|
if o == nil || IsNil(o.Parent) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Parent
|
|
}
|
|
|
|
// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetParentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Parent) {
|
|
return nil, false
|
|
}
|
|
return o.Parent, true
|
|
}
|
|
|
|
// HasParent returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasParent() bool {
|
|
if o != nil && !IsNil(o.Parent) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetParent gets a reference to the given string and assigns it to the Parent field.
|
|
func (o *StudioRun) SetParent(v string) {
|
|
o.Parent = &v
|
|
}
|
|
|
|
// GetRoot returns the Root field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetRoot() string {
|
|
if o == nil || IsNil(o.Root) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Root
|
|
}
|
|
|
|
// GetRootOk returns a tuple with the Root field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetRootOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Root) {
|
|
return nil, false
|
|
}
|
|
return o.Root, true
|
|
}
|
|
|
|
// HasRoot returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasRoot() bool {
|
|
if o != nil && !IsNil(o.Root) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRoot gets a reference to the given string and assigns it to the Root field.
|
|
func (o *StudioRun) SetRoot(v string) {
|
|
o.Root = &v
|
|
}
|
|
|
|
// GetShared returns the Shared field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetShared() bool {
|
|
if o == nil || IsNil(o.Shared) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Shared
|
|
}
|
|
|
|
// GetSharedOk returns a tuple with the Shared field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetSharedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Shared) {
|
|
return nil, false
|
|
}
|
|
return o.Shared, true
|
|
}
|
|
|
|
// HasShared returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasShared() bool {
|
|
if o != nil && !IsNil(o.Shared) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetShared gets a reference to the given bool and assigns it to the Shared field.
|
|
func (o *StudioRun) SetShared(v bool) {
|
|
o.Shared = &v
|
|
}
|
|
|
|
// GetStarted returns the Started field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetStarted() string {
|
|
if o == nil || IsNil(o.Started) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Started
|
|
}
|
|
|
|
// GetStartedOk returns a tuple with the Started field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetStartedOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Started) {
|
|
return nil, false
|
|
}
|
|
return o.Started, true
|
|
}
|
|
|
|
// HasStarted returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasStarted() bool {
|
|
if o != nil && !IsNil(o.Started) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStarted gets a reference to the given string and assigns it to the Started field.
|
|
func (o *StudioRun) SetStarted(v string) {
|
|
o.Started = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// 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 (o *StudioRun) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *StudioRun) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetSteps returns the Steps field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetSteps() []StudioStep {
|
|
if o == nil || IsNil(o.Steps) {
|
|
var ret []StudioStep
|
|
return ret
|
|
}
|
|
return o.Steps
|
|
}
|
|
|
|
// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetStepsOk() ([]StudioStep, bool) {
|
|
if o == nil || IsNil(o.Steps) {
|
|
return nil, false
|
|
}
|
|
return o.Steps, true
|
|
}
|
|
|
|
// HasSteps returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasSteps() bool {
|
|
if o != nil && !IsNil(o.Steps) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSteps gets a reference to the given []StudioStep and assigns it to the Steps field.
|
|
func (o *StudioRun) SetSteps(v []StudioStep) {
|
|
o.Steps = v
|
|
}
|
|
|
|
// GetTemplate returns the Template field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetTemplate() string {
|
|
if o == nil || IsNil(o.Template) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Template
|
|
}
|
|
|
|
// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetTemplateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Template) {
|
|
return nil, false
|
|
}
|
|
return o.Template, true
|
|
}
|
|
|
|
// HasTemplate returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasTemplate() bool {
|
|
if o != nil && !IsNil(o.Template) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTemplate gets a reference to the given string and assigns it to the Template field.
|
|
func (o *StudioRun) SetTemplate(v string) {
|
|
o.Template = &v
|
|
}
|
|
|
|
// GetText returns the Text field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetText() string {
|
|
if o == nil || IsNil(o.Text) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Text
|
|
}
|
|
|
|
// GetTextOk returns a tuple with the Text field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Text) {
|
|
return nil, false
|
|
}
|
|
return o.Text, true
|
|
}
|
|
|
|
// HasText returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasText() bool {
|
|
if o != nil && !IsNil(o.Text) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetText gets a reference to the given string and assigns it to the Text field.
|
|
func (o *StudioRun) SetText(v string) {
|
|
o.Text = &v
|
|
}
|
|
|
|
// GetTitle returns the Title field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetTitle() string {
|
|
if o == nil || IsNil(o.Title) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Title
|
|
}
|
|
|
|
// 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 (o *StudioRun) GetTitleOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Title) {
|
|
return nil, false
|
|
}
|
|
return o.Title, true
|
|
}
|
|
|
|
// HasTitle returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasTitle() bool {
|
|
if o != nil && !IsNil(o.Title) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTitle gets a reference to the given string and assigns it to the Title field.
|
|
func (o *StudioRun) SetTitle(v string) {
|
|
o.Title = &v
|
|
}
|
|
|
|
// GetVersion returns the Version field value if set, zero value otherwise.
|
|
func (o *StudioRun) GetVersion() int64 {
|
|
if o == nil || IsNil(o.Version) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Version
|
|
}
|
|
|
|
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *StudioRun) GetVersionOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Version) {
|
|
return nil, false
|
|
}
|
|
return o.Version, true
|
|
}
|
|
|
|
// HasVersion returns a boolean if a field has been set.
|
|
func (o *StudioRun) HasVersion() bool {
|
|
if o != nil && !IsNil(o.Version) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVersion gets a reference to the given int64 and assigns it to the Version field.
|
|
func (o *StudioRun) SetVersion(v int64) {
|
|
o.Version = &v
|
|
}
|
|
|
|
func (o StudioRun) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o StudioRun) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Brand) {
|
|
toSerialize["brand"] = o.Brand
|
|
}
|
|
if !IsNil(o.ChargedCents) {
|
|
toSerialize["charged_cents"] = o.ChargedCents
|
|
}
|
|
if !IsNil(o.Created) {
|
|
toSerialize["created"] = o.Created
|
|
}
|
|
if !IsNil(o.Creator) {
|
|
toSerialize["creator"] = o.Creator
|
|
}
|
|
if !IsNil(o.Error) {
|
|
toSerialize["error"] = o.Error
|
|
}
|
|
if !IsNil(o.EstimateCents) {
|
|
toSerialize["estimate_cents"] = o.EstimateCents
|
|
}
|
|
if !IsNil(o.Finished) {
|
|
toSerialize["finished"] = o.Finished
|
|
}
|
|
if !IsNil(o.Flow) {
|
|
toSerialize["flow"] = o.Flow
|
|
}
|
|
if !IsNil(o.Graph) {
|
|
toSerialize["graph"] = o.Graph
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Input) {
|
|
toSerialize["input"] = o.Input
|
|
}
|
|
if !IsNil(o.Kind) {
|
|
toSerialize["kind"] = o.Kind
|
|
}
|
|
if !IsNil(o.Org) {
|
|
toSerialize["org"] = o.Org
|
|
}
|
|
if !IsNil(o.Outputs) {
|
|
toSerialize["outputs"] = o.Outputs
|
|
}
|
|
if !IsNil(o.Parent) {
|
|
toSerialize["parent"] = o.Parent
|
|
}
|
|
if !IsNil(o.Root) {
|
|
toSerialize["root"] = o.Root
|
|
}
|
|
if !IsNil(o.Shared) {
|
|
toSerialize["shared"] = o.Shared
|
|
}
|
|
if !IsNil(o.Started) {
|
|
toSerialize["started"] = o.Started
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.Steps) {
|
|
toSerialize["steps"] = o.Steps
|
|
}
|
|
if !IsNil(o.Template) {
|
|
toSerialize["template"] = o.Template
|
|
}
|
|
if !IsNil(o.Text) {
|
|
toSerialize["text"] = o.Text
|
|
}
|
|
if !IsNil(o.Title) {
|
|
toSerialize["title"] = o.Title
|
|
}
|
|
if !IsNil(o.Version) {
|
|
toSerialize["version"] = o.Version
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *StudioRun) UnmarshalJSON(data []byte) (err error) {
|
|
varStudioRun := _StudioRun{}
|
|
|
|
err = json.Unmarshal(data, &varStudioRun)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = StudioRun(varStudioRun)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "brand")
|
|
delete(additionalProperties, "charged_cents")
|
|
delete(additionalProperties, "created")
|
|
delete(additionalProperties, "creator")
|
|
delete(additionalProperties, "error")
|
|
delete(additionalProperties, "estimate_cents")
|
|
delete(additionalProperties, "finished")
|
|
delete(additionalProperties, "flow")
|
|
delete(additionalProperties, "graph")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "input")
|
|
delete(additionalProperties, "kind")
|
|
delete(additionalProperties, "org")
|
|
delete(additionalProperties, "outputs")
|
|
delete(additionalProperties, "parent")
|
|
delete(additionalProperties, "root")
|
|
delete(additionalProperties, "shared")
|
|
delete(additionalProperties, "started")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "steps")
|
|
delete(additionalProperties, "template")
|
|
delete(additionalProperties, "text")
|
|
delete(additionalProperties, "title")
|
|
delete(additionalProperties, "version")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableStudioRun struct {
|
|
value *StudioRun
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableStudioRun) Get() *StudioRun {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableStudioRun) Set(val *StudioRun) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableStudioRun) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableStudioRun) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableStudioRun(val *StudioRun) *NullableStudioRun {
|
|
return &NullableStudioRun{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableStudioRun) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableStudioRun) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|