blob: 5c7831ab8b411f85f88caf1110e260e546bfbe60 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Sai Cheemalapatidf613972016-10-21 13:59:49 -070075<h1><a href="dns_v2beta1.html">Google Cloud DNS API</a> . <a href="dns_v2beta1.changes.html">changes</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070078 <code><a href="#create">create(project, managedZone, body, clientOperationId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Atomically update the ResourceRecordSet collection.</p>
80<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070081 <code><a href="#get">get(project, managedZone, changeId, clientOperationId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Fetch the representation of an existing Change.</p>
83<p class="toc_element">
84 <code><a href="#list">list(project, managedZone, pageToken=None, maxResults=None, sortBy=None, sortOrder=None)</a></code></p>
85<p class="firstline">Enumerate Changes to a ResourceRecordSet collection.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070091 <code class="details" id="create">create(project, managedZone, body, clientOperationId=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040092 <pre>Atomically update the ResourceRecordSet collection.
93
94Args:
95 project: string, Identifies the project addressed by this request. (required)
96 managedZone: string, Identifies the managed zone addressed by this request. Can be the managed zone name or id. (required)
97 body: object, The request body. (required)
98 The object takes the form of:
99
100{ # An atomic update to a collection of ResourceRecordSets.
101 "deletions": [ # Which ResourceRecordSets to remove? Must match existing data exactly.
102 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700103 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400104 "A String",
105 ],
106 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400107 "name": "A String", # For example, www.example.com.
108 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700109 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
110 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
111 "A String",
112 ],
John Asmuth614db982014-04-24 15:46:26 -0400113 },
114 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700115 "status": "A String", # Status of the operation (output only).
John Asmuth614db982014-04-24 15:46:26 -0400116 "kind": "dns#change", # Identifies what kind of resource this is. Value: the fixed string "dns#change".
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700117 "isServing": True or False, # If the DNS queries for the zone will be served.
118 "startTime": "A String", # The time that this operation was started by the server (output only). This is in RFC3339 text format.
John Asmuth614db982014-04-24 15:46:26 -0400119 "additions": [ # Which ResourceRecordSets to add?
120 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700121 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400122 "A String",
123 ],
124 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400125 "name": "A String", # For example, www.example.com.
126 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700127 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
128 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
129 "A String",
130 ],
John Asmuth614db982014-04-24 15:46:26 -0400131 },
132 ],
133 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
134 }
135
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700136 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
John Asmuth614db982014-04-24 15:46:26 -0400137
138Returns:
139 An object of the form:
140
141 { # An atomic update to a collection of ResourceRecordSets.
142 "deletions": [ # Which ResourceRecordSets to remove? Must match existing data exactly.
143 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700144 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400145 "A String",
146 ],
147 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400148 "name": "A String", # For example, www.example.com.
149 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700150 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
151 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
152 "A String",
153 ],
John Asmuth614db982014-04-24 15:46:26 -0400154 },
155 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700156 "status": "A String", # Status of the operation (output only).
John Asmuth614db982014-04-24 15:46:26 -0400157 "kind": "dns#change", # Identifies what kind of resource this is. Value: the fixed string "dns#change".
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700158 "isServing": True or False, # If the DNS queries for the zone will be served.
159 "startTime": "A String", # The time that this operation was started by the server (output only). This is in RFC3339 text format.
John Asmuth614db982014-04-24 15:46:26 -0400160 "additions": [ # Which ResourceRecordSets to add?
161 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700162 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400163 "A String",
164 ],
165 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400166 "name": "A String", # For example, www.example.com.
167 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700168 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
169 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
170 "A String",
171 ],
John Asmuth614db982014-04-24 15:46:26 -0400172 },
173 ],
174 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
175 }</pre>
176</div>
177
178<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700179 <code class="details" id="get">get(project, managedZone, changeId, clientOperationId=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400180 <pre>Fetch the representation of an existing Change.
181
182Args:
183 project: string, Identifies the project addressed by this request. (required)
184 managedZone: string, Identifies the managed zone addressed by this request. Can be the managed zone name or id. (required)
185 changeId: string, The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700186 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
John Asmuth614db982014-04-24 15:46:26 -0400187
188Returns:
189 An object of the form:
190
191 { # An atomic update to a collection of ResourceRecordSets.
192 "deletions": [ # Which ResourceRecordSets to remove? Must match existing data exactly.
193 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700194 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400195 "A String",
196 ],
197 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400198 "name": "A String", # For example, www.example.com.
199 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700200 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
201 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
202 "A String",
203 ],
John Asmuth614db982014-04-24 15:46:26 -0400204 },
205 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700206 "status": "A String", # Status of the operation (output only).
John Asmuth614db982014-04-24 15:46:26 -0400207 "kind": "dns#change", # Identifies what kind of resource this is. Value: the fixed string "dns#change".
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700208 "isServing": True or False, # If the DNS queries for the zone will be served.
209 "startTime": "A String", # The time that this operation was started by the server (output only). This is in RFC3339 text format.
John Asmuth614db982014-04-24 15:46:26 -0400210 "additions": [ # Which ResourceRecordSets to add?
211 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700212 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400213 "A String",
214 ],
215 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400216 "name": "A String", # For example, www.example.com.
217 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700218 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
219 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
220 "A String",
221 ],
John Asmuth614db982014-04-24 15:46:26 -0400222 },
223 ],
224 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
225 }</pre>
226</div>
227
228<div class="method">
229 <code class="details" id="list">list(project, managedZone, pageToken=None, maxResults=None, sortBy=None, sortOrder=None)</code>
230 <pre>Enumerate Changes to a ResourceRecordSet collection.
231
232Args:
233 project: string, Identifies the project addressed by this request. (required)
234 managedZone: string, Identifies the managed zone addressed by this request. Can be the managed zone name or id. (required)
235 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
236 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.
237 sortBy: string, Sorting criterion. The only supported value is change sequence.
238 Allowed values
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700239 CHANGE_SEQUENCE -
John Asmuth614db982014-04-24 15:46:26 -0400240 sortOrder: string, Sorting order direction: 'ascending' or 'descending'.
241
242Returns:
243 An object of the form:
244
245 { # The response to a request to enumerate Changes to a ResourceRecordSets collection.
246 "nextPageToken": "A String", # The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token.
247 #
248 # In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a "snapshot" of collections larger than the maximum page size.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700249 "header": { # Elements common to every response.
250 "operationId": "A String", # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only).
251 },
John Asmuth614db982014-04-24 15:46:26 -0400252 "kind": "dns#changesListResponse", # Type of resource.
253 "changes": [ # The requested changes.
254 { # An atomic update to a collection of ResourceRecordSets.
255 "deletions": [ # Which ResourceRecordSets to remove? Must match existing data exactly.
256 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700257 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400258 "A String",
259 ],
260 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400261 "name": "A String", # For example, www.example.com.
262 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700263 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
264 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
265 "A String",
266 ],
John Asmuth614db982014-04-24 15:46:26 -0400267 },
268 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700269 "status": "A String", # Status of the operation (output only).
John Asmuth614db982014-04-24 15:46:26 -0400270 "kind": "dns#change", # Identifies what kind of resource this is. Value: the fixed string "dns#change".
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700271 "isServing": True or False, # If the DNS queries for the zone will be served.
272 "startTime": "A String", # The time that this operation was started by the server (output only). This is in RFC3339 text format.
John Asmuth614db982014-04-24 15:46:26 -0400273 "additions": [ # Which ResourceRecordSets to add?
274 { # A unit of data that will be returned by the DNS servers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700275 "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
John Asmuth614db982014-04-24 15:46:26 -0400276 "A String",
277 ],
278 "kind": "dns#resourceRecordSet", # Identifies what kind of resource this is. Value: the fixed string "dns#resourceRecordSet".
John Asmuth614db982014-04-24 15:46:26 -0400279 "name": "A String", # For example, www.example.com.
280 "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700281 "type": "A String", # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
282 "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
283 "A String",
284 ],
John Asmuth614db982014-04-24 15:46:26 -0400285 },
286 ],
287 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
288 },
289 ],
290 }</pre>
291</div>
292
293<div class="method">
294 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
295 <pre>Retrieves the next page of results.
296
297Args:
298 previous_request: The request for the previous page. (required)
299 previous_response: The response from the request for the previous page. (required)
300
301Returns:
302 A request object that you can call 'execute()' on to request the next
303 page. Returns None if there are no more items in the collection.
304 </pre>
305</div>
306
307</body></html>