Name | Type | Description | Notes |
---|---|---|---|
AuthorizedKeys | Pointer to []string | A list of public SSH keys that will be automatically appended to the root user's `~/.ssh/authorized_keys` file when deploying from an Image. | [optional] |
AuthorizedUsers | Pointer to []string | A list of usernames. If the usernames have associated SSH keys, the keys will be appended to the root users `~/.ssh/authorized_keys` file automatically when deploying from an Image. | [optional] |
Booted | Pointer to bool | This field defaults to `true` if the Linode is created with an Image or from a Backup. If it is deployed from an Image or a Backup and you wish it to remain `offline` after deployment, set this to `false`. | [optional] [default to true] |
DiskEncryption | Pointer to string | Local disk encryption ensures that your data stored on Linodes is secured. Disk encryption protects against unauthorized data access by keeping the data encrypted if the disk is ever removed from the data center, decommissioned, or disposed of. The platform manages the encryption and decryption for you. By default, encryption is `enabled` on all Linodes. If you opted out of encryption or if the Linode was created prior to local disk encryption support, you can encrypt your data using Rebuild. | [optional] |
Image | Pointer to string | An Image ID to deploy the Linode Disk from. Run the List images operation with authentication to view all available Images. Official Linode Images start with `linode/`, while your Account's Images start with `private/`. Creating a disk from a Private Image requires `read_only` or `read_write` permissions for that Image. Run the Update a user's grants operation to adjust permissions for an Account Image. | [optional] |
Metadata | Pointer to PostLinodeInstanceRequestAllOfMetadata | [optional] | |
RootPass | Pointer to string | This sets the root user's password on a newly created Linode Disk when deploying from an Image. - Required when creating a Linode Disk from an Image, including when using a StackScript. - Must meet a password strength score requirement that is calculated internally by the API. If the strength requirement is not met, you will receive a `Password does not meet strength requirement` error. | [optional] |
StackscriptData | Pointer to map[string]interface{} | This field is required only if the StackScript being deployed requires input data from the User for successful completion. See User Defined Fields (UDFs) for more details. This field is required to be valid JSON. Total length cannot exceed 65,535 characters. | [optional] |
StackscriptId | Pointer to int32 | A StackScript ID that will cause the referenced StackScript to be run during deployment of this Linode. A compatible `image` is required to use a StackScript. To get a list of available StackScript and their permitted Images, run List StackScripts. This field cannot be used when deploying from a Backup or a Private Image. | [optional] |
BackupId | Pointer to int32 | A Backup ID from another Linode's available backups. Your User must have `read_write` access to that Linode, the Backup must have a `status` of `successful`, and the Linode must be deployed to the same `region` as the Backup. Run List backups for a Linode's available backups. This field and the `image` field are mutually exclusive. | [optional] |
BackupsEnabled | Pointer to bool | If this field is set to `true`, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed. This option is always treated as `true` if the account-wide `backups_enabled` setting is `true`. See Get account settings for more information. Backup pricing is included in the response from List types | [optional] |
FirewallId | Pointer to int32 | The `id` of the Firewall to attach this Linode to upon creation. | [optional] |
Group | Pointer to string | The group label for this Linode. | [optional] |
Interfaces | Pointer to []PostLinodeInstanceRequestAllOfInterfacesInner | An array of Network Interfaces to add to this Linode's Configuration Profile. At least one and up to three Interface objects can exist in this array. The position in the array determines which of the Linode's network Interfaces is configured: - First [0]: eth0 - Second [1]: eth1 - Third [2]: eth2 When updating a Linode's Interfaces, each Interface must be redefined. An empty `interfaces` array results in a default `public` type Interface configuration only. If no public Interface is configured, public IP addresses are still assigned to the Linode but will not be usable without manual configuration. Note. Changes to Linode Interface configurations can be enabled by rebooting the Linode. `vpc` details See the VPC documentation guide for its specifications and limitations. `vlan` details - Only Next Generation Network (NGN) data centers support VLANs. Run the List regions operation to view the capabilities of data center regions. If a VLAN is attached to your Linode and you attempt to migrate or clone it to a non-NGN data center, the migration or cloning will not initiate. If a Linode cannot be migrated or cloned because of an incompatibility, you will be prompted to select a different data center or contact support. - See the VLANs Overview guide to view additional specifications and limitations. | [optional] |
Label | Pointer to string | Provides a name for the Linode. If not provided, the API generates one for it. Linode labels have the following constraints: - It needs to begin and end with an alphanumeric character. - It can only consist of alphanumeric characters, hyphens (`-`), underscores (`_`) or periods (`.`). - Cannot have two hyphens (`--`), underscores (`__`) or periods (`..`) in a row. | [optional] |
PlacementGroup | Pointer to PostLinodeInstanceRequestAllOfPlacementGroup | [optional] | |
PrivateIp | Pointer to bool | If true, the created Linode will have private networking enabled and assigned a private IPv4 address. | [optional] |
Region | string | The region where the Linode will be located. | |
SwapSize | Pointer to int32 | When deploying from an Image, this field is optional, otherwise it is ignored. This is used to set the swap disk size for the newly created Linode. | [optional] [default to 512] |
Tags | Pointer to []string | Tags to help you organize your content. | [optional] |
Type | string | The Linode type of the Linode you are creating. |
func NewPostLinodeInstanceRequest(region string, type_ string, ) *PostLinodeInstanceRequest
NewPostLinodeInstanceRequest instantiates a new PostLinodeInstanceRequest 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 NewPostLinodeInstanceRequestWithDefaults() *PostLinodeInstanceRequest
NewPostLinodeInstanceRequestWithDefaults instantiates a new PostLinodeInstanceRequest 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 *PostLinodeInstanceRequest) GetAuthorizedKeys() []string
GetAuthorizedKeys returns the AuthorizedKeys field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetAuthorizedKeysOk() (*[]string, bool)
GetAuthorizedKeysOk returns a tuple with the AuthorizedKeys field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetAuthorizedKeys(v []string)
SetAuthorizedKeys sets AuthorizedKeys field to given value.
func (o *PostLinodeInstanceRequest) HasAuthorizedKeys() bool
HasAuthorizedKeys returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetAuthorizedUsers() []string
GetAuthorizedUsers returns the AuthorizedUsers field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetAuthorizedUsersOk() (*[]string, bool)
GetAuthorizedUsersOk returns a tuple with the AuthorizedUsers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetAuthorizedUsers(v []string)
SetAuthorizedUsers sets AuthorizedUsers field to given value.
func (o *PostLinodeInstanceRequest) HasAuthorizedUsers() bool
HasAuthorizedUsers returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetBooted() bool
GetBooted returns the Booted field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetBootedOk() (*bool, bool)
GetBootedOk returns a tuple with the Booted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetBooted(v bool)
SetBooted sets Booted field to given value.
func (o *PostLinodeInstanceRequest) HasBooted() bool
HasBooted returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetDiskEncryption() string
GetDiskEncryption returns the DiskEncryption field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetDiskEncryptionOk() (*string, bool)
GetDiskEncryptionOk returns a tuple with the DiskEncryption field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetDiskEncryption(v string)
SetDiskEncryption sets DiskEncryption field to given value.
func (o *PostLinodeInstanceRequest) HasDiskEncryption() bool
HasDiskEncryption returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetImage() string
GetImage returns the Image field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetImageOk() (*string, bool)
GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetImage(v string)
SetImage sets Image field to given value.
func (o *PostLinodeInstanceRequest) HasImage() bool
HasImage returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetMetadata() PostLinodeInstanceRequestAllOfMetadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetMetadataOk() (*PostLinodeInstanceRequestAllOfMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetMetadata(v PostLinodeInstanceRequestAllOfMetadata)
SetMetadata sets Metadata field to given value.
func (o *PostLinodeInstanceRequest) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetRootPass() string
GetRootPass returns the RootPass field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetRootPassOk() (*string, bool)
GetRootPassOk returns a tuple with the RootPass field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetRootPass(v string)
SetRootPass sets RootPass field to given value.
func (o *PostLinodeInstanceRequest) HasRootPass() bool
HasRootPass returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetStackscriptData() map[string]interface{}
GetStackscriptData returns the StackscriptData field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetStackscriptDataOk() (*map[string]interface{}, bool)
GetStackscriptDataOk returns a tuple with the StackscriptData field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetStackscriptData(v map[string]interface{})
SetStackscriptData sets StackscriptData field to given value.
func (o *PostLinodeInstanceRequest) HasStackscriptData() bool
HasStackscriptData returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetStackscriptId() int32
GetStackscriptId returns the StackscriptId field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetStackscriptIdOk() (*int32, bool)
GetStackscriptIdOk returns a tuple with the StackscriptId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetStackscriptId(v int32)
SetStackscriptId sets StackscriptId field to given value.
func (o *PostLinodeInstanceRequest) HasStackscriptId() bool
HasStackscriptId returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetBackupId() int32
GetBackupId returns the BackupId field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetBackupIdOk() (*int32, bool)
GetBackupIdOk returns a tuple with the BackupId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetBackupId(v int32)
SetBackupId sets BackupId field to given value.
func (o *PostLinodeInstanceRequest) HasBackupId() bool
HasBackupId returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetBackupsEnabled() bool
GetBackupsEnabled returns the BackupsEnabled field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetBackupsEnabledOk() (*bool, bool)
GetBackupsEnabledOk returns a tuple with the BackupsEnabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetBackupsEnabled(v bool)
SetBackupsEnabled sets BackupsEnabled field to given value.
func (o *PostLinodeInstanceRequest) HasBackupsEnabled() bool
HasBackupsEnabled returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetFirewallId() int32
GetFirewallId returns the FirewallId field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetFirewallIdOk() (*int32, bool)
GetFirewallIdOk returns a tuple with the FirewallId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetFirewallId(v int32)
SetFirewallId sets FirewallId field to given value.
func (o *PostLinodeInstanceRequest) HasFirewallId() bool
HasFirewallId returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetGroup() string
GetGroup returns the Group field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetGroupOk() (*string, bool)
GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetGroup(v string)
SetGroup sets Group field to given value.
func (o *PostLinodeInstanceRequest) HasGroup() bool
HasGroup returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetInterfaces() []PostLinodeInstanceRequestAllOfInterfacesInner
GetInterfaces returns the Interfaces field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetInterfacesOk() (*[]PostLinodeInstanceRequestAllOfInterfacesInner, bool)
GetInterfacesOk returns a tuple with the Interfaces field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetInterfaces(v []PostLinodeInstanceRequestAllOfInterfacesInner)
SetInterfaces sets Interfaces field to given value.
func (o *PostLinodeInstanceRequest) HasInterfaces() bool
HasInterfaces returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetLabel() string
GetLabel returns the Label field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) 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 *PostLinodeInstanceRequest) SetLabel(v string)
SetLabel sets Label field to given value.
func (o *PostLinodeInstanceRequest) HasLabel() bool
HasLabel returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetPlacementGroup() PostLinodeInstanceRequestAllOfPlacementGroup
GetPlacementGroup returns the PlacementGroup field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetPlacementGroupOk() (*PostLinodeInstanceRequestAllOfPlacementGroup, bool)
GetPlacementGroupOk returns a tuple with the PlacementGroup field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetPlacementGroup(v PostLinodeInstanceRequestAllOfPlacementGroup)
SetPlacementGroup sets PlacementGroup field to given value.
func (o *PostLinodeInstanceRequest) HasPlacementGroup() bool
HasPlacementGroup returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetPrivateIp() bool
GetPrivateIp returns the PrivateIp field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetPrivateIpOk() (*bool, bool)
GetPrivateIpOk returns a tuple with the PrivateIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetPrivateIp(v bool)
SetPrivateIp sets PrivateIp field to given value.
func (o *PostLinodeInstanceRequest) HasPrivateIp() bool
HasPrivateIp returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetRegion() string
GetRegion returns the Region field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) 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 *PostLinodeInstanceRequest) SetRegion(v string)
SetRegion sets Region field to given value.
func (o *PostLinodeInstanceRequest) GetSwapSize() int32
GetSwapSize returns the SwapSize field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetSwapSizeOk() (*int32, bool)
GetSwapSizeOk returns a tuple with the SwapSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetSwapSize(v int32)
SetSwapSize sets SwapSize field to given value.
func (o *PostLinodeInstanceRequest) HasSwapSize() bool
HasSwapSize returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetTags(v []string)
SetTags sets Tags field to given value.
func (o *PostLinodeInstanceRequest) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *PostLinodeInstanceRequest) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *PostLinodeInstanceRequest) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostLinodeInstanceRequest) SetType(v string)
SetType sets Type field to given value.