Change Sets

Define API ResourceRecordSets.

class google.cloud.dns.changes.Changes(zone)

Bases:object

Changes are bundled additions / deletions of DNS resource records.

Changes are owned by agoogle.cloud.dns.zone.ManagedZone instance.

Seehttps://cloud.google.com/dns/api/v1/changes

add_record_set(record_set)

Append a record set to the ‘additions’ for the change set.

property additions()

Resource record sets to be added to the zone.

create(client=None)

API call: create the change set via a POST request.

Seehttps://cloud.google.com/dns/api/v1/changes/create

  • Parameters

    client (google.cloud.dns.client.Client) – (Optional) the client to use. If not passed, falls back to theclient stored on the current zone.

delete_record_set(record_set)

Append a record set to the ‘deletions’ for the change set.

property deletions()

Resource record sets to be deleted from the zone.

exists(client=None)

API call: test for the existence of the change set via a GET request.

Seehttps://cloud.google.com/dns/api/v1/changes/get

  • Parameters

    client (google.cloud.dns.client.Client) – (Optional) the client to use. If not passed, falls back to theclient stored on the current zone.

  • Return type

    bool

  • Returns

    Boolean indicating existence of the changes.

classmethod from_api_repr(resource, zone)

Factory: construct a change set given its API representation

  • Parameters

  • Return type

    google.cloud.dns.changes.Changes

  • Returns

    RRS parsed fromresource.

property name()

Name of the change set.

  • Return type

    str orNoneType

  • Returns

    Name, as set by the back-end, or None.

property path()

URL path for change set APIs.

  • Return type

    str

  • Returns

    the path based on project, zone, and change set names.

reload(client=None)

API call: refresh zone properties via a GET request.

Seehttps://cloud.google.com/dns/api/v1/changes/get

  • Parameters

    client (google.cloud.dns.client.Client) – (Optional) the client to use. If not passed, falls back to theclient stored on the current zone.

property started()

Time when the change set was started.

  • Return type

    datetime.datetime orNoneType

  • Returns

    Time, as set by the back-end, or None.

property status()

Status of the change set.

  • Return type

    str orNoneType

  • Returns

    Status, as set by the back-end, or None.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-10 UTC.