[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [0.35.1 (latest)](/python/docs/reference/dns/latest/changes)\n- [0.35.0](/python/docs/reference/dns/0.35.0/changes)\n- [0.34.2](/python/docs/reference/dns/0.34.2/changes)\n- [0.33.1](/python/docs/reference/dns/0.33.1/changes)\n- [0.32.3](/python/docs/reference/dns/0.32.3/changes)\n- [0.31.0](/python/docs/reference/dns/0.31.0/changes)\n- [0.30.2](/python/docs/reference/dns/0.30.2/changes) \n\nChange Sets\n===========\n\nDefine API ResourceRecordSets.\n\n### *class* google.cloud.dns.changes.Changes(zone)\n\nBases: [`object`](https://docs.python.org/3/library/functions.html#object)\n\nChanges are bundled additions / deletions of DNS resource records.\n\nChanges are owned by a [`google.cloud.dns.zone.ManagedZone`](/python/docs/reference/dns/latest/zone#google.cloud.dns.zone.ManagedZone) instance.\n\nSee\n\u003chttps://cloud.google.com/dns/api/v1/changes\u003e\n\n- **Parameters**\n\n **zone** ([`google.cloud.dns.zone.ManagedZone`](/python/docs/reference/dns/latest/zone#google.cloud.dns.zone.ManagedZone)) -- A zone which holds one or more record sets.\n\n#### add_record_set(record_set)\n\nAppend a record set to the 'additions' for the change set.\n\n- **Parameters**\n\n **record_set** ([`google.cloud.dns.resource_record_set.ResourceRecordSet`](/python/docs/reference/dns/latest/resource-record-set#google.cloud.dns.resource_record_set.ResourceRecordSet)) -- the record set to append.\n- **Raises**\n\n `ValueError` if `record_set` is not of the required type.\n\n#### *property* additions()\n\nResource record sets to be added to the zone.\n\n- **Return type**\n\n sequence of\n [`google.cloud.dns.resource_record_set.ResourceRecordSet`](/python/docs/reference/dns/latest/resource-record-set#google.cloud.dns.resource_record_set.ResourceRecordSet).\n- **Returns**\n\n record sets appended via `add_record_set()`.\n\n#### create(client=None)\n\nAPI call: create the change set via a POST request.\n\nSee\n\u003chttps://cloud.google.com/dns/api/v1/changes/create\u003e\n\n- **Parameters**\n\n **client** ([`google.cloud.dns.client.Client`](/python/docs/reference/dns/latest/client#google.cloud.dns.client.Client)) -- (Optional) the client to use. If not passed, falls back to the\n `client` stored on the current zone.\n\n#### delete_record_set(record_set)\n\nAppend a record set to the 'deletions' for the change set.\n\n- **Parameters**\n\n **record_set** ([`google.cloud.dns.resource_record_set.ResourceRecordSet`](/python/docs/reference/dns/latest/resource-record-set#google.cloud.dns.resource_record_set.ResourceRecordSet)) -- the record set to append.\n- **Raises**\n\n `ValueError` if `record_set` is not of the required type.\n\n#### *property* deletions()\n\nResource record sets to be deleted from the zone.\n\n- **Return type**\n\n sequence of\n [`google.cloud.dns.resource_record_set.ResourceRecordSet`](/python/docs/reference/dns/latest/resource-record-set#google.cloud.dns.resource_record_set.ResourceRecordSet).\n- **Returns**\n\n record sets appended via `delete_record_set()`.\n\n#### exists(client=None)\n\nAPI call: test for the existence of the change set via a GET request.\n\nSee\n\u003chttps://cloud.google.com/dns/api/v1/changes/get\u003e\n\n- **Parameters**\n\n **client** ([`google.cloud.dns.client.Client`](/python/docs/reference/dns/latest/client#google.cloud.dns.client.Client)) -- (Optional) the client to use. If not passed, falls back to the\n `client` stored on the current zone.\n- **Return type**\n\n [bool](https://docs.python.org/3/library/functions.html#bool)\n- **Returns**\n\n Boolean indicating existence of the changes.\n\n#### *classmethod* from_api_repr(resource, zone)\n\nFactory: construct a change set given its API representation\n\n- **Parameters**\n\n - **resource** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict)) -- change set representation returned from the API.\n\n - **zone** ([`google.cloud.dns.zone.ManagedZone`](/python/docs/reference/dns/latest/zone#google.cloud.dns.zone.ManagedZone)) -- A zone which holds zero or more change sets.\n\n- **Return type**\n\n `google.cloud.dns.changes.Changes`\n- **Returns**\n\n RRS parsed from `resource`.\n\n#### *property* name()\n\nName of the change set.\n\n- **Return type**\n\n str or `NoneType`\n- **Returns**\n\n Name, as set by the back-end, or None.\n\n#### *property* path()\n\nURL path for change set APIs.\n\n- **Return type**\n\n [str](https://docs.python.org/3/library/stdtypes.html#str)\n- **Returns**\n\n the path based on project, zone, and change set names.\n\n#### reload(client=None)\n\nAPI call: refresh zone properties via a GET request.\n\nSee\n\u003chttps://cloud.google.com/dns/api/v1/changes/get\u003e\n\n- **Parameters**\n\n **client** ([`google.cloud.dns.client.Client`](/python/docs/reference/dns/latest/client#google.cloud.dns.client.Client)) -- (Optional) the client to use. If not passed, falls back to the\n `client` stored on the current zone.\n\n#### *property* started()\n\nTime when the change set was started.\n\n- **Return type**\n\n `datetime.datetime` or `NoneType`\n- **Returns**\n\n Time, as set by the back-end, or None.\n\n#### *property* status()\n\nStatus of the change set.\n\n- **Return type**\n\n str or `NoneType`\n- **Returns**\n\n Status, as set by the back-end, or None."]]