mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
231 lines
6.2 KiB
Go
231 lines
6.2 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 GuideCurriculum type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GuideCurriculum{}
|
|
|
|
// GuideCurriculum struct for GuideCurriculum
|
|
type GuideCurriculum struct {
|
|
// Steps are the enabled steps in authoring order. Order is the tiebreak the next-step logic walks, so it is part of the contract rather than cosmetic.
|
|
Steps []GuideJourneyStep `json:"steps,omitempty"`
|
|
// Title is the playbook's name as it heads the checklist.
|
|
Title *string `json:"title,omitempty"`
|
|
// Version identifies the authored playbook this journey was projected from, so two orgs on different playbooks can be told apart. It is the blueprint's own `version` string, not the store's numeric revision.
|
|
Version *string `json:"version,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _GuideCurriculum GuideCurriculum
|
|
|
|
// NewGuideCurriculum instantiates a new GuideCurriculum 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 NewGuideCurriculum() *GuideCurriculum {
|
|
this := GuideCurriculum{}
|
|
return &this
|
|
}
|
|
|
|
// NewGuideCurriculumWithDefaults instantiates a new GuideCurriculum 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 NewGuideCurriculumWithDefaults() *GuideCurriculum {
|
|
this := GuideCurriculum{}
|
|
return &this
|
|
}
|
|
|
|
// GetSteps returns the Steps field value if set, zero value otherwise.
|
|
func (o *GuideCurriculum) GetSteps() []GuideJourneyStep {
|
|
if o == nil || IsNil(o.Steps) {
|
|
var ret []GuideJourneyStep
|
|
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 *GuideCurriculum) GetStepsOk() ([]GuideJourneyStep, 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 *GuideCurriculum) HasSteps() bool {
|
|
if o != nil && !IsNil(o.Steps) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSteps gets a reference to the given []GuideJourneyStep and assigns it to the Steps field.
|
|
func (o *GuideCurriculum) SetSteps(v []GuideJourneyStep) {
|
|
o.Steps = v
|
|
}
|
|
|
|
// GetTitle returns the Title field value if set, zero value otherwise.
|
|
func (o *GuideCurriculum) 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 *GuideCurriculum) 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 *GuideCurriculum) 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 *GuideCurriculum) SetTitle(v string) {
|
|
o.Title = &v
|
|
}
|
|
|
|
// GetVersion returns the Version field value if set, zero value otherwise.
|
|
func (o *GuideCurriculum) 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 *GuideCurriculum) 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 *GuideCurriculum) 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 *GuideCurriculum) SetVersion(v string) {
|
|
o.Version = &v
|
|
}
|
|
|
|
func (o GuideCurriculum) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o GuideCurriculum) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
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 *GuideCurriculum) UnmarshalJSON(data []byte) (err error) {
|
|
varGuideCurriculum := _GuideCurriculum{}
|
|
|
|
err = json.Unmarshal(data, &varGuideCurriculum)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = GuideCurriculum(varGuideCurriculum)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "steps")
|
|
delete(additionalProperties, "title")
|
|
delete(additionalProperties, "version")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableGuideCurriculum struct {
|
|
value *GuideCurriculum
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGuideCurriculum) Get() *GuideCurriculum {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGuideCurriculum) Set(val *GuideCurriculum) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGuideCurriculum) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGuideCurriculum) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGuideCurriculum(val *GuideCurriculum) *NullableGuideCurriculum {
|
|
return &NullableGuideCurriculum{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGuideCurriculum) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGuideCurriculum) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|