@@ -32,16 +32,16 @@ class ManagedZone(object):
32
32
:type name: str
33
33
:param name: the name of the zone
34
34
35
- :type dns_name: str or :class:`NoneType`
36
- :param dns_name: the DNS name of the zone. If not passed, then calls
35
+ :type dns_name: str
36
+ :param dns_name: (Optional) the DNS name of the zone. If not passed, then calls
37
37
to :meth:`create` will fail.
38
38
39
39
:type client: :class:`google.cloud.dns.client.Client`
40
40
:param client: A client which holds credentials and project configuration
41
41
for the zone (which requires a project).
42
42
43
- :type description: str or :class:`NoneType`
44
- :param description: the description for the zone. If not passed, defaults
43
+ :type description: str
44
+ :param description: (Optional) the description for the zone. If not passed, defaults
45
45
to the value of 'dns_name'.
46
46
"""
47
47
@@ -135,8 +135,8 @@ def description(self):
135
135
def description (self , value ):
136
136
"""Update description of the zone.
137
137
138
- :type value: str, or ``NoneType``
139
- :param value: new description
138
+ :type value: str
139
+ :param value: (Optional) new description
140
140
141
141
:raises: ValueError for invalid value types.
142
142
"""
@@ -162,8 +162,8 @@ def name_server_set(self):
162
162
def name_server_set (self , value ):
163
163
"""Update named set of DNS name servers.
164
164
165
- :type value: str, or ``NoneType``
166
- :param value: new title
165
+ :type value: str
166
+ :param value: (Optional) new title
167
167
168
168
:raises: ValueError for invalid value types.
169
169
"""
@@ -202,8 +202,8 @@ def changes(self):
202
202
def _require_client (self , client ):
203
203
"""Check client or verify over-ride.
204
204
205
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
206
- :param client: the client to use. If not passed, falls back to the
205
+ :type client: :class:`google.cloud.dns.client.Client`
206
+ :param client: (Optional) the client to use. If not passed, falls back to the
207
207
``client`` stored on the current zone.
208
208
209
209
:rtype: :class:`google.cloud.dns.client.Client`
@@ -250,8 +250,8 @@ def create(self, client=None):
250
250
See:
251
251
https://cloud.google.com/dns/api/v1/managedZones/create
252
252
253
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
254
- :param client: the client to use. If not passed, falls back to the
253
+ :type client: :class:`google.cloud.dns.client.Client`
254
+ :param client: (Optional) the client to use. If not passed, falls back to the
255
255
``client`` stored on the current zone.
256
256
"""
257
257
client = self ._require_client (client )
@@ -266,8 +266,8 @@ def exists(self, client=None):
266
266
See
267
267
https://cloud.google.com/dns/api/v1/managedZones/get
268
268
269
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
270
- :param client: the client to use. If not passed, falls back to the
269
+ :type client: :class:`google.cloud.dns.client.Client`
270
+ :param client: (Optional) the client to use. If not passed, falls back to the
271
271
``client`` stored on the current zone.
272
272
273
273
:rtype: bool
@@ -289,8 +289,8 @@ def reload(self, client=None):
289
289
See
290
290
https://cloud.google.com/dns/api/v1/managedZones/get
291
291
292
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
293
- :param client: the client to use. If not passed, falls back to the
292
+ :type client: :class:`google.cloud.dns.client.Client`
293
+ :param client: (Optional) the client to use. If not passed, falls back to the
294
294
``client`` stored on the current zone.
295
295
"""
296
296
client = self ._require_client (client )
@@ -305,8 +305,8 @@ def delete(self, client=None):
305
305
See:
306
306
https://cloud.google.com/dns/api/v1/managedZones/delete
307
307
308
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
309
- :param client: the client to use. If not passed, falls back to the
308
+ :type client: :class:`google.cloud.dns.client.Client`
309
+ :param client: (Optional) the client to use. If not passed, falls back to the
310
310
``client`` stored on the current zone.
311
311
"""
312
312
client = self ._require_client (client )
@@ -328,8 +328,8 @@ def list_resource_record_sets(self, max_results=None, page_token=None,
328
328
not passed, the API will return the first page of
329
329
zones.
330
330
331
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
332
- :param client: the client to use. If not passed, falls back to the
331
+ :type client: :class:`google.cloud.dns.client.Client`
332
+ :param client: (Optional) the client to use. If not passed, falls back to the
333
333
``client`` stored on the current zone.
334
334
335
335
:rtype: :class:`~google.cloud.iterator.Iterator`
@@ -361,8 +361,8 @@ def list_changes(self, max_results=None, page_token=None, client=None):
361
361
not passed, the API will return the first page of
362
362
zones.
363
363
364
- :type client: :class:`google.cloud.dns.client.Client` or ``NoneType``
365
- :param client: the client to use. If not passed, falls back to the
364
+ :type client: :class:`google.cloud.dns.client.Client`
365
+ :param client: (Optional) the client to use. If not passed, falls back to the
366
366
``client`` stored on the current zone.
367
367
368
368
:rtype: :class:`~google.cloud.iterator.Iterator`
0 commit comments