Class Changes (0.36.0) Stay organized with collections Save and categorize content based on your preferences.
Changes(zone)Changes are bundled additions / deletions of DNS resource records.
Changes are owned by a xref_ManagedZone instance.
Parameter | |
|---|---|
| Name | Description |
zone | ManagedZoneA zone which holds one or more record sets. |
Properties
additions
Resource record sets to be added to the zone.
| Returns | |
|---|---|
| Type | Description |
sequence ofResourceRecordSet. | record sets appended viaadd_record_set. |
deletions
Resource record sets to be deleted from the zone.
| Returns | |
|---|---|
| Type | Description |
sequence ofResourceRecordSet. | record sets appended viadelete_record_set. |
name
Name of the change set.
| Returns | |
|---|---|
| Type | Description |
str or | Name, as set by the back-end, or None. |
path
URL path for change set APIs.
| Returns | |
|---|---|
| Type | Description |
str | the path based on project, zone, and change set names. |
started
Time when the change set was started.
| Returns | |
|---|---|
| Type | Description |
| Time, as set by the back-end, or None. |
status
Status of the change set.
| Returns | |
|---|---|
| Type | Description |
str or | Status, as set by the back-end, or None. |
Methods
add_record_set
add_record_set(record_set)Append a record set to the 'additions' for the change set.
| Parameter | |
|---|---|
| Name | Description |
record_set | ResourceRecordSetthe record set to append. |
| Exceptions | |
|---|---|
| Type | Description |
`ValueError | ifrecord_set is not of the required type. |
create
create(client=None)API call: create the change set via a POST request.
| Parameter | |
|---|---|
| Name | Description |
client | Client(Optional) the client to use. If not passed, falls back to the |
delete_record_set
delete_record_set(record_set)Append a record set to the 'deletions' for the change set.
| Parameter | |
|---|---|
| Name | Description |
record_set | ResourceRecordSetthe record set to append. |
| Exceptions | |
|---|---|
| Type | Description |
`ValueError | ifrecord_set is not of the required type. |
exists
exists(client=None)API call: test for the existence of the change set via a GET request.
| Parameter | |
|---|---|
| Name | Description |
client | Client(Optional) the client to use. If not passed, falls back to the |
| Returns | |
|---|---|
| Type | Description |
bool | Boolean indicating existence of the changes. |
from_api_repr
from_api_repr(resource,zone)Factory: construct a change set given its API representation
| Parameters | |
|---|---|
| Name | Description |
resource | dictchange set representation returned from the API. |
zone | ManagedZoneA zone which holds zero or more change sets. |
| Returns | |
|---|---|
| Type | Description |
Changes | RRS parsed fromresource. |
reload
reload(client=None)API call: refresh zone properties via a GET request.
| Parameter | |
|---|---|
| Name | Description |
client | Client(Optional) the client to use. If not passed, falls back to the |
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.