Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Batch gets the update history of assets that overlap a time window. For RESOURCE content, this API outputs history with asset in both non-delete or deleted status. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history.
See: Cloud Asset API Reference for cloudasset.projects.batchGetAssetsHistory
.
Synopsis
- type ProjectsBatchGetAssetsHistoryResource = "v1beta1" :> (CaptureMode "parent" "batchGetAssetsHistory" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "readTimeWindow.endTime" DateTime' :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "assetNames" Text :> (QueryParam "readTimeWindow.startTime" DateTime' :> (QueryParam "contentType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] BatchGetAssetsHistoryResponse)))))))))))
- projectsBatchGetAssetsHistory :: Text -> ProjectsBatchGetAssetsHistory
- data ProjectsBatchGetAssetsHistory
- pbgahParent :: Lens' ProjectsBatchGetAssetsHistory Text
- pbgahXgafv :: Lens' ProjectsBatchGetAssetsHistory (Maybe Xgafv)
- pbgahReadTimeWindowEndTime :: Lens' ProjectsBatchGetAssetsHistory (Maybe UTCTime)
- pbgahUploadProtocol :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
- pbgahAccessToken :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
- pbgahUploadType :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
- pbgahAssetNames :: Lens' ProjectsBatchGetAssetsHistory [Text]
- pbgahReadTimeWindowStartTime :: Lens' ProjectsBatchGetAssetsHistory (Maybe UTCTime)
- pbgahContentType :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
- pbgahCallback :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text)
REST Resource
type ProjectsBatchGetAssetsHistoryResource = "v1beta1" :> (CaptureMode "parent" "batchGetAssetsHistory" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "readTimeWindow.endTime" DateTime' :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "assetNames" Text :> (QueryParam "readTimeWindow.startTime" DateTime' :> (QueryParam "contentType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] BatchGetAssetsHistoryResponse))))))))))) Source #
A resource alias for cloudasset.projects.batchGetAssetsHistory
method which the
ProjectsBatchGetAssetsHistory
request conforms to.
Creating a Request
projectsBatchGetAssetsHistory Source #
Creates a value of ProjectsBatchGetAssetsHistory
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsBatchGetAssetsHistory Source #
Batch gets the update history of assets that overlap a time window. For RESOURCE content, this API outputs history with asset in both non-delete or deleted status. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history.
See: projectsBatchGetAssetsHistory
smart constructor.
Instances
Request Lenses
pbgahParent :: Lens' ProjectsBatchGetAssetsHistory Text Source #
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
pbgahXgafv :: Lens' ProjectsBatchGetAssetsHistory (Maybe Xgafv) Source #
V1 error format.
pbgahReadTimeWindowEndTime :: Lens' ProjectsBatchGetAssetsHistory (Maybe UTCTime) Source #
End time of the time window (inclusive). Current timestamp if not specified.
pbgahUploadProtocol :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pbgahAccessToken :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text) Source #
OAuth access token.
pbgahUploadType :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pbgahAssetNames :: Lens' ProjectsBatchGetAssetsHistory [Text] Source #
A list of the full names of the assets. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See Resource Names for more info. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request.
pbgahReadTimeWindowStartTime :: Lens' ProjectsBatchGetAssetsHistory (Maybe UTCTime) Source #
Start time of the time window (exclusive).
pbgahContentType :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text) Source #
Required. The content type.
pbgahCallback :: Lens' ProjectsBatchGetAssetsHistory (Maybe Text) Source #
JSONP