You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create DNS zone change from a bind zone file (or string) #76
(Assuming we get past the parsing issue, which is a bit gnarly)
We can't create the Changes instance directly from a file / string: we have to have the existing resource record set, from which we would generate additions and deletions. E.g., convert the existng set to a list of tuples:
fromgcloud.dnsimportClientclient=Client()
zone=client.zone('my_zone', 'example.com.')
rrs, token=zone.list_resource_record_sets()
asserttokenisNone# see belowcurrent=set([(rr.name, rr.type, rr.ttl, tuple(rr.rrdatas)) forrrinrrs])
# hypothetical utility function returning an equivalent set of tuplesupdated=parse_bind_config(file_or_string)
changes=zone.changes()
fordeletedincurrent-updated:
to_delete=zone.resource_record_set(*deleted)
changes.delete_record_set(to_delete)
foraddedinupdated-current:
to_add=zone.resource_record_set(*added)
changes.add_record_set(to_add)
changes.create() # API call
The problem is compounded for large-enough zones that all resource record sets cannot be retrieved in a single request: at that point, we have no consistency guarantees between separate "pages" that we fetch, which makes generating a "diff" much harder.
Hello,
One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of google-cloud-python, I can definitely say that I have let the issues here pile up.
As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.
My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.
Activity
tseaver commentedon Sep 21, 2015
(Assuming we get past the parsing issue, which is a bit gnarly)
We can't create the
Changesinstance directly from a file / string: we have to have the existing resource record set, from which we would generateadditionsanddeletions. E.g., convert the existng set to a list of tuples:The problem is compounded for large-enough zones that all resource record sets cannot be retrieved in a single request: at that point, we have no consistency guarantees between separate "pages" that we fetch, which makes generating a "diff" much harder.
lukesneeringer commentedon Aug 11, 2017
Hello,
One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of
google-cloud-python, I can definitely say that I have let the issues here pile up.As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.
My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.
Thank you!
Merge pull request googleapis#76 from megadevx/patch-3
chore(python): exclude path in renovate.json [autoapprove] (#76)
chore: Migrate code from googleapis/python-ids into packages/google-c…
build: switch to release-please for tagging (#76)
chore(python): add E231 to .flake8 ignore list (#76)
100 remaining items
chore: release 1.22.2 (#76)
build: migrate to flakybot (#76)
fix: repair implementation of `Client.reserve_ids` (#76)
chore: Adding support for pytest-xdist and pytest-parallel (#76)
chore: migrate to main branch (#76)
chore: include py.typed files in release (#76)
Port GQL parser and add GQL support for query (#76)
Make service_account_email public, read-only (#76)
fix: restrict api-core dependency to < 1.17.0 (#76)
perf: replace CFFI with a native C extension (#76)
Always use raw response data. (#87)
Merge pull request #76 from orijtech/convert-datetimefield
chore: release 1.16.0 (#76)
feat: add subPackage types for better classification (#76)
perf: replace CFFI with a native C extension (#76)