Skip to content

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#123)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2
  • Loading branch information
gcf-owl-bot[bot] committed May 14, 2021
1 parent d29e25b commit f71fdc4
Show file tree
Hide file tree
Showing 39 changed files with 1,479 additions and 760 deletions.
1 change: 0 additions & 1 deletion docs/errorreporting_v1beta1/error_stats_service.rst
Expand Up @@ -5,7 +5,6 @@ ErrorStatsService
:members:
:inherited-members:


.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service.pagers
:members:
:inherited-members:
15 changes: 10 additions & 5 deletions google/cloud/errorreporting_v1beta1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,21 +15,24 @@
#

from .services.error_group_service import ErrorGroupServiceClient
from .services.error_group_service import ErrorGroupServiceAsyncClient
from .services.error_stats_service import ErrorStatsServiceClient
from .services.error_stats_service import ErrorStatsServiceAsyncClient
from .services.report_errors_service import ReportErrorsServiceClient
from .services.report_errors_service import ReportErrorsServiceAsyncClient

from .types.common import ErrorContext
from .types.common import ErrorEvent
from .types.common import ErrorGroup
from .types.common import HttpRequestContext
from .types.common import ResolutionStatus
from .types.common import ServiceContext
from .types.common import SourceLocation
from .types.common import TrackingIssue
from .types.common import ResolutionStatus
from .types.error_group_service import GetGroupRequest
from .types.error_group_service import UpdateGroupRequest
from .types.error_stats_service import DeleteEventsRequest
from .types.error_stats_service import DeleteEventsResponse
from .types.error_stats_service import ErrorGroupOrder
from .types.error_stats_service import ErrorGroupStats
from .types.error_stats_service import ListEventsRequest
from .types.error_stats_service import ListEventsResponse
Expand All @@ -39,13 +41,16 @@
from .types.error_stats_service import QueryTimeRange
from .types.error_stats_service import ServiceContextFilter
from .types.error_stats_service import TimedCount
from .types.error_stats_service import ErrorGroupOrder
from .types.error_stats_service import TimedCountAlignment
from .types.report_errors_service import ReportedErrorEvent
from .types.report_errors_service import ReportErrorEventRequest
from .types.report_errors_service import ReportErrorEventResponse
from .types.report_errors_service import ReportedErrorEvent


__all__ = (
"ErrorGroupServiceAsyncClient",
"ErrorStatsServiceAsyncClient",
"ReportErrorsServiceAsyncClient",
"DeleteEventsRequest",
"DeleteEventsResponse",
"ErrorContext",
Expand Down
111 changes: 111 additions & 0 deletions google/cloud/errorreporting_v1beta1/gapic_metadata.json
@@ -0,0 +1,111 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.errorreporting_v1beta1",
"protoPackage": "google.devtools.clouderrorreporting.v1beta1",
"schema": "1.0",
"services": {
"ErrorGroupService": {
"clients": {
"grpc": {
"libraryClient": "ErrorGroupServiceClient",
"rpcs": {
"GetGroup": {
"methods": [
"get_group"
]
},
"UpdateGroup": {
"methods": [
"update_group"
]
}
}
},
"grpc-async": {
"libraryClient": "ErrorGroupServiceAsyncClient",
"rpcs": {
"GetGroup": {
"methods": [
"get_group"
]
},
"UpdateGroup": {
"methods": [
"update_group"
]
}
}
}
}
},
"ErrorStatsService": {
"clients": {
"grpc": {
"libraryClient": "ErrorStatsServiceClient",
"rpcs": {
"DeleteEvents": {
"methods": [
"delete_events"
]
},
"ListEvents": {
"methods": [
"list_events"
]
},
"ListGroupStats": {
"methods": [
"list_group_stats"
]
}
}
},
"grpc-async": {
"libraryClient": "ErrorStatsServiceAsyncClient",
"rpcs": {
"DeleteEvents": {
"methods": [
"delete_events"
]
},
"ListEvents": {
"methods": [
"list_events"
]
},
"ListGroupStats": {
"methods": [
"list_group_stats"
]
}
}
}
}
},
"ReportErrorsService": {
"clients": {
"grpc": {
"libraryClient": "ReportErrorsServiceClient",
"rpcs": {
"ReportErrorEvent": {
"methods": [
"report_error_event"
]
}
}
},
"grpc-async": {
"libraryClient": "ReportErrorsServiceAsyncClient",
"rpcs": {
"ReportErrorEvent": {
"methods": [
"report_error_event"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/errorreporting_v1beta1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import ErrorGroupServiceClient
from .async_client import ErrorGroupServiceAsyncClient

Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,23 +13,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from collections import OrderedDict
import functools
import re
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

import google.api_core.client_options as ClientOptions # type: ignore
from google.api_core import exceptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.auth import credentials # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

from google.cloud.errorreporting_v1beta1.types import common
from google.cloud.errorreporting_v1beta1.types import error_group_service

from .transports.base import ErrorGroupServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import ErrorGroupServiceGrpcAsyncIOTransport
from .client import ErrorGroupServiceClient
Expand All @@ -48,39 +45,35 @@ class ErrorGroupServiceAsyncClient:
parse_error_group_path = staticmethod(
ErrorGroupServiceClient.parse_error_group_path
)

common_billing_account_path = staticmethod(
ErrorGroupServiceClient.common_billing_account_path
)
parse_common_billing_account_path = staticmethod(
ErrorGroupServiceClient.parse_common_billing_account_path
)

common_folder_path = staticmethod(ErrorGroupServiceClient.common_folder_path)
parse_common_folder_path = staticmethod(
ErrorGroupServiceClient.parse_common_folder_path
)

common_organization_path = staticmethod(
ErrorGroupServiceClient.common_organization_path
)
parse_common_organization_path = staticmethod(
ErrorGroupServiceClient.parse_common_organization_path
)

common_project_path = staticmethod(ErrorGroupServiceClient.common_project_path)
parse_common_project_path = staticmethod(
ErrorGroupServiceClient.parse_common_project_path
)

common_location_path = staticmethod(ErrorGroupServiceClient.common_location_path)
parse_common_location_path = staticmethod(
ErrorGroupServiceClient.parse_common_location_path
)

@classmethod
def from_service_account_info(cls, info: dict, *args, **kwargs):
"""Creates an instance of this client using the provided credentials info.
"""Creates an instance of this client using the provided credentials
info.
Args:
info (dict): The service account private key info.
Expand All @@ -95,7 +88,7 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
"""Creates an instance of this client using the provided credentials
file.
file.
Args:
filename (str): The path to the service account private key json
Expand All @@ -112,7 +105,7 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):

@property
def transport(self) -> ErrorGroupServiceTransport:
"""Return the transport used by the client instance.
"""Returns the transport used by the client instance.
Returns:
ErrorGroupServiceTransport: The transport used by the client instance.
Expand All @@ -126,12 +119,12 @@ def transport(self) -> ErrorGroupServiceTransport:
def __init__(
self,
*,
credentials: credentials.Credentials = None,
credentials: ga_credentials.Credentials = None,
transport: Union[str, ErrorGroupServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiate the error group service client.
"""Instantiates the error group service client.
Args:
credentials (Optional[google.auth.credentials.Credentials]): The
Expand Down Expand Up @@ -163,7 +156,6 @@ def __init__(
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
creation failed for any reason.
"""

self._client = ErrorGroupServiceClient(
credentials=credentials,
transport=transport,
Expand Down Expand Up @@ -197,7 +189,6 @@ async def get_group(
This corresponds to the ``group_name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand All @@ -224,7 +215,6 @@ async def get_group(

# If we have keyword arguments corresponding to fields on the
# request, apply these.

if group_name is not None:
request.group_name = group_name

Expand Down Expand Up @@ -273,7 +263,6 @@ async def update_group(
This corresponds to the ``group`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand All @@ -300,7 +289,6 @@ async def update_group(

# If we have keyword arguments corresponding to fields on the
# request, apply these.

if group is not None:
request.group = group

Expand Down

0 comments on commit f71fdc4

Please sign in to comment.