Skip to content

Latest commit

 

History

History
568 lines (303 loc) · 17.2 KB

LifecycleJobResponse.md

File metadata and controls

568 lines (303 loc) · 17.2 KB

LifecycleJobResponse

Properties

Name Type Description Notes
Id string [readonly]
CreatedAt time.Time [readonly]
UpdatedAt Pointer to time.Time [optional] [readonly]
Environment ReferenceObject
MaximumCpu int32 Maximum cpu that can be allocated to the job based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu
MaximumMemory int32 Maximum memory that can be allocated to the job based on organization cluster configuration. unit is MB. 1024 MB = 1GB
Name string name is case insensitive
Description Pointer to string [optional]
Cpu int32 unit is millicores (m). 1000m = 1 cpu
Memory int32 unit is MB. 1024 MB = 1GB
MaxNbRestart Pointer to int32 Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed [optional]
MaxDurationSeconds Pointer to int32 Maximum number of seconds allowed for the job to run before killing it and mark it as failed [optional]
AutoPreview bool Indicates if the 'environment preview option' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
Port Pointer to NullableInt32 Port where to run readiness and liveliness probes checks. The port will not be exposed externally [optional]
Source BaseJobResponseAllOfSource
Healthchecks Healthcheck
AutoDeploy Pointer to bool Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the "Auto Deploy job" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments [optional]
IconUri string Icon URI representing the job.
ServiceType Pointer to ServiceTypeEnum [optional]
JobType string
Schedule LifecycleJobResponseAllOfSchedule
AnnotationsGroups Pointer to []OrganizationAnnotationsGroupResponse [optional]
LabelsGroups Pointer to []OrganizationLabelsGroupResponse [optional]

Methods

NewLifecycleJobResponse

func NewLifecycleJobResponse(id string, createdAt time.Time, environment ReferenceObject, maximumCpu int32, maximumMemory int32, name string, cpu int32, memory int32, autoPreview bool, source BaseJobResponseAllOfSource, healthchecks Healthcheck, iconUri string, jobType string, schedule LifecycleJobResponseAllOfSchedule, ) *LifecycleJobResponse

NewLifecycleJobResponse instantiates a new LifecycleJobResponse 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

NewLifecycleJobResponseWithDefaults

func NewLifecycleJobResponseWithDefaults() *LifecycleJobResponse

NewLifecycleJobResponseWithDefaults instantiates a new LifecycleJobResponse 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

GetId

func (o *LifecycleJobResponse) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *LifecycleJobResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *LifecycleJobResponse) SetId(v string)

SetId sets Id field to given value.

GetCreatedAt

func (o *LifecycleJobResponse) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *LifecycleJobResponse) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *LifecycleJobResponse) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

func (o *LifecycleJobResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *LifecycleJobResponse) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUpdatedAt

func (o *LifecycleJobResponse) SetUpdatedAt(v time.Time)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *LifecycleJobResponse) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

GetEnvironment

func (o *LifecycleJobResponse) GetEnvironment() ReferenceObject

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

GetEnvironmentOk

func (o *LifecycleJobResponse) GetEnvironmentOk() (*ReferenceObject, bool)

GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEnvironment

func (o *LifecycleJobResponse) SetEnvironment(v ReferenceObject)

SetEnvironment sets Environment field to given value.

GetMaximumCpu

func (o *LifecycleJobResponse) GetMaximumCpu() int32

GetMaximumCpu returns the MaximumCpu field if non-nil, zero value otherwise.

GetMaximumCpuOk

func (o *LifecycleJobResponse) GetMaximumCpuOk() (*int32, bool)

GetMaximumCpuOk returns a tuple with the MaximumCpu field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaximumCpu

func (o *LifecycleJobResponse) SetMaximumCpu(v int32)

SetMaximumCpu sets MaximumCpu field to given value.

GetMaximumMemory

func (o *LifecycleJobResponse) GetMaximumMemory() int32

GetMaximumMemory returns the MaximumMemory field if non-nil, zero value otherwise.

GetMaximumMemoryOk

func (o *LifecycleJobResponse) GetMaximumMemoryOk() (*int32, bool)

GetMaximumMemoryOk returns a tuple with the MaximumMemory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaximumMemory

func (o *LifecycleJobResponse) SetMaximumMemory(v int32)

SetMaximumMemory sets MaximumMemory field to given value.

GetName

func (o *LifecycleJobResponse) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *LifecycleJobResponse) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *LifecycleJobResponse) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *LifecycleJobResponse) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *LifecycleJobResponse) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *LifecycleJobResponse) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *LifecycleJobResponse) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetCpu

func (o *LifecycleJobResponse) GetCpu() int32

GetCpu returns the Cpu field if non-nil, zero value otherwise.

GetCpuOk

func (o *LifecycleJobResponse) GetCpuOk() (*int32, bool)

GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCpu

func (o *LifecycleJobResponse) SetCpu(v int32)

SetCpu sets Cpu field to given value.

GetMemory

func (o *LifecycleJobResponse) GetMemory() int32

GetMemory returns the Memory field if non-nil, zero value otherwise.

GetMemoryOk

func (o *LifecycleJobResponse) GetMemoryOk() (*int32, bool)

GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMemory

func (o *LifecycleJobResponse) SetMemory(v int32)

SetMemory sets Memory field to given value.

GetMaxNbRestart

func (o *LifecycleJobResponse) GetMaxNbRestart() int32

GetMaxNbRestart returns the MaxNbRestart field if non-nil, zero value otherwise.

GetMaxNbRestartOk

func (o *LifecycleJobResponse) GetMaxNbRestartOk() (*int32, bool)

GetMaxNbRestartOk returns a tuple with the MaxNbRestart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaxNbRestart

func (o *LifecycleJobResponse) SetMaxNbRestart(v int32)

SetMaxNbRestart sets MaxNbRestart field to given value.

HasMaxNbRestart

func (o *LifecycleJobResponse) HasMaxNbRestart() bool

HasMaxNbRestart returns a boolean if a field has been set.

GetMaxDurationSeconds

func (o *LifecycleJobResponse) GetMaxDurationSeconds() int32

GetMaxDurationSeconds returns the MaxDurationSeconds field if non-nil, zero value otherwise.

GetMaxDurationSecondsOk

func (o *LifecycleJobResponse) GetMaxDurationSecondsOk() (*int32, bool)

GetMaxDurationSecondsOk returns a tuple with the MaxDurationSeconds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaxDurationSeconds

func (o *LifecycleJobResponse) SetMaxDurationSeconds(v int32)

SetMaxDurationSeconds sets MaxDurationSeconds field to given value.

HasMaxDurationSeconds

func (o *LifecycleJobResponse) HasMaxDurationSeconds() bool

HasMaxDurationSeconds returns a boolean if a field has been set.

GetAutoPreview

func (o *LifecycleJobResponse) GetAutoPreview() bool

GetAutoPreview returns the AutoPreview field if non-nil, zero value otherwise.

GetAutoPreviewOk

func (o *LifecycleJobResponse) GetAutoPreviewOk() (*bool, bool)

GetAutoPreviewOk returns a tuple with the AutoPreview field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAutoPreview

func (o *LifecycleJobResponse) SetAutoPreview(v bool)

SetAutoPreview sets AutoPreview field to given value.

GetPort

func (o *LifecycleJobResponse) GetPort() int32

GetPort returns the Port field if non-nil, zero value otherwise.

GetPortOk

func (o *LifecycleJobResponse) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPort

func (o *LifecycleJobResponse) SetPort(v int32)

SetPort sets Port field to given value.

HasPort

func (o *LifecycleJobResponse) HasPort() bool

HasPort returns a boolean if a field has been set.

SetPortNil

func (o *LifecycleJobResponse) SetPortNil(b bool)

SetPortNil sets the value for Port to be an explicit nil

UnsetPort

func (o *LifecycleJobResponse) UnsetPort()

UnsetPort ensures that no value is present for Port, not even an explicit nil

GetSource

func (o *LifecycleJobResponse) GetSource() BaseJobResponseAllOfSource

GetSource returns the Source field if non-nil, zero value otherwise.

GetSourceOk

func (o *LifecycleJobResponse) GetSourceOk() (*BaseJobResponseAllOfSource, bool)

GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSource

func (o *LifecycleJobResponse) SetSource(v BaseJobResponseAllOfSource)

SetSource sets Source field to given value.

GetHealthchecks

func (o *LifecycleJobResponse) GetHealthchecks() Healthcheck

GetHealthchecks returns the Healthchecks field if non-nil, zero value otherwise.

GetHealthchecksOk

func (o *LifecycleJobResponse) GetHealthchecksOk() (*Healthcheck, bool)

GetHealthchecksOk returns a tuple with the Healthchecks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHealthchecks

func (o *LifecycleJobResponse) SetHealthchecks(v Healthcheck)

SetHealthchecks sets Healthchecks field to given value.

GetAutoDeploy

func (o *LifecycleJobResponse) GetAutoDeploy() bool

GetAutoDeploy returns the AutoDeploy field if non-nil, zero value otherwise.

GetAutoDeployOk

func (o *LifecycleJobResponse) GetAutoDeployOk() (*bool, bool)

GetAutoDeployOk returns a tuple with the AutoDeploy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAutoDeploy

func (o *LifecycleJobResponse) SetAutoDeploy(v bool)

SetAutoDeploy sets AutoDeploy field to given value.

HasAutoDeploy

func (o *LifecycleJobResponse) HasAutoDeploy() bool

HasAutoDeploy returns a boolean if a field has been set.

GetIconUri

func (o *LifecycleJobResponse) GetIconUri() string

GetIconUri returns the IconUri field if non-nil, zero value otherwise.

GetIconUriOk

func (o *LifecycleJobResponse) GetIconUriOk() (*string, bool)

GetIconUriOk returns a tuple with the IconUri field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIconUri

func (o *LifecycleJobResponse) SetIconUri(v string)

SetIconUri sets IconUri field to given value.

GetServiceType

func (o *LifecycleJobResponse) GetServiceType() ServiceTypeEnum

GetServiceType returns the ServiceType field if non-nil, zero value otherwise.

GetServiceTypeOk

func (o *LifecycleJobResponse) GetServiceTypeOk() (*ServiceTypeEnum, bool)

GetServiceTypeOk returns a tuple with the ServiceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetServiceType

func (o *LifecycleJobResponse) SetServiceType(v ServiceTypeEnum)

SetServiceType sets ServiceType field to given value.

HasServiceType

func (o *LifecycleJobResponse) HasServiceType() bool

HasServiceType returns a boolean if a field has been set.

GetJobType

func (o *LifecycleJobResponse) GetJobType() string

GetJobType returns the JobType field if non-nil, zero value otherwise.

GetJobTypeOk

func (o *LifecycleJobResponse) GetJobTypeOk() (*string, bool)

GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetJobType

func (o *LifecycleJobResponse) SetJobType(v string)

SetJobType sets JobType field to given value.

GetSchedule

func (o *LifecycleJobResponse) GetSchedule() LifecycleJobResponseAllOfSchedule

GetSchedule returns the Schedule field if non-nil, zero value otherwise.

GetScheduleOk

func (o *LifecycleJobResponse) GetScheduleOk() (*LifecycleJobResponseAllOfSchedule, bool)

GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSchedule

func (o *LifecycleJobResponse) SetSchedule(v LifecycleJobResponseAllOfSchedule)

SetSchedule sets Schedule field to given value.

GetAnnotationsGroups

func (o *LifecycleJobResponse) GetAnnotationsGroups() []OrganizationAnnotationsGroupResponse

GetAnnotationsGroups returns the AnnotationsGroups field if non-nil, zero value otherwise.

GetAnnotationsGroupsOk

func (o *LifecycleJobResponse) GetAnnotationsGroupsOk() (*[]OrganizationAnnotationsGroupResponse, bool)

GetAnnotationsGroupsOk returns a tuple with the AnnotationsGroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAnnotationsGroups

func (o *LifecycleJobResponse) SetAnnotationsGroups(v []OrganizationAnnotationsGroupResponse)

SetAnnotationsGroups sets AnnotationsGroups field to given value.

HasAnnotationsGroups

func (o *LifecycleJobResponse) HasAnnotationsGroups() bool

HasAnnotationsGroups returns a boolean if a field has been set.

GetLabelsGroups

func (o *LifecycleJobResponse) GetLabelsGroups() []OrganizationLabelsGroupResponse

GetLabelsGroups returns the LabelsGroups field if non-nil, zero value otherwise.

GetLabelsGroupsOk

func (o *LifecycleJobResponse) GetLabelsGroupsOk() (*[]OrganizationLabelsGroupResponse, bool)

GetLabelsGroupsOk returns a tuple with the LabelsGroups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabelsGroups

func (o *LifecycleJobResponse) SetLabelsGroups(v []OrganizationLabelsGroupResponse)

SetLabelsGroups sets LabelsGroups field to given value.

HasLabelsGroups

func (o *LifecycleJobResponse) HasLabelsGroups() bool

HasLabelsGroups returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]