Resource Record Sets#
Define API ResourceRecordSets.
-
class
gcloud.dns.resource_record_set.ResourceRecordSet(name, record_type, ttl, rrdatas, zone)[source]# Bases:
objectResourceRecordSets are DNS resource records.
RRS are owned by a
gcloud.dns.zone.ManagedZoneinstance.See: https://cloud.google.com/dns/api/v1/resourceRecordSets
Parameters: - name (string) – the name of the record set
- record_type (string) – the RR type of the zone
- ttl (integer) – TTL (in seconds) for caching the record sets
- rrdatas (list of string) – one or more lines containing the resource data
- zone (
gcloud.dns.zone.ManagedZone) – A zone which holds one or more record sets.
-
classmethod
from_api_repr(resource, zone)[source]# Factory: construct a record set given its API representation
Parameters: - resource (dict) – record sets representation returned from the API
- zone (
gcloud.dns.zone.ManagedZone) – A zone which holds one or more record sets.
Return type: gcloud.dns.zone.ResourceRecordSetReturns: RRS parsed from
resource.