Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#202)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

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

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 14, 2022
1 parent fd74f2d commit 83259da
Show file tree
Hide file tree
Showing 12 changed files with 817 additions and 133 deletions.
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 @@ -560,7 +560,6 @@ async def update_connection(
reasons, also resets credential if connection properties
are in the update field mask.
.. code-block:: python
from google.cloud import bigquery_connection_v1
Expand Down Expand Up @@ -770,17 +769,17 @@ async def get_iam_policy(
Returns an empty policy if the resource exists and does
not have a policy set.
.. code-block:: python
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_get_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
# Initialize request argument(s)
request = bigquery_connection_v1.GetIamPolicyRequest(
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -933,17 +932,17 @@ async def set_iam_policy(
Can return ``NOT_FOUND``, ``INVALID_ARGUMENT``, and
``PERMISSION_DENIED`` errors.
.. code-block:: python
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_set_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
# Initialize request argument(s)
request = bigquery_connection_v1.SetIamPolicyRequest(
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -1100,17 +1099,17 @@ async def test_iam_permissions(
authorization checking. This operation may "fail open" without
warning.
.. code-block:: python
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_test_iam_permissions():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
# Initialize request argument(s)
request = bigquery_connection_v1.TestIamPermissionsRequest(
request = iam_policy_pb2.TestIamPermissionsRequest(
resource="resource_value",
permissions=['permissions_value_1', 'permissions_value_2'],
)
Expand Down
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 @@ -766,7 +766,6 @@ def update_connection(
reasons, also resets credential if connection properties
are in the update field mask.
.. code-block:: python
from google.cloud import bigquery_connection_v1
Expand Down Expand Up @@ -966,17 +965,17 @@ def get_iam_policy(
Returns an empty policy if the resource exists and does
not have a policy set.
.. code-block:: python
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_get_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
# Initialize request argument(s)
request = bigquery_connection_v1.GetIamPolicyRequest(
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -1126,17 +1125,17 @@ def set_iam_policy(
Can return ``NOT_FOUND``, ``INVALID_ARGUMENT``, and
``PERMISSION_DENIED`` errors.
.. code-block:: python
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_set_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
# Initialize request argument(s)
request = bigquery_connection_v1.SetIamPolicyRequest(
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -1290,17 +1289,17 @@ def test_iam_permissions(
authorization checking. This operation may "fail open" without
warning.
.. code-block:: python
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_test_iam_permissions():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()
# Initialize request argument(s)
request = bigquery_connection_v1.TestIamPermissionsRequest(
request = iam_policy_pb2.TestIamPermissionsRequest(
resource="resource_value",
permissions=['permissions_value_1', 'permissions_value_2'],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,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 @@ -286,5 +287,9 @@ def test_iam_permissions(
]:
raise NotImplementedError()

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


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

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


__all__ = ("ConnectionServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

# [START bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_async]
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore


async def sample_get_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceAsyncClient()

# Initialize request argument(s)
request = bigquery_connection_v1.GetIamPolicyRequest(
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

# [START bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_sync]
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore


def sample_get_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()

# Initialize request argument(s)
request = bigquery_connection_v1.GetIamPolicyRequest(
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

# [START bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_async]
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore


async def sample_set_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceAsyncClient()

# Initialize request argument(s)
request = bigquery_connection_v1.SetIamPolicyRequest(
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

# [START bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_sync]
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore


def sample_set_iam_policy():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()

# Initialize request argument(s)
request = bigquery_connection_v1.SetIamPolicyRequest(
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

# [START bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_async]
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore


async def sample_test_iam_permissions():
# Create a client
client = bigquery_connection_v1.ConnectionServiceAsyncClient()

# Initialize request argument(s)
request = bigquery_connection_v1.TestIamPermissionsRequest(
request = iam_policy_pb2.TestIamPermissionsRequest(
resource="resource_value",
permissions=['permissions_value_1', 'permissions_value_2'],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

# [START bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_sync]
from google.cloud import bigquery_connection_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore


def sample_test_iam_permissions():
# Create a client
client = bigquery_connection_v1.ConnectionServiceClient()

# Initialize request argument(s)
request = bigquery_connection_v1.TestIamPermissionsRequest(
request = iam_policy_pb2.TestIamPermissionsRequest(
resource="resource_value",
permissions=['permissions_value_1', 'permissions_value_2'],
)
Expand Down
Loading

0 comments on commit 83259da

Please sign in to comment.