Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
🦉 Updates from OwlBot post-processor
  • Loading branch information
gcf-owl-bot[bot] committed Apr 11, 2022
commit 038b8117f492cc726fce88878cfdb651edd10bf4
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -225,7 +225,6 @@ async def get_environment(
r"""Gets an environment. Returns NOT_FOUND if the environment does
not exist.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -301,8 +300,7 @@ def sample_get_environment():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.ServiceUnavailable,
core_exceptions.Unknown,
core_exceptions.GoogleAPICallError,
),
deadline=60.0,
),
Expand Down Expand Up @@ -344,7 +342,6 @@ async def start_environment(
connections, the operation will contain a
StartEnvironmentResponse in its response field.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -436,7 +433,6 @@ async def authorize_environment(
line tools without requiring the user to manually
authenticate.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -526,7 +522,6 @@ async def add_public_key(
SSH. If a key with the same content already exists, this will
error with ALREADY_EXISTS.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -618,7 +613,6 @@ async def remove_public_key(
corresponding private key. If a key with the same content is not
present, this will error with NOT_FOUND.


.. code-block:: python

from google.cloud import shell_v1
Expand Down
7 changes: 1 addition & 6 deletions google/cloud/shell_v1/services/cloud_shell_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -442,7 +442,6 @@ def get_environment(
r"""Gets an environment. Returns NOT_FOUND if the environment does
not exist.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -551,7 +550,6 @@ def start_environment(
connections, the operation will contain a
StartEnvironmentResponse in its response field.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -644,7 +642,6 @@ def authorize_environment(
line tools without requiring the user to manually
authenticate.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -735,7 +732,6 @@ def add_public_key(
SSH. If a key with the same content already exists, this will
error with ALREADY_EXISTS.


.. code-block:: python

from google.cloud import shell_v1
Expand Down Expand Up @@ -828,7 +824,6 @@ def remove_public_key(
corresponding private key. If a key with the same content is not
present, this will error with NOT_FOUND.


.. code-block:: python

from google.cloud import shell_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -129,8 +130,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.ServiceUnavailable,
core_exceptions.Unknown,
core_exceptions.GoogleAPICallError,
),
deadline=60.0,
),
Expand Down Expand Up @@ -218,5 +218,9 @@ def remove_public_key(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("CloudShellServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,9 @@ def remove_public_key(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("CloudShellServiceGrpcTransport",)
17 changes: 0 additions & 17 deletions owl-bot-staging/v1/.coveragerc

This file was deleted.

33 changes: 0 additions & 33 deletions owl-bot-staging/v1/.flake8

This file was deleted.

2 changes: 0 additions & 2 deletions owl-bot-staging/v1/MANIFEST.in

This file was deleted.

49 changes: 0 additions & 49 deletions owl-bot-staging/v1/README.rst

This file was deleted.

Loading