Retrieves remaining results by repeatedly invoking#nextuntil#next?returnsfalse. Calls the given block once for each
result, which is passed as the argument to the block.
An Enumerator is returned if no block is given.
This method will make repeated API calls until all remaining results
are retrieved. (Unlike#each, for example, which merely iterates
over the results returned by a single API call.) Use with caution.
Parameter
request_limit(Integer)(defaults to: nil)— The upper limit of API requests to
make to load all changes. Default is no limit.
[[["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-09-04 UTC."],[],[],null,["# Cloud DNS API - Class Google::Cloud::Dns::Change::List (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-dns/latest/Google-Cloud-Dns-Change-List)\n- [1.0.0](/ruby/docs/reference/google-cloud-dns/1.0.0/Google-Cloud-Dns-Change-List)\n- [0.37.0](/ruby/docs/reference/google-cloud-dns/0.37.0/Google-Cloud-Dns-Change-List)\n- [0.36.1](/ruby/docs/reference/google-cloud-dns/0.36.1/Google-Cloud-Dns-Change-List)\n- [0.35.1](/ruby/docs/reference/google-cloud-dns/0.35.1/Google-Cloud-Dns-Change-List) \nReference documentation and code samples for the Cloud DNS API class Google::Cloud::Dns::Change::List.\n\nChange::List is a special case Array with additional values. \n\nInherits\n--------\n\n- Array\n\nMethods\n-------\n\n### #all\n\n def all(request_limit: nil, &block) { |change| ... } -\u003e Enumerator\n\nRetrieves remaining results by repeatedly invoking [#next](/ruby/docs/reference/google-cloud-dns/latest/Google-Cloud-Dns-Change-List#Google__Cloud__Dns__Change__List_next_instance_ \"Google::Cloud::Dns::Change::List#next (method)\") until\n[#next?](/ruby/docs/reference/google-cloud-dns/latest/Google-Cloud-Dns-Change-List#Google__Cloud__Dns__Change__List_next__instance_ \"Google::Cloud::Dns::Change::List#next? (method)\") returns `false`. Calls the given block once for each\nresult, which is passed as the argument to the block.\n\n\nAn Enumerator is returned if no block is given.\n\n\u003cbr /\u003e\n\nThis method will make repeated API calls until all remaining results\nare retrieved. (Unlike `#each`, for example, which merely iterates\nover the results returned by a single API call.) Use with caution. \n**Parameter**\n\n- **request_limit** (Integer) *(defaults to: nil)* --- The upper limit of API requests to make to load all changes. Default is no limit. \n**Yields**\n\n- (change) --- The block for accessing each change. \n**Yield Parameter**\n\n- **change** ([Change](./Google-Cloud-Dns-Change)) --- The change object. \n**Returns**\n\n- (Enumerator)\n**Examples**\n\nIterating each change by passing a block: \n\n```ruby\nrequire \"google/cloud/dns\"\n\ndns = Google::Cloud::Dns.new\nzone = dns.zone \"example-com\"\nchanges = zone.changes\n\nchanges.all do |change|\n puts change.id\nend\n```\n\nUsing the enumerator by not passing a block: \n\n```ruby\nrequire \"google/cloud/dns\"\n\ndns = Google::Cloud::Dns.new\nzone = dns.zone \"example-com\"\nchanges = zone.changes\n\nall_names = changes.all.map do |change|\n change.id\nend\n```\n\nLimit the number of API calls made: \n\n```ruby\nrequire \"google/cloud/dns\"\n\ndns = Google::Cloud::Dns.new\nzone = dns.zone \"example-com\"\nchanges = zone.changes\n\nchanges.all(request_limit: 10) do |change|\n puts change.id\nend\n```\n\n### #next\n\n def next() -\u003e Change::List\n\nRetrieve the next page of changes. \n**Returns**\n\n- ([Change::List](./Google-Cloud-Dns-Change-List))\n**Example** \n\n```ruby\nrequire \"google/cloud/dns\"\n\ndns = Google::Cloud::Dns.new\nzone = dns.zone \"example-com\"\n\nchanges = zone.changes\nif changes.next?\n next_changes = changes.next\nend\n```\n\n### #next?\n\n def next?() -\u003e Boolean\n\nWhether there a next page of changes. \n**Returns**\n\n- (Boolean)\n**Example** \n\n```ruby\nrequire \"google/cloud/dns\"\n\ndns = Google::Cloud::Dns.new\nzone = dns.zone \"example-com\"\n\nchanges = zone.changes\nif changes.next?\n next_changes = changes.next\nend\n```\n\n### #token\n\n def token()\n\nIf not empty, indicates that there are more changes that match\nthe request and this value should be passed to continue.\n\n### #token=\n\n def token=(value)\n\nIf not empty, indicates that there are more changes that match\nthe request and this value should be passed to continue."]]