mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
307 lines
9.3 KiB
Go
307 lines
9.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 PlatformProjectBoard type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PlatformProjectBoard{}
|
|
|
|
// PlatformProjectBoard struct for PlatformProjectBoard
|
|
type PlatformProjectBoard struct {
|
|
// CD says why the reconciliation columns are missing, when they are.
|
|
CdUnavailable *PlatformUnreadable `json:"cdUnavailable,omitempty"`
|
|
// Cluster says why the running columns are missing, when they are.
|
|
ClusterUnavailable *PlatformUnreadable `json:"clusterUnavailable,omitempty"`
|
|
// Projects are sorted by owner, then name.
|
|
Projects []PlatformProject `json:"projects,omitempty"`
|
|
// Unassigned are declarations that name no project. Every declaration names one, so a non-empty list is drift in git itself.
|
|
Unassigned []PlatformDeclRef `json:"unassigned,omitempty"`
|
|
// Unreadable are the values files in the caller's scope that do not parse, so their projects are unknown. Absent when every file parsed.
|
|
Unreadable []PlatformUnreadableFile `json:"unreadable,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _PlatformProjectBoard PlatformProjectBoard
|
|
|
|
// NewPlatformProjectBoard instantiates a new PlatformProjectBoard 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 NewPlatformProjectBoard() *PlatformProjectBoard {
|
|
this := PlatformProjectBoard{}
|
|
return &this
|
|
}
|
|
|
|
// NewPlatformProjectBoardWithDefaults instantiates a new PlatformProjectBoard 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 NewPlatformProjectBoardWithDefaults() *PlatformProjectBoard {
|
|
this := PlatformProjectBoard{}
|
|
return &this
|
|
}
|
|
|
|
// GetCdUnavailable returns the CdUnavailable field value if set, zero value otherwise.
|
|
func (o *PlatformProjectBoard) GetCdUnavailable() PlatformUnreadable {
|
|
if o == nil || IsNil(o.CdUnavailable) {
|
|
var ret PlatformUnreadable
|
|
return ret
|
|
}
|
|
return *o.CdUnavailable
|
|
}
|
|
|
|
// GetCdUnavailableOk returns a tuple with the CdUnavailable field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformProjectBoard) GetCdUnavailableOk() (*PlatformUnreadable, bool) {
|
|
if o == nil || IsNil(o.CdUnavailable) {
|
|
return nil, false
|
|
}
|
|
return o.CdUnavailable, true
|
|
}
|
|
|
|
// HasCdUnavailable returns a boolean if a field has been set.
|
|
func (o *PlatformProjectBoard) HasCdUnavailable() bool {
|
|
if o != nil && !IsNil(o.CdUnavailable) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCdUnavailable gets a reference to the given PlatformUnreadable and assigns it to the CdUnavailable field.
|
|
func (o *PlatformProjectBoard) SetCdUnavailable(v PlatformUnreadable) {
|
|
o.CdUnavailable = &v
|
|
}
|
|
|
|
// GetClusterUnavailable returns the ClusterUnavailable field value if set, zero value otherwise.
|
|
func (o *PlatformProjectBoard) GetClusterUnavailable() PlatformUnreadable {
|
|
if o == nil || IsNil(o.ClusterUnavailable) {
|
|
var ret PlatformUnreadable
|
|
return ret
|
|
}
|
|
return *o.ClusterUnavailable
|
|
}
|
|
|
|
// GetClusterUnavailableOk returns a tuple with the ClusterUnavailable field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformProjectBoard) GetClusterUnavailableOk() (*PlatformUnreadable, bool) {
|
|
if o == nil || IsNil(o.ClusterUnavailable) {
|
|
return nil, false
|
|
}
|
|
return o.ClusterUnavailable, true
|
|
}
|
|
|
|
// HasClusterUnavailable returns a boolean if a field has been set.
|
|
func (o *PlatformProjectBoard) HasClusterUnavailable() bool {
|
|
if o != nil && !IsNil(o.ClusterUnavailable) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClusterUnavailable gets a reference to the given PlatformUnreadable and assigns it to the ClusterUnavailable field.
|
|
func (o *PlatformProjectBoard) SetClusterUnavailable(v PlatformUnreadable) {
|
|
o.ClusterUnavailable = &v
|
|
}
|
|
|
|
// GetProjects returns the Projects field value if set, zero value otherwise.
|
|
func (o *PlatformProjectBoard) GetProjects() []PlatformProject {
|
|
if o == nil || IsNil(o.Projects) {
|
|
var ret []PlatformProject
|
|
return ret
|
|
}
|
|
return o.Projects
|
|
}
|
|
|
|
// GetProjectsOk returns a tuple with the Projects field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformProjectBoard) GetProjectsOk() ([]PlatformProject, bool) {
|
|
if o == nil || IsNil(o.Projects) {
|
|
return nil, false
|
|
}
|
|
return o.Projects, true
|
|
}
|
|
|
|
// HasProjects returns a boolean if a field has been set.
|
|
func (o *PlatformProjectBoard) HasProjects() bool {
|
|
if o != nil && !IsNil(o.Projects) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProjects gets a reference to the given []PlatformProject and assigns it to the Projects field.
|
|
func (o *PlatformProjectBoard) SetProjects(v []PlatformProject) {
|
|
o.Projects = v
|
|
}
|
|
|
|
// GetUnassigned returns the Unassigned field value if set, zero value otherwise.
|
|
func (o *PlatformProjectBoard) GetUnassigned() []PlatformDeclRef {
|
|
if o == nil || IsNil(o.Unassigned) {
|
|
var ret []PlatformDeclRef
|
|
return ret
|
|
}
|
|
return o.Unassigned
|
|
}
|
|
|
|
// GetUnassignedOk returns a tuple with the Unassigned field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformProjectBoard) GetUnassignedOk() ([]PlatformDeclRef, bool) {
|
|
if o == nil || IsNil(o.Unassigned) {
|
|
return nil, false
|
|
}
|
|
return o.Unassigned, true
|
|
}
|
|
|
|
// HasUnassigned returns a boolean if a field has been set.
|
|
func (o *PlatformProjectBoard) HasUnassigned() bool {
|
|
if o != nil && !IsNil(o.Unassigned) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnassigned gets a reference to the given []PlatformDeclRef and assigns it to the Unassigned field.
|
|
func (o *PlatformProjectBoard) SetUnassigned(v []PlatformDeclRef) {
|
|
o.Unassigned = v
|
|
}
|
|
|
|
// GetUnreadable returns the Unreadable field value if set, zero value otherwise.
|
|
func (o *PlatformProjectBoard) GetUnreadable() []PlatformUnreadableFile {
|
|
if o == nil || IsNil(o.Unreadable) {
|
|
var ret []PlatformUnreadableFile
|
|
return ret
|
|
}
|
|
return o.Unreadable
|
|
}
|
|
|
|
// GetUnreadableOk returns a tuple with the Unreadable field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformProjectBoard) GetUnreadableOk() ([]PlatformUnreadableFile, bool) {
|
|
if o == nil || IsNil(o.Unreadable) {
|
|
return nil, false
|
|
}
|
|
return o.Unreadable, true
|
|
}
|
|
|
|
// HasUnreadable returns a boolean if a field has been set.
|
|
func (o *PlatformProjectBoard) HasUnreadable() bool {
|
|
if o != nil && !IsNil(o.Unreadable) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnreadable gets a reference to the given []PlatformUnreadableFile and assigns it to the Unreadable field.
|
|
func (o *PlatformProjectBoard) SetUnreadable(v []PlatformUnreadableFile) {
|
|
o.Unreadable = v
|
|
}
|
|
|
|
func (o PlatformProjectBoard) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PlatformProjectBoard) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CdUnavailable) {
|
|
toSerialize["cdUnavailable"] = o.CdUnavailable
|
|
}
|
|
if !IsNil(o.ClusterUnavailable) {
|
|
toSerialize["clusterUnavailable"] = o.ClusterUnavailable
|
|
}
|
|
if !IsNil(o.Projects) {
|
|
toSerialize["projects"] = o.Projects
|
|
}
|
|
if !IsNil(o.Unassigned) {
|
|
toSerialize["unassigned"] = o.Unassigned
|
|
}
|
|
if !IsNil(o.Unreadable) {
|
|
toSerialize["unreadable"] = o.Unreadable
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *PlatformProjectBoard) UnmarshalJSON(data []byte) (err error) {
|
|
varPlatformProjectBoard := _PlatformProjectBoard{}
|
|
|
|
err = json.Unmarshal(data, &varPlatformProjectBoard)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = PlatformProjectBoard(varPlatformProjectBoard)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "cdUnavailable")
|
|
delete(additionalProperties, "clusterUnavailable")
|
|
delete(additionalProperties, "projects")
|
|
delete(additionalProperties, "unassigned")
|
|
delete(additionalProperties, "unreadable")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullablePlatformProjectBoard struct {
|
|
value *PlatformProjectBoard
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePlatformProjectBoard) Get() *PlatformProjectBoard {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePlatformProjectBoard) Set(val *PlatformProjectBoard) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePlatformProjectBoard) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePlatformProjectBoard) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePlatformProjectBoard(val *PlatformProjectBoard) *NullablePlatformProjectBoard {
|
|
return &NullablePlatformProjectBoard{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePlatformProjectBoard) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePlatformProjectBoard) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|