diff --git a/monitoring/docs/conf.py b/monitoring/docs/conf.py index 4cb86bf6d681..0eebd9f5abb0 100644 --- a/monitoring/docs/conf.py +++ b/monitoring/docs/conf.py @@ -264,7 +264,7 @@ u"google-cloud-monitoring Documentation", author, "manual", - ), + ) ] # The name of an image file (relative to this directory) to place at the top of @@ -320,7 +320,7 @@ "google-cloud-monitoring", "GAPIC library for the {metadata.shortName} v3 service", "APIs", - ), + ) ] # Documents to append as an appendix to all manuals. diff --git a/monitoring/google/__init__.py b/monitoring/google/__init__.py index 8fcc60e2b9c6..9a1b64a6d586 100644 --- a/monitoring/google/__init__.py +++ b/monitoring/google/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/google/cloud/__init__.py b/monitoring/google/cloud/__init__.py index 8fcc60e2b9c6..9a1b64a6d586 100644 --- a/monitoring/google/cloud/__init__.py +++ b/monitoring/google/cloud/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/google/cloud/monitoring.py b/monitoring/google/cloud/monitoring.py index a84ebd6ebd66..42c574b1f159 100644 --- a/monitoring/google/cloud/monitoring.py +++ b/monitoring/google/cloud/monitoring.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/google/cloud/monitoring_v3/__init__.py b/monitoring/google/cloud/monitoring_v3/__init__.py index 3fb6b4d96819..17105590c8ab 100644 --- a/monitoring/google/cloud/monitoring_v3/__init__.py +++ b/monitoring/google/cloud/monitoring_v3/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ from __future__ import absolute_import +import sys +import warnings from google.cloud.monitoring_v3 import types from google.cloud.monitoring_v3.gapic import alert_policy_service_client @@ -29,6 +31,15 @@ from google.cloud.monitoring_v3.gapic import uptime_check_service_client +if sys.version_info[:2] == (2, 7): + message = ( + "A future version of this library will drop support for Python 2.7." + "More details about Python 2 support for Google Cloud Client Libraries" + "can be found at https://cloud.google.com/python/docs/python2-sunset/" + ) + warnings.warn(message, DeprecationWarning) + + class AlertPolicyServiceClient(alert_policy_service_client.AlertPolicyServiceClient): __doc__ = alert_policy_service_client.AlertPolicyServiceClient.__doc__ enums = enums diff --git a/monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py b/monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py index 83c49eb2d095..cccc98960a30 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/alert_policy_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,7 +44,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-monitoring", + "google-cloud-monitoring" ).version @@ -90,12 +90,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def alert_policy_path(cls, project, alert_policy): - """DEPRECATED. Return a fully-qualified alert_policy string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified alert_policy string.""" return google.api_core.path_template.expand( "projects/{project}/alertPolicies/{alert_policy}", project=project, @@ -104,12 +99,7 @@ def alert_policy_path(cls, project, alert_policy): @classmethod def alert_policy_condition_path(cls, project, alert_policy, condition): - """DEPRECATED. Return a fully-qualified alert_policy_condition string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified alert_policy_condition string.""" return google.api_core.path_template.expand( "projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}", project=project, @@ -119,14 +109,9 @@ def alert_policy_condition_path(cls, project, alert_policy, condition): @classmethod def project_path(cls, project): - """DEPRECATED. Return a fully-qualified project string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project, + "projects/{project}", project=project ) def __init__( @@ -216,12 +201,12 @@ def __init__( self.transport = transport else: self.transport = alert_policy_service_grpc_transport.AlertPolicyServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -232,7 +217,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -337,7 +322,7 @@ def list_alert_policies( ) request = alert_service_pb2.ListAlertPoliciesRequest( - name=name, filter=filter_, order_by=order_by, page_size=page_size, + name=name, filter=filter_, order_by=order_by, page_size=page_size ) if metadata is None: metadata = [] @@ -423,7 +408,7 @@ def get_alert_policy( client_info=self._client_info, ) - request = alert_service_pb2.GetAlertPolicyRequest(name=name,) + request = alert_service_pb2.GetAlertPolicyRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -513,7 +498,7 @@ def create_alert_policy( ) request = alert_service_pb2.CreateAlertPolicyRequest( - name=name, alert_policy=alert_policy, + name=name, alert_policy=alert_policy ) if metadata is None: metadata = [] @@ -587,7 +572,7 @@ def delete_alert_policy( client_info=self._client_info, ) - request = alert_service_pb2.DeleteAlertPolicyRequest(name=name,) + request = alert_service_pb2.DeleteAlertPolicyRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -696,7 +681,7 @@ def update_alert_policy( ) request = alert_service_pb2.UpdateAlertPolicyRequest( - alert_policy=alert_policy, update_mask=update_mask, + alert_policy=alert_policy, update_mask=update_mask ) if metadata is None: metadata = [] diff --git a/monitoring/google/cloud/monitoring_v3/gapic/enums.py b/monitoring/google/cloud/monitoring_v3/gapic/enums.py index 7b5d0ef54b6f..017d94fd6a42 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/enums.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/enums.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/google/cloud/monitoring_v3/gapic/group_service_client.py b/monitoring/google/cloud/monitoring_v3/gapic/group_service_client.py index 69876f98c9df..346c71820c92 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/group_service_client.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/group_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -47,7 +47,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-monitoring", + "google-cloud-monitoring" ).version @@ -95,26 +95,16 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def group_path(cls, project, group): - """DEPRECATED. Return a fully-qualified group string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified group string.""" return google.api_core.path_template.expand( - "projects/{project}/groups/{group}", project=project, group=group, + "projects/{project}/groups/{group}", project=project, group=group ) @classmethod def project_path(cls, project): - """DEPRECATED. Return a fully-qualified project string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project, + "projects/{project}", project=project ) def __init__( @@ -204,12 +194,12 @@ def __init__( self.transport = transport else: self.transport = group_service_grpc_transport.GroupServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -220,7 +210,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -419,7 +409,7 @@ def get_group( client_info=self._client_info, ) - request = group_service_pb2.GetGroupRequest(name=name,) + request = group_service_pb2.GetGroupRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -504,7 +494,7 @@ def create_group( ) request = group_service_pb2.CreateGroupRequest( - name=name, group=group, validate_only=validate_only, + name=name, group=group, validate_only=validate_only ) if metadata is None: metadata = [] @@ -587,7 +577,7 @@ def update_group( ) request = group_service_pb2.UpdateGroupRequest( - group=group, validate_only=validate_only, + group=group, validate_only=validate_only ) if metadata is None: metadata = [] @@ -662,7 +652,7 @@ def delete_group( client_info=self._client_info, ) - request = group_service_pb2.DeleteGroupRequest(name=name, recursive=recursive,) + request = group_service_pb2.DeleteGroupRequest(name=name, recursive=recursive) if metadata is None: metadata = [] metadata = list(metadata) @@ -776,7 +766,7 @@ def list_group_members( ) request = group_service_pb2.ListGroupMembersRequest( - name=name, page_size=page_size, filter=filter_, interval=interval, + name=name, page_size=page_size, filter=filter_, interval=interval ) if metadata is None: metadata = [] diff --git a/monitoring/google/cloud/monitoring_v3/gapic/metric_service_client.py b/monitoring/google/cloud/monitoring_v3/gapic/metric_service_client.py index a5c41feda7ab..19ddd05c5c81 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/metric_service_client.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/metric_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -51,7 +51,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-monitoring", + "google-cloud-monitoring" ).version @@ -90,12 +90,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def metric_descriptor_path(cls, project, metric_descriptor): - """DEPRECATED. Return a fully-qualified metric_descriptor string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified metric_descriptor string.""" return google.api_core.path_template.expand( "projects/{project}/metricDescriptors/{metric_descriptor=**}", project=project, @@ -104,12 +99,7 @@ def metric_descriptor_path(cls, project, metric_descriptor): @classmethod def monitored_resource_descriptor_path(cls, project, monitored_resource_descriptor): - """DEPRECATED. Return a fully-qualified monitored_resource_descriptor string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified monitored_resource_descriptor string.""" return google.api_core.path_template.expand( "projects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}", project=project, @@ -118,14 +108,9 @@ def monitored_resource_descriptor_path(cls, project, monitored_resource_descript @classmethod def project_path(cls, project): - """DEPRECATED. Return a fully-qualified project string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project, + "projects/{project}", project=project ) def __init__( @@ -215,12 +200,12 @@ def __init__( self.transport = transport else: self.transport = metric_service_grpc_transport.MetricServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -231,7 +216,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -332,7 +317,7 @@ def list_monitored_resource_descriptors( ) request = metric_service_pb2.ListMonitoredResourceDescriptorsRequest( - name=name, filter=filter_, page_size=page_size, + name=name, filter=filter_, page_size=page_size ) if metadata is None: metadata = [] @@ -423,7 +408,7 @@ def get_monitored_resource_descriptor( client_info=self._client_info, ) - request = metric_service_pb2.GetMonitoredResourceDescriptorRequest(name=name,) + request = metric_service_pb2.GetMonitoredResourceDescriptorRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -529,7 +514,7 @@ def list_metric_descriptors( ) request = metric_service_pb2.ListMetricDescriptorsRequest( - name=name, filter=filter_, page_size=page_size, + name=name, filter=filter_, page_size=page_size ) if metadata is None: metadata = [] @@ -616,7 +601,7 @@ def get_metric_descriptor( client_info=self._client_info, ) - request = metric_service_pb2.GetMetricDescriptorRequest(name=name,) + request = metric_service_pb2.GetMetricDescriptorRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -701,7 +686,7 @@ def create_metric_descriptor( ) request = metric_service_pb2.CreateMetricDescriptorRequest( - name=name, metric_descriptor=metric_descriptor, + name=name, metric_descriptor=metric_descriptor ) if metadata is None: metadata = [] @@ -776,7 +761,7 @@ def delete_metric_descriptor( client_info=self._client_info, ) - request = metric_service_pb2.DeleteMetricDescriptorRequest(name=name,) + request = metric_service_pb2.DeleteMetricDescriptorRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -1020,7 +1005,7 @@ def create_time_series( ) request = metric_service_pb2.CreateTimeSeriesRequest( - name=name, time_series=time_series, + name=name, time_series=time_series ) if metadata is None: metadata = [] diff --git a/monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py b/monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py index 67e8b33ed6cb..0445837c01f7 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/notification_channel_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-monitoring", + "google-cloud-monitoring" ).version @@ -96,12 +96,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def notification_channel_path(cls, project, notification_channel): - """DEPRECATED. Return a fully-qualified notification_channel string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified notification_channel string.""" return google.api_core.path_template.expand( "projects/{project}/notificationChannels/{notification_channel}", project=project, @@ -110,12 +105,7 @@ def notification_channel_path(cls, project, notification_channel): @classmethod def notification_channel_descriptor_path(cls, project, channel_descriptor): - """DEPRECATED. Return a fully-qualified notification_channel_descriptor string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified notification_channel_descriptor string.""" return google.api_core.path_template.expand( "projects/{project}/notificationChannelDescriptors/{channel_descriptor}", project=project, @@ -124,14 +114,9 @@ def notification_channel_descriptor_path(cls, project, channel_descriptor): @classmethod def project_path(cls, project): - """DEPRECATED. Return a fully-qualified project string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project, + "projects/{project}", project=project ) def __init__( @@ -221,12 +206,12 @@ def __init__( self.transport = transport else: self.transport = notification_channel_service_grpc_transport.NotificationChannelServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -237,7 +222,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -337,7 +322,7 @@ def list_notification_channel_descriptors( ) request = notification_service_pb2.ListNotificationChannelDescriptorsRequest( - name=name, page_size=page_size, + name=name, page_size=page_size ) if metadata is None: metadata = [] @@ -428,7 +413,7 @@ def get_notification_channel_descriptor( ) request = notification_service_pb2.GetNotificationChannelDescriptorRequest( - name=name, + name=name ) if metadata is None: metadata = [] @@ -542,7 +527,7 @@ def list_notification_channels( ) request = notification_service_pb2.ListNotificationChannelsRequest( - name=name, filter=filter_, order_by=order_by, page_size=page_size, + name=name, filter=filter_, order_by=order_by, page_size=page_size ) if metadata is None: metadata = [] @@ -631,7 +616,7 @@ def get_notification_channel( client_info=self._client_info, ) - request = notification_service_pb2.GetNotificationChannelRequest(name=name,) + request = notification_service_pb2.GetNotificationChannelRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -725,7 +710,7 @@ def create_notification_channel( ) request = notification_service_pb2.CreateNotificationChannelRequest( - name=name, notification_channel=notification_channel, + name=name, notification_channel=notification_channel ) if metadata is None: metadata = [] @@ -814,7 +799,7 @@ def update_notification_channel( ) request = notification_service_pb2.UpdateNotificationChannelRequest( - notification_channel=notification_channel, update_mask=update_mask, + notification_channel=notification_channel, update_mask=update_mask ) if metadata is None: metadata = [] @@ -893,7 +878,7 @@ def delete_notification_channel( ) request = notification_service_pb2.DeleteNotificationChannelRequest( - name=name, force=force, + name=name, force=force ) if metadata is None: metadata = [] @@ -969,7 +954,7 @@ def send_notification_channel_verification_code( ) request = notification_service_pb2.SendNotificationChannelVerificationCodeRequest( - name=name, + name=name ) if metadata is None: metadata = [] @@ -1082,7 +1067,7 @@ def get_notification_channel_verification_code( ) request = notification_service_pb2.GetNotificationChannelVerificationCodeRequest( - name=name, expire_time=expire_time, + name=name, expire_time=expire_time ) if metadata is None: metadata = [] @@ -1171,7 +1156,7 @@ def verify_notification_channel( ) request = notification_service_pb2.VerifyNotificationChannelRequest( - name=name, code=code, + name=name, code=code ) if metadata is None: metadata = [] diff --git a/monitoring/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py b/monitoring/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py index 82b65ad26c39..0daa8970cf59 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-monitoring", + "google-cloud-monitoring" ).version @@ -101,36 +101,21 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def project_path(cls, project): - """DEPRECATED. Return a fully-qualified project string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project, + "projects/{project}", project=project ) @classmethod def service_path(cls, project, service): - """DEPRECATED. Return a fully-qualified service string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified service string.""" return google.api_core.path_template.expand( - "projects/{project}/services/{service}", project=project, service=service, + "projects/{project}/services/{service}", project=project, service=service ) @classmethod def service_level_objective_path(cls, project, service, service_level_objective): - """DEPRECATED. Return a fully-qualified service_level_objective string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified service_level_objective string.""" return google.api_core.path_template.expand( "projects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective}", project=project, @@ -225,12 +210,12 @@ def __init__( self.transport = transport else: self.transport = service_monitoring_service_grpc_transport.ServiceMonitoringServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -241,7 +226,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -318,7 +303,7 @@ def create_service( ) request = service_service_pb2.CreateServiceRequest( - parent=parent, service=service, service_id=service_id, + parent=parent, service=service, service_id=service_id ) if metadata is None: metadata = [] @@ -392,7 +377,7 @@ def get_service( client_info=self._client_info, ) - request = service_service_pb2.GetServiceRequest(name=name,) + request = service_service_pb2.GetServiceRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -505,7 +490,7 @@ def list_services( ) request = service_service_pb2.ListServicesRequest( - parent=parent, filter=filter_, page_size=page_size, + parent=parent, filter=filter_, page_size=page_size ) if metadata is None: metadata = [] @@ -600,7 +585,7 @@ def update_service( ) request = service_service_pb2.UpdateServiceRequest( - service=service, update_mask=update_mask, + service=service, update_mask=update_mask ) if metadata is None: metadata = [] @@ -671,7 +656,7 @@ def delete_service( client_info=self._client_info, ) - request = service_service_pb2.DeleteServiceRequest(name=name,) + request = service_service_pb2.DeleteServiceRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -845,7 +830,7 @@ def get_service_level_objective( ) request = service_service_pb2.GetServiceLevelObjectiveRequest( - name=name, view=view, + name=name, view=view ) if metadata is None: metadata = [] @@ -951,7 +936,7 @@ def list_service_level_objectives( ) request = service_service_pb2.ListServiceLevelObjectivesRequest( - parent=parent, filter=filter_, page_size=page_size, view=view, + parent=parent, filter=filter_, page_size=page_size, view=view ) if metadata is None: metadata = [] @@ -1048,7 +1033,7 @@ def update_service_level_objective( ) request = service_service_pb2.UpdateServiceLevelObjectiveRequest( - service_level_objective=service_level_objective, update_mask=update_mask, + service_level_objective=service_level_objective, update_mask=update_mask ) if metadata is None: metadata = [] @@ -1123,7 +1108,7 @@ def delete_service_level_objective( client_info=self._client_info, ) - request = service_service_pb2.DeleteServiceLevelObjectiveRequest(name=name,) + request = service_service_pb2.DeleteServiceLevelObjectiveRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) diff --git a/monitoring/google/cloud/monitoring_v3/gapic/transports/alert_policy_service_grpc_transport.py b/monitoring/google/cloud/monitoring_v3/gapic/transports/alert_policy_service_grpc_transport.py index c0b5a2e51fb6..e911a8493dee 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/transports/alert_policy_service_grpc_transport.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/transports/alert_policy_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -79,7 +79,7 @@ def __init__( self._stubs = { "alert_policy_service_stub": alert_service_pb2_grpc.AlertPolicyServiceStub( channel - ), + ) } @classmethod diff --git a/monitoring/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py b/monitoring/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py index dd6971c0ddcb..f1916baf37c0 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -77,7 +77,7 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "group_service_stub": group_service_pb2_grpc.GroupServiceStub(channel), + "group_service_stub": group_service_pb2_grpc.GroupServiceStub(channel) } @classmethod diff --git a/monitoring/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py b/monitoring/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py index d1cb8d5d520d..2359c23b0190 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -77,7 +77,7 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "metric_service_stub": metric_service_pb2_grpc.MetricServiceStub(channel), + "metric_service_stub": metric_service_pb2_grpc.MetricServiceStub(channel) } @classmethod diff --git a/monitoring/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py b/monitoring/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py index e967e20e534b..ce54f4f7610c 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -79,7 +79,7 @@ def __init__( self._stubs = { "notification_channel_service_stub": notification_service_pb2_grpc.NotificationChannelServiceStub( channel - ), + ) } @classmethod diff --git a/monitoring/google/cloud/monitoring_v3/gapic/transports/service_monitoring_service_grpc_transport.py b/monitoring/google/cloud/monitoring_v3/gapic/transports/service_monitoring_service_grpc_transport.py index 2602a33e41ba..f28253b1b489 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/transports/service_monitoring_service_grpc_transport.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/transports/service_monitoring_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -79,7 +79,7 @@ def __init__( self._stubs = { "service_monitoring_service_stub": service_service_pb2_grpc.ServiceMonitoringServiceStub( channel - ), + ) } @classmethod diff --git a/monitoring/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py b/monitoring/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py index cc1c127847b3..80aca866c496 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -79,7 +79,7 @@ def __init__( self._stubs = { "uptime_check_service_stub": uptime_service_pb2_grpc.UptimeCheckServiceStub( channel - ), + ) } @classmethod diff --git a/monitoring/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py b/monitoring/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py index d9dd41a0b5c5..45f327bb11e1 100644 --- a/monitoring/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py +++ b/monitoring/google/cloud/monitoring_v3/gapic/uptime_check_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -63,7 +63,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-monitoring", + "google-cloud-monitoring" ).version @@ -108,24 +108,14 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def project_path(cls, project): - """DEPRECATED. Return a fully-qualified project string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project, + "projects/{project}", project=project ) @classmethod def uptime_check_config_path(cls, project, uptime_check_config): - """DEPRECATED. Return a fully-qualified uptime_check_config string.""" - warnings.warn( - "Resource name helper functions are deprecated.", - PendingDeprecationWarning, - stacklevel=1, - ) + """Return a fully-qualified uptime_check_config string.""" return google.api_core.path_template.expand( "projects/{project}/uptimeCheckConfigs/{uptime_check_config}", project=project, @@ -219,12 +209,12 @@ def __init__( self.transport = transport else: self.transport = uptime_check_service_grpc_transport.UptimeCheckServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -235,7 +225,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -323,7 +313,7 @@ def list_uptime_check_configs( ) request = uptime_service_pb2.ListUptimeCheckConfigsRequest( - parent=parent, page_size=page_size, + parent=parent, page_size=page_size ) if metadata is None: metadata = [] @@ -408,7 +398,7 @@ def get_uptime_check_config( client_info=self._client_info, ) - request = uptime_service_pb2.GetUptimeCheckConfigRequest(name=name,) + request = uptime_service_pb2.GetUptimeCheckConfigRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -490,7 +480,7 @@ def create_uptime_check_config( ) request = uptime_service_pb2.CreateUptimeCheckConfigRequest( - parent=parent, uptime_check_config=uptime_check_config, + parent=parent, uptime_check_config=uptime_check_config ) if metadata is None: metadata = [] @@ -589,7 +579,7 @@ def update_uptime_check_config( ) request = uptime_service_pb2.UpdateUptimeCheckConfigRequest( - uptime_check_config=uptime_check_config, update_mask=update_mask, + uptime_check_config=uptime_check_config, update_mask=update_mask ) if metadata is None: metadata = [] @@ -662,7 +652,7 @@ def delete_uptime_check_config( client_info=self._client_info, ) - request = uptime_service_pb2.DeleteUptimeCheckConfigRequest(name=name,) + request = uptime_service_pb2.DeleteUptimeCheckConfigRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) @@ -751,7 +741,7 @@ def list_uptime_check_ips( client_info=self._client_info, ) - request = uptime_service_pb2.ListUptimeCheckIpsRequest(page_size=page_size,) + request = uptime_service_pb2.ListUptimeCheckIpsRequest(page_size=page_size) iterator = google.api_core.page_iterator.GRPCIterator( client=None, method=functools.partial( diff --git a/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py index a3344e9c8845..203b7f523d70 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py @@ -195,7 +195,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=1120, serialized_end=1173, @@ -555,7 +555,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=892, serialized_end=1780, @@ -829,7 +829,7 @@ _ALERTPOLICY_CONDITION, _ALERTPOLICY_USERLABELSENTRY, ], - enum_types=[_ALERTPOLICY_CONDITIONCOMBINERTYPE,], + enum_types=[_ALERTPOLICY_CONDITIONCOMBINERTYPE], serialized_options=None, is_extendable=False, syntax="proto3", @@ -941,8 +941,8 @@ dict( DESCRIPTOR=_ALERTPOLICY_DOCUMENTATION, __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A content string and a MIME type that describes the content string's - format. + __doc__="""A content string and a MIME type that describes the + content string's format. Attributes: @@ -970,8 +970,9 @@ dict( DESCRIPTOR=_ALERTPOLICY_CONDITION_TRIGGER, __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""Specifies how many time series must fail a predicate to trigger a - condition. If not specified, then a ``{count: 1}`` trigger is used. + __doc__="""Specifies how many time series must fail a predicate to + trigger a condition. If not specified, then a ``{count: 1}`` trigger is + used. Attributes: @@ -993,8 +994,8 @@ dict( DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICTHRESHOLD, __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition type that compares a collection of time series against a - threshold. + __doc__="""A condition type that compares a collection of time series + against a threshold. Attributes: @@ -1080,11 +1081,11 @@ dict( DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICABSENCE, __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition type that checks that monitored resources are reporting - data. The configuration defines a metric and a set of monitored - resources. The predicate is considered in violation when a time series - for the specified metric of a monitored resource does not include any - data in the specified ``duration``. + __doc__="""A condition type that checks that monitored resources are + reporting data. The configuration defines a metric and a set of + monitored resources. The predicate is considered in violation when a + time series for the specified metric of a monitored resource does not + include any data in the specified ``duration``. Attributes: @@ -1129,9 +1130,9 @@ ), DESCRIPTOR=_ALERTPOLICY_CONDITION, __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A condition is a true/false test that determines when an alerting policy - should open an incident. If a condition evaluates to true, it signifies - that something is wrong. + __doc__="""A condition is a true/false test that determines when an + alerting policy should open an incident. If a condition evaluates to + true, it signifies that something is wrong. Attributes: @@ -1183,10 +1184,10 @@ ), DESCRIPTOR=_ALERTPOLICY, __module__="google.cloud.monitoring_v3.proto.alert_pb2", - __doc__="""A description of the conditions under which some aspect of your system - is considered to be "unhealthy" and the ways to notify people or - services about this state. For an overview of alert policies, see - `Introduction to Alerting `__. + __doc__="""A description of the conditions under which some aspect of + your system is considered to be "unhealthy" and the ways to notify + people or services about this state. For an overview of alert policies, + see `Introduction to Alerting `__. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py index f58e305427ba..5f9be50453dd 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py @@ -125,7 +125,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -389,7 +389,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], diff --git a/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py index 1797ca0d081a..9795f0f719d8 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/common_pb2.py @@ -435,7 +435,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=168, serialized_end=338, @@ -581,7 +581,7 @@ ], extensions=[], nested_types=[], - enum_types=[_AGGREGATION_ALIGNER, _AGGREGATION_REDUCER,], + enum_types=[_AGGREGATION_ALIGNER, _AGGREGATION_REDUCER], serialized_options=None, is_extendable=False, syntax="proto3", @@ -680,9 +680,9 @@ dict( DESCRIPTOR=_TIMEINTERVAL, __module__="google.cloud.monitoring_v3.proto.common_pb2", - __doc__="""A closed time interval. It extends from the start time to the end time, - and includes both: ``[startTime, endTime]``. Valid time intervals depend - on the + __doc__="""A closed time interval. It extends from the start time to + the end time, and includes both: ``[startTime, endTime]``. Valid time + intervals depend on the ```MetricKind`` `__ of the metric value. In no case can the end time be earlier than the start time. @@ -723,12 +723,13 @@ dict( DESCRIPTOR=_AGGREGATION, __module__="google.cloud.monitoring_v3.proto.common_pb2", - __doc__="""Describes how to combine multiple time series to provide different views - of the data. Aggregation consists of an alignment step on individual - time series (``alignment_period`` and ``per_series_aligner``) followed - by an optional reduction step of the data across the aligned time series - (``cross_series_reducer`` and ``group_by_fields``). For more details, - see `Aggregation `__. + __doc__="""Describes how to combine multiple time series to provide + different views of the data. Aggregation consists of an alignment step + on individual time series (``alignment_period`` and + ``per_series_aligner``) followed by an optional reduction step of the + data across the aligned time series (``cross_series_reducer`` and + ``group_by_fields``). For more details, see + `Aggregation `__. Attributes: @@ -789,3 +790,4 @@ DESCRIPTOR._options = None _SERVICETIER._options = None # @@protoc_insertion_point(module_scope) +# -*- coding: utf-8 -*- diff --git a/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py index 9a04888c3391..c4df545c33af 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py @@ -108,10 +108,10 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], - nested_types=[_DROPPEDLABELS_LABELENTRY,], + nested_types=[_DROPPEDLABELS_LABELENTRY], enum_types=[], serialized_options=None, is_extendable=False, @@ -142,9 +142,9 @@ ), DESCRIPTOR=_DROPPEDLABELS, __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2", - __doc__="""A set of (label, value) pairs which were dropped during aggregation, - attached to google.api.Distribution.Exemplars in google.api.Distribution - values during aggregation. + __doc__="""A set of (label, value) pairs which were dropped during + aggregation, attached to google.api.Distribution.Exemplars in + google.api.Distribution values during aggregation. These values are used in combination with the label values that remain on the aggregated Distribution timeseries to construct the full label diff --git a/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py index e194c3f6f0db..fc1e159fea4b 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/group_pb2.py @@ -147,12 +147,12 @@ dict( DESCRIPTOR=_GROUP, __module__="google.cloud.monitoring_v3.proto.group_pb2", - __doc__="""The description of a dynamic collection of monitored resources. Each - group has a filter that is matched against monitored resources and their - associated metadata. If a group's filter matches an available monitored - resource, then that resource is a member of that group. Groups can - contain any number of monitored resources, and each monitored resource - can be a member of any number of groups. + __doc__="""The description of a dynamic collection of monitored + resources. Each group has a filter that is matched against monitored + resources and their associated metadata. If a group's filter matches an + available monitored resource, then that resource is a member of that + group. Groups can contain any number of monitored resources, and each + monitored resource can be a member of any number of groups. Groups can be nested in parent-child hierarchies. The ``parentName`` field identifies an optional parent for each group. If a group has a diff --git a/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py index 323f6525ee78..c16eeb9ce42e 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py @@ -180,7 +180,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=293, serialized_end=466, @@ -268,7 +268,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -848,8 +848,8 @@ dict( DESCRIPTOR=_DELETEGROUPREQUEST, __module__="google.cloud.monitoring_v3.proto.group_service_pb2", - __doc__="""The ``DeleteGroup`` request. The default behavior is to be able to - delete a single group without any descendants. + __doc__="""The ``DeleteGroup`` request. The default behavior is to be + able to delete a single group without any descendants. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py index 955b9858bfb8..72e2e92c51af 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py @@ -297,10 +297,11 @@ dict( DESCRIPTOR=_TIMESERIES, __module__="google.cloud.monitoring_v3.proto.metric_pb2", - __doc__="""A collection of data points that describes the time-varying values of a - metric. A time series is identified by a combination of a - fully-specified monitored resource and a fully-specified metric. This - type is used for both listing and creating time series. + __doc__="""A collection of data points that describes the + time-varying values of a metric. A time series is identified by a + combination of a fully-specified monitored resource and a + fully-specified metric. This type is used for both listing and creating + time series. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py index 57ca2bcb2920..35069366b6d1 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py @@ -255,7 +255,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -444,7 +444,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -540,7 +540,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -709,7 +709,7 @@ ], extensions=[], nested_types=[], - enum_types=[_LISTTIMESERIESREQUEST_TIMESERIESVIEW,], + enum_types=[_LISTTIMESERIESREQUEST_TIMESERIESVIEW], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1028,7 +1028,7 @@ ), ], extensions=[], - nested_types=[_CREATETIMESERIESSUMMARY_ERROR,], + nested_types=[_CREATETIMESERIESSUMMARY_ERROR], enum_types=[], serialized_options=None, is_extendable=False, @@ -1481,8 +1481,8 @@ ), DESCRIPTOR=_CREATETIMESERIESSUMMARY, __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", - __doc__="""Summary of the result of a failed request to write data to a time - series. + __doc__="""Summary of the result of a failed request to write data to + a time series. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py index aeb3abd85858..d3658ee2489e 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py @@ -28,7 +28,7 @@ serialized_pb=_b( '\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xab\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' ), - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,], + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR], ) diff --git a/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py index 4d34d99f521b..df10c8293d9e 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py @@ -468,7 +468,7 @@ _NOTIFICATIONCHANNEL_LABELSENTRY, _NOTIFICATIONCHANNEL_USERLABELSENTRY, ], - enum_types=[_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS,], + enum_types=[_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS], serialized_options=None, is_extendable=False, syntax="proto3", @@ -511,9 +511,9 @@ dict( DESCRIPTOR=_NOTIFICATIONCHANNELDESCRIPTOR, __module__="google.cloud.monitoring_v3.proto.notification_pb2", - __doc__="""A description of a notification channel. The descriptor includes the - properties of the channel and the set of labels or fields that must be - specified to configure channels of a given type. + __doc__="""A description of a notification channel. The descriptor + includes the properties of the channel and the set of labels or fields + that must be specified to configure channels of a given type. Attributes: @@ -569,11 +569,11 @@ ), DESCRIPTOR=_NOTIFICATIONCHANNEL, __module__="google.cloud.monitoring_v3.proto.notification_pb2", - __doc__="""A ``NotificationChannel`` is a medium through which an alert is - delivered when a policy violation is detected. Examples of channels - include email, SMS, and third-party messaging applications. Fields - containing sensitive information like authentication tokens or contact - info are only partially populated on retrieval. + __doc__="""A ``NotificationChannel`` is a medium through which an + alert is delivered when a policy violation is detected. Examples of + channels include email, SMS, and third-party messaging applications. + Fields containing sensitive information like authentication tokens or + contact info are only partially populated on retrieval. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py index 285d796b3e80..d8b09b505ea1 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py @@ -204,7 +204,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -468,7 +468,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -621,7 +621,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], diff --git a/monitoring/google/cloud/monitoring_v3/proto/service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/service_pb2.py index 242c47799f62..b5a6ffcfccc8 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/service_pb2.py @@ -113,7 +113,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -151,7 +151,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -281,7 +281,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -449,7 +449,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=210, serialized_end=808, @@ -574,7 +574,7 @@ ], extensions=[], nested_types=[], - enum_types=[_SERVICELEVELOBJECTIVE_VIEW,], + enum_types=[_SERVICELEVELOBJECTIVE_VIEW], serialized_options=None, is_extendable=False, syntax="proto3", @@ -586,7 +586,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=811, serialized_end=1135, @@ -669,7 +669,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=1138, serialized_end=1350, @@ -719,7 +719,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -832,7 +832,7 @@ ), ], extensions=[], - nested_types=[_BASICSLI_AVAILABILITYCRITERIA, _BASICSLI_LATENCYCRITERIA,], + nested_types=[_BASICSLI_AVAILABILITYCRITERIA, _BASICSLI_LATENCYCRITERIA], enum_types=[], serialized_options=None, is_extendable=False, @@ -845,7 +845,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=1353, serialized_end=1663, @@ -967,7 +967,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=1701, serialized_end=1862, @@ -1182,7 +1182,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=2430, serialized_end=2606, @@ -1343,7 +1343,7 @@ ), ], extensions=[], - nested_types=[_WINDOWSBASEDSLI_PERFORMANCETHRESHOLD, _WINDOWSBASEDSLI_METRICRANGE,], + nested_types=[_WINDOWSBASEDSLI_PERFORMANCETHRESHOLD, _WINDOWSBASEDSLI_METRICRANGE], enum_types=[], serialized_options=None, is_extendable=False, @@ -1356,7 +1356,7 @@ index=0, containing_type=None, fields=[], - ), + ) ], serialized_start=2063, serialized_end=2706, @@ -1549,8 +1549,9 @@ dict( DESCRIPTOR=_SERVICE_CUSTOM, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Custom view of service telemetry. Currently a place-holder pending final - design. + __doc__="""Custom view of service telemetry. Currently a place-holder + pending final design. + """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.Service.Custom) ), @@ -1561,7 +1562,8 @@ dict( DESCRIPTOR=_SERVICE_APPENGINE, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""App Engine service. Learn more at https://cloud.google.com/appengine. + __doc__="""App Engine service. Learn more at + https://cloud.google.com/appengine. Attributes: @@ -1644,8 +1646,8 @@ ), DESCRIPTOR=_SERVICE, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``Service`` is a discrete, autonomous, and network-accessible unit, - designed to solve an individual concern + __doc__="""A ``Service`` is a discrete, autonomous, and + network-accessible unit, designed to solve an individual concern (`Wikipedia `__). In Stackdriver Monitoring, a ``Service`` acts as the root resource under which operational aspects of the service are accessible. @@ -1688,13 +1690,13 @@ dict( DESCRIPTOR=_SERVICELEVELOBJECTIVE, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A Service-Level Objective (SLO) describes a level of desired good - service. It consists of a service-level indicator (SLI), a performance - goal, and a period over which the objective is to be evaluated against - that goal. The SLO can use SLIs defined in a number of different - manners. Typical SLOs might include "99% of requests in each rolling - week have latency below 200 milliseconds" or "99.5% of requests in each - calendar month return successfully." + __doc__="""A Service-Level Objective (SLO) describes a level of + desired good service. It consists of a service-level indicator (SLI), a + performance goal, and a period over which the objective is to be + evaluated against that goal. The SLO can use SLIs defined in a number of + different manners. Typical SLOs might include "99% of requests in each + rolling week have latency below 200 milliseconds" or "99.5% of requests + in each calendar month return successfully." Attributes: @@ -1733,20 +1735,20 @@ dict( DESCRIPTOR=_SERVICELEVELINDICATOR, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A Service-Level Indicator (SLI) describes the "performance" of a - service. For some services, the SLI is well-defined. In such cases, the - SLI can be described easily by referencing the well-known SLI and - providing the needed parameters. Alternatively, a "custom" SLI can be - defined with a query to the underlying metric store. An SLI is defined - to be ``good_service / total_service`` over any queried time interval. - The value of performance always falls into the range - ``0 <= performance <= 1``. A custom SLI describes how to compute this - ratio, whether this is by dividing values from a pair of time series, - cutting a ``Distribution`` into good and bad counts, or counting time - windows in which the service complies with a criterion. For separation - of concerns, a single Service-Level Indicator measures performance for - only one aspect of service quality, such as fraction of successful - queries or fast-enough queries. + __doc__="""A Service-Level Indicator (SLI) describes the + "performance" of a service. For some services, the SLI is well-defined. + In such cases, the SLI can be described easily by referencing the + well-known SLI and providing the needed parameters. Alternatively, a + "custom" SLI can be defined with a query to the underlying metric store. + An SLI is defined to be ``good_service / total_service`` over any + queried time interval. The value of performance always falls into the + range ``0 <= performance <= 1``. A custom SLI describes how to compute + this ratio, whether this is by dividing values from a pair of time + series, cutting a ``Distribution`` into good and bad counts, or counting + time windows in which the service complies with a criterion. For + separation of concerns, a single Service-Level Indicator measures + performance for only one aspect of service quality, such as fraction of + successful queries or fast-enough queries. Attributes: @@ -1777,6 +1779,7 @@ DESCRIPTOR=_BASICSLI_AVAILABILITYCRITERIA, __module__="google.cloud.monitoring_v3.proto.service_pb2", __doc__="""Future parameters for the availability SLI. + """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.BasicSli.AvailabilityCriteria) ), @@ -1800,9 +1803,9 @@ ), DESCRIPTOR=_BASICSLI, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""An SLI measuring performance on a well-known service type. Performance - will be computed on the basis of pre-defined metrics. The type of the - ``service_resource`` determines the metrics to use and the + __doc__="""An SLI measuring performance on a well-known service type. + Performance will be computed on the basis of pre-defined metrics. The + type of the ``service_resource`` determines the metrics to use and the ``service_resource.labels`` and ``metric_labels`` are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. @@ -1854,8 +1857,8 @@ dict( DESCRIPTOR=_RANGE, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Range of numerical values, inclusive of ``min`` and exclusive of - ``max``. If the open range "< range.max" is desired, set + __doc__="""Range of numerical values, inclusive of ``min`` and + exclusive of ``max``. If the open range "< range.max" is desired, set ``range.min = -infinity``. If the open range ">= range.min" is desired, set ``range.max = infinity``. @@ -1877,8 +1880,8 @@ dict( DESCRIPTOR=_REQUESTBASEDSLI, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""Service Level Indicators for which atomic units of service are counted - directly. + __doc__="""Service Level Indicators for which atomic units of service + are counted directly. Attributes: @@ -1886,14 +1889,14 @@ The means to compute a ratio of ``good_service`` to ``total_service``. good_total_ratio: - ``good_total_ratio`` is used when the ratio of + \ ``good_total_ratio`` is used when the ratio of ``good_service`` to ``total_service`` is computed from two ``TimeSeries``. distribution_cut: - ``distribution_cut`` is used when ``good_service`` is a count - of values aggregated in a ``Distribution`` that fall into a - good range. The ``total_service`` is the total count of all - values aggregated in the ``Distribution``. + \ ``distribution_cut`` is used when ``good_service`` is a + count of values aggregated in a ``Distribution`` that fall + into a good range. The ``total_service`` is the total count of + all values aggregated in the ``Distribution``. """, # @@protoc_insertion_point(class_scope:google.monitoring.v3.RequestBasedSli) ), @@ -1906,10 +1909,10 @@ dict( DESCRIPTOR=_TIMESERIESRATIO, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``TimeSeriesRatio`` specifies two ``TimeSeries`` to use for computing - the ``good_service / total_service`` ratio. The specified ``TimeSeries`` - must have ``ValueType = DOUBLE`` or ``ValueType = INT64`` and must have - ``MetricKind = DELTA`` or ``MetricKind = CUMULATIVE``. The + __doc__="""A ``TimeSeriesRatio`` specifies two ``TimeSeries`` to use + for computing the ``good_service / total_service`` ratio. The specified + ``TimeSeries`` must have ``ValueType = DOUBLE`` or ``ValueType = INT64`` + and must have ``MetricKind = DELTA`` or ``MetricKind = CUMULATIVE``. The ``TimeSeriesRatio`` must specify exactly two of good, bad, and total, and the relationship ``good_service + bad_service = total_service`` will be assumed. @@ -1950,12 +1953,12 @@ dict( DESCRIPTOR=_DISTRIBUTIONCUT, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``DistributionCut`` defines a ``TimeSeries`` and thresholds used for - measuring good service and total service. The ``TimeSeries`` must have - ``ValueType = DISTRIBUTION`` and ``MetricKind = DELTA`` or - ``MetricKind = CUMULATIVE``. The computed ``good_service`` will be the - count of values x in the ``Distribution`` such that - ``range.min <= x < range.max``. + __doc__="""A ``DistributionCut`` defines a ``TimeSeries`` and + thresholds used for measuring good service and total service. The + ``TimeSeries`` must have ``ValueType = DISTRIBUTION`` and + ``MetricKind = DELTA`` or ``MetricKind = CUMULATIVE``. The computed + ``good_service`` will be the count of values x in the ``Distribution`` + such that ``range.min <= x < range.max``. Attributes: @@ -1984,8 +1987,8 @@ dict( DESCRIPTOR=_WINDOWSBASEDSLI_PERFORMANCETHRESHOLD, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``PerformanceThreshold`` is used when each window is good when that - window has a sufficiently high ``performance``. + __doc__="""A ``PerformanceThreshold`` is used when each window is + good when that window has a sufficiently high ``performance``. Attributes: @@ -1993,9 +1996,9 @@ The means, either a request-based SLI or a basic SLI, by which to compute performance over a window. performance: - ``RequestBasedSli`` to evaluate to judge window quality. + \ ``RequestBasedSli`` to evaluate to judge window quality. basic_sli_performance: - ``BasicSli`` to evaluate to judge window quality. + \ ``BasicSli`` to evaluate to judge window quality. threshold: If window ``performance >= threshold``, the window is counted as good. @@ -2009,10 +2012,11 @@ dict( DESCRIPTOR=_WINDOWSBASEDSLI_METRICRANGE, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``MetricRange`` is used when each window is good when the value x of a - single ``TimeSeries`` satisfies ``range.min <= x < range.max``. The - provided ``TimeSeries`` must have ``ValueType = INT64`` or - ``ValueType = DOUBLE`` and ``MetricKind = GAUGE``. + __doc__="""A ``MetricRange`` is used when each window is good when + the value x of a single ``TimeSeries`` satisfies + ``range.min <= x < range.max``. The provided ``TimeSeries`` must have + ``ValueType = INT64`` or ``ValueType = DOUBLE`` and + ``MetricKind = GAUGE``. Attributes: @@ -2030,10 +2034,10 @@ ), DESCRIPTOR=_WINDOWSBASEDSLI, __module__="google.cloud.monitoring_v3.proto.service_pb2", - __doc__="""A ``WindowsBasedSli`` defines ``good_service`` as the count of time - windows for which the provided service was of good quality. Criteria for - determining if service was good are embedded in the - ``window_criterion``. + __doc__="""A ``WindowsBasedSli`` defines ``good_service`` as the + count of time windows for which the provided service was of good + quality. Criteria for determining if service was good are embedded in + the ``window_criterion``. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/service_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/service_service_pb2.py index b69435e080e3..4cc7aaa4aaca 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/service_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/service_service_pb2.py @@ -147,7 +147,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -393,7 +393,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -789,7 +789,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], diff --git a/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py index b3017f4697bc..def1631af48b 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py @@ -52,7 +52,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -75,8 +75,9 @@ dict( DESCRIPTOR=_SPANCONTEXT, __module__="google.cloud.monitoring_v3.proto.span_context_pb2", - __doc__="""The context of a span, attached to google.api.Distribution.Exemplars in - google.api.Distribution values during aggregation. + __doc__="""The context of a span, attached to + google.api.Distribution.Exemplars in google.api.Distribution values + during aggregation. It contains the name of a span with format: projects/[PROJECT\_ID]/traces/[TRACE\_ID]/spans/[SPAN\_ID] diff --git a/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py index 8ed99b3b20cd..2708316daf18 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py @@ -301,7 +301,7 @@ ], extensions=[], nested_types=[], - enum_types=[_INTERNALCHECKER_STATE,], + enum_types=[_INTERNALCHECKER_STATE], serialized_options=_b("\030\001"), is_extendable=False, syntax="proto3", @@ -653,7 +653,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -713,7 +713,7 @@ ], extensions=[], nested_types=[], - enum_types=[_UPTIMECHECKCONFIG_CONTENTMATCHER_CONTENTMATCHEROPTION,], + enum_types=[_UPTIMECHECKCONFIG_CONTENTMATCHER_CONTENTMATCHEROPTION], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1140,8 +1140,8 @@ dict( DESCRIPTOR=_INTERNALCHECKER, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""An internal checker allows Uptime checks to run on private/internal GCP - resources. + __doc__="""An internal checker allows Uptime checks to run on + private/internal GCP resources. Attributes: @@ -1184,8 +1184,9 @@ dict( DESCRIPTOR=_UPTIMECHECKCONFIG_RESOURCEGROUP, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""The resource submessage for group checks. It can be used instead of a - monitored resource, when multiple resources are being monitored. + __doc__="""The resource submessage for group checks. It can be used + instead of a monitored resource, when multiple resources are being + monitored. Attributes: @@ -1209,10 +1210,10 @@ dict( DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""The authentication parameters to provide to the specified resource or - URL that requires a username and password. Currently, only `Basic HTTP - authentication `__ is supported in - Uptime checks. + __doc__="""The authentication parameters to provide to the specified + resource or URL that requires a username and password. Currently, only + `Basic HTTP authentication `__ is + supported in Uptime checks. Attributes: @@ -1235,7 +1236,8 @@ ), DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Information involved in an HTTP/HTTPS Uptime check request. + __doc__="""Information involved in an HTTP/HTTPS Uptime check + request. Attributes: @@ -1308,11 +1310,11 @@ dict( DESCRIPTOR=_UPTIMECHECKCONFIG_CONTENTMATCHER, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Optional. Used to perform content matching. This allows matching based - on substrings and regular expressions, together with their negations. - Only the first 4 MB of an HTTP or HTTPS check's response (and the first - 1 MB of a TCP check's response) are examined for purposes of content - matching. + __doc__="""Optional. Used to perform content matching. This allows + matching based on substrings and regular expressions, together with + their negations. Only the first 4 MB of an HTTP or HTTPS check's + response (and the first 1 MB of a TCP check's response) are examined for + purposes of content matching. Attributes: @@ -1330,8 +1332,8 @@ ), DESCRIPTOR=_UPTIMECHECKCONFIG, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""This message configures which resources and services to monitor for - availability. + __doc__="""This message configures which resources and services to + monitor for availability. Attributes: @@ -1414,8 +1416,8 @@ dict( DESCRIPTOR=_UPTIMECHECKIP, __module__="google.cloud.monitoring_v3.proto.uptime_pb2", - __doc__="""Contains the region, location, and list of IP addresses where checkers - in the location run from. + __doc__="""Contains the region, location, and list of IP addresses + where checkers in the location run from. Attributes: diff --git a/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py b/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py index 51ff5e5c3e7a..1cdf48be0bab 100644 --- a/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py +++ b/monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py @@ -220,7 +220,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -373,7 +373,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], diff --git a/monitoring/google/cloud/monitoring_v3/types.py b/monitoring/google/cloud/monitoring_v3/types.py index 3e170e43e049..81c88a5c4a4e 100644 --- a/monitoring/google/cloud/monitoring_v3/types.py +++ b/monitoring/google/cloud/monitoring_v3/types.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/noxfile.py b/monitoring/noxfile.py index 95fd3d91a095..be2675d7f16f 100644 --- a/monitoring/noxfile.py +++ b/monitoring/noxfile.py @@ -14,6 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Generated by synthtool. DO NOT EDIT! + from __future__ import absolute_import import os import shutil @@ -22,6 +24,12 @@ LOCAL_DEPS = (os.path.join("..", "api_core"), os.path.join("..", "core")) +BLACK_VERSION = "black==19.3b0" +BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] + +if os.path.exists("samples"): + BLACK_PATHS.append("samples") + @nox.session(python="3.7") def lint(session): @@ -30,14 +38,8 @@ def lint(session): Returns a failure if the linters find linting errors or sufficiently serious code quality issues. """ - session.install("flake8", "black", *LOCAL_DEPS) - session.run( - "black", - "--check", - "google", - "tests", - "docs", - ) + session.install("flake8", BLACK_VERSION, *LOCAL_DEPS) + session.run("black", "--check", *BLACK_PATHS) session.run("flake8", "google", "tests") @@ -46,18 +48,13 @@ def blacken(session): """Run black. Format code to uniform standard. - + This currently uses Python 3.6 due to the automated Kokoro run of synthtool. That run uses an image that doesn't have 3.6 installed. Before updating this check the state of the `gcp_ubuntu_config` we use for that Kokoro run. """ - session.install("black") - session.run( - "black", - "google", - "tests", - "docs", - ) + session.install(BLACK_VERSION) + session.run("black", *BLACK_PATHS) @nox.session(python="3.7") @@ -83,13 +80,13 @@ def default(session): "--cov-append", "--cov-config=.coveragerc", "--cov-report=", - "--cov-fail-under=97", + "--cov-fail-under=0", os.path.join("tests", "unit"), *session.posargs, ) -@nox.session(python=["2.7", "3.5", "3.6", "3.7"]) +@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"]) def unit(session): """Run the unit test suite.""" default(session) @@ -140,21 +137,24 @@ def cover(session): session.run("coverage", "erase") + @nox.session(python="3.7") def docs(session): """Build the docs for this library.""" - session.install('-e', '.') - session.install('sphinx', 'alabaster', 'recommonmark') + session.install("-e", ".") + session.install("sphinx", "alabaster", "recommonmark") - shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True) + shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( - 'sphinx-build', - '-W', # warnings as errors - '-T', # show full traceback on exception - '-N', # no colors - '-b', 'html', - '-d', os.path.join('docs', '_build', 'doctrees', ''), - os.path.join('docs', ''), - os.path.join('docs', '_build', 'html', ''), + "sphinx-build", + "-W", # warnings as errors + "-T", # show full traceback on exception + "-N", # no colors + "-b", + "html", + "-d", + os.path.join("docs", "_build", "doctrees", ""), + os.path.join("docs", ""), + os.path.join("docs", "_build", "html", ""), ) diff --git a/monitoring/setup.py b/monitoring/setup.py index 3471737f6e13..6d7a1522e81f 100644 --- a/monitoring/setup.py +++ b/monitoring/setup.py @@ -20,40 +20,36 @@ # Package metadata. -name = 'google-cloud-monitoring' -description = 'Stackdriver Monitoring API client library' -version = '0.34.0' +name = "google-cloud-monitoring" +description = "Stackdriver Monitoring API client library" +version = "0.34.0" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' # 'Development Status :: 5 - Production/Stable' -release_status = 'Development Status :: 3 - Alpha' -dependencies = [ - 'google-api-core[grpc] >= 1.14.0, < 2.0.0dev', -] -extras = { - 'pandas': 'pandas >= 0.17.1', -} +release_status = "Development Status :: 3 - Alpha" +dependencies = ["google-api-core[grpc] >= 1.14.0, < 2.0.0dev"] +extras = {"pandas": "pandas >= 0.17.1"} # Setup boilerplate below this line. package_root = os.path.abspath(os.path.dirname(__file__)) -readme_filename = os.path.join(package_root, 'README.rst') -with io.open(readme_filename, encoding='utf-8') as readme_file: +readme_filename = os.path.join(package_root, "README.rst") +with io.open(readme_filename, encoding="utf-8") as readme_file: readme = readme_file.read() # Only include packages under the 'google' namespace. Do not include tests, # benchmarks, etc. packages = [ - package for package in setuptools.find_packages() - if package.startswith('google')] + package for package in setuptools.find_packages() if package.startswith("google") +] # Determine which namespaces are needed. -namespaces = ['google'] -if 'google.cloud' in packages: - namespaces.append('google.cloud') +namespaces = ["google"] +if "google.cloud" in packages: + namespaces.append("google.cloud") setuptools.setup( @@ -61,30 +57,30 @@ version=version, description=description, long_description=readme, - author='Google LLC', - author_email='googleapis-packages@google.com', - license='Apache 2.0', - url='https://github.com/GoogleCloudPlatform/google-cloud-python', + author="Google LLC", + author_email="googleapis-packages@google.com", + license="Apache 2.0", + url="https://github.com/GoogleCloudPlatform/google-cloud-python", classifiers=[ release_status, - 'Intended Audience :: Developers', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Operating System :: OS Independent', - 'Topic :: Internet', + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Operating System :: OS Independent", + "Topic :: Internet", ], - platforms='Posix; MacOS X; Windows', + platforms="Posix; MacOS X; Windows", packages=packages, namespace_packages=namespaces, install_requires=dependencies, extras_require=extras, - python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", include_package_data=True, zip_safe=False, ) diff --git a/monitoring/synth.metadata b/monitoring/synth.metadata index 2e5bff180d6b..a035a9416ec6 100644 --- a/monitoring/synth.metadata +++ b/monitoring/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-12-12T13:21:41.023609Z", + "updateTime": "2020-01-30T01:35:38.419686Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.3", - "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "19c4589a3cb44b3679f7b3fba88365b3d055d5f8", - "internalRef": "285013366" + "remote": "git@github.com:googleapis/googleapis.git", + "sha": "b491d07cadaae7cde5608321f913e5ca1459b32d", + "internalRef": "292245373" } }, { @@ -35,5 +35,289 @@ "config": "google/monitoring/artman_monitoring.yaml" } } + ], + "newFiles": [ + { + "path": "MANIFEST.in" + }, + { + "path": ".flake8" + }, + { + "path": "noxfile.py" + }, + { + "path": "setup.py" + }, + { + "path": ".coveragerc" + }, + { + "path": "setup.cfg" + }, + { + "path": "LICENSE" + }, + { + "path": "docs/conf.py" + }, + { + "path": "docs/_static/custom.css" + }, + { + "path": "docs/gapic/v3/api.rst" + }, + { + "path": "docs/gapic/v3/types.rst" + }, + { + "path": "docs/_templates/layout.html" + }, + { + "path": "google/__init__.py" + }, + { + "path": "google/cloud/__init__.py" + }, + { + "path": "google/cloud/monitoring.py" + }, + { + "path": "google/cloud/monitoring_v3/types.py" + }, + { + "path": "google/cloud/monitoring_v3/__init__.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/__init__.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/notification_channel_service_client_config.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/enums.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/metric_service_client_config.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/group_service_client_config.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/service_monitoring_service_client_config.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/service_monitoring_service_client.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/notification_channel_service_client.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/alert_policy_service_client.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/uptime_check_service_client_config.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/uptime_check_service_client.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/group_service_client.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/metric_service_client.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/alert_policy_service_client_config.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/notification_channel_service_grpc_transport.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/__init__.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/alert_policy_service_grpc_transport.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/uptime_check_service_grpc_transport.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/group_service_grpc_transport.py" + }, + { + "path": "google/cloud/monitoring_v3/gapic/transports/service_monitoring_service_grpc_transport.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/common.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/uptime_service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/uptime_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/metric_service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/group_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/__init__.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/notification_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/group_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/dropped_labels.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/metric_service.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/alert_service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/span_context_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/mutation_record.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/alert_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/alert.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/dropped_labels_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/mutation_record_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/alert_service.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/notification.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/metric_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/alert_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/metric.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/span_context.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/metric_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/service.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/uptime.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/notification_service.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/common_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/group_service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/common_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/service_service_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/uptime_service.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/service_service.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/service_service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/notification_service_pb2.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/notification_pb2_grpc.py" + }, + { + "path": "google/cloud/monitoring_v3/proto/group.proto" + }, + { + "path": "google/cloud/monitoring_v3/proto/group_service.proto" + }, + { + "path": "tests/unit/gapic/v3/test_metric_service_client_v3.py" + }, + { + "path": "tests/unit/gapic/v3/test_uptime_check_service_client_v3.py" + }, + { + "path": "tests/unit/gapic/v3/test_notification_channel_service_client_v3.py" + }, + { + "path": "tests/unit/gapic/v3/test_alert_policy_service_client_v3.py" + }, + { + "path": "tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py" + }, + { + "path": "tests/unit/gapic/v3/test_group_service_client_v3.py" + }, + { + "path": "tests/system/gapic/v3/test_system_metric_service_v3.py" + } ] } \ No newline at end of file diff --git a/monitoring/synth.py b/monitoring/synth.py index 447958ceeb89..1358b84a79ec 100644 --- a/monitoring/synth.py +++ b/monitoring/synth.py @@ -93,7 +93,7 @@ # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- -templated_files = common.py_library(unit_cov_level=97, cov_level=97) -s.move(templated_files, excludes=["noxfile.py"]) +templated_files = common.py_library(cov_level=97) +s.move(templated_files) s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/monitoring/tests/system/gapic/v3/test_system_metric_service_v3.py b/monitoring/tests/system/gapic/v3/test_system_metric_service_v3.py index 314a4fdd5c8f..245501f1a7c3 100644 --- a/monitoring/tests/system/gapic/v3/test_system_metric_service_v3.py +++ b/monitoring/tests/system/gapic/v3/test_system_metric_service_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/tests/unit/gapic/v3/test_alert_policy_service_client_v3.py b/monitoring/tests/unit/gapic/v3/test_alert_policy_service_client_v3.py index cf98f646e593..8859c88ce0d5 100644 --- a/monitoring/tests/unit/gapic/v3/test_alert_policy_service_client_v3.py +++ b/monitoring/tests/unit/gapic/v3/test_alert_policy_service_client_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/tests/unit/gapic/v3/test_group_service_client_v3.py b/monitoring/tests/unit/gapic/v3/test_group_service_client_v3.py index b996efae9be7..1be96f89f63f 100644 --- a/monitoring/tests/unit/gapic/v3/test_group_service_client_v3.py +++ b/monitoring/tests/unit/gapic/v3/test_group_service_client_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/tests/unit/gapic/v3/test_metric_service_client_v3.py b/monitoring/tests/unit/gapic/v3/test_metric_service_client_v3.py index dd5e692eb413..77cfa537f524 100644 --- a/monitoring/tests/unit/gapic/v3/test_metric_service_client_v3.py +++ b/monitoring/tests/unit/gapic/v3/test_metric_service_client_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/tests/unit/gapic/v3/test_notification_channel_service_client_v3.py b/monitoring/tests/unit/gapic/v3/test_notification_channel_service_client_v3.py index 1ae5aebda857..dca352580f83 100644 --- a/monitoring/tests/unit/gapic/v3/test_notification_channel_service_client_v3.py +++ b/monitoring/tests/unit/gapic/v3/test_notification_channel_service_client_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py b/monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py index f16f43520005..6899ddd45669 100644 --- a/monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py +++ b/monitoring/tests/unit/gapic/v3/test_service_monitoring_service_client_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/monitoring/tests/unit/gapic/v3/test_uptime_check_service_client_v3.py b/monitoring/tests/unit/gapic/v3/test_uptime_check_service_client_v3.py index 80af5c9ee9eb..6922164f5067 100644 --- a/monitoring/tests/unit/gapic/v3/test_uptime_check_service_client_v3.py +++ b/monitoring/tests/unit/gapic/v3/test_uptime_check_service_client_v3.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.