Name | Type | Description | Notes |
---|---|---|---|
Name | Pointer to string | The name of this Record. For requests, this property's actual usage and whether it is required depends on the type of record this represents: `A` and `AAAA`: The hostname or FQDN of the Record. `NS`: The subdomain, if any, to use with the Domain of the Record. Wildcard NS records (``) are not supported. `MX`: The mail subdomain. For example, `sub` for the address `[email protected]` under the `example.com` Domain. - The left-most subdomain component may be an asterisk (``) to designate a wildcard subdomain. - Other subdomain components must only contain letters, digits, and hyphens, start with a letter, end with a letter or digit, and contain less than 64 characters. - Must be an empty string (`""`) for a Null MX Record. `CNAME`: The hostname. Must be unique. Required. `TXT`: The hostname. `SRV`: Unused. Use the `service` property to set the service name for this record. `CAA`: The subdomain. Omit or enter an empty string (`""`) to apply to the entire Domain. `PTR`: See our guide on how to Configure Your Linode for Reverse DNS (rDNS). | [optional] |
Port | Pointer to int32 | The port this Record points to. Only valid and required for SRV record requests. | [optional] |
Priority | Pointer to int32 | The priority of the target host for this Record. Lower values are preferred. Only valid for MX and SRV record requests. Required for SRV record requests. Defaults to `0` for MX record requests. Must be `0` for Null MX records. | [optional] |
Protocol | Pointer to NullableString | The protocol this Record's service communicates with. An underscore (`_`) is prepended automatically to the submitted value for this property. Only valid for SRV record requests. | [optional] |
Service | Pointer to NullableString | The name of the service. An underscore (`_`) is prepended and a period (`.`) is appended automatically to the submitted value for this property. Only valid and required for SRV record requests. | [optional] |
Tag | Pointer to NullableString | The tag portion of a CAA record. Only valid and required for CAA record requests. | [optional] |
Target | Pointer to string | The target for this Record. For requests, this property's actual usage and whether it is required depends on the type of record this represents: `A` and `AAAA`: The IP address. Use `[remote_addr]` to submit the IPv4 address of the request. Required. `NS`: The name server. Must be a valid domain. Required. `MX`: The mail server. Must be a valid domain unless creating a Null MX Record. Required. - Must have less than 254 total characters. - The left-most domain component may be an asterisk (``) to designate a wildcard domain. - Other domain components must only contain letters, digits, and hyphens, start with a letter, end with a letter or digit, and contain less than 64 characters. - To create a Null MX Record, first remove any additional MX records, then create an MX record with empty strings (`""`) for the `target` and `name`. If a Domain has a Null MX record, new MX records cannot be created. `CNAME`: The alias. Must be a valid domain. Required. `TXT`: The value. Required. `SRV`: The target domain or subdomain. If a subdomain is entered, it is automatically used with the Domain. To configure for a different domain, enter a valid FQDN. For example, the value `www` with a Domain for `example.com` results in a target set to `www.example.com`, whereas the value `sample.com` results in a target set to `sample.com`. Required. `CAA`: The value. For `issue` or `issuewild` tags, the domain of your certificate issuer. For the `iodef` tag, a contact or submission URL (domain, http, https, or mailto). Requirements depend on the tag for this record: - `issue`: The domain of your certificate issuer. Must include a valid domain. May include additional parameters separated with semicolons (`;`), for example: `www.example.com; foo=bar` - `issuewild`: The domain of your wildcard certificate issuer. Must be a valid domain and must not start with an asterisk (``). - `iodef`: Must be either (1) a valid domain, (2) a valid domain prepended with `http://` or `https://`, or (3) a valid email address prepended with `mailto:`. `PTR`: Required. See our guide on how to Configure Your Linode for Reverse DNS (rDNS). With the exception of A, AAAA, and CAA records, this field accepts a trailing period. | [optional] |
TtlSec | Pointer to int32 | "Time to Live" - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value. | [optional] |
Weight | Pointer to int32 | The relative weight of this Record used in the case of identical priority. Higher values are preferred. Only valid and required for SRV record requests. | [optional] |
func NewPutDomainRecordRequest() *PutDomainRecordRequest
NewPutDomainRecordRequest instantiates a new PutDomainRecordRequest 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 NewPutDomainRecordRequestWithDefaults() *PutDomainRecordRequest
NewPutDomainRecordRequestWithDefaults instantiates a new PutDomainRecordRequest 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 *PutDomainRecordRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) 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.
func (o *PutDomainRecordRequest) SetName(v string)
SetName sets Name field to given value.
func (o *PutDomainRecordRequest) HasName() bool
HasName returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) GetPort() int32
GetPort returns the Port field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) 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.
func (o *PutDomainRecordRequest) SetPort(v int32)
SetPort sets Port field to given value.
func (o *PutDomainRecordRequest) HasPort() bool
HasPort returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) GetPriority() int32
GetPriority returns the Priority field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) GetPriorityOk() (*int32, bool)
GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PutDomainRecordRequest) SetPriority(v int32)
SetPriority sets Priority field to given value.
func (o *PutDomainRecordRequest) HasPriority() bool
HasPriority returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) GetProtocolOk() (*string, bool)
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PutDomainRecordRequest) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *PutDomainRecordRequest) HasProtocol() bool
HasProtocol returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) SetProtocolNil(b bool)
SetProtocolNil sets the value for Protocol to be an explicit nil
func (o *PutDomainRecordRequest) UnsetProtocol()
UnsetProtocol ensures that no value is present for Protocol, not even an explicit nil
func (o *PutDomainRecordRequest) GetService() string
GetService returns the Service field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PutDomainRecordRequest) SetService(v string)
SetService sets Service field to given value.
func (o *PutDomainRecordRequest) HasService() bool
HasService returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) SetServiceNil(b bool)
SetServiceNil sets the value for Service to be an explicit nil
func (o *PutDomainRecordRequest) UnsetService()
UnsetService ensures that no value is present for Service, not even an explicit nil
func (o *PutDomainRecordRequest) GetTag() string
GetTag returns the Tag field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) 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.
func (o *PutDomainRecordRequest) SetTag(v string)
SetTag sets Tag field to given value.
func (o *PutDomainRecordRequest) HasTag() bool
HasTag returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) SetTagNil(b bool)
SetTagNil sets the value for Tag to be an explicit nil
func (o *PutDomainRecordRequest) UnsetTag()
UnsetTag ensures that no value is present for Tag, not even an explicit nil
func (o *PutDomainRecordRequest) GetTarget() string
GetTarget returns the Target field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) GetTargetOk() (*string, bool)
GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PutDomainRecordRequest) SetTarget(v string)
SetTarget sets Target field to given value.
func (o *PutDomainRecordRequest) HasTarget() bool
HasTarget returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) GetTtlSec() int32
GetTtlSec returns the TtlSec field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) GetTtlSecOk() (*int32, bool)
GetTtlSecOk returns a tuple with the TtlSec field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PutDomainRecordRequest) SetTtlSec(v int32)
SetTtlSec sets TtlSec field to given value.
func (o *PutDomainRecordRequest) HasTtlSec() bool
HasTtlSec returns a boolean if a field has been set.
func (o *PutDomainRecordRequest) GetWeight() int32
GetWeight returns the Weight field if non-nil, zero value otherwise.
func (o *PutDomainRecordRequest) GetWeightOk() (*int32, bool)
GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PutDomainRecordRequest) SetWeight(v int32)
SetWeight sets Weight field to given value.
func (o *PutDomainRecordRequest) HasWeight() bool
HasWeight returns a boolean if a field has been set.