From e94f0388721f221e9895d4dc727aeb142627f8d6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 28 Mar 2019 11:18:01 -0700 Subject: [PATCH] Add additional request name headers (#1751) --- Asset/src/V1/Gapic/AssetServiceGapicClient.php | 15 +++++++++++++++ .../src/V1beta1/Gapic/AssetServiceGapicClient.php | 15 +++++++++++++++ Asset/synth.metadata | 10 +++++----- 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/Asset/src/V1/Gapic/AssetServiceGapicClient.php b/Asset/src/V1/Gapic/AssetServiceGapicClient.php index 7bb925b52bd8..2c4a8d969a88 100644 --- a/Asset/src/V1/Gapic/AssetServiceGapicClient.php +++ b/Asset/src/V1/Gapic/AssetServiceGapicClient.php @@ -32,6 +32,7 @@ use Google\ApiCore\LongRunning\OperationsClient; use Google\ApiCore\OperationResponse; use Google\ApiCore\PathTemplate; +use Google\ApiCore\RequestParamsHeaderDescriptor; use Google\ApiCore\RetrySettings; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; @@ -420,6 +421,13 @@ public function exportAssets($parent, $outputConfig, array $optionalArgs = []) $request->setContentType($optionalArgs['contentType']); } + $requestParams = new RequestParamsHeaderDescriptor([ + 'parent' => $request->getParent(), + ]); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startOperationsCall( 'ExportAssets', $optionalArgs, @@ -496,6 +504,13 @@ public function batchGetAssetsHistory($parent, $contentType, $readTimeWindow, ar $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, diff --git a/Asset/src/V1beta1/Gapic/AssetServiceGapicClient.php b/Asset/src/V1beta1/Gapic/AssetServiceGapicClient.php index 1690c0cba135..342134e7f84c 100644 --- a/Asset/src/V1beta1/Gapic/AssetServiceGapicClient.php +++ b/Asset/src/V1beta1/Gapic/AssetServiceGapicClient.php @@ -32,6 +32,7 @@ use Google\ApiCore\LongRunning\OperationsClient; use Google\ApiCore\OperationResponse; use Google\ApiCore\PathTemplate; +use Google\ApiCore\RequestParamsHeaderDescriptor; use Google\ApiCore\RetrySettings; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; @@ -421,6 +422,13 @@ public function exportAssets($parent, $outputConfig, array $optionalArgs = []) $request->setContentType($optionalArgs['contentType']); } + $requestParams = new RequestParamsHeaderDescriptor([ + 'parent' => $request->getParent(), + ]); + $optionalArgs['headers'] = isset($optionalArgs['headers']) + ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) + : $requestParams->getHeader(); + return $this->startOperationsCall( 'ExportAssets', $optionalArgs, @@ -494,6 +502,13 @@ public function batchGetAssetsHistory($parent, $contentType, $readTimeWindow, ar $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, diff --git a/Asset/synth.metadata b/Asset/synth.metadata index 0ea67ad07214..30ce0fd45a34 100644 --- a/Asset/synth.metadata +++ b/Asset/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-19T18:58:50.535446Z", + "updateTime": "2019-03-28T09:58:36.230681Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.18", - "dockerImage": "googleapis/artman@sha256:e8ac9200640e76d54643f370db71a1556bf254f565ce46b45a467bbcbacbdb37" + "version": "0.16.20", + "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6e18ed1d4a28db4bd0f6f5fbc4cfda90b50432b2", - "internalRef": "239208730" + "sha": "6a84b3267b0a95e922608b9891219075047eee29", + "internalRef": "240640999" } } ],