Files
sdk/model_guide_step_view.go

725 lines
19 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 GuideStepView type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GuideStepView{}
// GuideStepView struct for GuideStepView
type GuideStepView struct {
// Args are the tool's default arguments, merged under whatever the caller passes at run time.
Args map[string]interface{} `json:"args,omitempty"`
// Automatable is true when the Business AI can run this step (it names a tool).
Automatable *bool `json:"automatable,omitempty"`
// Available is true when every dependency is done or skipped.
Available *bool `json:"available,omitempty"`
// BlockedBy lists the unfinished dependencies keeping the step unavailable.
BlockedBy []string `json:"blockedBy,omitempty"`
// Dependencies are step ids that must be done/skipped before this step is available. The wire key is `deps` (the blueprint contract).
Deps []string `json:"deps,omitempty"`
// Detail is the prose/juncture — what the Guide asks or explains here.
Detail *string `json:"detail,omitempty"`
// Draft, when set, is the prompt the embedded AI answers first; its output is folded into one of Args before the tool runs.
Draft *string `json:"draft,omitempty"`
// DraftInto names the argument the drafted text lands in. Empty means \"brief\".
DraftInto *string `json:"draftInto,omitempty"`
// Enabled is the admin on/off lever; absent reads as enabled.
Enabled *bool `json:"enabled,omitempty"`
// ID is the step's id, as it appears in the journey (e.g. \"gsuite\").
Id *string `json:"id,omitempty"`
// Section is the phase (section id) this step groups under.
Section *string `json:"section,omitempty"`
// Signal names the machine detector that auto-marks this step done.
Signal *string `json:"signal,omitempty"`
// Source records what marked the state: manual, auto (detected) or agent.
Source *string `json:"source,omitempty"`
// State is the step's per-org lifecycle state: todo|in_progress|done|skipped.
State *string `json:"state,omitempty"`
// Title is the one-line quest as a person reads it in the checklist.
Title *string `json:"title,omitempty"`
// Tool is the MCP tool the Business AI runs for \"do it for me\". A step naming none can only be completed by a person.
Tool *string `json:"tool,omitempty"`
AdditionalProperties map[string]interface{}
}
type _GuideStepView GuideStepView
// NewGuideStepView instantiates a new GuideStepView 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 NewGuideStepView() *GuideStepView {
this := GuideStepView{}
return &this
}
// NewGuideStepViewWithDefaults instantiates a new GuideStepView 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 NewGuideStepViewWithDefaults() *GuideStepView {
this := GuideStepView{}
return &this
}
// GetArgs returns the Args field value if set, zero value otherwise.
func (o *GuideStepView) GetArgs() map[string]interface{} {
if o == nil || IsNil(o.Args) {
var ret map[string]interface{}
return ret
}
return o.Args
}
// GetArgsOk returns a tuple with the Args field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetArgsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Args) {
return map[string]interface{}{}, false
}
return o.Args, true
}
// HasArgs returns a boolean if a field has been set.
func (o *GuideStepView) HasArgs() bool {
if o != nil && !IsNil(o.Args) {
return true
}
return false
}
// SetArgs gets a reference to the given map[string]interface{} and assigns it to the Args field.
func (o *GuideStepView) SetArgs(v map[string]interface{}) {
o.Args = v
}
// GetAutomatable returns the Automatable field value if set, zero value otherwise.
func (o *GuideStepView) GetAutomatable() bool {
if o == nil || IsNil(o.Automatable) {
var ret bool
return ret
}
return *o.Automatable
}
// GetAutomatableOk returns a tuple with the Automatable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetAutomatableOk() (*bool, bool) {
if o == nil || IsNil(o.Automatable) {
return nil, false
}
return o.Automatable, true
}
// HasAutomatable returns a boolean if a field has been set.
func (o *GuideStepView) HasAutomatable() bool {
if o != nil && !IsNil(o.Automatable) {
return true
}
return false
}
// SetAutomatable gets a reference to the given bool and assigns it to the Automatable field.
func (o *GuideStepView) SetAutomatable(v bool) {
o.Automatable = &v
}
// GetAvailable returns the Available field value if set, zero value otherwise.
func (o *GuideStepView) GetAvailable() bool {
if o == nil || IsNil(o.Available) {
var ret bool
return ret
}
return *o.Available
}
// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetAvailableOk() (*bool, bool) {
if o == nil || IsNil(o.Available) {
return nil, false
}
return o.Available, true
}
// HasAvailable returns a boolean if a field has been set.
func (o *GuideStepView) HasAvailable() bool {
if o != nil && !IsNil(o.Available) {
return true
}
return false
}
// SetAvailable gets a reference to the given bool and assigns it to the Available field.
func (o *GuideStepView) SetAvailable(v bool) {
o.Available = &v
}
// GetBlockedBy returns the BlockedBy field value if set, zero value otherwise.
func (o *GuideStepView) GetBlockedBy() []string {
if o == nil || IsNil(o.BlockedBy) {
var ret []string
return ret
}
return o.BlockedBy
}
// GetBlockedByOk returns a tuple with the BlockedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetBlockedByOk() ([]string, bool) {
if o == nil || IsNil(o.BlockedBy) {
return nil, false
}
return o.BlockedBy, true
}
// HasBlockedBy returns a boolean if a field has been set.
func (o *GuideStepView) HasBlockedBy() bool {
if o != nil && !IsNil(o.BlockedBy) {
return true
}
return false
}
// SetBlockedBy gets a reference to the given []string and assigns it to the BlockedBy field.
func (o *GuideStepView) SetBlockedBy(v []string) {
o.BlockedBy = v
}
// GetDeps returns the Deps field value if set, zero value otherwise.
func (o *GuideStepView) GetDeps() []string {
if o == nil || IsNil(o.Deps) {
var ret []string
return ret
}
return o.Deps
}
// GetDepsOk returns a tuple with the Deps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetDepsOk() ([]string, bool) {
if o == nil || IsNil(o.Deps) {
return nil, false
}
return o.Deps, true
}
// HasDeps returns a boolean if a field has been set.
func (o *GuideStepView) HasDeps() bool {
if o != nil && !IsNil(o.Deps) {
return true
}
return false
}
// SetDeps gets a reference to the given []string and assigns it to the Deps field.
func (o *GuideStepView) SetDeps(v []string) {
o.Deps = v
}
// GetDetail returns the Detail field value if set, zero value otherwise.
func (o *GuideStepView) GetDetail() string {
if o == nil || IsNil(o.Detail) {
var ret string
return ret
}
return *o.Detail
}
// 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 (o *GuideStepView) GetDetailOk() (*string, bool) {
if o == nil || IsNil(o.Detail) {
return nil, false
}
return o.Detail, true
}
// HasDetail returns a boolean if a field has been set.
func (o *GuideStepView) HasDetail() bool {
if o != nil && !IsNil(o.Detail) {
return true
}
return false
}
// SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *GuideStepView) SetDetail(v string) {
o.Detail = &v
}
// GetDraft returns the Draft field value if set, zero value otherwise.
func (o *GuideStepView) GetDraft() string {
if o == nil || IsNil(o.Draft) {
var ret string
return ret
}
return *o.Draft
}
// GetDraftOk returns a tuple with the Draft field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetDraftOk() (*string, bool) {
if o == nil || IsNil(o.Draft) {
return nil, false
}
return o.Draft, true
}
// HasDraft returns a boolean if a field has been set.
func (o *GuideStepView) HasDraft() bool {
if o != nil && !IsNil(o.Draft) {
return true
}
return false
}
// SetDraft gets a reference to the given string and assigns it to the Draft field.
func (o *GuideStepView) SetDraft(v string) {
o.Draft = &v
}
// GetDraftInto returns the DraftInto field value if set, zero value otherwise.
func (o *GuideStepView) GetDraftInto() string {
if o == nil || IsNil(o.DraftInto) {
var ret string
return ret
}
return *o.DraftInto
}
// GetDraftIntoOk returns a tuple with the DraftInto field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetDraftIntoOk() (*string, bool) {
if o == nil || IsNil(o.DraftInto) {
return nil, false
}
return o.DraftInto, true
}
// HasDraftInto returns a boolean if a field has been set.
func (o *GuideStepView) HasDraftInto() bool {
if o != nil && !IsNil(o.DraftInto) {
return true
}
return false
}
// SetDraftInto gets a reference to the given string and assigns it to the DraftInto field.
func (o *GuideStepView) SetDraftInto(v string) {
o.DraftInto = &v
}
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *GuideStepView) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
var ret bool
return ret
}
return *o.Enabled
}
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.Enabled) {
return nil, false
}
return o.Enabled, true
}
// HasEnabled returns a boolean if a field has been set.
func (o *GuideStepView) HasEnabled() bool {
if o != nil && !IsNil(o.Enabled) {
return true
}
return false
}
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *GuideStepView) SetEnabled(v bool) {
o.Enabled = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *GuideStepView) 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 *GuideStepView) 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 *GuideStepView) 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 *GuideStepView) SetId(v string) {
o.Id = &v
}
// GetSection returns the Section field value if set, zero value otherwise.
func (o *GuideStepView) GetSection() string {
if o == nil || IsNil(o.Section) {
var ret string
return ret
}
return *o.Section
}
// GetSectionOk returns a tuple with the Section field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetSectionOk() (*string, bool) {
if o == nil || IsNil(o.Section) {
return nil, false
}
return o.Section, true
}
// HasSection returns a boolean if a field has been set.
func (o *GuideStepView) HasSection() bool {
if o != nil && !IsNil(o.Section) {
return true
}
return false
}
// SetSection gets a reference to the given string and assigns it to the Section field.
func (o *GuideStepView) SetSection(v string) {
o.Section = &v
}
// GetSignal returns the Signal field value if set, zero value otherwise.
func (o *GuideStepView) GetSignal() string {
if o == nil || IsNil(o.Signal) {
var ret string
return ret
}
return *o.Signal
}
// GetSignalOk returns a tuple with the Signal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetSignalOk() (*string, bool) {
if o == nil || IsNil(o.Signal) {
return nil, false
}
return o.Signal, true
}
// HasSignal returns a boolean if a field has been set.
func (o *GuideStepView) HasSignal() bool {
if o != nil && !IsNil(o.Signal) {
return true
}
return false
}
// SetSignal gets a reference to the given string and assigns it to the Signal field.
func (o *GuideStepView) SetSignal(v string) {
o.Signal = &v
}
// GetSource returns the Source field value if set, zero value otherwise.
func (o *GuideStepView) GetSource() string {
if o == nil || IsNil(o.Source) {
var ret string
return ret
}
return *o.Source
}
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetSourceOk() (*string, bool) {
if o == nil || IsNil(o.Source) {
return nil, false
}
return o.Source, true
}
// HasSource returns a boolean if a field has been set.
func (o *GuideStepView) HasSource() bool {
if o != nil && !IsNil(o.Source) {
return true
}
return false
}
// SetSource gets a reference to the given string and assigns it to the Source field.
func (o *GuideStepView) SetSource(v string) {
o.Source = &v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *GuideStepView) GetState() string {
if o == nil || IsNil(o.State) {
var ret string
return ret
}
return *o.State
}
// 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 (o *GuideStepView) GetStateOk() (*string, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *GuideStepView) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *GuideStepView) SetState(v string) {
o.State = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *GuideStepView) 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 *GuideStepView) 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 *GuideStepView) 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 *GuideStepView) SetTitle(v string) {
o.Title = &v
}
// GetTool returns the Tool field value if set, zero value otherwise.
func (o *GuideStepView) GetTool() string {
if o == nil || IsNil(o.Tool) {
var ret string
return ret
}
return *o.Tool
}
// GetToolOk returns a tuple with the Tool field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideStepView) GetToolOk() (*string, bool) {
if o == nil || IsNil(o.Tool) {
return nil, false
}
return o.Tool, true
}
// HasTool returns a boolean if a field has been set.
func (o *GuideStepView) HasTool() bool {
if o != nil && !IsNil(o.Tool) {
return true
}
return false
}
// SetTool gets a reference to the given string and assigns it to the Tool field.
func (o *GuideStepView) SetTool(v string) {
o.Tool = &v
}
func (o GuideStepView) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GuideStepView) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Args) {
toSerialize["args"] = o.Args
}
if !IsNil(o.Automatable) {
toSerialize["automatable"] = o.Automatable
}
if !IsNil(o.Available) {
toSerialize["available"] = o.Available
}
if !IsNil(o.BlockedBy) {
toSerialize["blockedBy"] = o.BlockedBy
}
if !IsNil(o.Deps) {
toSerialize["deps"] = o.Deps
}
if !IsNil(o.Detail) {
toSerialize["detail"] = o.Detail
}
if !IsNil(o.Draft) {
toSerialize["draft"] = o.Draft
}
if !IsNil(o.DraftInto) {
toSerialize["draftInto"] = o.DraftInto
}
if !IsNil(o.Enabled) {
toSerialize["enabled"] = o.Enabled
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Section) {
toSerialize["section"] = o.Section
}
if !IsNil(o.Signal) {
toSerialize["signal"] = o.Signal
}
if !IsNil(o.Source) {
toSerialize["source"] = o.Source
}
if !IsNil(o.State) {
toSerialize["state"] = o.State
}
if !IsNil(o.Title) {
toSerialize["title"] = o.Title
}
if !IsNil(o.Tool) {
toSerialize["tool"] = o.Tool
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *GuideStepView) UnmarshalJSON(data []byte) (err error) {
varGuideStepView := _GuideStepView{}
err = json.Unmarshal(data, &varGuideStepView)
if err != nil {
return err
}
*o = GuideStepView(varGuideStepView)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "args")
delete(additionalProperties, "automatable")
delete(additionalProperties, "available")
delete(additionalProperties, "blockedBy")
delete(additionalProperties, "deps")
delete(additionalProperties, "detail")
delete(additionalProperties, "draft")
delete(additionalProperties, "draftInto")
delete(additionalProperties, "enabled")
delete(additionalProperties, "id")
delete(additionalProperties, "section")
delete(additionalProperties, "signal")
delete(additionalProperties, "source")
delete(additionalProperties, "state")
delete(additionalProperties, "title")
delete(additionalProperties, "tool")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableGuideStepView struct {
value *GuideStepView
isSet bool
}
func (v NullableGuideStepView) Get() *GuideStepView {
return v.value
}
func (v *NullableGuideStepView) Set(val *GuideStepView) {
v.value = val
v.isSet = true
}
func (v NullableGuideStepView) IsSet() bool {
return v.isSet
}
func (v *NullableGuideStepView) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGuideStepView(val *GuideStepView) *NullableGuideStepView {
return &NullableGuideStepView{value: val, isSet: true}
}
func (v NullableGuideStepView) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGuideStepView) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}