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

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#135)
Browse files Browse the repository at this point in the history
* chore: update to gapic-generator-python 1.5.0

feat: add support for `google.cloud.<api>.__version__`
PiperOrigin-RevId: 484665853

Source-Link: googleapis/googleapis@8eb249a

Source-Link: googleapis/googleapis-gen@c8aa327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update version in gapic_version.py

* add .release-please-manifest.json with correct version

* set manifest to true in .github/release-please.yml

* add release-please-config.json

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: Update to gapic-generator-python 1.6.0

feat(python): Add typing to proto.Message based class attributes

feat(python): Snippetgen handling of repeated enum field

PiperOrigin-RevId: 487326846

Source-Link: googleapis/googleapis@da380c7

Source-Link: googleapis/googleapis-gen@61ef576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: new APIs added to reflect updates to the filestore service

- Add ENTERPRISE Tier
- Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot
- Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare
- Add ConnectMode to NetworkConfig (for Private Service Access support)
- New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING)
- Add SuspensionReason (for KMS related suspension)
- Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled

PiperOrigin-RevId: 487492758

Source-Link: googleapis/googleapis@5be5981

Source-Link: googleapis/googleapis-gen@ab0e217
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update path to snippet metadata json

* chore: Update gapic-generator-python to v1.6.1

PiperOrigin-RevId: 488036204

Source-Link: googleapis/googleapis@08f275f

Source-Link: googleapis/googleapis-gen@555c094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* use templated owlbot.py and setup.py

* customize setup.py

* run nox format session

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Nov 23, 2022
1 parent 813fddf commit 78ffd89
Show file tree
Hide file tree
Showing 37 changed files with 550 additions and 406 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
@@ -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
@@ -0,0 +1,3 @@
{
".": "1.4.3"
}
2 changes: 1 addition & 1 deletion docs/conf.py
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
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
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
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
@@ -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
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
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
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

0 comments on commit 78ffd89

Please sign in to comment.