• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Generated message classes for dns version v1.
2
3The Google Cloud DNS API provides services for configuring and serving
4authoritative DNS records.
5"""
6# NOTE: This file is autogenerated and should not be edited by hand.
7
8from __future__ import absolute_import
9
10from apitools.base.protorpclite import messages as _messages
11
12
13package = 'dns'
14
15
16class Change(_messages.Message):
17  r"""An atomic update to a collection of ResourceRecordSets.
18
19  Enums:
20    StatusValueValuesEnum: Status of the operation (output only).
21
22  Fields:
23    additions: Which ResourceRecordSets to add?
24    deletions: Which ResourceRecordSets to remove? Must match existing data
25      exactly.
26    id: Unique identifier for the resource; defined by the server (output
27      only).
28    kind: Identifies what kind of resource this is. Value: the fixed string
29      "dns#change".
30    startTime: The time that this operation was started by the server. This is
31      in RFC3339 text format.
32    status: Status of the operation (output only).
33  """
34
35  class StatusValueValuesEnum(_messages.Enum):
36    r"""Status of the operation (output only).
37
38    Values:
39      done: <no description>
40      pending: <no description>
41    """
42    done = 0
43    pending = 1
44
45  additions = _messages.MessageField('ResourceRecordSet', 1, repeated=True)
46  deletions = _messages.MessageField('ResourceRecordSet', 2, repeated=True)
47  id = _messages.StringField(3)
48  kind = _messages.StringField(4, default='dns#change')
49  startTime = _messages.StringField(5)
50  status = _messages.EnumField('StatusValueValuesEnum', 6)
51
52
53class ChangesListResponse(_messages.Message):
54  r"""The response to a request to enumerate Changes to a ResourceRecordSets
55  collection.
56
57  Fields:
58    changes: The requested changes.
59    kind: Type of resource.
60    nextPageToken: The presence of this field indicates that there exist more
61      results following your last page of results in pagination order. To
62      fetch them, make another list request using this value as your
63      pagination token.  In this way you can retrieve the complete contents of
64      even very large collections one page at a time. However, if the contents
65      of the collection change between the first and last paginated list
66      request, the set of all elements returned will be an inconsistent view
67      of the collection. There is no way to retrieve a "snapshot" of
68      collections larger than the maximum page size.
69  """
70
71  changes = _messages.MessageField('Change', 1, repeated=True)
72  kind = _messages.StringField(2, default='dns#changesListResponse')
73  nextPageToken = _messages.StringField(3)
74
75
76class DnsChangesCreateRequest(_messages.Message):
77  r"""A DnsChangesCreateRequest object.
78
79  Fields:
80    change: A Change resource to be passed as the request body.
81    managedZone: Identifies the managed zone addressed by this request. Can be
82      the managed zone name or id.
83    project: Identifies the project addressed by this request.
84  """
85
86  change = _messages.MessageField('Change', 1)
87  managedZone = _messages.StringField(2, required=True)
88  project = _messages.StringField(3, required=True)
89
90
91class DnsChangesGetRequest(_messages.Message):
92  r"""A DnsChangesGetRequest object.
93
94  Fields:
95    changeId: The identifier of the requested change, from a previous
96      ResourceRecordSetsChangeResponse.
97    managedZone: Identifies the managed zone addressed by this request. Can be
98      the managed zone name or id.
99    project: Identifies the project addressed by this request.
100  """
101
102  changeId = _messages.StringField(1, required=True)
103  managedZone = _messages.StringField(2, required=True)
104  project = _messages.StringField(3, required=True)
105
106
107class DnsChangesListRequest(_messages.Message):
108  r"""A DnsChangesListRequest object.
109
110  Enums:
111    SortByValueValuesEnum: Sorting criterion. The only supported value is
112      change sequence.
113
114  Fields:
115    managedZone: Identifies the managed zone addressed by this request. Can be
116      the managed zone name or id.
117    maxResults: Optional. Maximum number of results to be returned. If
118      unspecified, the server will decide how many results to return.
119    pageToken: Optional. A tag returned by a previous list request that was
120      truncated. Use this parameter to continue a previous list request.
121    project: Identifies the project addressed by this request.
122    sortBy: Sorting criterion. The only supported value is change sequence.
123    sortOrder: Sorting order direction: 'ascending' or 'descending'.
124  """
125
126  class SortByValueValuesEnum(_messages.Enum):
127    r"""Sorting criterion. The only supported value is change sequence.
128
129    Values:
130      changeSequence: <no description>
131    """
132    changeSequence = 0
133
134  managedZone = _messages.StringField(1, required=True)
135  maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32)
136  pageToken = _messages.StringField(3)
137  project = _messages.StringField(4, required=True)
138  sortBy = _messages.EnumField('SortByValueValuesEnum', 5, default='changeSequence')
139  sortOrder = _messages.StringField(6)
140
141
142class DnsManagedZonesCreateRequest(_messages.Message):
143  r"""A DnsManagedZonesCreateRequest object.
144
145  Fields:
146    managedZone: A ManagedZone resource to be passed as the request body.
147    project: Identifies the project addressed by this request.
148  """
149
150  managedZone = _messages.MessageField('ManagedZone', 1)
151  project = _messages.StringField(2, required=True)
152
153
154class DnsManagedZonesDeleteRequest(_messages.Message):
155  r"""A DnsManagedZonesDeleteRequest object.
156
157  Fields:
158    managedZone: Identifies the managed zone addressed by this request. Can be
159      the managed zone name or id.
160    project: Identifies the project addressed by this request.
161  """
162
163  managedZone = _messages.StringField(1, required=True)
164  project = _messages.StringField(2, required=True)
165
166
167class DnsManagedZonesDeleteResponse(_messages.Message):
168  r"""An empty DnsManagedZonesDelete response."""
169
170
171class DnsManagedZonesGetRequest(_messages.Message):
172  r"""A DnsManagedZonesGetRequest object.
173
174  Fields:
175    managedZone: Identifies the managed zone addressed by this request. Can be
176      the managed zone name or id.
177    project: Identifies the project addressed by this request.
178  """
179
180  managedZone = _messages.StringField(1, required=True)
181  project = _messages.StringField(2, required=True)
182
183
184class DnsManagedZonesListRequest(_messages.Message):
185  r"""A DnsManagedZonesListRequest object.
186
187  Fields:
188    dnsName: Restricts the list to return only zones with this domain name.
189    maxResults: Optional. Maximum number of results to be returned. If
190      unspecified, the server will decide how many results to return.
191    pageToken: Optional. A tag returned by a previous list request that was
192      truncated. Use this parameter to continue a previous list request.
193    project: Identifies the project addressed by this request.
194  """
195
196  dnsName = _messages.StringField(1)
197  maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32)
198  pageToken = _messages.StringField(3)
199  project = _messages.StringField(4, required=True)
200
201
202class DnsProjectsGetRequest(_messages.Message):
203  r"""A DnsProjectsGetRequest object.
204
205  Fields:
206    project: Identifies the project addressed by this request.
207  """
208
209  project = _messages.StringField(1, required=True)
210
211
212class DnsResourceRecordSetsListRequest(_messages.Message):
213  r"""A DnsResourceRecordSetsListRequest object.
214
215  Fields:
216    managedZone: Identifies the managed zone addressed by this request. Can be
217      the managed zone name or id.
218    maxResults: Optional. Maximum number of results to be returned. If
219      unspecified, the server will decide how many results to return.
220    name: Restricts the list to return only records with this fully qualified
221      domain name.
222    pageToken: Optional. A tag returned by a previous list request that was
223      truncated. Use this parameter to continue a previous list request.
224    project: Identifies the project addressed by this request.
225    type: Restricts the list to return only records of this type. If present,
226      the "name" parameter must also be present.
227  """
228
229  managedZone = _messages.StringField(1, required=True)
230  maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32)
231  name = _messages.StringField(3)
232  pageToken = _messages.StringField(4)
233  project = _messages.StringField(5, required=True)
234  type = _messages.StringField(6)
235
236
237class ManagedZone(_messages.Message):
238  r"""A zone is a subtree of the DNS namespace under one administrative
239  responsibility. A ManagedZone is a resource that represents a DNS zone
240  hosted by the Cloud DNS service.
241
242  Fields:
243    creationTime: The time that this resource was created on the server. This
244      is in RFC3339 text format. Output only.
245    description: A mutable string of at most 1024 characters associated with
246      this resource for the user's convenience. Has no effect on the managed
247      zone's function.
248    dnsName: The DNS name of this managed zone, for instance "example.com.".
249    id: Unique identifier for the resource; defined by the server (output
250      only)
251    kind: Identifies what kind of resource this is. Value: the fixed string
252      "dns#managedZone".
253    name: User assigned name for this resource. Must be unique within the
254      project. The name must be 1-32 characters long, must begin with a
255      letter, end with a letter or digit, and only contain lowercase letters,
256      digits or dashes.
257    nameServerSet: Optionally specifies the NameServerSet for this
258      ManagedZone. A NameServerSet is a set of DNS name servers that all host
259      the same ManagedZones. Most users will leave this field unset.
260    nameServers: Delegate your managed_zone to these virtual name servers;
261      defined by the server (output only)
262  """
263
264  creationTime = _messages.StringField(1)
265  description = _messages.StringField(2)
266  dnsName = _messages.StringField(3)
267  id = _messages.IntegerField(4, variant=_messages.Variant.UINT64)
268  kind = _messages.StringField(5, default='dns#managedZone')
269  name = _messages.StringField(6)
270  nameServerSet = _messages.StringField(7)
271  nameServers = _messages.StringField(8, repeated=True)
272
273
274class ManagedZonesListResponse(_messages.Message):
275  r"""A ManagedZonesListResponse object.
276
277  Fields:
278    kind: Type of resource.
279    managedZones: The managed zone resources.
280    nextPageToken: The presence of this field indicates that there exist more
281      results following your last page of results in pagination order. To
282      fetch them, make another list request using this value as your page
283      token.  In this way you can retrieve the complete contents of even very
284      large collections one page at a time. However, if the contents of the
285      collection change between the first and last paginated list request, the
286      set of all elements returned will be an inconsistent view of the
287      collection. There is no way to retrieve a consistent snapshot of a
288      collection larger than the maximum page size.
289  """
290
291  kind = _messages.StringField(1, default='dns#managedZonesListResponse')
292  managedZones = _messages.MessageField('ManagedZone', 2, repeated=True)
293  nextPageToken = _messages.StringField(3)
294
295
296class Project(_messages.Message):
297  r"""A project resource. The project is a top level container for resources
298  including Cloud DNS ManagedZones. Projects can be created only in the APIs
299  console.
300
301  Fields:
302    id: User assigned unique identifier for the resource (output only).
303    kind: Identifies what kind of resource this is. Value: the fixed string
304      "dns#project".
305    number: Unique numeric identifier for the resource; defined by the server
306      (output only).
307    quota: Quotas assigned to this project (output only).
308  """
309
310  id = _messages.StringField(1)
311  kind = _messages.StringField(2, default='dns#project')
312  number = _messages.IntegerField(3, variant=_messages.Variant.UINT64)
313  quota = _messages.MessageField('Quota', 4)
314
315
316class Quota(_messages.Message):
317  r"""Limits associated with a Project.
318
319  Fields:
320    kind: Identifies what kind of resource this is. Value: the fixed string
321      "dns#quota".
322    managedZones: Maximum allowed number of managed zones in the project.
323    resourceRecordsPerRrset: Maximum allowed number of ResourceRecords per
324      ResourceRecordSet.
325    rrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets to
326      add per ChangesCreateRequest.
327    rrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets to
328      delete per ChangesCreateRequest.
329    rrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets per
330      zone in the project.
331    totalRrdataSizePerChange: Maximum allowed size for total rrdata in one
332      ChangesCreateRequest in bytes.
333  """
334
335  kind = _messages.StringField(1, default='dns#quota')
336  managedZones = _messages.IntegerField(2, variant=_messages.Variant.INT32)
337  resourceRecordsPerRrset = _messages.IntegerField(3, variant=_messages.Variant.INT32)
338  rrsetAdditionsPerChange = _messages.IntegerField(4, variant=_messages.Variant.INT32)
339  rrsetDeletionsPerChange = _messages.IntegerField(5, variant=_messages.Variant.INT32)
340  rrsetsPerManagedZone = _messages.IntegerField(6, variant=_messages.Variant.INT32)
341  totalRrdataSizePerChange = _messages.IntegerField(7, variant=_messages.Variant.INT32)
342
343
344class ResourceRecordSet(_messages.Message):
345  r"""A unit of data that will be returned by the DNS servers.
346
347  Fields:
348    kind: Identifies what kind of resource this is. Value: the fixed string
349      "dns#resourceRecordSet".
350    name: For example, www.example.com.
351    rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
352    ttl: Number of seconds that this ResourceRecordSet can be cached by
353      resolvers.
354    type: The identifier of a supported record type, for example, A, AAAA, MX,
355      TXT, and so on.
356  """
357
358  kind = _messages.StringField(1, default='dns#resourceRecordSet')
359  name = _messages.StringField(2)
360  rrdatas = _messages.StringField(3, repeated=True)
361  ttl = _messages.IntegerField(4, variant=_messages.Variant.INT32)
362  type = _messages.StringField(5)
363
364
365class ResourceRecordSetsListResponse(_messages.Message):
366  r"""A ResourceRecordSetsListResponse object.
367
368  Fields:
369    kind: Type of resource.
370    nextPageToken: The presence of this field indicates that there exist more
371      results following your last page of results in pagination order. To
372      fetch them, make another list request using this value as your
373      pagination token.  In this way you can retrieve the complete contents of
374      even very large collections one page at a time. However, if the contents
375      of the collection change between the first and last paginated list
376      request, the set of all elements returned will be an inconsistent view
377      of the collection. There is no way to retrieve a consistent snapshot of
378      a collection larger than the maximum page size.
379    rrsets: The resource record set resources.
380  """
381
382  kind = _messages.StringField(1, default='dns#resourceRecordSetsListResponse')
383  nextPageToken = _messages.StringField(2)
384  rrsets = _messages.MessageField('ResourceRecordSet', 3, repeated=True)
385
386
387class StandardQueryParameters(_messages.Message):
388  r"""Query parameters accepted by all methods.
389
390  Enums:
391    AltValueValuesEnum: Data format for the response.
392
393  Fields:
394    alt: Data format for the response.
395    fields: Selector specifying which fields to include in a partial response.
396    key: API key. Your API key identifies your project and provides you with
397      API access, quota, and reports. Required unless you provide an OAuth 2.0
398      token.
399    oauth_token: OAuth 2.0 token for the current user.
400    prettyPrint: Returns response with indentations and line breaks.
401    quotaUser: Available to use for quota purposes for server-side
402      applications. Can be any arbitrary string assigned to a user, but should
403      not exceed 40 characters. Overrides userIp if both are provided.
404    trace: A tracing token of the form "token:<tokenid>" to include in api
405      requests.
406    userIp: IP address of the site where the request originates. Use this if
407      you want to enforce per-user limits.
408  """
409
410  class AltValueValuesEnum(_messages.Enum):
411    r"""Data format for the response.
412
413    Values:
414      json: Responses with Content-Type of application/json
415    """
416    json = 0
417
418  alt = _messages.EnumField('AltValueValuesEnum', 1, default='json')
419  fields = _messages.StringField(2)
420  key = _messages.StringField(3)
421  oauth_token = _messages.StringField(4)
422  prettyPrint = _messages.BooleanField(5, default=True)
423  quotaUser = _messages.StringField(6)
424  trace = _messages.StringField(7)
425  userIp = _messages.StringField(8)
426
427
428