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 |
Network.Google.Resource.CloudAsset.BatchGetAssetsHistory
Description
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. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
See: Cloud Asset API Reference for cloudasset.batchGetAssetsHistory
.
Synopsis
- type BatchGetAssetsHistoryResource = "v1" :> (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)))))))))))
- batchGetAssetsHistory :: Text -> BatchGetAssetsHistory
- data BatchGetAssetsHistory
- bgahParent :: Lens' BatchGetAssetsHistory Text
- bgahXgafv :: Lens' BatchGetAssetsHistory (Maybe Xgafv)
- bgahReadTimeWindowEndTime :: Lens' BatchGetAssetsHistory (Maybe UTCTime)
- bgahUploadProtocol :: Lens' BatchGetAssetsHistory (Maybe Text)
- bgahAccessToken :: Lens' BatchGetAssetsHistory (Maybe Text)
- bgahUploadType :: Lens' BatchGetAssetsHistory (Maybe Text)
- bgahAssetNames :: Lens' BatchGetAssetsHistory [Text]
- bgahReadTimeWindowStartTime :: Lens' BatchGetAssetsHistory (Maybe UTCTime)
- bgahContentType :: Lens' BatchGetAssetsHistory (Maybe Text)
- bgahCallback :: Lens' BatchGetAssetsHistory (Maybe Text)
REST Resource
type BatchGetAssetsHistoryResource = "v1" :> (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.batchGetAssetsHistory
method which the
BatchGetAssetsHistory
request conforms to.
Creating a Request
batchGetAssetsHistory Source #
Arguments
:: Text | |
-> BatchGetAssetsHistory |
Creates a value of BatchGetAssetsHistory
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BatchGetAssetsHistory 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. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
See: batchGetAssetsHistory
smart constructor.
Instances
Request Lenses
bgahParent :: Lens' BatchGetAssetsHistory 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").
bgahReadTimeWindowEndTime :: Lens' BatchGetAssetsHistory (Maybe UTCTime) Source #
End time of the time window (inclusive). Current timestamp if not specified.
bgahUploadProtocol :: Lens' BatchGetAssetsHistory (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bgahAccessToken :: Lens' BatchGetAssetsHistory (Maybe Text) Source #
OAuth access token.
bgahUploadType :: Lens' BatchGetAssetsHistory (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bgahAssetNames :: Lens' BatchGetAssetsHistory [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 and Resource Name Format 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.
bgahReadTimeWindowStartTime :: Lens' BatchGetAssetsHistory (Maybe UTCTime) Source #
Start time of the time window (exclusive).
bgahContentType :: Lens' BatchGetAssetsHistory (Maybe Text) Source #
Required. The content type.
bgahCallback :: Lens' BatchGetAssetsHistory (Maybe Text) Source #
JSONP