Skip to content

Latest commit

 

History

History
331 lines (180 loc) · 11.2 KB

File metadata and controls

331 lines (180 loc) · 11.2 KB

CreateEnvironmentRequest

Properties

Name Type Description Notes
EnvName string Environment name (e.g., 'staging', 'development')
MinCapacity Pointer to int32 Minimum number of instances [optional]
MaxCapacity Pointer to int32 Maximum number of instances [optional]
SingleTaskOnly Pointer to NullableBool Optional. Forces single-task mode (max one running task). When omitted, the platform auto-detects stateful containers. [optional]
StartupGracePeriodSeconds Pointer to NullableInt32 Optional. Seconds the load balancer waits after a task starts before an unhealthy health check can replace it. If not set, the value from composeDefinition (or default 120) is used. [optional] [default to 120]
CloneConfigurationFrom Pointer to string Clone configuration from an existing environment [optional]
ComposeDefinition Pointer to Compose [optional]
ImageSuffix Pointer to string Optional image tag suffix for cloning [optional]
SpotConfiguration Pointer to SpotConfiguration [optional]
Environment Pointer to []CreateEnvironmentRequestEnvironmentInner Environment variables to inject [optional]
MergeEnvironment Pointer to bool Whether to merge environment variables with cloned ones (true) or replace them (false). Default: false [optional]

Methods

NewCreateEnvironmentRequest

func NewCreateEnvironmentRequest(envName string, ) *CreateEnvironmentRequest

NewCreateEnvironmentRequest instantiates a new CreateEnvironmentRequest 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

NewCreateEnvironmentRequestWithDefaults

func NewCreateEnvironmentRequestWithDefaults() *CreateEnvironmentRequest

NewCreateEnvironmentRequestWithDefaults instantiates a new CreateEnvironmentRequest 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

GetEnvName

func (o *CreateEnvironmentRequest) GetEnvName() string

GetEnvName returns the EnvName field if non-nil, zero value otherwise.

GetEnvNameOk

func (o *CreateEnvironmentRequest) GetEnvNameOk() (*string, bool)

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

SetEnvName

func (o *CreateEnvironmentRequest) SetEnvName(v string)

SetEnvName sets EnvName field to given value.

GetMinCapacity

func (o *CreateEnvironmentRequest) GetMinCapacity() int32

GetMinCapacity returns the MinCapacity field if non-nil, zero value otherwise.

GetMinCapacityOk

func (o *CreateEnvironmentRequest) GetMinCapacityOk() (*int32, bool)

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

SetMinCapacity

func (o *CreateEnvironmentRequest) SetMinCapacity(v int32)

SetMinCapacity sets MinCapacity field to given value.

HasMinCapacity

func (o *CreateEnvironmentRequest) HasMinCapacity() bool

HasMinCapacity returns a boolean if a field has been set.

GetMaxCapacity

func (o *CreateEnvironmentRequest) GetMaxCapacity() int32

GetMaxCapacity returns the MaxCapacity field if non-nil, zero value otherwise.

GetMaxCapacityOk

func (o *CreateEnvironmentRequest) GetMaxCapacityOk() (*int32, bool)

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

SetMaxCapacity

func (o *CreateEnvironmentRequest) SetMaxCapacity(v int32)

SetMaxCapacity sets MaxCapacity field to given value.

HasMaxCapacity

func (o *CreateEnvironmentRequest) HasMaxCapacity() bool

HasMaxCapacity returns a boolean if a field has been set.

GetSingleTaskOnly

func (o *CreateEnvironmentRequest) GetSingleTaskOnly() bool

GetSingleTaskOnly returns the SingleTaskOnly field if non-nil, zero value otherwise.

GetSingleTaskOnlyOk

func (o *CreateEnvironmentRequest) GetSingleTaskOnlyOk() (*bool, bool)

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

SetSingleTaskOnly

func (o *CreateEnvironmentRequest) SetSingleTaskOnly(v bool)

SetSingleTaskOnly sets SingleTaskOnly field to given value.

HasSingleTaskOnly

func (o *CreateEnvironmentRequest) HasSingleTaskOnly() bool

HasSingleTaskOnly returns a boolean if a field has been set.

SetSingleTaskOnlyNil

func (o *CreateEnvironmentRequest) SetSingleTaskOnlyNil(b bool)

SetSingleTaskOnlyNil sets the value for SingleTaskOnly to be an explicit nil

UnsetSingleTaskOnly

func (o *CreateEnvironmentRequest) UnsetSingleTaskOnly()

UnsetSingleTaskOnly ensures that no value is present for SingleTaskOnly, not even an explicit nil

GetStartupGracePeriodSeconds

func (o *CreateEnvironmentRequest) GetStartupGracePeriodSeconds() int32

GetStartupGracePeriodSeconds returns the StartupGracePeriodSeconds field if non-nil, zero value otherwise.

GetStartupGracePeriodSecondsOk

func (o *CreateEnvironmentRequest) GetStartupGracePeriodSecondsOk() (*int32, bool)

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

SetStartupGracePeriodSeconds

func (o *CreateEnvironmentRequest) SetStartupGracePeriodSeconds(v int32)

SetStartupGracePeriodSeconds sets StartupGracePeriodSeconds field to given value.

HasStartupGracePeriodSeconds

func (o *CreateEnvironmentRequest) HasStartupGracePeriodSeconds() bool

HasStartupGracePeriodSeconds returns a boolean if a field has been set.

SetStartupGracePeriodSecondsNil

func (o *CreateEnvironmentRequest) SetStartupGracePeriodSecondsNil(b bool)

SetStartupGracePeriodSecondsNil sets the value for StartupGracePeriodSeconds to be an explicit nil

UnsetStartupGracePeriodSeconds

func (o *CreateEnvironmentRequest) UnsetStartupGracePeriodSeconds()

UnsetStartupGracePeriodSeconds ensures that no value is present for StartupGracePeriodSeconds, not even an explicit nil

GetCloneConfigurationFrom

func (o *CreateEnvironmentRequest) GetCloneConfigurationFrom() string

GetCloneConfigurationFrom returns the CloneConfigurationFrom field if non-nil, zero value otherwise.

GetCloneConfigurationFromOk

func (o *CreateEnvironmentRequest) GetCloneConfigurationFromOk() (*string, bool)

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

SetCloneConfigurationFrom

func (o *CreateEnvironmentRequest) SetCloneConfigurationFrom(v string)

SetCloneConfigurationFrom sets CloneConfigurationFrom field to given value.

HasCloneConfigurationFrom

func (o *CreateEnvironmentRequest) HasCloneConfigurationFrom() bool

HasCloneConfigurationFrom returns a boolean if a field has been set.

GetComposeDefinition

func (o *CreateEnvironmentRequest) GetComposeDefinition() Compose

GetComposeDefinition returns the ComposeDefinition field if non-nil, zero value otherwise.

GetComposeDefinitionOk

func (o *CreateEnvironmentRequest) GetComposeDefinitionOk() (*Compose, bool)

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

SetComposeDefinition

func (o *CreateEnvironmentRequest) SetComposeDefinition(v Compose)

SetComposeDefinition sets ComposeDefinition field to given value.

HasComposeDefinition

func (o *CreateEnvironmentRequest) HasComposeDefinition() bool

HasComposeDefinition returns a boolean if a field has been set.

GetImageSuffix

func (o *CreateEnvironmentRequest) GetImageSuffix() string

GetImageSuffix returns the ImageSuffix field if non-nil, zero value otherwise.

GetImageSuffixOk

func (o *CreateEnvironmentRequest) GetImageSuffixOk() (*string, bool)

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

SetImageSuffix

func (o *CreateEnvironmentRequest) SetImageSuffix(v string)

SetImageSuffix sets ImageSuffix field to given value.

HasImageSuffix

func (o *CreateEnvironmentRequest) HasImageSuffix() bool

HasImageSuffix returns a boolean if a field has been set.

GetSpotConfiguration

func (o *CreateEnvironmentRequest) GetSpotConfiguration() SpotConfiguration

GetSpotConfiguration returns the SpotConfiguration field if non-nil, zero value otherwise.

GetSpotConfigurationOk

func (o *CreateEnvironmentRequest) GetSpotConfigurationOk() (*SpotConfiguration, bool)

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

SetSpotConfiguration

func (o *CreateEnvironmentRequest) SetSpotConfiguration(v SpotConfiguration)

SetSpotConfiguration sets SpotConfiguration field to given value.

HasSpotConfiguration

func (o *CreateEnvironmentRequest) HasSpotConfiguration() bool

HasSpotConfiguration returns a boolean if a field has been set.

GetEnvironment

func (o *CreateEnvironmentRequest) GetEnvironment() []CreateEnvironmentRequestEnvironmentInner

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

GetEnvironmentOk

func (o *CreateEnvironmentRequest) GetEnvironmentOk() (*[]CreateEnvironmentRequestEnvironmentInner, 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 *CreateEnvironmentRequest) SetEnvironment(v []CreateEnvironmentRequestEnvironmentInner)

SetEnvironment sets Environment field to given value.

HasEnvironment

func (o *CreateEnvironmentRequest) HasEnvironment() bool

HasEnvironment returns a boolean if a field has been set.

GetMergeEnvironment

func (o *CreateEnvironmentRequest) GetMergeEnvironment() bool

GetMergeEnvironment returns the MergeEnvironment field if non-nil, zero value otherwise.

GetMergeEnvironmentOk

func (o *CreateEnvironmentRequest) GetMergeEnvironmentOk() (*bool, bool)

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

SetMergeEnvironment

func (o *CreateEnvironmentRequest) SetMergeEnvironment(v bool)

SetMergeEnvironment sets MergeEnvironment field to given value.

HasMergeEnvironment

func (o *CreateEnvironmentRequest) HasMergeEnvironment() bool

HasMergeEnvironment returns a boolean if a field has been set.

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