Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

chore: Update gapic-generator-python to v1.6.1 #135

Merged
merged 18 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
releaseType: python
handleGHRelease: true
manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.4.3"
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
1 change: 0 additions & 1 deletion docs/debugger_v2/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Debugger v2 API

.. automodule:: google.cloud.debugger_v2.types
:members:
:undoc-members:
:show-inheritance:
6 changes: 4 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.. include:: multiprocessing.rst


API Reference
-------------
.. toctree::
Expand All @@ -10,12 +11,13 @@ API Reference
debugger_v2/services
debugger_v2/types


Changelog
---------

For a list of all ``google-cloud-debugger-client`` releases:

.. toctree::
:maxdepth: 2
:maxdepth: 2

changelog
changelog
59 changes: 34 additions & 25 deletions google/cloud/debugger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,47 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.debugger import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.debugger_v2.services.controller2.client import Controller2Client
from google.cloud.debugger_v2.services.controller2.async_client import (
Controller2AsyncClient,
)
from google.cloud.debugger_v2.services.debugger2.client import Debugger2Client
from google.cloud.debugger_v2.services.controller2.client import Controller2Client
from google.cloud.debugger_v2.services.debugger2.async_client import (
Debugger2AsyncClient,
)

from google.cloud.debugger_v2.types.controller import ListActiveBreakpointsRequest
from google.cloud.debugger_v2.types.controller import ListActiveBreakpointsResponse
from google.cloud.debugger_v2.types.controller import RegisterDebuggeeRequest
from google.cloud.debugger_v2.types.controller import RegisterDebuggeeResponse
from google.cloud.debugger_v2.types.controller import UpdateActiveBreakpointRequest
from google.cloud.debugger_v2.types.controller import UpdateActiveBreakpointResponse
from google.cloud.debugger_v2.types.data import Breakpoint
from google.cloud.debugger_v2.types.data import Debuggee
from google.cloud.debugger_v2.types.data import FormatMessage
from google.cloud.debugger_v2.types.data import SourceLocation
from google.cloud.debugger_v2.types.data import StackFrame
from google.cloud.debugger_v2.types.data import StatusMessage
from google.cloud.debugger_v2.types.data import Variable
from google.cloud.debugger_v2.types.debugger import DeleteBreakpointRequest
from google.cloud.debugger_v2.types.debugger import GetBreakpointRequest
from google.cloud.debugger_v2.types.debugger import GetBreakpointResponse
from google.cloud.debugger_v2.types.debugger import ListBreakpointsRequest
from google.cloud.debugger_v2.types.debugger import ListBreakpointsResponse
from google.cloud.debugger_v2.types.debugger import ListDebuggeesRequest
from google.cloud.debugger_v2.types.debugger import ListDebuggeesResponse
from google.cloud.debugger_v2.types.debugger import SetBreakpointRequest
from google.cloud.debugger_v2.types.debugger import SetBreakpointResponse
from google.cloud.debugger_v2.services.debugger2.client import Debugger2Client
from google.cloud.debugger_v2.types.controller import (
ListActiveBreakpointsRequest,
ListActiveBreakpointsResponse,
RegisterDebuggeeRequest,
RegisterDebuggeeResponse,
UpdateActiveBreakpointRequest,
UpdateActiveBreakpointResponse,
)
from google.cloud.debugger_v2.types.data import (
Breakpoint,
Debuggee,
FormatMessage,
SourceLocation,
StackFrame,
StatusMessage,
Variable,
)
from google.cloud.debugger_v2.types.debugger import (
DeleteBreakpointRequest,
GetBreakpointRequest,
GetBreakpointResponse,
ListBreakpointsRequest,
ListBreakpointsResponse,
ListDebuggeesRequest,
ListDebuggeesResponse,
SetBreakpointRequest,
SetBreakpointResponse,
)

__all__ = (
"Controller2Client",
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/debugger/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.4.3" # {x-release-please-version}
59 changes: 33 additions & 26 deletions google/cloud/debugger_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,41 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.debugger import gapic_version as package_version

from .services.controller2 import Controller2Client
from .services.controller2 import Controller2AsyncClient
from .services.debugger2 import Debugger2Client
from .services.debugger2 import Debugger2AsyncClient
__version__ = package_version.__version__

from .types.controller import ListActiveBreakpointsRequest
from .types.controller import ListActiveBreakpointsResponse
from .types.controller import RegisterDebuggeeRequest
from .types.controller import RegisterDebuggeeResponse
from .types.controller import UpdateActiveBreakpointRequest
from .types.controller import UpdateActiveBreakpointResponse
from .types.data import Breakpoint
from .types.data import Debuggee
from .types.data import FormatMessage
from .types.data import SourceLocation
from .types.data import StackFrame
from .types.data import StatusMessage
from .types.data import Variable
from .types.debugger import DeleteBreakpointRequest
from .types.debugger import GetBreakpointRequest
from .types.debugger import GetBreakpointResponse
from .types.debugger import ListBreakpointsRequest
from .types.debugger import ListBreakpointsResponse
from .types.debugger import ListDebuggeesRequest
from .types.debugger import ListDebuggeesResponse
from .types.debugger import SetBreakpointRequest
from .types.debugger import SetBreakpointResponse

from .services.controller2 import Controller2AsyncClient, Controller2Client
from .services.debugger2 import Debugger2AsyncClient, Debugger2Client
from .types.controller import (
ListActiveBreakpointsRequest,
ListActiveBreakpointsResponse,
RegisterDebuggeeRequest,
RegisterDebuggeeResponse,
UpdateActiveBreakpointRequest,
UpdateActiveBreakpointResponse,
)
from .types.data import (
Breakpoint,
Debuggee,
FormatMessage,
SourceLocation,
StackFrame,
StatusMessage,
Variable,
)
from .types.debugger import (
DeleteBreakpointRequest,
GetBreakpointRequest,
GetBreakpointResponse,
ListBreakpointsRequest,
ListBreakpointsResponse,
ListDebuggeesRequest,
ListDebuggeesResponse,
SetBreakpointRequest,
SetBreakpointResponse,
)

__all__ = (
"Controller2AsyncClient",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/debugger_v2/services/controller2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import Controller2Client
from .async_client import Controller2AsyncClient
from .client import Controller2Client

__all__ = (
"Controller2Client",
Expand Down
54 changes: 32 additions & 22 deletions google/cloud/debugger_v2/services/controller2/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,36 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)

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

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.debugger_v2.types import controller
from google.cloud.debugger_v2.types import data
from .transports.base import Controller2Transport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import Controller2GrpcAsyncIOTransport
from google.cloud.debugger_v2.types import controller, data

from .client import Controller2Client
from .transports.base import DEFAULT_CLIENT_INFO, Controller2Transport
from .transports.grpc_asyncio import Controller2GrpcAsyncIOTransport


class Controller2AsyncClient:
Expand Down Expand Up @@ -174,9 +184,9 @@ def transport(self) -> Controller2Transport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, Controller2Transport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the controller2 client.
Expand Down Expand Up @@ -220,11 +230,11 @@ def __init__(

async def register_debuggee(
self,
request: Union[controller.RegisterDebuggeeRequest, dict] = None,
request: Optional[Union[controller.RegisterDebuggeeRequest, dict]] = None,
*,
debuggee: data.Debuggee = None,
debuggee: Optional[data.Debuggee] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> controller.RegisterDebuggeeResponse:
r"""Registers the debuggee with the controller service.
Expand Down Expand Up @@ -266,7 +276,7 @@ async def sample_register_debuggee():
print(response)

Args:
request (Union[google.cloud.debugger_v2.types.RegisterDebuggeeRequest, dict]):
request (Optional[Union[google.cloud.debugger_v2.types.RegisterDebuggeeRequest, dict]]):
The request object. Request to register a debuggee.
debuggee (:class:`google.cloud.debugger_v2.types.Debuggee`):
Required. Debuggee information to register. The fields
Expand Down Expand Up @@ -324,11 +334,11 @@ async def sample_register_debuggee():

async def list_active_breakpoints(
self,
request: Union[controller.ListActiveBreakpointsRequest, dict] = None,
request: Optional[Union[controller.ListActiveBreakpointsRequest, dict]] = None,
*,
debuggee_id: str = None,
debuggee_id: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> controller.ListActiveBreakpointsResponse:
r"""Returns the list of all active breakpoints for the debuggee.
Expand Down Expand Up @@ -373,7 +383,7 @@ async def sample_list_active_breakpoints():
print(response)

Args:
request (Union[google.cloud.debugger_v2.types.ListActiveBreakpointsRequest, dict]):
request (Optional[Union[google.cloud.debugger_v2.types.ListActiveBreakpointsRequest, dict]]):
The request object. Request to list active breakpoints.
debuggee_id (:class:`str`):
Required. Identifies the debuggee.
Expand Down Expand Up @@ -448,12 +458,12 @@ async def sample_list_active_breakpoints():

async def update_active_breakpoint(
self,
request: Union[controller.UpdateActiveBreakpointRequest, dict] = None,
request: Optional[Union[controller.UpdateActiveBreakpointRequest, dict]] = None,
*,
debuggee_id: str = None,
breakpoint_: data.Breakpoint = None,
debuggee_id: Optional[str] = None,
breakpoint_: Optional[data.Breakpoint] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> controller.UpdateActiveBreakpointResponse:
r"""Updates the breakpoint state or mutable fields. The entire
Expand Down Expand Up @@ -493,7 +503,7 @@ async def sample_update_active_breakpoint():
print(response)

Args:
request (Union[google.cloud.debugger_v2.types.UpdateActiveBreakpointRequest, dict]):
request (Optional[Union[google.cloud.debugger_v2.types.UpdateActiveBreakpointRequest, dict]]):
The request object. Request to update an active
breakpoint.
debuggee_id (:class:`str`):
Expand Down
Loading