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