Name | Type | Description | Notes |
---|---|---|---|
Label | string | A unique name for the placement group. A placement group `label` has the following constraints: - It needs to begin and end with an alphanumeric character. - It can only consist of alphanumeric characters, hyphens (`-`), underscores (`_`), or periods (`.`). | |
PlacementGroupPolicy | string | How requests to add future compute instances to your placement group are handled: - `strict`. Don't add a compute instance if it breaks the grouped-together or spread-apart model set by your `placement_group_type`. For example, with `anti-affinity:local` as your `placement_group_type`, assume it already has three qualifying compute instances on separate hosts, to support the spread-apart model. If a fourth compute instance is assigned that's on the same host as one of the existing three, an error is thrown and the system won't add it. Ensures the placement group stays compliant with your selected model. - `flexible`. Add a new compute instance, even if it breaks the grouped-together or spread-apart model set by your `placement_group_type`. Breaking the model makes the placement group non-compliant. You need to wait for Akamai to move the offending compute instances to make the group compliant again, once the necessary capacity is available in the region. Offers flexibility to add future compute instances if compliance isn't an immediate concern. > 📘 > > Once you create a placement group, you can't change its `placement_group_policy` setting. | |
PlacementGroupType | string | How compute instances are distributed in your placement group. A `placement_group_type` using anti-affinity (`anti-affinity:local`) places compute instances in separate hosts, but still in the same region. This best supports the spread-apart model for high availability. A `placement_group_type` using affinity places compute instances physically close together, possibly on the same host. This supports the grouped-together model for low-latency. > 📘 > > Currently, only `anti_affinity:local` is available for `placement_group_type`. | |
Region | string | The data center that houses the compute instances you want to add to your placement group. Run the List Linodes operation to view your compute instances and store the `region` identifier. |
func NewPostPlacementGroupRequest(label string, placementGroupPolicy string, placementGroupType string, region string, ) *PostPlacementGroupRequest
NewPostPlacementGroupRequest instantiates a new PostPlacementGroupRequest 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 NewPostPlacementGroupRequestWithDefaults() *PostPlacementGroupRequest
NewPostPlacementGroupRequestWithDefaults instantiates a new PostPlacementGroupRequest 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 *PostPlacementGroupRequest) GetLabel() string
GetLabel returns the Label field if non-nil, zero value otherwise.
func (o *PostPlacementGroupRequest) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPlacementGroupRequest) SetLabel(v string)
SetLabel sets Label field to given value.
func (o *PostPlacementGroupRequest) GetPlacementGroupPolicy() string
GetPlacementGroupPolicy returns the PlacementGroupPolicy field if non-nil, zero value otherwise.
func (o *PostPlacementGroupRequest) GetPlacementGroupPolicyOk() (*string, bool)
GetPlacementGroupPolicyOk returns a tuple with the PlacementGroupPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPlacementGroupRequest) SetPlacementGroupPolicy(v string)
SetPlacementGroupPolicy sets PlacementGroupPolicy field to given value.
func (o *PostPlacementGroupRequest) GetPlacementGroupType() string
GetPlacementGroupType returns the PlacementGroupType field if non-nil, zero value otherwise.
func (o *PostPlacementGroupRequest) GetPlacementGroupTypeOk() (*string, bool)
GetPlacementGroupTypeOk returns a tuple with the PlacementGroupType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPlacementGroupRequest) SetPlacementGroupType(v string)
SetPlacementGroupType sets PlacementGroupType field to given value.
func (o *PostPlacementGroupRequest) GetRegion() string
GetRegion returns the Region field if non-nil, zero value otherwise.
func (o *PostPlacementGroupRequest) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPlacementGroupRequest) SetRegion(v string)
SetRegion sets Region field to given value.