Files
sdk/model_project_projects_project.go

1219 lines
38 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 ProjectProjectsProject type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProjectProjectsProject{}
// ProjectProjectsProject struct for ProjectProjectsProject
type ProjectProjectsProject struct {
// Analytics is whether the web-analytics beacon is injected into this site's pages. It is ON by default — a project has to opt out — and it is what the static builder reads to decide whether to inject at all.
Analytics *bool `json:"analytics,omitempty"`
// Bucket is the object-store bucket the site's files are served out of.
Bucket *string `json:"bucket,omitempty"`
// CacheControl is the Cache-Control policy the edge serves this site's HTML under — how long a reader may hold a stale page before asking again. Assets are content-addressed and are not governed by it.
CacheControl *string `json:"cacheControl,omitempty"`
// CreatedAt is when the project was created, as Unix seconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// CurrentDeploymentID names the deployment currently serving, so a caller can ask what is live without scanning the history.
CurrentDeploymentId *string `json:"currentDeploymentId,omitempty"`
// Description is the one-line summary, which is copied onto forks of this project and shown on a gallery card.
Description *string `json:"description,omitempty"`
// DropLocal is whether events a developer's own machine sends (localhost, 127.0.0.1, *.local) are dropped at ingest. ON by default.
DropLocal *bool `json:"dropLocal,omitempty"`
// ForkedFrom is the parent this project was forked from (\"<org>/<slug>\" of a published project, or a catalog template slug) — the attribution edge a gallery credits.
ForkedFrom *string `json:"forkedFrom,omitempty"`
// Framework is a BUILD HINT from a closed set, defaulting to static. It tells CI how to build a linked repo and never gates a deploy, so a wrong value costs a build rather than access.
Framework *string `json:"framework,omitempty"`
// Hidden is PLATFORM MODERATION, and it is a different axis from visibility: it pulls a public project out of the catalogue without editing the publisher's own choice, so un-hiding restores exactly what they asked for. A project is listed only when it is public AND not hidden. Always present, never omitted, for the same reason as visibility.
Hidden *bool `json:"hidden,omitempty"`
// HiddenReason is why moderation hid it. Absent when it is not hidden.
HiddenReason *string `json:"hiddenReason,omitempty"`
// ID is the project's internal identifier. It is stable across a rename, but it is not what the API addresses this project by — `slug` is.
Id *string `json:"id,omitempty"`
// InternalNetworks are the site's own addresses, as CIDRs (\"203.0.113.0/24\"). A visit from one is the site's team: the tag config answers audience \"internal\" (Google Analytics tagged internal, no ad pixel) and its events are stamped internal and forwarded to no ad platform. Empty unless set.
InternalNetworks []string `json:"internalNetworks,omitempty"`
// Key is the project's publishable ingest key, minted at create. It is the value the injected beacon carries and the ONE thing that attributes this site's events; the static-builder reads it beside analytics. Publishable means it belongs in a page's source: it names a write scope and mints no principal, so it is returned in full rather than masked. Masking it would only mean every caller needed a second endpoint to get the thing the page already ships.
Key *string `json:"key,omitempty"`
// LastPurgeAt is when the edge cache was last cleared, as Unix seconds, so a console can say how fresh what readers see actually is. Absent means never.
LastPurgeAt *int64 `json:"lastPurgeAt,omitempty"`
// License is the terms that upstream work carries. Absent has the same reading: undeclared, not unencumbered.
License *string `json:"license,omitempty"`
// LiveURL is where the site answers today. Absent until something has been deployed.
LiveUrl *string `json:"liveUrl,omitempty"`
// Name is the project's display name, free text a person chose.
Name *string `json:"name,omitempty"`
// Namespace is where the site's files are kept: `<namespace>/<slug>/` in the sites bucket. It is the GitHub org the project's repository lives in when this org holds that GitHub account, and the org otherwise, decided when the repository is linked.
Namespace *string `json:"namespace,omitempty"`
// Org is the organisation that owns the project, and therefore who pays for it and who may change it. It is also the AUTHORSHIP line a gallery credits; there is no separate author field.
Org *string `json:"org,omitempty"`
// Repo is the git source this project builds from, empty when it is deployed by uploading an artifact instead.
Repo *ProjectProjectsRepo `json:"repo,omitempty"`
// Slug is the identifier that MATTERS: the handle every later call addresses, the S3 key segment the site's objects live under, and the label of the public host `<slug>.hanzo.app`. Because it is a hostname it is constrained and reserved labels such as `api` are refused.
Slug *string `json:"slug,omitempty"`
// Space is the project's Base data space, which is where a deployed site's form, forum and data submissions land. Absent means the site stores nothing.
Space *string `json:"space,omitempty"`
// Starred is THIS CALLER's star, not a property of the project — two people in the same org see different values for the same row, which is the whole point of it. Always present so a client can tell \"not starred\" from \"this API is too old to say\", the same reason visibility and hidden are.
Starred *bool `json:"starred,omitempty"`
// Status is where the project stands — whether a build has ever succeeded and whether anything is serving right now.
Status *string `json:"status,omitempty"`
// Tags is the site's browser tag config: platform slug → non-secret pixel id (GA measurement, Meta pixel, …) — what track.js injects and the server CAPI reads, per site. Omitted when none are set. The API SECRET is never here (KMS).
Tags map[string]string `json:"tags,omitempty"`
// UpdatedAt is when the project's own record last changed, as Unix seconds. A deploy is not an edit of the project, so this does not move on every publish.
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// Upstream credits the third-party work this project was published from — a free-text line, because the honest answer is a name and a title that no enum could hold. Absent means NOBODY HAS SAID, not that there is nothing to say.
Upstream *string `json:"upstream,omitempty"`
// Visibility is \"public\" or \"private\", and Hidden reports platform moderation. Both are always present (never omitempty) so a consumer can tell a real answer from \"this API is too old to say\" — and so a console never renders a project as public because a field was missing. Authorship is deliberately absent: it is Org, above.
Visibility *string `json:"visibility,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ProjectProjectsProject ProjectProjectsProject
// NewProjectProjectsProject instantiates a new ProjectProjectsProject 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 NewProjectProjectsProject() *ProjectProjectsProject {
this := ProjectProjectsProject{}
return &this
}
// NewProjectProjectsProjectWithDefaults instantiates a new ProjectProjectsProject 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 NewProjectProjectsProjectWithDefaults() *ProjectProjectsProject {
this := ProjectProjectsProject{}
return &this
}
// GetAnalytics returns the Analytics field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetAnalytics() bool {
if o == nil || IsNil(o.Analytics) {
var ret bool
return ret
}
return *o.Analytics
}
// GetAnalyticsOk returns a tuple with the Analytics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetAnalyticsOk() (*bool, bool) {
if o == nil || IsNil(o.Analytics) {
return nil, false
}
return o.Analytics, true
}
// HasAnalytics returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasAnalytics() bool {
if o != nil && !IsNil(o.Analytics) {
return true
}
return false
}
// SetAnalytics gets a reference to the given bool and assigns it to the Analytics field.
func (o *ProjectProjectsProject) SetAnalytics(v bool) {
o.Analytics = &v
}
// GetBucket returns the Bucket field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetBucket() string {
if o == nil || IsNil(o.Bucket) {
var ret string
return ret
}
return *o.Bucket
}
// GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetBucketOk() (*string, bool) {
if o == nil || IsNil(o.Bucket) {
return nil, false
}
return o.Bucket, true
}
// HasBucket returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasBucket() bool {
if o != nil && !IsNil(o.Bucket) {
return true
}
return false
}
// SetBucket gets a reference to the given string and assigns it to the Bucket field.
func (o *ProjectProjectsProject) SetBucket(v string) {
o.Bucket = &v
}
// GetCacheControl returns the CacheControl field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetCacheControl() string {
if o == nil || IsNil(o.CacheControl) {
var ret string
return ret
}
return *o.CacheControl
}
// GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetCacheControlOk() (*string, bool) {
if o == nil || IsNil(o.CacheControl) {
return nil, false
}
return o.CacheControl, true
}
// HasCacheControl returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasCacheControl() bool {
if o != nil && !IsNil(o.CacheControl) {
return true
}
return false
}
// SetCacheControl gets a reference to the given string and assigns it to the CacheControl field.
func (o *ProjectProjectsProject) SetCacheControl(v string) {
o.CacheControl = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetCreatedAt(v int64) {
o.CreatedAt = &v
}
// GetCurrentDeploymentId returns the CurrentDeploymentId field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetCurrentDeploymentId(v string) {
o.CurrentDeploymentId = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetDescription(v string) {
o.Description = &v
}
// GetDropLocal returns the DropLocal field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetDropLocal() bool {
if o == nil || IsNil(o.DropLocal) {
var ret bool
return ret
}
return *o.DropLocal
}
// GetDropLocalOk returns a tuple with the DropLocal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetDropLocalOk() (*bool, bool) {
if o == nil || IsNil(o.DropLocal) {
return nil, false
}
return o.DropLocal, true
}
// HasDropLocal returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasDropLocal() bool {
if o != nil && !IsNil(o.DropLocal) {
return true
}
return false
}
// SetDropLocal gets a reference to the given bool and assigns it to the DropLocal field.
func (o *ProjectProjectsProject) SetDropLocal(v bool) {
o.DropLocal = &v
}
// GetForkedFrom returns the ForkedFrom field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetForkedFrom() string {
if o == nil || IsNil(o.ForkedFrom) {
var ret string
return ret
}
return *o.ForkedFrom
}
// GetForkedFromOk returns a tuple with the ForkedFrom field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetForkedFromOk() (*string, bool) {
if o == nil || IsNil(o.ForkedFrom) {
return nil, false
}
return o.ForkedFrom, true
}
// HasForkedFrom returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasForkedFrom() bool {
if o != nil && !IsNil(o.ForkedFrom) {
return true
}
return false
}
// SetForkedFrom gets a reference to the given string and assigns it to the ForkedFrom field.
func (o *ProjectProjectsProject) SetForkedFrom(v string) {
o.ForkedFrom = &v
}
// GetFramework returns the Framework field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetFramework() string {
if o == nil || IsNil(o.Framework) {
var ret string
return ret
}
return *o.Framework
}
// GetFrameworkOk returns a tuple with the Framework field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetFrameworkOk() (*string, bool) {
if o == nil || IsNil(o.Framework) {
return nil, false
}
return o.Framework, true
}
// HasFramework returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasFramework() bool {
if o != nil && !IsNil(o.Framework) {
return true
}
return false
}
// SetFramework gets a reference to the given string and assigns it to the Framework field.
func (o *ProjectProjectsProject) SetFramework(v string) {
o.Framework = &v
}
// GetHidden returns the Hidden field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetHidden() bool {
if o == nil || IsNil(o.Hidden) {
var ret bool
return ret
}
return *o.Hidden
}
// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetHiddenOk() (*bool, bool) {
if o == nil || IsNil(o.Hidden) {
return nil, false
}
return o.Hidden, true
}
// HasHidden returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasHidden() bool {
if o != nil && !IsNil(o.Hidden) {
return true
}
return false
}
// SetHidden gets a reference to the given bool and assigns it to the Hidden field.
func (o *ProjectProjectsProject) SetHidden(v bool) {
o.Hidden = &v
}
// GetHiddenReason returns the HiddenReason field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetHiddenReason() string {
if o == nil || IsNil(o.HiddenReason) {
var ret string
return ret
}
return *o.HiddenReason
}
// GetHiddenReasonOk returns a tuple with the HiddenReason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetHiddenReasonOk() (*string, bool) {
if o == nil || IsNil(o.HiddenReason) {
return nil, false
}
return o.HiddenReason, true
}
// HasHiddenReason returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasHiddenReason() bool {
if o != nil && !IsNil(o.HiddenReason) {
return true
}
return false
}
// SetHiddenReason gets a reference to the given string and assigns it to the HiddenReason field.
func (o *ProjectProjectsProject) SetHiddenReason(v string) {
o.HiddenReason = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetId(v string) {
o.Id = &v
}
// GetInternalNetworks returns the InternalNetworks field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetInternalNetworks() []string {
if o == nil || IsNil(o.InternalNetworks) {
var ret []string
return ret
}
return o.InternalNetworks
}
// GetInternalNetworksOk returns a tuple with the InternalNetworks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetInternalNetworksOk() ([]string, bool) {
if o == nil || IsNil(o.InternalNetworks) {
return nil, false
}
return o.InternalNetworks, true
}
// HasInternalNetworks returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasInternalNetworks() bool {
if o != nil && !IsNil(o.InternalNetworks) {
return true
}
return false
}
// SetInternalNetworks gets a reference to the given []string and assigns it to the InternalNetworks field.
func (o *ProjectProjectsProject) SetInternalNetworks(v []string) {
o.InternalNetworks = v
}
// GetKey returns the Key field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetKey() string {
if o == nil || IsNil(o.Key) {
var ret string
return ret
}
return *o.Key
}
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetKeyOk() (*string, bool) {
if o == nil || IsNil(o.Key) {
return nil, false
}
return o.Key, true
}
// HasKey returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasKey() bool {
if o != nil && !IsNil(o.Key) {
return true
}
return false
}
// SetKey gets a reference to the given string and assigns it to the Key field.
func (o *ProjectProjectsProject) SetKey(v string) {
o.Key = &v
}
// GetLastPurgeAt returns the LastPurgeAt field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetLastPurgeAt() int64 {
if o == nil || IsNil(o.LastPurgeAt) {
var ret int64
return ret
}
return *o.LastPurgeAt
}
// GetLastPurgeAtOk returns a tuple with the LastPurgeAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetLastPurgeAtOk() (*int64, bool) {
if o == nil || IsNil(o.LastPurgeAt) {
return nil, false
}
return o.LastPurgeAt, true
}
// HasLastPurgeAt returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasLastPurgeAt() bool {
if o != nil && !IsNil(o.LastPurgeAt) {
return true
}
return false
}
// SetLastPurgeAt gets a reference to the given int64 and assigns it to the LastPurgeAt field.
func (o *ProjectProjectsProject) SetLastPurgeAt(v int64) {
o.LastPurgeAt = &v
}
// GetLicense returns the License field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetLicense() string {
if o == nil || IsNil(o.License) {
var ret string
return ret
}
return *o.License
}
// GetLicenseOk returns a tuple with the License field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetLicenseOk() (*string, bool) {
if o == nil || IsNil(o.License) {
return nil, false
}
return o.License, true
}
// HasLicense returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasLicense() bool {
if o != nil && !IsNil(o.License) {
return true
}
return false
}
// SetLicense gets a reference to the given string and assigns it to the License field.
func (o *ProjectProjectsProject) SetLicense(v string) {
o.License = &v
}
// GetLiveUrl returns the LiveUrl field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetLiveUrl() string {
if o == nil || IsNil(o.LiveUrl) {
var ret string
return ret
}
return *o.LiveUrl
}
// GetLiveUrlOk returns a tuple with the LiveUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetLiveUrlOk() (*string, bool) {
if o == nil || IsNil(o.LiveUrl) {
return nil, false
}
return o.LiveUrl, true
}
// HasLiveUrl returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasLiveUrl() bool {
if o != nil && !IsNil(o.LiveUrl) {
return true
}
return false
}
// SetLiveUrl gets a reference to the given string and assigns it to the LiveUrl field.
func (o *ProjectProjectsProject) SetLiveUrl(v string) {
o.LiveUrl = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetName(v string) {
o.Name = &v
}
// GetNamespace returns the Namespace field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetNamespace(v string) {
o.Namespace = &v
}
// GetOrg returns the Org field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetOrg(v string) {
o.Org = &v
}
// GetRepo returns the Repo field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetRepo() ProjectProjectsRepo {
if o == nil || IsNil(o.Repo) {
var ret ProjectProjectsRepo
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 *ProjectProjectsProject) GetRepoOk() (*ProjectProjectsRepo, 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 *ProjectProjectsProject) HasRepo() bool {
if o != nil && !IsNil(o.Repo) {
return true
}
return false
}
// SetRepo gets a reference to the given ProjectProjectsRepo and assigns it to the Repo field.
func (o *ProjectProjectsProject) SetRepo(v ProjectProjectsRepo) {
o.Repo = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetSlug(v string) {
o.Slug = &v
}
// GetSpace returns the Space field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetSpace() string {
if o == nil || IsNil(o.Space) {
var ret string
return ret
}
return *o.Space
}
// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetSpaceOk() (*string, bool) {
if o == nil || IsNil(o.Space) {
return nil, false
}
return o.Space, true
}
// HasSpace returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasSpace() bool {
if o != nil && !IsNil(o.Space) {
return true
}
return false
}
// SetSpace gets a reference to the given string and assigns it to the Space field.
func (o *ProjectProjectsProject) SetSpace(v string) {
o.Space = &v
}
// GetStarred returns the Starred field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetStarred() bool {
if o == nil || IsNil(o.Starred) {
var ret bool
return ret
}
return *o.Starred
}
// GetStarredOk returns a tuple with the Starred field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetStarredOk() (*bool, bool) {
if o == nil || IsNil(o.Starred) {
return nil, false
}
return o.Starred, true
}
// HasStarred returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasStarred() bool {
if o != nil && !IsNil(o.Starred) {
return true
}
return false
}
// SetStarred gets a reference to the given bool and assigns it to the Starred field.
func (o *ProjectProjectsProject) SetStarred(v bool) {
o.Starred = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetStatus(v string) {
o.Status = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetTags() map[string]string {
if o == nil || IsNil(o.Tags) {
var ret map[string]string
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetTagsOk() (map[string]string, bool) {
if o == nil || IsNil(o.Tags) {
return map[string]string{}, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given map[string]string and assigns it to the Tags field.
func (o *ProjectProjectsProject) SetTags(v map[string]string) {
o.Tags = v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) 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 *ProjectProjectsProject) SetUpdatedAt(v int64) {
o.UpdatedAt = &v
}
// GetUpstream returns the Upstream field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetUpstream() string {
if o == nil || IsNil(o.Upstream) {
var ret string
return ret
}
return *o.Upstream
}
// GetUpstreamOk returns a tuple with the Upstream field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetUpstreamOk() (*string, bool) {
if o == nil || IsNil(o.Upstream) {
return nil, false
}
return o.Upstream, true
}
// HasUpstream returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasUpstream() bool {
if o != nil && !IsNil(o.Upstream) {
return true
}
return false
}
// SetUpstream gets a reference to the given string and assigns it to the Upstream field.
func (o *ProjectProjectsProject) SetUpstream(v string) {
o.Upstream = &v
}
// GetVisibility returns the Visibility field value if set, zero value otherwise.
func (o *ProjectProjectsProject) GetVisibility() string {
if o == nil || IsNil(o.Visibility) {
var ret string
return ret
}
return *o.Visibility
}
// GetVisibilityOk returns a tuple with the Visibility field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectProjectsProject) GetVisibilityOk() (*string, bool) {
if o == nil || IsNil(o.Visibility) {
return nil, false
}
return o.Visibility, true
}
// HasVisibility returns a boolean if a field has been set.
func (o *ProjectProjectsProject) HasVisibility() bool {
if o != nil && !IsNil(o.Visibility) {
return true
}
return false
}
// SetVisibility gets a reference to the given string and assigns it to the Visibility field.
func (o *ProjectProjectsProject) SetVisibility(v string) {
o.Visibility = &v
}
func (o ProjectProjectsProject) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProjectProjectsProject) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Analytics) {
toSerialize["analytics"] = o.Analytics
}
if !IsNil(o.Bucket) {
toSerialize["bucket"] = o.Bucket
}
if !IsNil(o.CacheControl) {
toSerialize["cacheControl"] = o.CacheControl
}
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.DropLocal) {
toSerialize["dropLocal"] = o.DropLocal
}
if !IsNil(o.ForkedFrom) {
toSerialize["forkedFrom"] = o.ForkedFrom
}
if !IsNil(o.Framework) {
toSerialize["framework"] = o.Framework
}
if !IsNil(o.Hidden) {
toSerialize["hidden"] = o.Hidden
}
if !IsNil(o.HiddenReason) {
toSerialize["hiddenReason"] = o.HiddenReason
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.InternalNetworks) {
toSerialize["internalNetworks"] = o.InternalNetworks
}
if !IsNil(o.Key) {
toSerialize["key"] = o.Key
}
if !IsNil(o.LastPurgeAt) {
toSerialize["lastPurgeAt"] = o.LastPurgeAt
}
if !IsNil(o.License) {
toSerialize["license"] = o.License
}
if !IsNil(o.LiveUrl) {
toSerialize["liveUrl"] = o.LiveUrl
}
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.Repo) {
toSerialize["repo"] = o.Repo
}
if !IsNil(o.Slug) {
toSerialize["slug"] = o.Slug
}
if !IsNil(o.Space) {
toSerialize["space"] = o.Space
}
if !IsNil(o.Starred) {
toSerialize["starred"] = o.Starred
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
if !IsNil(o.UpdatedAt) {
toSerialize["updatedAt"] = o.UpdatedAt
}
if !IsNil(o.Upstream) {
toSerialize["upstream"] = o.Upstream
}
if !IsNil(o.Visibility) {
toSerialize["visibility"] = o.Visibility
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *ProjectProjectsProject) UnmarshalJSON(data []byte) (err error) {
varProjectProjectsProject := _ProjectProjectsProject{}
err = json.Unmarshal(data, &varProjectProjectsProject)
if err != nil {
return err
}
*o = ProjectProjectsProject(varProjectProjectsProject)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "analytics")
delete(additionalProperties, "bucket")
delete(additionalProperties, "cacheControl")
delete(additionalProperties, "createdAt")
delete(additionalProperties, "currentDeploymentId")
delete(additionalProperties, "description")
delete(additionalProperties, "dropLocal")
delete(additionalProperties, "forkedFrom")
delete(additionalProperties, "framework")
delete(additionalProperties, "hidden")
delete(additionalProperties, "hiddenReason")
delete(additionalProperties, "id")
delete(additionalProperties, "internalNetworks")
delete(additionalProperties, "key")
delete(additionalProperties, "lastPurgeAt")
delete(additionalProperties, "license")
delete(additionalProperties, "liveUrl")
delete(additionalProperties, "name")
delete(additionalProperties, "namespace")
delete(additionalProperties, "org")
delete(additionalProperties, "repo")
delete(additionalProperties, "slug")
delete(additionalProperties, "space")
delete(additionalProperties, "starred")
delete(additionalProperties, "status")
delete(additionalProperties, "tags")
delete(additionalProperties, "updatedAt")
delete(additionalProperties, "upstream")
delete(additionalProperties, "visibility")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableProjectProjectsProject struct {
value *ProjectProjectsProject
isSet bool
}
func (v NullableProjectProjectsProject) Get() *ProjectProjectsProject {
return v.value
}
func (v *NullableProjectProjectsProject) Set(val *ProjectProjectsProject) {
v.value = val
v.isSet = true
}
func (v NullableProjectProjectsProject) IsSet() bool {
return v.isSet
}
func (v *NullableProjectProjectsProject) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProjectProjectsProject(val *ProjectProjectsProject) *NullableProjectProjectsProject {
return &NullableProjectProjectsProject{value: val, isSet: true}
}
func (v NullableProjectProjectsProject) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProjectProjectsProject) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}