mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
345 lines
9.4 KiB
Go
345 lines
9.4 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 GuideOverviewView type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GuideOverviewView{}
|
|
|
|
// GuideOverviewView struct for GuideOverviewView
|
|
type GuideOverviewView struct {
|
|
// Custom is true when the org replaced the shared playbook with one of its own — the difference between \"everyone's checklist\" and \"the one you authored\".
|
|
Custom *bool `json:"custom,omitempty"`
|
|
// Funnel is the org's analytics lens, present only where the read asked for it — absent means it was not requested, never that the org has no traffic.
|
|
Funnel *GuideFunnel `json:"funnel,omitempty"`
|
|
// Progress is how far through the journey the org is.
|
|
Progress *GuideProgressView `json:"progress,omitempty"`
|
|
// Steps are every enabled step with the org's own state folded in, in authoring order.
|
|
Steps []GuideStepView `json:"steps,omitempty"`
|
|
// Title is the playbook's name as it heads the checklist.
|
|
Title *string `json:"title,omitempty"`
|
|
// Version identifies the playbook this journey came from, so a caller can tell that the checklist itself changed under them.
|
|
Version *string `json:"version,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _GuideOverviewView GuideOverviewView
|
|
|
|
// NewGuideOverviewView instantiates a new GuideOverviewView 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 NewGuideOverviewView() *GuideOverviewView {
|
|
this := GuideOverviewView{}
|
|
return &this
|
|
}
|
|
|
|
// NewGuideOverviewViewWithDefaults instantiates a new GuideOverviewView 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 NewGuideOverviewViewWithDefaults() *GuideOverviewView {
|
|
this := GuideOverviewView{}
|
|
return &this
|
|
}
|
|
|
|
// GetCustom returns the Custom field value if set, zero value otherwise.
|
|
func (o *GuideOverviewView) GetCustom() bool {
|
|
if o == nil || IsNil(o.Custom) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Custom
|
|
}
|
|
|
|
// GetCustomOk returns a tuple with the Custom field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GuideOverviewView) GetCustomOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Custom) {
|
|
return nil, false
|
|
}
|
|
return o.Custom, true
|
|
}
|
|
|
|
// HasCustom returns a boolean if a field has been set.
|
|
func (o *GuideOverviewView) HasCustom() bool {
|
|
if o != nil && !IsNil(o.Custom) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustom gets a reference to the given bool and assigns it to the Custom field.
|
|
func (o *GuideOverviewView) SetCustom(v bool) {
|
|
o.Custom = &v
|
|
}
|
|
|
|
// GetFunnel returns the Funnel field value if set, zero value otherwise.
|
|
func (o *GuideOverviewView) GetFunnel() GuideFunnel {
|
|
if o == nil || IsNil(o.Funnel) {
|
|
var ret GuideFunnel
|
|
return ret
|
|
}
|
|
return *o.Funnel
|
|
}
|
|
|
|
// GetFunnelOk returns a tuple with the Funnel field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GuideOverviewView) GetFunnelOk() (*GuideFunnel, bool) {
|
|
if o == nil || IsNil(o.Funnel) {
|
|
return nil, false
|
|
}
|
|
return o.Funnel, true
|
|
}
|
|
|
|
// HasFunnel returns a boolean if a field has been set.
|
|
func (o *GuideOverviewView) HasFunnel() bool {
|
|
if o != nil && !IsNil(o.Funnel) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFunnel gets a reference to the given GuideFunnel and assigns it to the Funnel field.
|
|
func (o *GuideOverviewView) SetFunnel(v GuideFunnel) {
|
|
o.Funnel = &v
|
|
}
|
|
|
|
// GetProgress returns the Progress field value if set, zero value otherwise.
|
|
func (o *GuideOverviewView) GetProgress() GuideProgressView {
|
|
if o == nil || IsNil(o.Progress) {
|
|
var ret GuideProgressView
|
|
return ret
|
|
}
|
|
return *o.Progress
|
|
}
|
|
|
|
// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GuideOverviewView) GetProgressOk() (*GuideProgressView, bool) {
|
|
if o == nil || IsNil(o.Progress) {
|
|
return nil, false
|
|
}
|
|
return o.Progress, true
|
|
}
|
|
|
|
// HasProgress returns a boolean if a field has been set.
|
|
func (o *GuideOverviewView) HasProgress() bool {
|
|
if o != nil && !IsNil(o.Progress) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProgress gets a reference to the given GuideProgressView and assigns it to the Progress field.
|
|
func (o *GuideOverviewView) SetProgress(v GuideProgressView) {
|
|
o.Progress = &v
|
|
}
|
|
|
|
// GetSteps returns the Steps field value if set, zero value otherwise.
|
|
func (o *GuideOverviewView) GetSteps() []GuideStepView {
|
|
if o == nil || IsNil(o.Steps) {
|
|
var ret []GuideStepView
|
|
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 *GuideOverviewView) GetStepsOk() ([]GuideStepView, 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 *GuideOverviewView) HasSteps() bool {
|
|
if o != nil && !IsNil(o.Steps) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSteps gets a reference to the given []GuideStepView and assigns it to the Steps field.
|
|
func (o *GuideOverviewView) SetSteps(v []GuideStepView) {
|
|
o.Steps = v
|
|
}
|
|
|
|
// GetTitle returns the Title field value if set, zero value otherwise.
|
|
func (o *GuideOverviewView) 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 *GuideOverviewView) 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 *GuideOverviewView) 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 *GuideOverviewView) SetTitle(v string) {
|
|
o.Title = &v
|
|
}
|
|
|
|
// GetVersion returns the Version field value if set, zero value otherwise.
|
|
func (o *GuideOverviewView) GetVersion() string {
|
|
if o == nil || IsNil(o.Version) {
|
|
var ret string
|
|
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 *GuideOverviewView) GetVersionOk() (*string, 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 *GuideOverviewView) HasVersion() bool {
|
|
if o != nil && !IsNil(o.Version) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVersion gets a reference to the given string and assigns it to the Version field.
|
|
func (o *GuideOverviewView) SetVersion(v string) {
|
|
o.Version = &v
|
|
}
|
|
|
|
func (o GuideOverviewView) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o GuideOverviewView) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Custom) {
|
|
toSerialize["custom"] = o.Custom
|
|
}
|
|
if !IsNil(o.Funnel) {
|
|
toSerialize["funnel"] = o.Funnel
|
|
}
|
|
if !IsNil(o.Progress) {
|
|
toSerialize["progress"] = o.Progress
|
|
}
|
|
if !IsNil(o.Steps) {
|
|
toSerialize["steps"] = o.Steps
|
|
}
|
|
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 *GuideOverviewView) UnmarshalJSON(data []byte) (err error) {
|
|
varGuideOverviewView := _GuideOverviewView{}
|
|
|
|
err = json.Unmarshal(data, &varGuideOverviewView)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = GuideOverviewView(varGuideOverviewView)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "custom")
|
|
delete(additionalProperties, "funnel")
|
|
delete(additionalProperties, "progress")
|
|
delete(additionalProperties, "steps")
|
|
delete(additionalProperties, "title")
|
|
delete(additionalProperties, "version")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableGuideOverviewView struct {
|
|
value *GuideOverviewView
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGuideOverviewView) Get() *GuideOverviewView {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGuideOverviewView) Set(val *GuideOverviewView) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGuideOverviewView) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGuideOverviewView) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGuideOverviewView(val *GuideOverviewView) *NullableGuideOverviewView {
|
|
return &NullableGuideOverviewView{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGuideOverviewView) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGuideOverviewView) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|