Struct dnsimple::dnsimple::zones::Zones [−][src]
pub struct Zones<'a> {
pub client: &'a Client,
}
Expand description
The Zones Service handles the zone distribution of the DNSimple API.
Fields
client: &'a Client
Implementations
pub fn list_zones(
&self,
account_id: u64,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Zone>>, String>
pub fn list_zones(
&self,
account_id: u64,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Zone>>, String>
pub fn get_zone_file(
&self,
account_id: u64,
zone: &str
) -> Result<DNSimpleResponse<ZoneFile>, String>
pub fn get_zone_file(
&self,
account_id: u64,
zone: &str
) -> Result<DNSimpleResponse<ZoneFile>, String>
pub fn check_zone_distribution(
&self,
account_id: u64,
zone: &str
) -> Result<DNSimpleResponse<ZoneDistribution>, String>
pub fn check_zone_distribution(
&self,
account_id: u64,
zone: &str
) -> Result<DNSimpleResponse<ZoneDistribution>, String>
pub fn list_zone_records(
&self,
account_id: u64,
zone: &str,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<ZoneRecord>>, String>
pub fn list_zone_records(
&self,
account_id: u64,
zone: &str,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<ZoneRecord>>, String>
pub fn create_zone_record(
&self,
account_id: u64,
zone: &str,
payload: ZoneRecordPayload
) -> Result<DNSimpleResponse<ZoneRecord>, String>
pub fn create_zone_record(
&self,
account_id: u64,
zone: &str,
payload: ZoneRecordPayload
) -> Result<DNSimpleResponse<ZoneRecord>, String>
Create a zone record
Arguments
account_id
: The account ID
zone
: The zone name
payload
: The ZoneRecordPayload
with the information to create the zone record
pub fn get_zone_record(
&self,
account_id: u64,
zone: &str,
record: u64
) -> Result<DNSimpleResponse<ZoneRecord>, String>
pub fn get_zone_record(
&self,
account_id: u64,
zone: &str,
record: u64
) -> Result<DNSimpleResponse<ZoneRecord>, String>
Retrieve a zone record
Arguments
account_id
: The account ID
zone
: The zone name
record
: The record id
pub fn update_zone_record(
&self,
account_id: u64,
zone: &str,
record: u64,
payload: ZoneRecordUpdatePayload
) -> Result<DNSimpleResponse<ZoneRecord>, String>
pub fn update_zone_record(
&self,
account_id: u64,
zone: &str,
record: u64,
payload: ZoneRecordUpdatePayload
) -> Result<DNSimpleResponse<ZoneRecord>, String>
Update a zone record
Arguments
account_id
: The account ID
zone
: The zone name
record
: The record id
payload
: The ZoneRecordUpdatePayload
with the information to create the zone record
pub fn delete_zone_record(
&self,
account_id: u64,
zone: &str,
record: u64
) -> DNSimpleEmptyResponse
pub fn delete_zone_record(
&self,
account_id: u64,
zone: &str,
record: u64
) -> DNSimpleEmptyResponse
pub fn check_zone_record_distribution(
&self,
account_id: u64,
zone: &str,
record: u64
) -> Result<DNSimpleResponse<ZoneDistribution>, String>
pub fn check_zone_record_distribution(
&self,
account_id: u64,
zone: &str,
record: u64
) -> Result<DNSimpleResponse<ZoneDistribution>, String>
Check zone record distribution
Arguments
account_id
: The account ID
zone
: The zone name
record
: The record id