Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#322)
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 bf378f7 commit 47d994c
Show file tree
Hide file tree
Showing 36 changed files with 6,470 additions and 592 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 @@ -279,7 +279,6 @@ async def bulk_mute_findings(
organization, folder or project. The findings matched by
the filter will be muted after the LRO is done.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -512,7 +511,6 @@ async def create_finding(
r"""Creates a finding. The corresponding source must
exist for finding creation to succeed.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -1163,17 +1161,17 @@ async def get_iam_policy(
r"""Gets the access control policy on the specified
Source.
.. code-block:: python
from google.cloud import securitycenter_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_get_iam_policy():
# Create a client
client = securitycenter_v1.SecurityCenterClient()
# Initialize request argument(s)
request = securitycenter_v1.GetIamPolicyRequest(
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -1762,7 +1760,6 @@ async def group_assets(
r"""Filters an organization's assets and groups them by
their specified properties.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -1868,7 +1865,6 @@ async def group_findings(
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -2114,7 +2110,6 @@ async def list_findings(
To list across all sources provide a ``-`` as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -2567,7 +2562,6 @@ async def run_asset_discovery(
organization. If it is called too frequently the caller will
receive a TOO_MANY_REQUESTS error.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -2924,17 +2918,17 @@ async def set_iam_policy(
r"""Sets the access control policy on the specified
Source.
.. code-block:: python
from google.cloud import securitycenter_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_set_iam_policy():
# Create a client
client = securitycenter_v1.SecurityCenterClient()
# Initialize request argument(s)
request = securitycenter_v1.SetIamPolicyRequest(
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -3085,17 +3079,17 @@ async def test_iam_permissions(
r"""Returns the permissions that a caller has on the
specified source.
.. code-block:: python
from google.cloud import securitycenter_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_test_iam_permissions():
# Create a client
client = securitycenter_v1.SecurityCenterClient()
# Initialize request argument(s)
request = securitycenter_v1.TestIamPermissionsRequest(
request = iam_policy_pb2.TestIamPermissionsRequest(
resource="resource_value",
permissions=['permissions_value_1', 'permissions_value_2'],
)
Expand Down Expand Up @@ -3313,7 +3307,6 @@ async def update_finding(
r"""Creates or updates a finding. The corresponding
source must exist for a finding creation to succeed.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -3538,7 +3531,6 @@ async def update_notification_config(
r"""Updates a notification config. The following update fields are
allowed: description, pubsub_topic, streaming_config.filter
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -4270,7 +4262,6 @@ async def list_big_query_exports(
immediately under the folder plus the ones created under
the projects within the folder are returned.
.. code-block:: python
from google.cloud import securitycenter_v1
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 @@ -649,7 +649,6 @@ def bulk_mute_findings(
organization, folder or project. The findings matched by
the filter will be muted after the LRO is done.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -882,7 +881,6 @@ def create_finding(
r"""Creates a finding. The corresponding source must
exist for finding creation to succeed.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -1541,17 +1539,17 @@ def get_iam_policy(
r"""Gets the access control policy on the specified
Source.
.. code-block:: python
from google.cloud import securitycenter_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_get_iam_policy():
# Create a client
client = securitycenter_v1.SecurityCenterClient()
# Initialize request argument(s)
request = securitycenter_v1.GetIamPolicyRequest(
request = iam_policy_pb2.GetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -2101,7 +2099,6 @@ def group_assets(
r"""Filters an organization's assets and groups them by
their specified properties.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -2198,7 +2195,6 @@ def group_findings(
/v1/folders/{folder_id}/sources/-/findings,
/v1/projects/{project_id}/sources/-/findings
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -2425,7 +2421,6 @@ def list_findings(
To list across all sources provide a ``-`` as the source id.
Example: /v1/organizations/{organization_id}/sources/-/findings
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -2853,7 +2848,6 @@ def run_asset_discovery(
organization. If it is called too frequently the caller will
receive a TOO_MANY_REQUESTS error.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -3210,17 +3204,17 @@ def set_iam_policy(
r"""Sets the access control policy on the specified
Source.
.. code-block:: python
from google.cloud import securitycenter_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_set_iam_policy():
# Create a client
client = securitycenter_v1.SecurityCenterClient()
# Initialize request argument(s)
request = securitycenter_v1.SetIamPolicyRequest(
request = iam_policy_pb2.SetIamPolicyRequest(
resource="resource_value",
)
Expand Down Expand Up @@ -3368,17 +3362,17 @@ def test_iam_permissions(
r"""Returns the permissions that a caller has on the
specified source.
.. code-block:: python
from google.cloud import securitycenter_v1
from google.iam.v1 import iam_policy_pb2 # type: ignore
def sample_test_iam_permissions():
# Create a client
client = securitycenter_v1.SecurityCenterClient()
# Initialize request argument(s)
request = securitycenter_v1.TestIamPermissionsRequest(
request = iam_policy_pb2.TestIamPermissionsRequest(
resource="resource_value",
permissions=['permissions_value_1', 'permissions_value_2'],
)
Expand Down Expand Up @@ -3584,7 +3578,6 @@ def update_finding(
r"""Creates or updates a finding. The corresponding
source must exist for a finding creation to succeed.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -3809,7 +3802,6 @@ def update_notification_config(
r"""Updates a notification config. The following update fields are
allowed: description, pubsub_topic, streaming_config.filter
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down Expand Up @@ -4549,7 +4541,6 @@ def list_big_query_exports(
immediately under the folder plus the ones created under
the projects within the folder are returned.
.. code-block:: python
from google.cloud import securitycenter_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,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 @@ -826,5 +827,9 @@ def list_big_query_exports(
]:
raise NotImplementedError()

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


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

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


__all__ = ("SecurityCenterGrpcTransport",)
Loading

0 comments on commit 47d994c

Please sign in to comment.