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

feat: add AnalyzeIamPolicy and ExportIamPolicyAnalysis; support OSInventory; add common resource helper methods; expose client transport #113

Merged
merged 13 commits into from Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/asset_v1/types.rst
Expand Up @@ -3,3 +3,4 @@ Types for Google Cloud Asset v1 API

.. automodule:: google.cloud.asset_v1.types
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/asset_v1beta1/types.rst
Expand Up @@ -3,3 +3,4 @@ Types for Google Cloud Asset v1beta1 API

.. automodule:: google.cloud.asset_v1beta1.types
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/asset_v1p1beta1/types.rst
Expand Up @@ -3,3 +3,4 @@ Types for Google Cloud Asset v1p1beta1 API

.. automodule:: google.cloud.asset_v1p1beta1.types
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/asset_v1p2beta1/types.rst
Expand Up @@ -3,3 +3,4 @@ Types for Google Cloud Asset v1p2beta1 API

.. automodule:: google.cloud.asset_v1p2beta1.types
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/asset_v1p4beta1/types.rst
Expand Up @@ -3,3 +3,4 @@ Types for Google Cloud Asset v1p4beta1 API

.. automodule:: google.cloud.asset_v1p4beta1.types
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/asset_v1p5beta1/types.rst
Expand Up @@ -3,3 +3,4 @@ Types for Google Cloud Asset v1p5beta1 API

.. automodule:: google.cloud.asset_v1p5beta1.types
:members:
:show-inheritance:
18 changes: 18 additions & 0 deletions google/cloud/asset/__init__.py
Expand Up @@ -19,6 +19,12 @@
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,
)
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyRequest
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyResponse
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
Expand All @@ -32,6 +38,8 @@
from google.cloud.asset_v1.types.asset_service import GcsDestination
from google.cloud.asset_v1.types.asset_service import GcsOutputResult
from google.cloud.asset_v1.types.asset_service import GetFeedRequest
from google.cloud.asset_v1.types.asset_service import IamPolicyAnalysisOutputConfig
from google.cloud.asset_v1.types.asset_service import IamPolicyAnalysisQuery
from google.cloud.asset_v1.types.asset_service import ListFeedsRequest
from google.cloud.asset_v1.types.asset_service import ListFeedsResponse
from google.cloud.asset_v1.types.asset_service import OutputConfig
Expand All @@ -44,13 +52,19 @@
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.assets import Asset
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisResult
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisState
from google.cloud.asset_v1.types.assets import IamPolicySearchResult
from google.cloud.asset_v1.types.assets import Resource
from google.cloud.asset_v1.types.assets import ResourceSearchResult
from google.cloud.asset_v1.types.assets import TemporalAsset
from google.cloud.asset_v1.types.assets import TimeWindow

__all__ = (
"AnalyzeIamPolicyLongrunningRequest",
"AnalyzeIamPolicyLongrunningResponse",
"AnalyzeIamPolicyRequest",
"AnalyzeIamPolicyResponse",
"Asset",
"AssetServiceAsyncClient",
"AssetServiceClient",
Expand All @@ -67,6 +81,10 @@
"GcsDestination",
"GcsOutputResult",
"GetFeedRequest",
"IamPolicyAnalysisOutputConfig",
"IamPolicyAnalysisQuery",
"IamPolicyAnalysisResult",
"IamPolicyAnalysisState",
"IamPolicySearchResult",
"ListFeedsRequest",
"ListFeedsResponse",
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/asset_v1/__init__.py
Expand Up @@ -16,6 +16,10 @@
#

from .services.asset_service import AssetServiceClient
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
Expand All @@ -29,6 +33,8 @@
from .types.asset_service import GcsDestination
from .types.asset_service import GcsOutputResult
from .types.asset_service import GetFeedRequest
from .types.asset_service import IamPolicyAnalysisOutputConfig
from .types.asset_service import IamPolicyAnalysisQuery
from .types.asset_service import ListFeedsRequest
from .types.asset_service import ListFeedsResponse
from .types.asset_service import OutputConfig
Expand All @@ -41,6 +47,8 @@
from .types.asset_service import SearchAllResourcesResponse
from .types.asset_service import UpdateFeedRequest
from .types.assets import Asset
from .types.assets import IamPolicyAnalysisResult
from .types.assets import IamPolicyAnalysisState
from .types.assets import IamPolicySearchResult
from .types.assets import Resource
from .types.assets import ResourceSearchResult
Expand All @@ -49,6 +57,10 @@


__all__ = (
"AnalyzeIamPolicyLongrunningRequest",
"AnalyzeIamPolicyLongrunningResponse",
"AnalyzeIamPolicyRequest",
"AnalyzeIamPolicyResponse",
"Asset",
"BatchGetAssetsHistoryRequest",
"BatchGetAssetsHistoryResponse",
Expand All @@ -63,6 +75,10 @@
"GcsDestination",
"GcsOutputResult",
"GetFeedRequest",
"IamPolicyAnalysisOutputConfig",
"IamPolicyAnalysisQuery",
"IamPolicyAnalysisResult",
"IamPolicyAnalysisState",
"IamPolicySearchResult",
"ListFeedsRequest",
"ListFeedsResponse",
Expand Down