Skip to content

Latest commit

 

History

History
505 lines (270 loc) · 14.8 KB

CronJobResponse.md

File metadata and controls

505 lines (270 loc) · 14.8 KB

CronJobResponse

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 map[string]interface{}
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]
JobType string
Schedule CronJobResponseAllOfSchedule
AnnotationsGroups Pointer to []OrganizationAnnotationsGroupResponse [optional]

Methods

NewCronJobResponse

func NewCronJobResponse(id string, createdAt time.Time, environment ReferenceObject, maximumCpu int32, maximumMemory int32, name string, cpu int32, memory int32, autoPreview bool, source map[string]interface{}, healthchecks Healthcheck, jobType string, schedule CronJobResponseAllOfSchedule, ) *CronJobResponse

NewCronJobResponse instantiates a new CronJobResponse 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

NewCronJobResponseWithDefaults

func NewCronJobResponseWithDefaults() *CronJobResponse

NewCronJobResponseWithDefaults instantiates a new CronJobResponse 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 *CronJobResponse) GetId() string

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

GetIdOk

func (o *CronJobResponse) 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 *CronJobResponse) SetId(v string)

SetId sets Id field to given value.

GetCreatedAt

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

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

GetCreatedAtOk

func (o *CronJobResponse) 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 *CronJobResponse) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

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

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

GetUpdatedAtOk

func (o *CronJobResponse) 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 *CronJobResponse) SetUpdatedAt(v time.Time)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *CronJobResponse) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

GetEnvironment

func (o *CronJobResponse) GetEnvironment() ReferenceObject

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

GetEnvironmentOk

func (o *CronJobResponse) 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 *CronJobResponse) SetEnvironment(v ReferenceObject)

SetEnvironment sets Environment field to given value.

GetMaximumCpu

func (o *CronJobResponse) GetMaximumCpu() int32

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

GetMaximumCpuOk

func (o *CronJobResponse) 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 *CronJobResponse) SetMaximumCpu(v int32)

SetMaximumCpu sets MaximumCpu field to given value.

GetMaximumMemory

func (o *CronJobResponse) GetMaximumMemory() int32

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

GetMaximumMemoryOk

func (o *CronJobResponse) 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 *CronJobResponse) SetMaximumMemory(v int32)

SetMaximumMemory sets MaximumMemory field to given value.

GetName

func (o *CronJobResponse) GetName() string

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

GetNameOk

func (o *CronJobResponse) 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 *CronJobResponse) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *CronJobResponse) GetDescription() string

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

GetDescriptionOk

func (o *CronJobResponse) 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 *CronJobResponse) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *CronJobResponse) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetCpu

func (o *CronJobResponse) GetCpu() int32

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

GetCpuOk

func (o *CronJobResponse) 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 *CronJobResponse) SetCpu(v int32)

SetCpu sets Cpu field to given value.

GetMemory

func (o *CronJobResponse) GetMemory() int32

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

GetMemoryOk

func (o *CronJobResponse) 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 *CronJobResponse) SetMemory(v int32)

SetMemory sets Memory field to given value.

GetMaxNbRestart

func (o *CronJobResponse) GetMaxNbRestart() int32

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

GetMaxNbRestartOk

func (o *CronJobResponse) 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 *CronJobResponse) SetMaxNbRestart(v int32)

SetMaxNbRestart sets MaxNbRestart field to given value.

HasMaxNbRestart

func (o *CronJobResponse) HasMaxNbRestart() bool

HasMaxNbRestart returns a boolean if a field has been set.

GetMaxDurationSeconds

func (o *CronJobResponse) GetMaxDurationSeconds() int32

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

GetMaxDurationSecondsOk

func (o *CronJobResponse) 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 *CronJobResponse) SetMaxDurationSeconds(v int32)

SetMaxDurationSeconds sets MaxDurationSeconds field to given value.

HasMaxDurationSeconds

func (o *CronJobResponse) HasMaxDurationSeconds() bool

HasMaxDurationSeconds returns a boolean if a field has been set.

GetAutoPreview

func (o *CronJobResponse) GetAutoPreview() bool

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

GetAutoPreviewOk

func (o *CronJobResponse) 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 *CronJobResponse) SetAutoPreview(v bool)

SetAutoPreview sets AutoPreview field to given value.

GetPort

func (o *CronJobResponse) GetPort() int32

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

GetPortOk

func (o *CronJobResponse) 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 *CronJobResponse) SetPort(v int32)

SetPort sets Port field to given value.

HasPort

func (o *CronJobResponse) HasPort() bool

HasPort returns a boolean if a field has been set.

SetPortNil

func (o *CronJobResponse) SetPortNil(b bool)

SetPortNil sets the value for Port to be an explicit nil

UnsetPort

func (o *CronJobResponse) UnsetPort()

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

GetSource

func (o *CronJobResponse) GetSource() map[string]interface{}

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

GetSourceOk

func (o *CronJobResponse) GetSourceOk() (*map[string]interface{}, 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 *CronJobResponse) SetSource(v map[string]interface{})

SetSource sets Source field to given value.

SetSourceNil

func (o *CronJobResponse) SetSourceNil(b bool)

SetSourceNil sets the value for Source to be an explicit nil

UnsetSource

func (o *CronJobResponse) UnsetSource()

UnsetSource ensures that no value is present for Source, not even an explicit nil

GetHealthchecks

func (o *CronJobResponse) GetHealthchecks() Healthcheck

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

GetHealthchecksOk

func (o *CronJobResponse) 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 *CronJobResponse) SetHealthchecks(v Healthcheck)

SetHealthchecks sets Healthchecks field to given value.

GetAutoDeploy

func (o *CronJobResponse) GetAutoDeploy() bool

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

GetAutoDeployOk

func (o *CronJobResponse) 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 *CronJobResponse) SetAutoDeploy(v bool)

SetAutoDeploy sets AutoDeploy field to given value.

HasAutoDeploy

func (o *CronJobResponse) HasAutoDeploy() bool

HasAutoDeploy returns a boolean if a field has been set.

GetJobType

func (o *CronJobResponse) GetJobType() string

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

GetJobTypeOk

func (o *CronJobResponse) 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 *CronJobResponse) SetJobType(v string)

SetJobType sets JobType field to given value.

GetSchedule

func (o *CronJobResponse) GetSchedule() CronJobResponseAllOfSchedule

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

GetScheduleOk

func (o *CronJobResponse) 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 *CronJobResponse) SetSchedule(v CronJobResponseAllOfSchedule)

SetSchedule sets Schedule field to given value.

GetAnnotationsGroups

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

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

GetAnnotationsGroupsOk

func (o *CronJobResponse) 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 *CronJobResponse) SetAnnotationsGroups(v []OrganizationAnnotationsGroupResponse)

SetAnnotationsGroups sets AnnotationsGroups field to given value.

HasAnnotationsGroups

func (o *CronJobResponse) HasAnnotationsGroups() bool

HasAnnotationsGroups returns a boolean if a field has been set.

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