mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1105 lines
32 KiB
Go
1105 lines
32 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 PlatformAppOut type satisfies the MappedNullable interface at compile time
|
||
var _ MappedNullable = &PlatformAppOut{}
|
||
|
||
// PlatformAppOut struct for PlatformAppOut
|
||
type PlatformAppOut struct {
|
||
// BuildType is how a git app builds: `pack`, the zero-config default that detects the project, or `dockerfile`. An image app carries `image`, which means it never builds.
|
||
BuildType *string `json:"buildType,omitempty"`
|
||
// CreatedAt is when the app was created, unix seconds.
|
||
CreatedAt *int64 `json:"createdAt,omitempty"`
|
||
// CurrentDeploymentID is the deployment that is live — the pointer a deploy advances monotonically by version, so it never regresses to an older one. Empty until the first deploy reaches the cluster.
|
||
CurrentDeploymentId *string `json:"currentDeploymentId,omitempty"`
|
||
// Description is free text about what the app is. Nothing derives from it.
|
||
Description *string `json:"description,omitempty"`
|
||
// Dockerfile is the path inside the repo to build from, for buildType `dockerfile`. The build path keys off its presence, and it is validated at create against the same allowlist the privileged build enforces.
|
||
Dockerfile *string `json:"dockerfile,omitempty"`
|
||
// Domains are the ingress hosts rendered into the app's CR, its own `<slug>.<sites host>` first. That one is seeded at create and cannot be removed; a custom host joins only after add-domain and DNS verification.
|
||
Domains []string `json:"domains,omitempty"`
|
||
// Env is the app's environment variables, with every SECRET value masked to \"\" — the plaintext is in KMS and this surface never echoes it. That masking is why an empty secret value means \"keep what is sealed\" when posted back.
|
||
Env []PlatformEnvVarJSON `json:"env,omitempty"`
|
||
// Environment is the deploy target this app names, `production` when none was given. It is a LABEL: /v1/platform/environments derives the environment list from the apps that name one, so an environment exists as long as an app points at it and no route creates or deletes one.
|
||
Environment *string `json:"environment,omitempty"`
|
||
// Health rolls ready-vs-desired replicas up to a colour: green (all ready), yellow (some ready, or deliberately scaled to zero), red (none), or \"\" when the cluster reports no replica counts at all — unknown, never a guessed green.
|
||
Health *string `json:"health,omitempty"`
|
||
// ID is the server-minted application id (`app_…`). Routes address an app by project and slug; this is the key its deployments and builds carry.
|
||
Id *string `json:"id,omitempty"`
|
||
// Image is the image a source `image` app runs. For a git app only the tag is filled, stamped by the deploy that went live; the built ref is on the deployment.
|
||
Image *PlatformImageView `json:"image,omitempty"`
|
||
// Name is the display name. It is not an address — the slug is.
|
||
Name *string `json:"name,omitempty"`
|
||
// Namespace is where the app's cluster objects live, `tenant-<org>`. It is derived from the validated org and is never accepted from a request.
|
||
Namespace *string `json:"namespace,omitempty"`
|
||
// Org is the tenant that owns the app. It comes from the validated identity, never from the request, and it is the boundary every route is scoped to.
|
||
Org *string `json:"org,omitempty"`
|
||
// Phase is the operator's own `status.phase` for the app's Service CR, read from the cluster on this request. Empty when there is no CR yet or the cluster could not be read.
|
||
Phase *string `json:"phase,omitempty"`
|
||
// Port is the container port traffic is sent to. 8080 when the create asked for none, or for one outside 1–65535.
|
||
Port *int64 `json:"port,omitempty"`
|
||
// ProjectID is the IAM project the app lives under, and it is that project's NAME — the (org,name) key IAM identifies it by, which is also what the `:project` path segment carries. There is no platform-minted project id.
|
||
ProjectId *string `json:"projectId,omitempty"`
|
||
// Replicas is how many copies the CR declares. It is CLAMPED to the deployment's ceiling rather than refused, so it can be below what was asked.
|
||
Replicas *int64 `json:"replicas,omitempty"`
|
||
// Repo is the git origin a source `git` app builds from, and the repo+branch a landed push has to match to build it.
|
||
Repo *PlatformGitSource `json:"repo,omitempty"`
|
||
// SecretSync is how far the app's secret env has got into the cluster: \"\"|pending|syncing|ready|failed (secrets.go). It is best-effort and never fails a deploy, so `pending` is ordinary right after one.
|
||
SecretSync *string `json:"secretSync,omitempty"`
|
||
// SecretSyncDetail is the honest reason when the sync is not ready — a missing CRD, an RBAC grant, a per-tenant credential. Empty when it is.
|
||
SecretSyncDetail *string `json:"secretSyncDetail,omitempty"`
|
||
// Slug is the app's identity in the cluster: the operator CR's name, the first label of its default host, and the `:app` path segment. Unique per project.
|
||
Slug *string `json:"slug,omitempty"`
|
||
// Source is what the app deploys FROM: `git`, which builds Repo, or `image`, which runs Image as it is. It decides whether a deploy builds at all.
|
||
Source *string `json:"source,omitempty"`
|
||
// Status is the lifecycle THIS store records: draft (created, nothing in the cluster yet), building, deploying, live, stopped or error. What the cluster itself says is Phase and Health.
|
||
Status *string `json:"status,omitempty"`
|
||
// StorageGB is the persistent volume size in GiB. Absent means stateless — no volume at all — and it is clamped like Replicas.
|
||
StorageGb *int64 `json:"storageGb,omitempty"`
|
||
// UpdatedAt is when it last changed, unix seconds. Every lifecycle transition moves it, so it tracks deploys as well as edits.
|
||
UpdatedAt *int64 `json:"updatedAt,omitempty"`
|
||
AdditionalProperties map[string]interface{}
|
||
}
|
||
|
||
type _PlatformAppOut PlatformAppOut
|
||
|
||
// NewPlatformAppOut instantiates a new PlatformAppOut 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 NewPlatformAppOut() *PlatformAppOut {
|
||
this := PlatformAppOut{}
|
||
return &this
|
||
}
|
||
|
||
// NewPlatformAppOutWithDefaults instantiates a new PlatformAppOut 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 NewPlatformAppOutWithDefaults() *PlatformAppOut {
|
||
this := PlatformAppOut{}
|
||
return &this
|
||
}
|
||
|
||
// GetBuildType returns the BuildType field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetBuildType() string {
|
||
if o == nil || IsNil(o.BuildType) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.BuildType
|
||
}
|
||
|
||
// GetBuildTypeOk returns a tuple with the BuildType field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetBuildTypeOk() (*string, bool) {
|
||
if o == nil || IsNil(o.BuildType) {
|
||
return nil, false
|
||
}
|
||
return o.BuildType, true
|
||
}
|
||
|
||
// HasBuildType returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasBuildType() bool {
|
||
if o != nil && !IsNil(o.BuildType) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetBuildType gets a reference to the given string and assigns it to the BuildType field.
|
||
func (o *PlatformAppOut) SetBuildType(v string) {
|
||
o.BuildType = &v
|
||
}
|
||
|
||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetCreatedAt() int64 {
|
||
if o == nil || IsNil(o.CreatedAt) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.CreatedAt
|
||
}
|
||
|
||
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetCreatedAtOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.CreatedAt) {
|
||
return nil, false
|
||
}
|
||
return o.CreatedAt, true
|
||
}
|
||
|
||
// HasCreatedAt returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasCreatedAt() bool {
|
||
if o != nil && !IsNil(o.CreatedAt) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
|
||
func (o *PlatformAppOut) SetCreatedAt(v int64) {
|
||
o.CreatedAt = &v
|
||
}
|
||
|
||
// GetCurrentDeploymentId returns the CurrentDeploymentId field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetCurrentDeploymentId() string {
|
||
if o == nil || IsNil(o.CurrentDeploymentId) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.CurrentDeploymentId
|
||
}
|
||
|
||
// GetCurrentDeploymentIdOk returns a tuple with the CurrentDeploymentId field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetCurrentDeploymentIdOk() (*string, bool) {
|
||
if o == nil || IsNil(o.CurrentDeploymentId) {
|
||
return nil, false
|
||
}
|
||
return o.CurrentDeploymentId, true
|
||
}
|
||
|
||
// HasCurrentDeploymentId returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasCurrentDeploymentId() bool {
|
||
if o != nil && !IsNil(o.CurrentDeploymentId) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetCurrentDeploymentId gets a reference to the given string and assigns it to the CurrentDeploymentId field.
|
||
func (o *PlatformAppOut) SetCurrentDeploymentId(v string) {
|
||
o.CurrentDeploymentId = &v
|
||
}
|
||
|
||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetDescription() string {
|
||
if o == nil || IsNil(o.Description) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Description
|
||
}
|
||
|
||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetDescriptionOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Description) {
|
||
return nil, false
|
||
}
|
||
return o.Description, true
|
||
}
|
||
|
||
// HasDescription returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasDescription() bool {
|
||
if o != nil && !IsNil(o.Description) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||
func (o *PlatformAppOut) SetDescription(v string) {
|
||
o.Description = &v
|
||
}
|
||
|
||
// GetDockerfile returns the Dockerfile field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetDockerfile() string {
|
||
if o == nil || IsNil(o.Dockerfile) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Dockerfile
|
||
}
|
||
|
||
// GetDockerfileOk returns a tuple with the Dockerfile field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetDockerfileOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Dockerfile) {
|
||
return nil, false
|
||
}
|
||
return o.Dockerfile, true
|
||
}
|
||
|
||
// HasDockerfile returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasDockerfile() bool {
|
||
if o != nil && !IsNil(o.Dockerfile) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetDockerfile gets a reference to the given string and assigns it to the Dockerfile field.
|
||
func (o *PlatformAppOut) SetDockerfile(v string) {
|
||
o.Dockerfile = &v
|
||
}
|
||
|
||
// GetDomains returns the Domains field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetDomains() []string {
|
||
if o == nil || IsNil(o.Domains) {
|
||
var ret []string
|
||
return ret
|
||
}
|
||
return o.Domains
|
||
}
|
||
|
||
// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetDomainsOk() ([]string, bool) {
|
||
if o == nil || IsNil(o.Domains) {
|
||
return nil, false
|
||
}
|
||
return o.Domains, true
|
||
}
|
||
|
||
// HasDomains returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasDomains() bool {
|
||
if o != nil && !IsNil(o.Domains) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetDomains gets a reference to the given []string and assigns it to the Domains field.
|
||
func (o *PlatformAppOut) SetDomains(v []string) {
|
||
o.Domains = v
|
||
}
|
||
|
||
// GetEnv returns the Env field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetEnv() []PlatformEnvVarJSON {
|
||
if o == nil || IsNil(o.Env) {
|
||
var ret []PlatformEnvVarJSON
|
||
return ret
|
||
}
|
||
return o.Env
|
||
}
|
||
|
||
// GetEnvOk returns a tuple with the Env field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetEnvOk() ([]PlatformEnvVarJSON, bool) {
|
||
if o == nil || IsNil(o.Env) {
|
||
return nil, false
|
||
}
|
||
return o.Env, true
|
||
}
|
||
|
||
// HasEnv returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasEnv() bool {
|
||
if o != nil && !IsNil(o.Env) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetEnv gets a reference to the given []PlatformEnvVarJSON and assigns it to the Env field.
|
||
func (o *PlatformAppOut) SetEnv(v []PlatformEnvVarJSON) {
|
||
o.Env = v
|
||
}
|
||
|
||
// GetEnvironment returns the Environment field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetEnvironment() string {
|
||
if o == nil || IsNil(o.Environment) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Environment
|
||
}
|
||
|
||
// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetEnvironmentOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Environment) {
|
||
return nil, false
|
||
}
|
||
return o.Environment, true
|
||
}
|
||
|
||
// HasEnvironment returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasEnvironment() bool {
|
||
if o != nil && !IsNil(o.Environment) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetEnvironment gets a reference to the given string and assigns it to the Environment field.
|
||
func (o *PlatformAppOut) SetEnvironment(v string) {
|
||
o.Environment = &v
|
||
}
|
||
|
||
// GetHealth returns the Health field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) SetHealth(v string) {
|
||
o.Health = &v
|
||
}
|
||
|
||
// GetId returns the Id field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetId() string {
|
||
if o == nil || IsNil(o.Id) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Id
|
||
}
|
||
|
||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetIdOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Id) {
|
||
return nil, false
|
||
}
|
||
return o.Id, true
|
||
}
|
||
|
||
// HasId returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasId() bool {
|
||
if o != nil && !IsNil(o.Id) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||
func (o *PlatformAppOut) SetId(v string) {
|
||
o.Id = &v
|
||
}
|
||
|
||
// GetImage returns the Image field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetImage() PlatformImageView {
|
||
if o == nil || IsNil(o.Image) {
|
||
var ret PlatformImageView
|
||
return ret
|
||
}
|
||
return *o.Image
|
||
}
|
||
|
||
// GetImageOk returns a tuple with the Image field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetImageOk() (*PlatformImageView, bool) {
|
||
if o == nil || IsNil(o.Image) {
|
||
return nil, false
|
||
}
|
||
return o.Image, true
|
||
}
|
||
|
||
// HasImage returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasImage() bool {
|
||
if o != nil && !IsNil(o.Image) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetImage gets a reference to the given PlatformImageView and assigns it to the Image field.
|
||
func (o *PlatformAppOut) SetImage(v PlatformImageView) {
|
||
o.Image = &v
|
||
}
|
||
|
||
// GetName returns the Name field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) SetName(v string) {
|
||
o.Name = &v
|
||
}
|
||
|
||
// GetNamespace returns the Namespace field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) SetNamespace(v string) {
|
||
o.Namespace = &v
|
||
}
|
||
|
||
// GetOrg returns the Org field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetOrg() string {
|
||
if o == nil || IsNil(o.Org) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Org
|
||
}
|
||
|
||
// GetOrgOk returns a tuple with the Org field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetOrgOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Org) {
|
||
return nil, false
|
||
}
|
||
return o.Org, true
|
||
}
|
||
|
||
// HasOrg returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasOrg() bool {
|
||
if o != nil && !IsNil(o.Org) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetOrg gets a reference to the given string and assigns it to the Org field.
|
||
func (o *PlatformAppOut) SetOrg(v string) {
|
||
o.Org = &v
|
||
}
|
||
|
||
// GetPhase returns the Phase field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) 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 *PlatformAppOut) SetPhase(v string) {
|
||
o.Phase = &v
|
||
}
|
||
|
||
// GetPort returns the Port field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetPort() int64 {
|
||
if o == nil || IsNil(o.Port) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.Port
|
||
}
|
||
|
||
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetPortOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.Port) {
|
||
return nil, false
|
||
}
|
||
return o.Port, true
|
||
}
|
||
|
||
// HasPort returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasPort() bool {
|
||
if o != nil && !IsNil(o.Port) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetPort gets a reference to the given int64 and assigns it to the Port field.
|
||
func (o *PlatformAppOut) SetPort(v int64) {
|
||
o.Port = &v
|
||
}
|
||
|
||
// GetProjectId returns the ProjectId field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetProjectId() string {
|
||
if o == nil || IsNil(o.ProjectId) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.ProjectId
|
||
}
|
||
|
||
// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetProjectIdOk() (*string, bool) {
|
||
if o == nil || IsNil(o.ProjectId) {
|
||
return nil, false
|
||
}
|
||
return o.ProjectId, true
|
||
}
|
||
|
||
// HasProjectId returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasProjectId() bool {
|
||
if o != nil && !IsNil(o.ProjectId) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
|
||
func (o *PlatformAppOut) SetProjectId(v string) {
|
||
o.ProjectId = &v
|
||
}
|
||
|
||
// GetReplicas returns the Replicas field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetReplicas() int64 {
|
||
if o == nil || IsNil(o.Replicas) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.Replicas
|
||
}
|
||
|
||
// GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetReplicasOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.Replicas) {
|
||
return nil, false
|
||
}
|
||
return o.Replicas, true
|
||
}
|
||
|
||
// HasReplicas returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasReplicas() bool {
|
||
if o != nil && !IsNil(o.Replicas) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetReplicas gets a reference to the given int64 and assigns it to the Replicas field.
|
||
func (o *PlatformAppOut) SetReplicas(v int64) {
|
||
o.Replicas = &v
|
||
}
|
||
|
||
// GetRepo returns the Repo field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetRepo() PlatformGitSource {
|
||
if o == nil || IsNil(o.Repo) {
|
||
var ret PlatformGitSource
|
||
return ret
|
||
}
|
||
return *o.Repo
|
||
}
|
||
|
||
// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetRepoOk() (*PlatformGitSource, bool) {
|
||
if o == nil || IsNil(o.Repo) {
|
||
return nil, false
|
||
}
|
||
return o.Repo, true
|
||
}
|
||
|
||
// HasRepo returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasRepo() bool {
|
||
if o != nil && !IsNil(o.Repo) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetRepo gets a reference to the given PlatformGitSource and assigns it to the Repo field.
|
||
func (o *PlatformAppOut) SetRepo(v PlatformGitSource) {
|
||
o.Repo = &v
|
||
}
|
||
|
||
// GetSecretSync returns the SecretSync field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetSecretSync() string {
|
||
if o == nil || IsNil(o.SecretSync) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.SecretSync
|
||
}
|
||
|
||
// GetSecretSyncOk returns a tuple with the SecretSync field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetSecretSyncOk() (*string, bool) {
|
||
if o == nil || IsNil(o.SecretSync) {
|
||
return nil, false
|
||
}
|
||
return o.SecretSync, true
|
||
}
|
||
|
||
// HasSecretSync returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasSecretSync() bool {
|
||
if o != nil && !IsNil(o.SecretSync) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetSecretSync gets a reference to the given string and assigns it to the SecretSync field.
|
||
func (o *PlatformAppOut) SetSecretSync(v string) {
|
||
o.SecretSync = &v
|
||
}
|
||
|
||
// GetSecretSyncDetail returns the SecretSyncDetail field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetSecretSyncDetail() string {
|
||
if o == nil || IsNil(o.SecretSyncDetail) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.SecretSyncDetail
|
||
}
|
||
|
||
// GetSecretSyncDetailOk returns a tuple with the SecretSyncDetail field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetSecretSyncDetailOk() (*string, bool) {
|
||
if o == nil || IsNil(o.SecretSyncDetail) {
|
||
return nil, false
|
||
}
|
||
return o.SecretSyncDetail, true
|
||
}
|
||
|
||
// HasSecretSyncDetail returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasSecretSyncDetail() bool {
|
||
if o != nil && !IsNil(o.SecretSyncDetail) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetSecretSyncDetail gets a reference to the given string and assigns it to the SecretSyncDetail field.
|
||
func (o *PlatformAppOut) SetSecretSyncDetail(v string) {
|
||
o.SecretSyncDetail = &v
|
||
}
|
||
|
||
// GetSlug returns the Slug field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetSlug() string {
|
||
if o == nil || IsNil(o.Slug) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Slug
|
||
}
|
||
|
||
// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetSlugOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Slug) {
|
||
return nil, false
|
||
}
|
||
return o.Slug, true
|
||
}
|
||
|
||
// HasSlug returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasSlug() bool {
|
||
if o != nil && !IsNil(o.Slug) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetSlug gets a reference to the given string and assigns it to the Slug field.
|
||
func (o *PlatformAppOut) SetSlug(v string) {
|
||
o.Slug = &v
|
||
}
|
||
|
||
// GetSource returns the Source field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetSource() string {
|
||
if o == nil || IsNil(o.Source) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Source
|
||
}
|
||
|
||
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetSourceOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Source) {
|
||
return nil, false
|
||
}
|
||
return o.Source, true
|
||
}
|
||
|
||
// HasSource returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasSource() bool {
|
||
if o != nil && !IsNil(o.Source) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetSource gets a reference to the given string and assigns it to the Source field.
|
||
func (o *PlatformAppOut) SetSource(v string) {
|
||
o.Source = &v
|
||
}
|
||
|
||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetStatus() string {
|
||
if o == nil || IsNil(o.Status) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Status
|
||
}
|
||
|
||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetStatusOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Status) {
|
||
return nil, false
|
||
}
|
||
return o.Status, true
|
||
}
|
||
|
||
// HasStatus returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasStatus() bool {
|
||
if o != nil && !IsNil(o.Status) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
||
func (o *PlatformAppOut) SetStatus(v string) {
|
||
o.Status = &v
|
||
}
|
||
|
||
// GetStorageGb returns the StorageGb field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetStorageGb() int64 {
|
||
if o == nil || IsNil(o.StorageGb) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.StorageGb
|
||
}
|
||
|
||
// GetStorageGbOk returns a tuple with the StorageGb field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetStorageGbOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.StorageGb) {
|
||
return nil, false
|
||
}
|
||
return o.StorageGb, true
|
||
}
|
||
|
||
// HasStorageGb returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasStorageGb() bool {
|
||
if o != nil && !IsNil(o.StorageGb) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetStorageGb gets a reference to the given int64 and assigns it to the StorageGb field.
|
||
func (o *PlatformAppOut) SetStorageGb(v int64) {
|
||
o.StorageGb = &v
|
||
}
|
||
|
||
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
||
func (o *PlatformAppOut) GetUpdatedAt() int64 {
|
||
if o == nil || IsNil(o.UpdatedAt) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.UpdatedAt
|
||
}
|
||
|
||
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *PlatformAppOut) GetUpdatedAtOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.UpdatedAt) {
|
||
return nil, false
|
||
}
|
||
return o.UpdatedAt, true
|
||
}
|
||
|
||
// HasUpdatedAt returns a boolean if a field has been set.
|
||
func (o *PlatformAppOut) HasUpdatedAt() bool {
|
||
if o != nil && !IsNil(o.UpdatedAt) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
|
||
func (o *PlatformAppOut) SetUpdatedAt(v int64) {
|
||
o.UpdatedAt = &v
|
||
}
|
||
|
||
func (o PlatformAppOut) MarshalJSON() ([]byte, error) {
|
||
toSerialize, err := o.ToMap()
|
||
if err != nil {
|
||
return []byte{}, err
|
||
}
|
||
return json.Marshal(toSerialize)
|
||
}
|
||
|
||
func (o PlatformAppOut) ToMap() (map[string]interface{}, error) {
|
||
toSerialize := map[string]interface{}{}
|
||
if !IsNil(o.BuildType) {
|
||
toSerialize["buildType"] = o.BuildType
|
||
}
|
||
if !IsNil(o.CreatedAt) {
|
||
toSerialize["createdAt"] = o.CreatedAt
|
||
}
|
||
if !IsNil(o.CurrentDeploymentId) {
|
||
toSerialize["currentDeploymentId"] = o.CurrentDeploymentId
|
||
}
|
||
if !IsNil(o.Description) {
|
||
toSerialize["description"] = o.Description
|
||
}
|
||
if !IsNil(o.Dockerfile) {
|
||
toSerialize["dockerfile"] = o.Dockerfile
|
||
}
|
||
if !IsNil(o.Domains) {
|
||
toSerialize["domains"] = o.Domains
|
||
}
|
||
if !IsNil(o.Env) {
|
||
toSerialize["env"] = o.Env
|
||
}
|
||
if !IsNil(o.Environment) {
|
||
toSerialize["environment"] = o.Environment
|
||
}
|
||
if !IsNil(o.Health) {
|
||
toSerialize["health"] = o.Health
|
||
}
|
||
if !IsNil(o.Id) {
|
||
toSerialize["id"] = o.Id
|
||
}
|
||
if !IsNil(o.Image) {
|
||
toSerialize["image"] = o.Image
|
||
}
|
||
if !IsNil(o.Name) {
|
||
toSerialize["name"] = o.Name
|
||
}
|
||
if !IsNil(o.Namespace) {
|
||
toSerialize["namespace"] = o.Namespace
|
||
}
|
||
if !IsNil(o.Org) {
|
||
toSerialize["org"] = o.Org
|
||
}
|
||
if !IsNil(o.Phase) {
|
||
toSerialize["phase"] = o.Phase
|
||
}
|
||
if !IsNil(o.Port) {
|
||
toSerialize["port"] = o.Port
|
||
}
|
||
if !IsNil(o.ProjectId) {
|
||
toSerialize["projectId"] = o.ProjectId
|
||
}
|
||
if !IsNil(o.Replicas) {
|
||
toSerialize["replicas"] = o.Replicas
|
||
}
|
||
if !IsNil(o.Repo) {
|
||
toSerialize["repo"] = o.Repo
|
||
}
|
||
if !IsNil(o.SecretSync) {
|
||
toSerialize["secretSync"] = o.SecretSync
|
||
}
|
||
if !IsNil(o.SecretSyncDetail) {
|
||
toSerialize["secretSyncDetail"] = o.SecretSyncDetail
|
||
}
|
||
if !IsNil(o.Slug) {
|
||
toSerialize["slug"] = o.Slug
|
||
}
|
||
if !IsNil(o.Source) {
|
||
toSerialize["source"] = o.Source
|
||
}
|
||
if !IsNil(o.Status) {
|
||
toSerialize["status"] = o.Status
|
||
}
|
||
if !IsNil(o.StorageGb) {
|
||
toSerialize["storageGb"] = o.StorageGb
|
||
}
|
||
if !IsNil(o.UpdatedAt) {
|
||
toSerialize["updatedAt"] = o.UpdatedAt
|
||
}
|
||
|
||
for key, value := range o.AdditionalProperties {
|
||
toSerialize[key] = value
|
||
}
|
||
|
||
return toSerialize, nil
|
||
}
|
||
|
||
func (o *PlatformAppOut) UnmarshalJSON(data []byte) (err error) {
|
||
varPlatformAppOut := _PlatformAppOut{}
|
||
|
||
err = json.Unmarshal(data, &varPlatformAppOut)
|
||
|
||
if err != nil {
|
||
return err
|
||
}
|
||
|
||
*o = PlatformAppOut(varPlatformAppOut)
|
||
|
||
additionalProperties := make(map[string]interface{})
|
||
|
||
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
||
delete(additionalProperties, "buildType")
|
||
delete(additionalProperties, "createdAt")
|
||
delete(additionalProperties, "currentDeploymentId")
|
||
delete(additionalProperties, "description")
|
||
delete(additionalProperties, "dockerfile")
|
||
delete(additionalProperties, "domains")
|
||
delete(additionalProperties, "env")
|
||
delete(additionalProperties, "environment")
|
||
delete(additionalProperties, "health")
|
||
delete(additionalProperties, "id")
|
||
delete(additionalProperties, "image")
|
||
delete(additionalProperties, "name")
|
||
delete(additionalProperties, "namespace")
|
||
delete(additionalProperties, "org")
|
||
delete(additionalProperties, "phase")
|
||
delete(additionalProperties, "port")
|
||
delete(additionalProperties, "projectId")
|
||
delete(additionalProperties, "replicas")
|
||
delete(additionalProperties, "repo")
|
||
delete(additionalProperties, "secretSync")
|
||
delete(additionalProperties, "secretSyncDetail")
|
||
delete(additionalProperties, "slug")
|
||
delete(additionalProperties, "source")
|
||
delete(additionalProperties, "status")
|
||
delete(additionalProperties, "storageGb")
|
||
delete(additionalProperties, "updatedAt")
|
||
o.AdditionalProperties = additionalProperties
|
||
}
|
||
|
||
return err
|
||
}
|
||
|
||
type NullablePlatformAppOut struct {
|
||
value *PlatformAppOut
|
||
isSet bool
|
||
}
|
||
|
||
func (v NullablePlatformAppOut) Get() *PlatformAppOut {
|
||
return v.value
|
||
}
|
||
|
||
func (v *NullablePlatformAppOut) Set(val *PlatformAppOut) {
|
||
v.value = val
|
||
v.isSet = true
|
||
}
|
||
|
||
func (v NullablePlatformAppOut) IsSet() bool {
|
||
return v.isSet
|
||
}
|
||
|
||
func (v *NullablePlatformAppOut) Unset() {
|
||
v.value = nil
|
||
v.isSet = false
|
||
}
|
||
|
||
func NewNullablePlatformAppOut(val *PlatformAppOut) *NullablePlatformAppOut {
|
||
return &NullablePlatformAppOut{value: val, isSet: true}
|
||
}
|
||
|
||
func (v NullablePlatformAppOut) MarshalJSON() ([]byte, error) {
|
||
return json.Marshal(v.value)
|
||
}
|
||
|
||
func (v *NullablePlatformAppOut) UnmarshalJSON(src []byte) error {
|
||
v.isSet = true
|
||
return json.Unmarshal(src, &v.value)
|
||
}
|