MCPcopy Create free account
hub / github.com/rthalley/dnspython / replace

Method replace

dns/transaction.py:174–193  ·  view source on GitHub ↗

Replace the existing rdataset at the name with the specified rdataset, or add the specified rdataset if there was no existing rdataset. The arguments may be: - rrset - name, rdataset... - name, ttl, rdata... Note that if you wa

(self, *args: Any)

Source from the content-addressed store, hash-verified

172 self._add(False, args)
173
174 def replace(self, *args: Any) -> None:
175 """Replace the existing rdataset at the name with the specified
176 rdataset, or add the specified rdataset if there was no existing
177 rdataset.
178
179 The arguments may be:
180
181 - rrset
182
183 - name, rdataset...
184
185 - name, ttl, rdata...
186
187 Note that if you want to replace the entire node, you should do
188 a delete of the name followed by one or more calls to add() or
189 replace().
190 """
191 self._check_ended()
192 self._check_read_only()
193 self._add(True, args)
194
195 def delete(self, *args: Any) -> None:
196 """Delete records.

Callers 1

update_serialMethod · 0.95

Calls 3

_check_endedMethod · 0.95
_check_read_onlyMethod · 0.95
_addMethod · 0.95

Tested by

no test coverage detected