5050class Client (JSONClient ):
5151 """Client to bundle configuration needed for API requests.
5252
53- :type project: string
53+ :type project: str
5454 :param project: The target project. If not passed, falls back to the
5555 default inferred from the environment.
5656
@@ -80,7 +80,7 @@ def query(self,
8080 >>> query = client.query(minutes=5)
8181 >>> print(query.as_dataframe()) # Requires pandas.
8282
83- :type metric_type: string
83+ :type metric_type: str
8484 :param metric_type: The metric type name. The default value is
8585 :data:`Query.DEFAULT_METRIC_TYPE
8686 <google.cloud.monitoring.query.Query.DEFAULT_METRIC_TYPE>`,
@@ -158,19 +158,19 @@ def metric_descriptor(self, type_,
158158 ... description='Cumulative count of HTTP responses.')
159159 >>> descriptor.create()
160160
161- :type type_: string
161+ :type type_: str
162162 :param type_:
163163 The metric type including a DNS name prefix. For example:
164164 ``"custom.googleapis.com/my_metric"``
165165
166- :type metric_kind: string
166+ :type metric_kind: str
167167 :param metric_kind:
168168 The kind of measurement. It must be one of
169169 :data:`MetricKind.GAUGE`, :data:`MetricKind.DELTA`,
170170 or :data:`MetricKind.CUMULATIVE`.
171171 See :class:`~google.cloud.monitoring.metric.MetricKind`.
172172
173- :type value_type: string
173+ :type value_type: str
174174 :param value_type:
175175 The value type of the metric. It must be one of
176176 :data:`ValueType.BOOL`, :data:`ValueType.INT64`,
@@ -184,13 +184,13 @@ def metric_descriptor(self, type_,
184184 A sequence of zero or more label descriptors specifying the labels
185185 used to identify a specific instance of this metric.
186186
187- :type unit: string
187+ :type unit: str
188188 :param unit: An optional unit in which the metric value is reported.
189189
190- :type description: string
190+ :type description: str
191191 :param description: An optional detailed description of the metric.
192192
193- :type display_name: string
193+ :type display_name: str
194194 :param display_name: An optional concise name for the metric.
195195
196196 :rtype: :class:`MetricDescriptor`
@@ -221,7 +221,7 @@ def metric(type_, labels):
221221 ... 'status': 'successful',
222222 ... })
223223
224- :type type_: string
224+ :type type_: str
225225 :param type_: The metric type name.
226226
227227 :type labels: dict
@@ -248,7 +248,7 @@ def resource(type_, labels):
248248
249249 https://cloud.google.com/monitoring/api/resources
250250
251- :type type_: string
251+ :type type_: str
252252 :param type_: The monitored resource type name.
253253
254254 :type labels: dict
@@ -339,7 +339,7 @@ def fetch_metric_descriptor(self, metric_type):
339339 >>> METRIC = 'compute.googleapis.com/instance/cpu/utilization'
340340 >>> print(client.fetch_metric_descriptor(METRIC))
341341
342- :type metric_type: string
342+ :type metric_type: str
343343 :param metric_type: The metric type name.
344344
345345 :rtype: :class:`~google.cloud.monitoring.metric.MetricDescriptor`
@@ -362,12 +362,12 @@ def list_metric_descriptors(self, filter_string=None, type_prefix=None):
362362 ... type_prefix='custom.'):
363363 ... print(descriptor.type)
364364
365- :type filter_string: string or None
365+ :type filter_string: str or None
366366 :param filter_string:
367367 An optional filter expression describing the metric descriptors
368368 to be returned. See the `filter documentation`_.
369369
370- :type type_prefix: string or None
370+ :type type_prefix: str or None
371371 :param type_prefix: An optional prefix constraining the selected
372372 metric types. This adds ``metric.type = starts_with("<prefix>")``
373373 to the filter.
@@ -389,7 +389,7 @@ def fetch_resource_descriptor(self, resource_type):
389389
390390 >>> print(client.fetch_resource_descriptor('gce_instance'))
391391
392- :type resource_type: string
392+ :type resource_type: str
393393 :param resource_type: The resource type name.
394394
395395 :rtype: :class:`~google.cloud.monitoring.resource.ResourceDescriptor`
@@ -408,7 +408,7 @@ def list_resource_descriptors(self, filter_string=None):
408408 >>> for descriptor in client.list_resource_descriptors():
409409 ... print(descriptor.type)
410410
411- :type filter_string: string or None
411+ :type filter_string: str or None
412412 :param filter_string:
413413 An optional filter expression describing the resource descriptors
414414 to be returned. See the `filter documentation`_.
@@ -430,24 +430,24 @@ def group(self, group_id=None, display_name=None, parent_id=None,
430430 This will not make an HTTP request; it simply instantiates
431431 a group object owned by this client.
432432
433- :type group_id: string or None
433+ :type group_id: str or None
434434 :param group_id: The ID of the group.
435435
436- :type display_name: string or None
436+ :type display_name: str or None
437437 :param display_name:
438438 A user-assigned name for this group, used only for display
439439 purposes.
440440
441- :type parent_id: string or None
441+ :type parent_id: str or None
442442 :param parent_id:
443443 The ID of the group's parent, if it has one.
444444
445- :type filter_string: string or None
445+ :type filter_string: str or None
446446 :param filter_string:
447447 The filter string used to determine which monitored resources
448448 belong to this group.
449449
450- :type is_cluster: boolean
450+ :type is_cluster: bool
451451 :param is_cluster:
452452 If true, the members of this group are considered to be a cluster.
453453 The system can perform additional analysis on groups that are
@@ -478,7 +478,7 @@ def fetch_group(self, group_id):
478478 >>> except google.cloud.exceptions.NotFound:
479479 >>> print('That group does not exist!')
480480
481- :type group_id: string
481+ :type group_id: str
482482 :param group_id: The ID of the group.
483483
484484 :rtype: :class:`~google.cloud.monitoring.group.Group`
0 commit comments