gogol-cloudasset-0.5.0: Google Cloud Asset SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

Contents

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

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

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
Eq BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

Data BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchGetAssetsHistory -> c BatchGetAssetsHistory #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchGetAssetsHistory #

toConstr :: BatchGetAssetsHistory -> Constr #

dataTypeOf :: BatchGetAssetsHistory -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BatchGetAssetsHistory) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchGetAssetsHistory) #

gmapT :: (forall b. Data b => b -> b) -> BatchGetAssetsHistory -> BatchGetAssetsHistory #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchGetAssetsHistory -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchGetAssetsHistory -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchGetAssetsHistory -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchGetAssetsHistory -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchGetAssetsHistory -> m BatchGetAssetsHistory #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchGetAssetsHistory -> m BatchGetAssetsHistory #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchGetAssetsHistory -> m BatchGetAssetsHistory #

Show BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

Generic BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

Associated Types

type Rep BatchGetAssetsHistory :: Type -> Type #

GoogleRequest BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

type Rep BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

type Rep BatchGetAssetsHistory = D1 (MetaData "BatchGetAssetsHistory" "Network.Google.Resource.CloudAsset.BatchGetAssetsHistory" "gogol-cloudasset-0.5.0-EEWTSZpalbM7MHWqhkEXj8" False) (C1 (MetaCons "BatchGetAssetsHistory'" PrefixI True) (((S1 (MetaSel (Just "_bgahParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_bgahXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_bgahReadTimeWindowEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: (S1 (MetaSel (Just "_bgahUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_bgahAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_bgahUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_bgahAssetNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_bgahReadTimeWindowStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: (S1 (MetaSel (Just "_bgahContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_bgahCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

type Scopes BatchGetAssetsHistory = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs BatchGetAssetsHistory Source # 
Instance details

Defined in Network.Google.Resource.CloudAsset.BatchGetAssetsHistory

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").

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.