Asset/src/V1beta1/Gapic/AssetServiceGapicClient.php
public function batchGetAssetsHistory($parent, $contentType, $readTimeWindow, array $optionalArgs = [])
    {
        $request = new BatchGetAssetsHistoryRequest();
        $request->setParent($parent);
        $request->setContentType($contentType);
        $request->setReadTimeWindow($readTimeWindow);
        if (isset($optionalArgs['assetNames'])) {
            $request->setAssetNames($optionalArgs['assetNames']);
        }

        $requestParams = new RequestParamsHeaderDescriptor([
          'parent' => $request->getParent(),
        ]);
        $optionalArgs['headers'] = isset($optionalArgs['headers'])
            ? array_merge($requestParams->getHeader(), $optionalArgs['headers'])
            : $requestParams->getHeader();

        return $this->startCall(
            'BatchGetAssetsHistory',
            BatchGetAssetsHistoryResponse::class,
            $optionalArgs,
            $request
        )->wait();
    }
public function batchGetAssetsHistory($parent, $contentType, $readTimeWindow, array $optionalArgs = [])
    {
        $request = new BatchGetAssetsHistoryRequest();
        $request->setParent($parent);
        $request->setContentType($contentType);
        $request->setReadTimeWindow($readTimeWindow);
        if (isset($optionalArgs['assetNames'])) {
            $request->setAssetNames($optionalArgs['assetNames']);
        }

        $requestParams = new RequestParamsHeaderDescriptor([
          'parent' => $request->getParent(),
        ]);
        $optionalArgs['headers'] = isset($optionalArgs['headers'])
            ? array_merge($requestParams->getHeader(), $optionalArgs['headers'])
            : $requestParams->getHeader();

        return $this->startCall(
            'BatchGetAssetsHistory',
            BatchGetAssetsHistoryResponse::class,
            $optionalArgs,
            $request
        )->wait();
    }
public function batchGetAssetsHistory ( $ parent , $ contentType , $ readTimeWindow , array $ optionalArgs = [ ] ) { $ request = new BatchGetAssetsHistoryRequest ( ) ; $ request -> setParent ( $ parent ) ; $ request -> setContentType ( $ contentType ) ; $ request -> setReadTimeWindow ( $ readTimeWindow ) ; if ( isset ( $ optionalArgs [ 'assetNames' ] ) ) { $ request -> setAssetNames ( $ optionalArgs [ 'assetNames' ] ) ; } $ requestParams = new RequestParamsHeaderDescriptor ( [ 'parent' => $ request -> getParent ( ) , ] ) ; $ optionalArgs [ 'headers' ] = isset ( $ optionalArgs [ 'headers' ] ) ? array_merge ( $ requestParams -> getHeader ( ) , $ optionalArgs [ 'headers' ] ) : $ requestParams -> getHeader ( ) ; return $ this -> startCall ( 'BatchGetAssetsHistory' , BatchGetAssetsHistoryResponse :: class , $ optionalArgs , $ request ) -> wait ( ) ; }
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.

Sample code:
```
$assetServiceClient = new AssetServiceClient();
try {
$formattedParent = $assetServiceClient->projectName('[PROJECT]');
$contentType = ContentType::CONTENT_TYPE_UNSPECIFIED;
$readTimeWindow = new TimeWindow();
$response = $assetServiceClient->batchGetAssetsHistory($formattedParent, $contentType, $readTimeWindow);
} finally {
$assetServiceClient->close();
}
```

@param string     $parent         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").
@param int        $contentType    Required. The content type.
For allowed values, use constants defined on {@see \Google\Cloud\Asset\V1beta1\ContentType}
@param TimeWindow $readTimeWindow Optional. The time window for the asset history. Both start_time and
end_time are optional and if set, it must be after 2018-10-02 UTC. If
end_time is not set, it is default to current timestamp. If start_time is
not set, the snapshot of the assets at end_time will be returned. The
returned results contain all temporal assets whose time window overlap with
read_time_window.
@param array      $optionalArgs   {
Optional.

@type string[] $assetNames
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](https://cloud.google.com/apis/design/resource_names#full_resource_name)
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.
@type RetrySettings|array $retrySettings
Retry settings to use for this call. Can be a
{@see Google\ApiCore\RetrySettings} object, or an associative array
of retry settings parameters. See the documentation on
{@see Google\ApiCore\RetrySettings} for example usage.
}

@return \Google\Cloud\Asset\V1beta1\BatchGetAssetsHistoryResponse

@throws ApiException if the remote call fails
@experimental
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 .