mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
302 lines
8.2 KiB
Go
302 lines
8.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 AutoStepSettings type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &AutoStepSettings{}
|
|
|
|
// AutoStepSettings struct for AutoStepSettings
|
|
type AutoStepSettings struct {
|
|
ActionName *string `json:"actionName,omitempty"`
|
|
Input map[string]interface{} `json:"input,omitempty"`
|
|
PieceName *string `json:"pieceName,omitempty"`
|
|
PieceVersion *string `json:"pieceVersion,omitempty"`
|
|
TriggerName *string `json:"triggerName,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _AutoStepSettings AutoStepSettings
|
|
|
|
// NewAutoStepSettings instantiates a new AutoStepSettings 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 NewAutoStepSettings() *AutoStepSettings {
|
|
this := AutoStepSettings{}
|
|
return &this
|
|
}
|
|
|
|
// NewAutoStepSettingsWithDefaults instantiates a new AutoStepSettings 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 NewAutoStepSettingsWithDefaults() *AutoStepSettings {
|
|
this := AutoStepSettings{}
|
|
return &this
|
|
}
|
|
|
|
// GetActionName returns the ActionName field value if set, zero value otherwise.
|
|
func (o *AutoStepSettings) GetActionName() string {
|
|
if o == nil || IsNil(o.ActionName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ActionName
|
|
}
|
|
|
|
// GetActionNameOk returns a tuple with the ActionName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AutoStepSettings) GetActionNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ActionName) {
|
|
return nil, false
|
|
}
|
|
return o.ActionName, true
|
|
}
|
|
|
|
// HasActionName returns a boolean if a field has been set.
|
|
func (o *AutoStepSettings) HasActionName() bool {
|
|
if o != nil && !IsNil(o.ActionName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActionName gets a reference to the given string and assigns it to the ActionName field.
|
|
func (o *AutoStepSettings) SetActionName(v string) {
|
|
o.ActionName = &v
|
|
}
|
|
|
|
// GetInput returns the Input field value if set, zero value otherwise.
|
|
func (o *AutoStepSettings) 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 *AutoStepSettings) 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 *AutoStepSettings) 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 *AutoStepSettings) SetInput(v map[string]interface{}) {
|
|
o.Input = v
|
|
}
|
|
|
|
// GetPieceName returns the PieceName field value if set, zero value otherwise.
|
|
func (o *AutoStepSettings) GetPieceName() string {
|
|
if o == nil || IsNil(o.PieceName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PieceName
|
|
}
|
|
|
|
// GetPieceNameOk returns a tuple with the PieceName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AutoStepSettings) GetPieceNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.PieceName) {
|
|
return nil, false
|
|
}
|
|
return o.PieceName, true
|
|
}
|
|
|
|
// HasPieceName returns a boolean if a field has been set.
|
|
func (o *AutoStepSettings) HasPieceName() bool {
|
|
if o != nil && !IsNil(o.PieceName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPieceName gets a reference to the given string and assigns it to the PieceName field.
|
|
func (o *AutoStepSettings) SetPieceName(v string) {
|
|
o.PieceName = &v
|
|
}
|
|
|
|
// GetPieceVersion returns the PieceVersion field value if set, zero value otherwise.
|
|
func (o *AutoStepSettings) GetPieceVersion() string {
|
|
if o == nil || IsNil(o.PieceVersion) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PieceVersion
|
|
}
|
|
|
|
// GetPieceVersionOk returns a tuple with the PieceVersion field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AutoStepSettings) GetPieceVersionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.PieceVersion) {
|
|
return nil, false
|
|
}
|
|
return o.PieceVersion, true
|
|
}
|
|
|
|
// HasPieceVersion returns a boolean if a field has been set.
|
|
func (o *AutoStepSettings) HasPieceVersion() bool {
|
|
if o != nil && !IsNil(o.PieceVersion) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPieceVersion gets a reference to the given string and assigns it to the PieceVersion field.
|
|
func (o *AutoStepSettings) SetPieceVersion(v string) {
|
|
o.PieceVersion = &v
|
|
}
|
|
|
|
// GetTriggerName returns the TriggerName field value if set, zero value otherwise.
|
|
func (o *AutoStepSettings) GetTriggerName() string {
|
|
if o == nil || IsNil(o.TriggerName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TriggerName
|
|
}
|
|
|
|
// GetTriggerNameOk returns a tuple with the TriggerName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AutoStepSettings) GetTriggerNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TriggerName) {
|
|
return nil, false
|
|
}
|
|
return o.TriggerName, true
|
|
}
|
|
|
|
// HasTriggerName returns a boolean if a field has been set.
|
|
func (o *AutoStepSettings) HasTriggerName() bool {
|
|
if o != nil && !IsNil(o.TriggerName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTriggerName gets a reference to the given string and assigns it to the TriggerName field.
|
|
func (o *AutoStepSettings) SetTriggerName(v string) {
|
|
o.TriggerName = &v
|
|
}
|
|
|
|
func (o AutoStepSettings) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o AutoStepSettings) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ActionName) {
|
|
toSerialize["actionName"] = o.ActionName
|
|
}
|
|
if !IsNil(o.Input) {
|
|
toSerialize["input"] = o.Input
|
|
}
|
|
if !IsNil(o.PieceName) {
|
|
toSerialize["pieceName"] = o.PieceName
|
|
}
|
|
if !IsNil(o.PieceVersion) {
|
|
toSerialize["pieceVersion"] = o.PieceVersion
|
|
}
|
|
if !IsNil(o.TriggerName) {
|
|
toSerialize["triggerName"] = o.TriggerName
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *AutoStepSettings) UnmarshalJSON(data []byte) (err error) {
|
|
varAutoStepSettings := _AutoStepSettings{}
|
|
|
|
err = json.Unmarshal(data, &varAutoStepSettings)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = AutoStepSettings(varAutoStepSettings)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "actionName")
|
|
delete(additionalProperties, "input")
|
|
delete(additionalProperties, "pieceName")
|
|
delete(additionalProperties, "pieceVersion")
|
|
delete(additionalProperties, "triggerName")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableAutoStepSettings struct {
|
|
value *AutoStepSettings
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableAutoStepSettings) Get() *AutoStepSettings {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableAutoStepSettings) Set(val *AutoStepSettings) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableAutoStepSettings) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableAutoStepSettings) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableAutoStepSettings(val *AutoStepSettings) *NullableAutoStepSettings {
|
|
return &NullableAutoStepSettings{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableAutoStepSettings) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableAutoStepSettings) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|