Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: upgrade gapic-generator-python to 0.46.3 (#189)
feat: support self-signed JWT flow for service accounts

fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 20, 2021
1 parent 7c118b3 commit d0b9b21
Show file tree
Hide file tree
Showing 93 changed files with 2,981 additions and 1,988 deletions.
1 change: 0 additions & 1 deletion docs/asset_v1/asset_service.rst
Expand Up @@ -5,7 +5,6 @@ AssetService
:members:
:inherited-members:


.. automodule:: google.cloud.asset_v1.services.asset_service.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/asset_v1p1beta1/asset_service.rst
Expand Up @@ -5,7 +5,6 @@ AssetService
:members:
:inherited-members:


.. automodule:: google.cloud.asset_v1p1beta1.services.asset_service.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/asset_v1p5beta1/asset_service.rst
Expand Up @@ -5,7 +5,6 @@ AssetService
:members:
:inherited-members:


.. automodule:: google.cloud.asset_v1p5beta1.services.asset_service.pagers
:members:
:inherited-members:
26 changes: 13 additions & 13 deletions google/cloud/asset/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,10 +14,11 @@
# limitations under the License.
#

from google.cloud.asset_v1.services.asset_service.client import AssetServiceClient
from google.cloud.asset_v1.services.asset_service.async_client import (
AssetServiceAsyncClient,
)
from google.cloud.asset_v1.services.asset_service.client import AssetServiceClient

from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyLongrunningRequest
from google.cloud.asset_v1.types.asset_service import (
AnalyzeIamPolicyLongrunningResponse,
Expand All @@ -28,7 +28,6 @@
from google.cloud.asset_v1.types.asset_service import BatchGetAssetsHistoryRequest
from google.cloud.asset_v1.types.asset_service import BatchGetAssetsHistoryResponse
from google.cloud.asset_v1.types.asset_service import BigQueryDestination
from google.cloud.asset_v1.types.asset_service import ContentType
from google.cloud.asset_v1.types.asset_service import CreateFeedRequest
from google.cloud.asset_v1.types.asset_service import DeleteFeedRequest
from google.cloud.asset_v1.types.asset_service import ExportAssetsRequest
Expand All @@ -51,6 +50,7 @@
from google.cloud.asset_v1.types.asset_service import SearchAllResourcesRequest
from google.cloud.asset_v1.types.asset_service import SearchAllResourcesResponse
from google.cloud.asset_v1.types.asset_service import UpdateFeedRequest
from google.cloud.asset_v1.types.asset_service import ContentType
from google.cloud.asset_v1.types.assets import Asset
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisResult
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisState
Expand All @@ -61,17 +61,15 @@
from google.cloud.asset_v1.types.assets import TimeWindow

__all__ = (
"AssetServiceClient",
"AssetServiceAsyncClient",
"AnalyzeIamPolicyLongrunningRequest",
"AnalyzeIamPolicyLongrunningResponse",
"AnalyzeIamPolicyRequest",
"AnalyzeIamPolicyResponse",
"Asset",
"AssetServiceAsyncClient",
"AssetServiceClient",
"BatchGetAssetsHistoryRequest",
"BatchGetAssetsHistoryResponse",
"BigQueryDestination",
"ContentType",
"CreateFeedRequest",
"DeleteFeedRequest",
"ExportAssetsRequest",
Expand All @@ -83,22 +81,24 @@
"GetFeedRequest",
"IamPolicyAnalysisOutputConfig",
"IamPolicyAnalysisQuery",
"IamPolicyAnalysisResult",
"IamPolicyAnalysisState",
"IamPolicySearchResult",
"ListFeedsRequest",
"ListFeedsResponse",
"OutputConfig",
"OutputResult",
"PartitionSpec",
"PubsubDestination",
"Resource",
"ResourceSearchResult",
"SearchAllIamPoliciesRequest",
"SearchAllIamPoliciesResponse",
"SearchAllResourcesRequest",
"SearchAllResourcesResponse",
"UpdateFeedRequest",
"ContentType",
"Asset",
"IamPolicyAnalysisResult",
"IamPolicyAnalysisState",
"IamPolicySearchResult",
"Resource",
"ResourceSearchResult",
"TemporalAsset",
"TimeWindow",
"UpdateFeedRequest",
)
9 changes: 5 additions & 4 deletions google/cloud/asset_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,14 +15,15 @@
#

from .services.asset_service import AssetServiceClient
from .services.asset_service import AssetServiceAsyncClient

from .types.asset_service import AnalyzeIamPolicyLongrunningRequest
from .types.asset_service import AnalyzeIamPolicyLongrunningResponse
from .types.asset_service import AnalyzeIamPolicyRequest
from .types.asset_service import AnalyzeIamPolicyResponse
from .types.asset_service import BatchGetAssetsHistoryRequest
from .types.asset_service import BatchGetAssetsHistoryResponse
from .types.asset_service import BigQueryDestination
from .types.asset_service import ContentType
from .types.asset_service import CreateFeedRequest
from .types.asset_service import DeleteFeedRequest
from .types.asset_service import ExportAssetsRequest
Expand All @@ -46,6 +46,7 @@
from .types.asset_service import SearchAllResourcesRequest
from .types.asset_service import SearchAllResourcesResponse
from .types.asset_service import UpdateFeedRequest
from .types.asset_service import ContentType
from .types.assets import Asset
from .types.assets import IamPolicyAnalysisResult
from .types.assets import IamPolicyAnalysisState
Expand All @@ -55,13 +56,14 @@
from .types.assets import TemporalAsset
from .types.assets import TimeWindow


__all__ = (
"AssetServiceAsyncClient",
"AnalyzeIamPolicyLongrunningRequest",
"AnalyzeIamPolicyLongrunningResponse",
"AnalyzeIamPolicyRequest",
"AnalyzeIamPolicyResponse",
"Asset",
"AssetServiceClient",
"BatchGetAssetsHistoryRequest",
"BatchGetAssetsHistoryResponse",
"BigQueryDestination",
Expand Down Expand Up @@ -95,5 +97,4 @@
"TemporalAsset",
"TimeWindow",
"UpdateFeedRequest",
"AssetServiceClient",
)
133 changes: 133 additions & 0 deletions google/cloud/asset_v1/gapic_metadata.json
@@ -0,0 +1,133 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.asset_v1",
"protoPackage": "google.cloud.asset.v1",
"schema": "1.0",
"services": {
"AssetService": {
"clients": {
"grpc": {
"libraryClient": "AssetServiceClient",
"rpcs": {
"AnalyzeIamPolicy": {
"methods": [
"analyze_iam_policy"
]
},
"AnalyzeIamPolicyLongrunning": {
"methods": [
"analyze_iam_policy_longrunning"
]
},
"BatchGetAssetsHistory": {
"methods": [
"batch_get_assets_history"
]
},
"CreateFeed": {
"methods": [
"create_feed"
]
},
"DeleteFeed": {
"methods": [
"delete_feed"
]
},
"ExportAssets": {
"methods": [
"export_assets"
]
},
"GetFeed": {
"methods": [
"get_feed"
]
},
"ListFeeds": {
"methods": [
"list_feeds"
]
},
"SearchAllIamPolicies": {
"methods": [
"search_all_iam_policies"
]
},
"SearchAllResources": {
"methods": [
"search_all_resources"
]
},
"UpdateFeed": {
"methods": [
"update_feed"
]
}
}
},
"grpc-async": {
"libraryClient": "AssetServiceAsyncClient",
"rpcs": {
"AnalyzeIamPolicy": {
"methods": [
"analyze_iam_policy"
]
},
"AnalyzeIamPolicyLongrunning": {
"methods": [
"analyze_iam_policy_longrunning"
]
},
"BatchGetAssetsHistory": {
"methods": [
"batch_get_assets_history"
]
},
"CreateFeed": {
"methods": [
"create_feed"
]
},
"DeleteFeed": {
"methods": [
"delete_feed"
]
},
"ExportAssets": {
"methods": [
"export_assets"
]
},
"GetFeed": {
"methods": [
"get_feed"
]
},
"ListFeeds": {
"methods": [
"list_feeds"
]
},
"SearchAllIamPolicies": {
"methods": [
"search_all_iam_policies"
]
},
"SearchAllResources": {
"methods": [
"search_all_resources"
]
},
"UpdateFeed": {
"methods": [
"update_feed"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/asset_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 0 additions & 2 deletions google/cloud/asset_v1/services/asset_service/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import AssetServiceClient
from .async_client import AssetServiceAsyncClient

Expand Down

0 comments on commit d0b9b21

Please sign in to comment.