Files
sdk/model_platform_pipeline_board.go

155 lines
4.3 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 PlatformPipelineBoard type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PlatformPipelineBoard{}
// PlatformPipelineBoard struct for PlatformPipelineBoard
type PlatformPipelineBoard struct {
// Pipelines are one per application in the caller's org.
Pipelines []PlatformPipelineRow `json:"pipelines,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PlatformPipelineBoard PlatformPipelineBoard
// NewPlatformPipelineBoard instantiates a new PlatformPipelineBoard 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 NewPlatformPipelineBoard() *PlatformPipelineBoard {
this := PlatformPipelineBoard{}
return &this
}
// NewPlatformPipelineBoardWithDefaults instantiates a new PlatformPipelineBoard 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 NewPlatformPipelineBoardWithDefaults() *PlatformPipelineBoard {
this := PlatformPipelineBoard{}
return &this
}
// GetPipelines returns the Pipelines field value if set, zero value otherwise.
func (o *PlatformPipelineBoard) GetPipelines() []PlatformPipelineRow {
if o == nil || IsNil(o.Pipelines) {
var ret []PlatformPipelineRow
return ret
}
return o.Pipelines
}
// GetPipelinesOk returns a tuple with the Pipelines field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PlatformPipelineBoard) GetPipelinesOk() ([]PlatformPipelineRow, bool) {
if o == nil || IsNil(o.Pipelines) {
return nil, false
}
return o.Pipelines, true
}
// HasPipelines returns a boolean if a field has been set.
func (o *PlatformPipelineBoard) HasPipelines() bool {
if o != nil && !IsNil(o.Pipelines) {
return true
}
return false
}
// SetPipelines gets a reference to the given []PlatformPipelineRow and assigns it to the Pipelines field.
func (o *PlatformPipelineBoard) SetPipelines(v []PlatformPipelineRow) {
o.Pipelines = v
}
func (o PlatformPipelineBoard) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PlatformPipelineBoard) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Pipelines) {
toSerialize["pipelines"] = o.Pipelines
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *PlatformPipelineBoard) UnmarshalJSON(data []byte) (err error) {
varPlatformPipelineBoard := _PlatformPipelineBoard{}
err = json.Unmarshal(data, &varPlatformPipelineBoard)
if err != nil {
return err
}
*o = PlatformPipelineBoard(varPlatformPipelineBoard)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "pipelines")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePlatformPipelineBoard struct {
value *PlatformPipelineBoard
isSet bool
}
func (v NullablePlatformPipelineBoard) Get() *PlatformPipelineBoard {
return v.value
}
func (v *NullablePlatformPipelineBoard) Set(val *PlatformPipelineBoard) {
v.value = val
v.isSet = true
}
func (v NullablePlatformPipelineBoard) IsSet() bool {
return v.isSet
}
func (v *NullablePlatformPipelineBoard) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePlatformPipelineBoard(val *PlatformPipelineBoard) *NullablePlatformPipelineBoard {
return &NullablePlatformPipelineBoard{value: val, isSet: true}
}
func (v NullablePlatformPipelineBoard) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePlatformPipelineBoard) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}