Skip to content

Latest commit

 

History

History
542 lines (289 loc) · 15.6 KB

JobResponse.md

File metadata and controls

542 lines (289 loc) · 15.6 KB

JobResponse

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.
JobType string
Schedule CronJobResponseAllOfSchedule
AnnotationsGroups Pointer to []OrganizationAnnotationsGroupResponse [optional]
LabelsGroups Pointer to []OrganizationLabelsGroupResponse [optional]

Methods

NewJobResponse

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

NewJobResponseWithDefaults

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

GetId

func (o *JobResponse) GetId() string

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

GetIdOk

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.

SetId

func (o *JobResponse) SetId(v string)

SetId sets Id field to given value.

GetCreatedAt

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

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

GetCreatedAtOk

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.

SetCreatedAt

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

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

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

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

GetUpdatedAtOk

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.

SetUpdatedAt

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

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *JobResponse) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

GetEnvironment

func (o *JobResponse) GetEnvironment() ReferenceObject

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

GetEnvironmentOk

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.

SetEnvironment

func (o *JobResponse) SetEnvironment(v ReferenceObject)

SetEnvironment sets Environment field to given value.

GetMaximumCpu

func (o *JobResponse) GetMaximumCpu() int32

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

GetMaximumCpuOk

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.

SetMaximumCpu

func (o *JobResponse) SetMaximumCpu(v int32)

SetMaximumCpu sets MaximumCpu field to given value.

GetMaximumMemory

func (o *JobResponse) GetMaximumMemory() int32

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

GetMaximumMemoryOk

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.

SetMaximumMemory

func (o *JobResponse) SetMaximumMemory(v int32)

SetMaximumMemory sets MaximumMemory field to given value.

GetName

func (o *JobResponse) GetName() string

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

GetNameOk

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.

SetName

func (o *JobResponse) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *JobResponse) GetDescription() string

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

GetDescriptionOk

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.

SetDescription

func (o *JobResponse) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *JobResponse) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetCpu

func (o *JobResponse) GetCpu() int32

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

GetCpuOk

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.

SetCpu

func (o *JobResponse) SetCpu(v int32)

SetCpu sets Cpu field to given value.

GetMemory

func (o *JobResponse) GetMemory() int32

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

GetMemoryOk

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.

SetMemory

func (o *JobResponse) SetMemory(v int32)

SetMemory sets Memory field to given value.

GetMaxNbRestart

func (o *JobResponse) GetMaxNbRestart() int32

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

GetMaxNbRestartOk

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.

SetMaxNbRestart

func (o *JobResponse) SetMaxNbRestart(v int32)

SetMaxNbRestart sets MaxNbRestart field to given value.

HasMaxNbRestart

func (o *JobResponse) HasMaxNbRestart() bool

HasMaxNbRestart returns a boolean if a field has been set.

GetMaxDurationSeconds

func (o *JobResponse) GetMaxDurationSeconds() int32

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

GetMaxDurationSecondsOk

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.

SetMaxDurationSeconds

func (o *JobResponse) SetMaxDurationSeconds(v int32)

SetMaxDurationSeconds sets MaxDurationSeconds field to given value.

HasMaxDurationSeconds

func (o *JobResponse) HasMaxDurationSeconds() bool

HasMaxDurationSeconds returns a boolean if a field has been set.

GetAutoPreview

func (o *JobResponse) GetAutoPreview() bool

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

GetAutoPreviewOk

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.

SetAutoPreview

func (o *JobResponse) SetAutoPreview(v bool)

SetAutoPreview sets AutoPreview field to given value.

GetPort

func (o *JobResponse) GetPort() int32

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

GetPortOk

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.

SetPort

func (o *JobResponse) SetPort(v int32)

SetPort sets Port field to given value.

HasPort

func (o *JobResponse) HasPort() bool

HasPort returns a boolean if a field has been set.

SetPortNil

func (o *JobResponse) SetPortNil(b bool)

SetPortNil sets the value for Port to be an explicit nil

UnsetPort

func (o *JobResponse) UnsetPort()

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

GetSource

func (o *JobResponse) GetSource() BaseJobResponseAllOfSource

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

GetSourceOk

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.

SetSource

func (o *JobResponse) SetSource(v BaseJobResponseAllOfSource)

SetSource sets Source field to given value.

GetHealthchecks

func (o *JobResponse) GetHealthchecks() Healthcheck

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

GetHealthchecksOk

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.

SetHealthchecks

func (o *JobResponse) SetHealthchecks(v Healthcheck)

SetHealthchecks sets Healthchecks field to given value.

GetAutoDeploy

func (o *JobResponse) GetAutoDeploy() bool

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

GetAutoDeployOk

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.

SetAutoDeploy

func (o *JobResponse) SetAutoDeploy(v bool)

SetAutoDeploy sets AutoDeploy field to given value.

HasAutoDeploy

func (o *JobResponse) HasAutoDeploy() bool

HasAutoDeploy returns a boolean if a field has been set.

GetIconUri

func (o *JobResponse) GetIconUri() string

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

GetIconUriOk

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.

SetIconUri

func (o *JobResponse) SetIconUri(v string)

SetIconUri sets IconUri field to given value.

GetJobType

func (o *JobResponse) GetJobType() string

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

GetJobTypeOk

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.

SetJobType

func (o *JobResponse) SetJobType(v string)

SetJobType sets JobType field to given value.

GetSchedule

func (o *JobResponse) GetSchedule() CronJobResponseAllOfSchedule

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

GetScheduleOk

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.

SetSchedule

func (o *JobResponse) SetSchedule(v CronJobResponseAllOfSchedule)

SetSchedule sets Schedule field to given value.

GetAnnotationsGroups

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

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

GetAnnotationsGroupsOk

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.

SetAnnotationsGroups

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

SetAnnotationsGroups sets AnnotationsGroups field to given value.

HasAnnotationsGroups

func (o *JobResponse) HasAnnotationsGroups() bool

HasAnnotationsGroups returns a boolean if a field has been set.

GetLabelsGroups

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

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

GetLabelsGroupsOk

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.

SetLabelsGroups

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

SetLabelsGroups sets LabelsGroups field to given value.

HasLabelsGroups

func (o *JobResponse) HasLabelsGroups() bool

HasLabelsGroups returns a boolean if a field has been set.

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