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] |
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
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
func (o *LifecycleJobResponse) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetId(v string)
SetId sets Id field to given value.
func (o *LifecycleJobResponse) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *LifecycleJobResponse) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *LifecycleJobResponse) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetEnvironment() ReferenceObject
GetEnvironment returns the Environment field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetEnvironment(v ReferenceObject)
SetEnvironment sets Environment field to given value.
func (o *LifecycleJobResponse) GetMaximumCpu() int32
GetMaximumCpu returns the MaximumCpu field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetMaximumCpu(v int32)
SetMaximumCpu sets MaximumCpu field to given value.
func (o *LifecycleJobResponse) GetMaximumMemory() int32
GetMaximumMemory returns the MaximumMemory field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetMaximumMemory(v int32)
SetMaximumMemory sets MaximumMemory field to given value.
func (o *LifecycleJobResponse) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetName(v string)
SetName sets Name field to given value.
func (o *LifecycleJobResponse) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *LifecycleJobResponse) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetCpu() int32
GetCpu returns the Cpu field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetCpu(v int32)
SetCpu sets Cpu field to given value.
func (o *LifecycleJobResponse) GetMemory() int32
GetMemory returns the Memory field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetMemory(v int32)
SetMemory sets Memory field to given value.
func (o *LifecycleJobResponse) GetMaxNbRestart() int32
GetMaxNbRestart returns the MaxNbRestart field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetMaxNbRestart(v int32)
SetMaxNbRestart sets MaxNbRestart field to given value.
func (o *LifecycleJobResponse) HasMaxNbRestart() bool
HasMaxNbRestart returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetMaxDurationSeconds() int32
GetMaxDurationSeconds returns the MaxDurationSeconds field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetMaxDurationSeconds(v int32)
SetMaxDurationSeconds sets MaxDurationSeconds field to given value.
func (o *LifecycleJobResponse) HasMaxDurationSeconds() bool
HasMaxDurationSeconds returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetAutoPreview() bool
GetAutoPreview returns the AutoPreview field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetAutoPreview(v bool)
SetAutoPreview sets AutoPreview field to given value.
func (o *LifecycleJobResponse) GetPort() int32
GetPort returns the Port field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetPort(v int32)
SetPort sets Port field to given value.
func (o *LifecycleJobResponse) HasPort() bool
HasPort returns a boolean if a field has been set.
func (o *LifecycleJobResponse) SetPortNil(b bool)
SetPortNil sets the value for Port to be an explicit nil
func (o *LifecycleJobResponse) UnsetPort()
UnsetPort ensures that no value is present for Port, not even an explicit nil
func (o *LifecycleJobResponse) GetSource() BaseJobResponseAllOfSource
GetSource returns the Source field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetSource(v BaseJobResponseAllOfSource)
SetSource sets Source field to given value.
func (o *LifecycleJobResponse) GetHealthchecks() Healthcheck
GetHealthchecks returns the Healthchecks field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetHealthchecks(v Healthcheck)
SetHealthchecks sets Healthchecks field to given value.
func (o *LifecycleJobResponse) GetAutoDeploy() bool
GetAutoDeploy returns the AutoDeploy field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetAutoDeploy(v bool)
SetAutoDeploy sets AutoDeploy field to given value.
func (o *LifecycleJobResponse) HasAutoDeploy() bool
HasAutoDeploy returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetIconUri() string
GetIconUri returns the IconUri field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetIconUri(v string)
SetIconUri sets IconUri field to given value.
func (o *LifecycleJobResponse) GetServiceType() ServiceTypeEnum
GetServiceType returns the ServiceType field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetServiceType(v ServiceTypeEnum)
SetServiceType sets ServiceType field to given value.
func (o *LifecycleJobResponse) HasServiceType() bool
HasServiceType returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetJobType() string
GetJobType returns the JobType field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetJobType(v string)
SetJobType sets JobType field to given value.
func (o *LifecycleJobResponse) GetSchedule() LifecycleJobResponseAllOfSchedule
GetSchedule returns the Schedule field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetSchedule(v LifecycleJobResponseAllOfSchedule)
SetSchedule sets Schedule field to given value.
func (o *LifecycleJobResponse) GetAnnotationsGroups() []OrganizationAnnotationsGroupResponse
GetAnnotationsGroups returns the AnnotationsGroups field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetAnnotationsGroups(v []OrganizationAnnotationsGroupResponse)
SetAnnotationsGroups sets AnnotationsGroups field to given value.
func (o *LifecycleJobResponse) HasAnnotationsGroups() bool
HasAnnotationsGroups returns a boolean if a field has been set.
func (o *LifecycleJobResponse) GetLabelsGroups() []OrganizationLabelsGroupResponse
GetLabelsGroups returns the LabelsGroups field if non-nil, zero value otherwise.
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.
func (o *LifecycleJobResponse) SetLabelsGroups(v []OrganizationLabelsGroupResponse)
SetLabelsGroups sets LabelsGroups field to given value.
func (o *LifecycleJobResponse) HasLabelsGroups() bool
HasLabelsGroups returns a boolean if a field has been set.