Skip to content

Latest commit

 

History

History
509 lines (274 loc) · 15.4 KB

ContainerRequest.md

File metadata and controls

509 lines (274 loc) · 15.4 KB

ContainerRequest

Properties

Name Type Description Notes
Storage Pointer to []ServiceStorageRequestStorageInner [optional]
Ports Pointer to []ServicePortRequestPortsInner [optional]
Name string name is case insensitive
Description Pointer to string give a description to this container [optional]
RegistryId string id of the linked registry
ImageName string The image name pattern differs according to chosen container registry provider: * `ECR`: `repository` * `SCALEWAY_CR`: `namespace/image` * `DOCKER_HUB`: `image` or `repository/image` * `PUBLIC_ECR`: `registry_alias/repository`
Tag string tag of the image container
Arguments Pointer to []string [optional]
Entrypoint Pointer to string optional entrypoint when launching container [optional]
Cpu Pointer to int32 unit is millicores (m). 1000m = 1 cpu [optional] [default to 500]
Memory Pointer to int32 unit is MB. 1024 MB = 1GB [optional] [default to 512]
MinRunningInstances Pointer to int32 Minimum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: 0 means that there is no container running. [optional] [default to 1]
MaxRunningInstances Pointer to int32 Maximum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: -1 means that there is no limit. [optional] [default to 1]
Healthchecks Healthcheck
AutoPreview Pointer to 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. [optional]
AutoDeploy Pointer to NullableBool Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the "Auto Deploy container" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments [optional]
AnnotationsGroups Pointer to []ServiceAnnotationRequest [optional]
LabelsGroups Pointer to []ServiceLabelRequest [optional]
IconUri Pointer to string Icon URI representing the container. [optional]

Methods

NewContainerRequest

func NewContainerRequest(name string, registryId string, imageName string, tag string, healthchecks Healthcheck, ) *ContainerRequest

NewContainerRequest instantiates a new ContainerRequest 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

NewContainerRequestWithDefaults

func NewContainerRequestWithDefaults() *ContainerRequest

NewContainerRequestWithDefaults instantiates a new ContainerRequest 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

GetStorage

func (o *ContainerRequest) GetStorage() []ServiceStorageRequestStorageInner

GetStorage returns the Storage field if non-nil, zero value otherwise.

GetStorageOk

func (o *ContainerRequest) GetStorageOk() (*[]ServiceStorageRequestStorageInner, bool)

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

SetStorage

func (o *ContainerRequest) SetStorage(v []ServiceStorageRequestStorageInner)

SetStorage sets Storage field to given value.

HasStorage

func (o *ContainerRequest) HasStorage() bool

HasStorage returns a boolean if a field has been set.

GetPorts

func (o *ContainerRequest) GetPorts() []ServicePortRequestPortsInner

GetPorts returns the Ports field if non-nil, zero value otherwise.

GetPortsOk

func (o *ContainerRequest) GetPortsOk() (*[]ServicePortRequestPortsInner, bool)

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

SetPorts

func (o *ContainerRequest) SetPorts(v []ServicePortRequestPortsInner)

SetPorts sets Ports field to given value.

HasPorts

func (o *ContainerRequest) HasPorts() bool

HasPorts returns a boolean if a field has been set.

GetName

func (o *ContainerRequest) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

GetDescription

func (o *ContainerRequest) GetDescription() string

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

GetDescriptionOk

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

SetDescription sets Description field to given value.

HasDescription

func (o *ContainerRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetRegistryId

func (o *ContainerRequest) GetRegistryId() string

GetRegistryId returns the RegistryId field if non-nil, zero value otherwise.

GetRegistryIdOk

func (o *ContainerRequest) GetRegistryIdOk() (*string, bool)

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

SetRegistryId

func (o *ContainerRequest) SetRegistryId(v string)

SetRegistryId sets RegistryId field to given value.

GetImageName

func (o *ContainerRequest) GetImageName() string

GetImageName returns the ImageName field if non-nil, zero value otherwise.

GetImageNameOk

func (o *ContainerRequest) GetImageNameOk() (*string, bool)

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

SetImageName

func (o *ContainerRequest) SetImageName(v string)

SetImageName sets ImageName field to given value.

GetTag

func (o *ContainerRequest) GetTag() string

GetTag returns the Tag field if non-nil, zero value otherwise.

GetTagOk

func (o *ContainerRequest) GetTagOk() (*string, bool)

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

SetTag

func (o *ContainerRequest) SetTag(v string)

SetTag sets Tag field to given value.

GetArguments

func (o *ContainerRequest) GetArguments() []string

GetArguments returns the Arguments field if non-nil, zero value otherwise.

GetArgumentsOk

func (o *ContainerRequest) GetArgumentsOk() (*[]string, bool)

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

SetArguments

func (o *ContainerRequest) SetArguments(v []string)

SetArguments sets Arguments field to given value.

HasArguments

func (o *ContainerRequest) HasArguments() bool

HasArguments returns a boolean if a field has been set.

GetEntrypoint

func (o *ContainerRequest) GetEntrypoint() string

GetEntrypoint returns the Entrypoint field if non-nil, zero value otherwise.

GetEntrypointOk

func (o *ContainerRequest) GetEntrypointOk() (*string, bool)

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

SetEntrypoint

func (o *ContainerRequest) SetEntrypoint(v string)

SetEntrypoint sets Entrypoint field to given value.

HasEntrypoint

func (o *ContainerRequest) HasEntrypoint() bool

HasEntrypoint returns a boolean if a field has been set.

GetCpu

func (o *ContainerRequest) GetCpu() int32

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

GetCpuOk

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

SetCpu sets Cpu field to given value.

HasCpu

func (o *ContainerRequest) HasCpu() bool

HasCpu returns a boolean if a field has been set.

GetMemory

func (o *ContainerRequest) GetMemory() int32

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

GetMemoryOk

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

SetMemory sets Memory field to given value.

HasMemory

func (o *ContainerRequest) HasMemory() bool

HasMemory returns a boolean if a field has been set.

GetMinRunningInstances

func (o *ContainerRequest) GetMinRunningInstances() int32

GetMinRunningInstances returns the MinRunningInstances field if non-nil, zero value otherwise.

GetMinRunningInstancesOk

func (o *ContainerRequest) GetMinRunningInstancesOk() (*int32, bool)

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

SetMinRunningInstances

func (o *ContainerRequest) SetMinRunningInstances(v int32)

SetMinRunningInstances sets MinRunningInstances field to given value.

HasMinRunningInstances

func (o *ContainerRequest) HasMinRunningInstances() bool

HasMinRunningInstances returns a boolean if a field has been set.

GetMaxRunningInstances

func (o *ContainerRequest) GetMaxRunningInstances() int32

GetMaxRunningInstances returns the MaxRunningInstances field if non-nil, zero value otherwise.

GetMaxRunningInstancesOk

func (o *ContainerRequest) GetMaxRunningInstancesOk() (*int32, bool)

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

SetMaxRunningInstances

func (o *ContainerRequest) SetMaxRunningInstances(v int32)

SetMaxRunningInstances sets MaxRunningInstances field to given value.

HasMaxRunningInstances

func (o *ContainerRequest) HasMaxRunningInstances() bool

HasMaxRunningInstances returns a boolean if a field has been set.

GetHealthchecks

func (o *ContainerRequest) GetHealthchecks() Healthcheck

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

GetHealthchecksOk

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

SetHealthchecks sets Healthchecks field to given value.

GetAutoPreview

func (o *ContainerRequest) GetAutoPreview() bool

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

GetAutoPreviewOk

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

SetAutoPreview sets AutoPreview field to given value.

HasAutoPreview

func (o *ContainerRequest) HasAutoPreview() bool

HasAutoPreview returns a boolean if a field has been set.

GetAutoDeploy

func (o *ContainerRequest) GetAutoDeploy() bool

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

GetAutoDeployOk

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

SetAutoDeploy sets AutoDeploy field to given value.

HasAutoDeploy

func (o *ContainerRequest) HasAutoDeploy() bool

HasAutoDeploy returns a boolean if a field has been set.

SetAutoDeployNil

func (o *ContainerRequest) SetAutoDeployNil(b bool)

SetAutoDeployNil sets the value for AutoDeploy to be an explicit nil

UnsetAutoDeploy

func (o *ContainerRequest) UnsetAutoDeploy()

UnsetAutoDeploy ensures that no value is present for AutoDeploy, not even an explicit nil

GetAnnotationsGroups

func (o *ContainerRequest) GetAnnotationsGroups() []ServiceAnnotationRequest

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

GetAnnotationsGroupsOk

func (o *ContainerRequest) GetAnnotationsGroupsOk() (*[]ServiceAnnotationRequest, 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 *ContainerRequest) SetAnnotationsGroups(v []ServiceAnnotationRequest)

SetAnnotationsGroups sets AnnotationsGroups field to given value.

HasAnnotationsGroups

func (o *ContainerRequest) HasAnnotationsGroups() bool

HasAnnotationsGroups returns a boolean if a field has been set.

GetLabelsGroups

func (o *ContainerRequest) GetLabelsGroups() []ServiceLabelRequest

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

GetLabelsGroupsOk

func (o *ContainerRequest) GetLabelsGroupsOk() (*[]ServiceLabelRequest, 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 *ContainerRequest) SetLabelsGroups(v []ServiceLabelRequest)

SetLabelsGroups sets LabelsGroups field to given value.

HasLabelsGroups

func (o *ContainerRequest) HasLabelsGroups() bool

HasLabelsGroups returns a boolean if a field has been set.

GetIconUri

func (o *ContainerRequest) GetIconUri() string

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

GetIconUriOk

func (o *ContainerRequest) 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 *ContainerRequest) SetIconUri(v string)

SetIconUri sets IconUri field to given value.

HasIconUri

func (o *ContainerRequest) HasIconUri() bool

HasIconUri returns a boolean if a field has been set.

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