Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#411)
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>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Apr 14, 2022
1 parent 9df40a6 commit c3fb51a
Show file tree
Hide file tree
Showing 33 changed files with 2,155 additions and 239 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 @@ -236,7 +236,6 @@ async def export_assets(
the export operation result. For regular-size resource parent,
the export operation usually finishes within 5 minutes.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -332,7 +331,6 @@ async def list_assets(
r"""Lists assets with time and resource types and returns
paged results in response.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -457,7 +455,6 @@ async def batch_get_assets_history(
specified asset does not exist, this API returns an
INVALID_ARGUMENT error.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -541,7 +538,6 @@ async def create_feed(
project/folder/organization to listen to its asset
updates.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -765,7 +761,6 @@ async def list_feeds(
r"""Lists all asset feeds in a parent
project/folder/organization.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1078,7 +1073,6 @@ async def search_all_resources(
the ``cloudasset.assets.searchAllResources`` permission on the
desired scope, otherwise the request will be rejected.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1288,7 +1282,6 @@ async def search_all_iam_policies(
``cloudasset.assets.searchAllIamPolicies`` permission on the
desired scope, otherwise the request will be rejected.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1474,7 +1467,6 @@ async def analyze_iam_policy(
r"""Analyzes IAM policies to answer which identities have
what accesses on which resources.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1573,7 +1565,6 @@ async def analyze_iam_policy_longrunning(
to poll the operation result. The metadata contains the metadata
for the long-running operation.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1678,7 +1669,6 @@ async def analyze_move(
subject to change before the actual resource migration
takes place.
.. code-block:: python
from google.cloud import asset_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 @@ -527,7 +527,6 @@ def export_assets(
the export operation result. For regular-size resource parent,
the export operation usually finishes within 5 minutes.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -624,7 +623,6 @@ def list_assets(
r"""Lists assets with time and resource types and returns
paged results in response.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -739,7 +737,6 @@ def batch_get_assets_history(
specified asset does not exist, this API returns an
INVALID_ARGUMENT error.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -814,7 +811,6 @@ def create_feed(
project/folder/organization to listen to its asset
updates.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1028,7 +1024,6 @@ def list_feeds(
r"""Lists all asset feeds in a parent
project/folder/organization.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1321,7 +1316,6 @@ def search_all_resources(
the ``cloudasset.assets.searchAllResources`` permission on the
desired scope, otherwise the request will be rejected.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1522,7 +1516,6 @@ def search_all_iam_policies(
``cloudasset.assets.searchAllIamPolicies`` permission on the
desired scope, otherwise the request will be rejected.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1699,7 +1692,6 @@ def analyze_iam_policy(
r"""Analyzes IAM policies to answer which identities have
what accesses on which resources.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1790,7 +1782,6 @@ def analyze_iam_policy_longrunning(
to poll the operation result. The metadata contains the metadata
for the long-running operation.
.. code-block:: python
from google.cloud import asset_v1
Expand Down Expand Up @@ -1898,7 +1889,6 @@ def analyze_move(
subject to change before the actual resource migration
takes place.
.. code-block:: python
from google.cloud import asset_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,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 @@ -418,5 +419,9 @@ def analyze_move(
]:
raise NotImplementedError()

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


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

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


__all__ = ("AssetServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ class ResourceSearchResult(proto.Message):
- use a field query. Example: ``location:us-west*``
- use a free text query. Example: ``us-west*``
labels (Sequence[google.cloud.asset_v1.types.ResourceSearchResult.LabelsEntry]):
labels (Mapping[str, str]):
Labels associated with this resource. See `Labelling and
grouping GCP
resources <https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources>`__
Expand Down Expand Up @@ -698,7 +698,7 @@ class ResourceSearchResult(proto.Message):
attributes of the attached resources are exposed in
``additional_attributes`` field, so as to allow users to
search on them.
relationships (Sequence[google.cloud.asset_v1.types.ResourceSearchResult.RelationshipsEntry]):
relationships (Mapping[str, google.cloud.asset_v1.types.RelatedResources]):
A map of related resources of this resource, keyed by the
relationship type. A relationship type is in the format of
{SourceType}*{ACTION}*\ {DestType}. Example:
Expand Down Expand Up @@ -1001,7 +1001,7 @@ class Explanation(proto.Message):
r"""Explanation about the IAM policy search result.
Attributes:
matched_permissions (Sequence[google.cloud.asset_v1.types.IamPolicySearchResult.Explanation.MatchedPermissionsEntry]):
matched_permissions (Mapping[str, google.cloud.asset_v1.types.IamPolicySearchResult.Explanation.Permissions]):
The map from roles to their included permissions that match
the permission query (i.e., a query containing
``policy.role.permissions:``). Example: if query
Expand Down
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 @@ -216,7 +216,6 @@ async def search_all_resources(
cloud.assets.SearchAllResources permission on the
requested scope, otherwise it will be rejected.
.. code-block:: python
from google.cloud import asset_v1p1beta1
Expand Down Expand Up @@ -365,7 +364,6 @@ async def search_all_iam_policies(
cloud.assets.SearchAllIamPolicies permission on the
requested scope, otherwise it will be rejected.
.. code-block:: python
from google.cloud import asset_v1p1beta1
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 @@ -422,7 +422,6 @@ def search_all_resources(
cloud.assets.SearchAllResources permission on the
requested scope, otherwise it will be rejected.
.. code-block:: python
from google.cloud import asset_v1p1beta1
Expand Down Expand Up @@ -561,7 +560,6 @@ def search_all_iam_policies(
cloud.assets.SearchAllIamPolicies permission on the
requested scope, otherwise it will be rejected.
.. code-block:: python
from google.cloud import asset_v1p1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,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 @@ -185,5 +186,9 @@ def search_all_iam_policies(
]:
raise NotImplementedError()

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


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

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


__all__ = ("AssetServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class StandardResourceMetadata(proto.Message):
location (str):
Location can be "global", regional like
"us-east1", or zonal like "us-west1-b".
labels (Sequence[google.cloud.asset_v1p1beta1.types.StandardResourceMetadata.LabelsEntry]):
labels (Mapping[str, str]):
Labels associated with this resource. See `Labelling and
grouping GCP
resources <https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources>`__
Expand Down Expand Up @@ -143,7 +143,7 @@ class Explanation(proto.Message):
r"""Explanation about the IAM policy search result.
Attributes:
matched_permissions (Sequence[google.cloud.asset_v1p1beta1.types.IamPolicySearchResult.Explanation.MatchedPermissionsEntry]):
matched_permissions (Mapping[str, google.cloud.asset_v1p1beta1.types.Permissions]):
The map from roles to their included permission matching the
permission query (e.g. containing
``policy.role.permissions:``). A sample role string:
Expand Down
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 @@ -210,7 +210,6 @@ async def create_feed(
project/folder/organization to listen to its asset
updates.
.. code-block:: python
from google.cloud import asset_v1p2beta1
Expand Down Expand Up @@ -434,7 +433,6 @@ async def list_feeds(
r"""Lists all asset feeds in a parent
project/folder/organization.
.. code-block:: python
from google.cloud import asset_v1p2beta1
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 @@ -431,7 +431,6 @@ def create_feed(
project/folder/organization to listen to its asset
updates.
.. code-block:: python
from google.cloud import asset_v1p2beta1
Expand Down Expand Up @@ -645,7 +644,6 @@ def list_feeds(
r"""Lists all asset feeds in a parent
project/folder/organization.
.. code-block:: python
from google.cloud import asset_v1p2beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,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 @@ -234,5 +235,9 @@ def delete_feed(
]:
raise NotImplementedError()

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


__all__ = ("AssetServiceTransport",)
Loading

0 comments on commit c3fb51a

Please sign in to comment.