mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
686 lines
19 KiB
Go
686 lines
19 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 PlatformCDApp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PlatformCDApp{}
|
|
|
|
// PlatformCDApp struct for PlatformCDApp
|
|
type PlatformCDApp struct {
|
|
// Applied is the universe commit CD last synced, from its deploy history. It trails Revision exactly while a sync is pending.
|
|
Applied *string `json:"applied,omitempty"`
|
|
// Automated is whether CD applies git without being asked. It is cd.automated in the values file, rendered by the ApplicationSet's templatePatch — false means the Application reports drift and nothing moves.
|
|
Automated *bool `json:"automated,omitempty"`
|
|
// Cluster is where the Application deploys: its destination cluster's name, else its server URL (https://kubernetes.default.svc is CD's own cluster).
|
|
Cluster *string `json:"cluster,omitempty"`
|
|
// Health is the workload's verdict: Healthy, Progressing, Degraded, Missing.
|
|
Health *string `json:"health,omitempty"`
|
|
// Message is why, when Health is not Healthy.
|
|
Message *string `json:"message,omitempty"`
|
|
// Name is the Application name the generator mints: <namespace>-<app>. It is the join key against a Declaration.
|
|
Name *string `json:"name,omitempty"`
|
|
// Namespace is the DESTINATION namespace as the CR declares it — where the workload lands. For a fleet Application that is the org, but this is the OBSERVED field and not our model of it: the two can disagree, and a board whose whole job is drift must be able to show that they do.
|
|
Namespace *string `json:"namespace,omitempty"`
|
|
OperationMessage *string `json:"operationMessage,omitempty"`
|
|
// Path is the values file CD renders against, relative to the chart source.
|
|
Path *string `json:"path,omitempty"`
|
|
// Phase is the last sync operation's phase (Running, Succeeded, Failed) and OperationMessage is its message. A Failed phase with a Synced verdict is the shape a stuck Application takes.
|
|
Phase *string `json:"phase,omitempty"`
|
|
// Project is the AppProject fence the sync is admitted under.
|
|
Project *string `json:"project,omitempty"`
|
|
// ReconciledAt is when CD last compared this Application.
|
|
ReconciledAt *string `json:"reconciledAt,omitempty"`
|
|
// Revision is the universe commit CD last compared the cluster against — what a sync applies. Empty means it has compared none; never assume it means main.
|
|
Revision *string `json:"revision,omitempty"`
|
|
// SelfHeal is whether CD also corrects drift the cluster introduced.
|
|
SelfHeal *bool `json:"selfHeal,omitempty"`
|
|
// Sync is CD's verdict on git-versus-cluster: Synced, OutOfSync, or Unknown.
|
|
Sync *string `json:"sync,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _PlatformCDApp PlatformCDApp
|
|
|
|
// NewPlatformCDApp instantiates a new PlatformCDApp 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 NewPlatformCDApp() *PlatformCDApp {
|
|
this := PlatformCDApp{}
|
|
return &this
|
|
}
|
|
|
|
// NewPlatformCDAppWithDefaults instantiates a new PlatformCDApp 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 NewPlatformCDAppWithDefaults() *PlatformCDApp {
|
|
this := PlatformCDApp{}
|
|
return &this
|
|
}
|
|
|
|
// GetApplied returns the Applied field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetApplied() string {
|
|
if o == nil || IsNil(o.Applied) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Applied
|
|
}
|
|
|
|
// GetAppliedOk returns a tuple with the Applied field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetAppliedOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Applied) {
|
|
return nil, false
|
|
}
|
|
return o.Applied, true
|
|
}
|
|
|
|
// HasApplied returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasApplied() bool {
|
|
if o != nil && !IsNil(o.Applied) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetApplied gets a reference to the given string and assigns it to the Applied field.
|
|
func (o *PlatformCDApp) SetApplied(v string) {
|
|
o.Applied = &v
|
|
}
|
|
|
|
// GetAutomated returns the Automated field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetAutomated() bool {
|
|
if o == nil || IsNil(o.Automated) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Automated
|
|
}
|
|
|
|
// GetAutomatedOk returns a tuple with the Automated field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetAutomatedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Automated) {
|
|
return nil, false
|
|
}
|
|
return o.Automated, true
|
|
}
|
|
|
|
// HasAutomated returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasAutomated() bool {
|
|
if o != nil && !IsNil(o.Automated) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAutomated gets a reference to the given bool and assigns it to the Automated field.
|
|
func (o *PlatformCDApp) SetAutomated(v bool) {
|
|
o.Automated = &v
|
|
}
|
|
|
|
// GetCluster returns the Cluster field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetCluster() string {
|
|
if o == nil || IsNil(o.Cluster) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Cluster
|
|
}
|
|
|
|
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetClusterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Cluster) {
|
|
return nil, false
|
|
}
|
|
return o.Cluster, true
|
|
}
|
|
|
|
// HasCluster returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasCluster() bool {
|
|
if o != nil && !IsNil(o.Cluster) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCluster gets a reference to the given string and assigns it to the Cluster field.
|
|
func (o *PlatformCDApp) SetCluster(v string) {
|
|
o.Cluster = &v
|
|
}
|
|
|
|
// GetHealth returns the Health field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetHealth() string {
|
|
if o == nil || IsNil(o.Health) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Health
|
|
}
|
|
|
|
// GetHealthOk returns a tuple with the Health field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetHealthOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Health) {
|
|
return nil, false
|
|
}
|
|
return o.Health, true
|
|
}
|
|
|
|
// HasHealth returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasHealth() bool {
|
|
if o != nil && !IsNil(o.Health) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHealth gets a reference to the given string and assigns it to the Health field.
|
|
func (o *PlatformCDApp) SetHealth(v string) {
|
|
o.Health = &v
|
|
}
|
|
|
|
// GetMessage returns the Message field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetMessage() string {
|
|
if o == nil || IsNil(o.Message) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Message
|
|
}
|
|
|
|
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetMessageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Message) {
|
|
return nil, false
|
|
}
|
|
return o.Message, true
|
|
}
|
|
|
|
// HasMessage returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasMessage() bool {
|
|
if o != nil && !IsNil(o.Message) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMessage gets a reference to the given string and assigns it to the Message field.
|
|
func (o *PlatformCDApp) SetMessage(v string) {
|
|
o.Message = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *PlatformCDApp) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetNamespace returns the Namespace field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetNamespace() string {
|
|
if o == nil || IsNil(o.Namespace) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Namespace
|
|
}
|
|
|
|
// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetNamespaceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Namespace) {
|
|
return nil, false
|
|
}
|
|
return o.Namespace, true
|
|
}
|
|
|
|
// HasNamespace returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasNamespace() bool {
|
|
if o != nil && !IsNil(o.Namespace) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNamespace gets a reference to the given string and assigns it to the Namespace field.
|
|
func (o *PlatformCDApp) SetNamespace(v string) {
|
|
o.Namespace = &v
|
|
}
|
|
|
|
// GetOperationMessage returns the OperationMessage field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetOperationMessage() string {
|
|
if o == nil || IsNil(o.OperationMessage) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.OperationMessage
|
|
}
|
|
|
|
// GetOperationMessageOk returns a tuple with the OperationMessage field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetOperationMessageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.OperationMessage) {
|
|
return nil, false
|
|
}
|
|
return o.OperationMessage, true
|
|
}
|
|
|
|
// HasOperationMessage returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasOperationMessage() bool {
|
|
if o != nil && !IsNil(o.OperationMessage) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOperationMessage gets a reference to the given string and assigns it to the OperationMessage field.
|
|
func (o *PlatformCDApp) SetOperationMessage(v string) {
|
|
o.OperationMessage = &v
|
|
}
|
|
|
|
// GetPath returns the Path field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetPath() string {
|
|
if o == nil || IsNil(o.Path) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Path
|
|
}
|
|
|
|
// GetPathOk returns a tuple with the Path field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetPathOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Path) {
|
|
return nil, false
|
|
}
|
|
return o.Path, true
|
|
}
|
|
|
|
// HasPath returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasPath() bool {
|
|
if o != nil && !IsNil(o.Path) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPath gets a reference to the given string and assigns it to the Path field.
|
|
func (o *PlatformCDApp) SetPath(v string) {
|
|
o.Path = &v
|
|
}
|
|
|
|
// GetPhase returns the Phase field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetPhase() string {
|
|
if o == nil || IsNil(o.Phase) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Phase
|
|
}
|
|
|
|
// GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetPhaseOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Phase) {
|
|
return nil, false
|
|
}
|
|
return o.Phase, true
|
|
}
|
|
|
|
// HasPhase returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasPhase() bool {
|
|
if o != nil && !IsNil(o.Phase) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPhase gets a reference to the given string and assigns it to the Phase field.
|
|
func (o *PlatformCDApp) SetPhase(v string) {
|
|
o.Phase = &v
|
|
}
|
|
|
|
// GetProject returns the Project field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetProject() string {
|
|
if o == nil || IsNil(o.Project) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Project
|
|
}
|
|
|
|
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetProjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Project) {
|
|
return nil, false
|
|
}
|
|
return o.Project, true
|
|
}
|
|
|
|
// HasProject returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasProject() bool {
|
|
if o != nil && !IsNil(o.Project) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProject gets a reference to the given string and assigns it to the Project field.
|
|
func (o *PlatformCDApp) SetProject(v string) {
|
|
o.Project = &v
|
|
}
|
|
|
|
// GetReconciledAt returns the ReconciledAt field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetReconciledAt() string {
|
|
if o == nil || IsNil(o.ReconciledAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ReconciledAt
|
|
}
|
|
|
|
// GetReconciledAtOk returns a tuple with the ReconciledAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetReconciledAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ReconciledAt) {
|
|
return nil, false
|
|
}
|
|
return o.ReconciledAt, true
|
|
}
|
|
|
|
// HasReconciledAt returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasReconciledAt() bool {
|
|
if o != nil && !IsNil(o.ReconciledAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReconciledAt gets a reference to the given string and assigns it to the ReconciledAt field.
|
|
func (o *PlatformCDApp) SetReconciledAt(v string) {
|
|
o.ReconciledAt = &v
|
|
}
|
|
|
|
// GetRevision returns the Revision field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetRevision() string {
|
|
if o == nil || IsNil(o.Revision) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Revision
|
|
}
|
|
|
|
// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetRevisionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Revision) {
|
|
return nil, false
|
|
}
|
|
return o.Revision, true
|
|
}
|
|
|
|
// HasRevision returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasRevision() bool {
|
|
if o != nil && !IsNil(o.Revision) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRevision gets a reference to the given string and assigns it to the Revision field.
|
|
func (o *PlatformCDApp) SetRevision(v string) {
|
|
o.Revision = &v
|
|
}
|
|
|
|
// GetSelfHeal returns the SelfHeal field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetSelfHeal() bool {
|
|
if o == nil || IsNil(o.SelfHeal) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SelfHeal
|
|
}
|
|
|
|
// GetSelfHealOk returns a tuple with the SelfHeal field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetSelfHealOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SelfHeal) {
|
|
return nil, false
|
|
}
|
|
return o.SelfHeal, true
|
|
}
|
|
|
|
// HasSelfHeal returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasSelfHeal() bool {
|
|
if o != nil && !IsNil(o.SelfHeal) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSelfHeal gets a reference to the given bool and assigns it to the SelfHeal field.
|
|
func (o *PlatformCDApp) SetSelfHeal(v bool) {
|
|
o.SelfHeal = &v
|
|
}
|
|
|
|
// GetSync returns the Sync field value if set, zero value otherwise.
|
|
func (o *PlatformCDApp) GetSync() string {
|
|
if o == nil || IsNil(o.Sync) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Sync
|
|
}
|
|
|
|
// GetSyncOk returns a tuple with the Sync field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformCDApp) GetSyncOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Sync) {
|
|
return nil, false
|
|
}
|
|
return o.Sync, true
|
|
}
|
|
|
|
// HasSync returns a boolean if a field has been set.
|
|
func (o *PlatformCDApp) HasSync() bool {
|
|
if o != nil && !IsNil(o.Sync) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSync gets a reference to the given string and assigns it to the Sync field.
|
|
func (o *PlatformCDApp) SetSync(v string) {
|
|
o.Sync = &v
|
|
}
|
|
|
|
func (o PlatformCDApp) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PlatformCDApp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Applied) {
|
|
toSerialize["applied"] = o.Applied
|
|
}
|
|
if !IsNil(o.Automated) {
|
|
toSerialize["automated"] = o.Automated
|
|
}
|
|
if !IsNil(o.Cluster) {
|
|
toSerialize["cluster"] = o.Cluster
|
|
}
|
|
if !IsNil(o.Health) {
|
|
toSerialize["health"] = o.Health
|
|
}
|
|
if !IsNil(o.Message) {
|
|
toSerialize["message"] = o.Message
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Namespace) {
|
|
toSerialize["namespace"] = o.Namespace
|
|
}
|
|
if !IsNil(o.OperationMessage) {
|
|
toSerialize["operationMessage"] = o.OperationMessage
|
|
}
|
|
if !IsNil(o.Path) {
|
|
toSerialize["path"] = o.Path
|
|
}
|
|
if !IsNil(o.Phase) {
|
|
toSerialize["phase"] = o.Phase
|
|
}
|
|
if !IsNil(o.Project) {
|
|
toSerialize["project"] = o.Project
|
|
}
|
|
if !IsNil(o.ReconciledAt) {
|
|
toSerialize["reconciledAt"] = o.ReconciledAt
|
|
}
|
|
if !IsNil(o.Revision) {
|
|
toSerialize["revision"] = o.Revision
|
|
}
|
|
if !IsNil(o.SelfHeal) {
|
|
toSerialize["selfHeal"] = o.SelfHeal
|
|
}
|
|
if !IsNil(o.Sync) {
|
|
toSerialize["sync"] = o.Sync
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *PlatformCDApp) UnmarshalJSON(data []byte) (err error) {
|
|
varPlatformCDApp := _PlatformCDApp{}
|
|
|
|
err = json.Unmarshal(data, &varPlatformCDApp)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = PlatformCDApp(varPlatformCDApp)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "applied")
|
|
delete(additionalProperties, "automated")
|
|
delete(additionalProperties, "cluster")
|
|
delete(additionalProperties, "health")
|
|
delete(additionalProperties, "message")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "namespace")
|
|
delete(additionalProperties, "operationMessage")
|
|
delete(additionalProperties, "path")
|
|
delete(additionalProperties, "phase")
|
|
delete(additionalProperties, "project")
|
|
delete(additionalProperties, "reconciledAt")
|
|
delete(additionalProperties, "revision")
|
|
delete(additionalProperties, "selfHeal")
|
|
delete(additionalProperties, "sync")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullablePlatformCDApp struct {
|
|
value *PlatformCDApp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePlatformCDApp) Get() *PlatformCDApp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePlatformCDApp) Set(val *PlatformCDApp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePlatformCDApp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePlatformCDApp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePlatformCDApp(val *PlatformCDApp) *NullablePlatformCDApp {
|
|
return &NullablePlatformCDApp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePlatformCDApp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePlatformCDApp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|