diff --git a/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php b/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php index 03a9fe2b24da..0e51a2b634bb 100644 --- a/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php +++ b/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php @@ -208,8 +208,10 @@ public function __call($method, $args) * * @experimental */ - public function launchFlexTemplate(LaunchFlexTemplateRequest $request, array $callOptions = []): LaunchFlexTemplateResponse - { + public function launchFlexTemplate( + LaunchFlexTemplateRequest $request, + array $callOptions = [] + ): LaunchFlexTemplateResponse { return $this->startApiCall('LaunchFlexTemplate', $request, $callOptions)->wait(); } } diff --git a/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php index 56e93ac5c8c6..92dddb5b285a 100644 --- a/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php @@ -216,8 +216,10 @@ public function __call($method, $args) * * @experimental */ - public function getJobExecutionDetails(GetJobExecutionDetailsRequest $request, array $callOptions = []): PagedListResponse - { + public function getJobExecutionDetails( + GetJobExecutionDetailsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('GetJobExecutionDetails', $request, $callOptions); } @@ -282,8 +284,10 @@ public function getJobMetrics(GetJobMetricsRequest $request, array $callOptions * * @experimental */ - public function getStageExecutionDetails(GetStageExecutionDetailsRequest $request, array $callOptions = []): PagedListResponse - { + public function getStageExecutionDetails( + GetStageExecutionDetailsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('GetStageExecutionDetails', $request, $callOptions); } } diff --git a/Dataform/src/V1/Client/DataformClient.php b/Dataform/src/V1/Client/DataformClient.php index 5e473825e164..91a214edbb1e 100644 --- a/Dataform/src/V1/Client/DataformClient.php +++ b/Dataform/src/V1/Client/DataformClient.php @@ -258,8 +258,12 @@ private static function getClientDefaults() * * @return string The formatted compilation_result resource. */ - public static function compilationResultName(string $project, string $location, string $repository, string $compilationResult): string - { + public static function compilationResultName( + string $project, + string $location, + string $repository, + string $compilationResult + ): string { return self::getPathTemplate('compilationResult')->render([ 'project' => $project, 'location' => $location, @@ -318,8 +322,13 @@ public static function cryptoKeyName(string $project, string $location, string $ * * @return string The formatted crypto_key_version resource. */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { + public static function cryptoKeyVersionName( + string $project, + string $location, + string $keyRing, + string $cryptoKey, + string $cryptoKeyVersion + ): string { return self::getPathTemplate('cryptoKeyVersion')->render([ 'project' => $project, 'location' => $location, @@ -356,8 +365,11 @@ public static function locationName(string $project, string $location): string * * @return string The formatted notebook_runtime_template resource. */ - public static function notebookRuntimeTemplateName(string $project, string $location, string $notebookRuntimeTemplate): string - { + public static function notebookRuntimeTemplateName( + string $project, + string $location, + string $notebookRuntimeTemplate + ): string { return self::getPathTemplate('notebookRuntimeTemplate')->render([ 'project' => $project, 'location' => $location, @@ -376,8 +388,12 @@ public static function notebookRuntimeTemplateName(string $project, string $loca * * @return string The formatted release_config resource. */ - public static function releaseConfigName(string $project, string $location, string $repository, string $releaseConfig): string - { + public static function releaseConfigName( + string $project, + string $location, + string $repository, + string $releaseConfig + ): string { return self::getPathTemplate('releaseConfig')->render([ 'project' => $project, 'location' => $location, @@ -435,8 +451,12 @@ public static function secretVersionName(string $project, string $secret, string * * @return string The formatted workflow_config resource. */ - public static function workflowConfigName(string $project, string $location, string $repository, string $workflowConfig): string - { + public static function workflowConfigName( + string $project, + string $location, + string $repository, + string $workflowConfig + ): string { return self::getPathTemplate('workflowConfig')->render([ 'project' => $project, 'location' => $location, @@ -456,8 +476,12 @@ public static function workflowConfigName(string $project, string $location, str * * @return string The formatted workflow_invocation resource. */ - public static function workflowInvocationName(string $project, string $location, string $repository, string $workflowInvocation): string - { + public static function workflowInvocationName( + string $project, + string $location, + string $repository, + string $workflowInvocation + ): string { return self::getPathTemplate('workflowInvocation')->render([ 'project' => $project, 'location' => $location, @@ -477,8 +501,12 @@ public static function workflowInvocationName(string $project, string $location, * * @return string The formatted workspace resource. */ - public static function workspaceName(string $project, string $location, string $repository, string $workspace): string - { + public static function workspaceName( + string $project, + string $location, + string $repository, + string $workspace + ): string { return self::getPathTemplate('workspace')->render([ 'project' => $project, 'location' => $location, @@ -628,8 +656,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $request, array $callOptions = []): CancelWorkflowInvocationResponse - { + public function cancelWorkflowInvocation( + CancelWorkflowInvocationRequest $request, + array $callOptions = [] + ): CancelWorkflowInvocationResponse { return $this->startApiCall('CancelWorkflowInvocation', $request, $callOptions)->wait(); } @@ -655,8 +685,10 @@ public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $reques * * @throws ApiException Thrown if the API call fails. */ - public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, array $callOptions = []): CommitRepositoryChangesResponse - { + public function commitRepositoryChanges( + CommitRepositoryChangesRequest $request, + array $callOptions = [] + ): CommitRepositoryChangesResponse { return $this->startApiCall('CommitRepositoryChanges', $request, $callOptions)->wait(); } @@ -681,8 +713,10 @@ public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, array $callOptions = []): CommitWorkspaceChangesResponse - { + public function commitWorkspaceChanges( + CommitWorkspaceChangesRequest $request, + array $callOptions = [] + ): CommitWorkspaceChangesResponse { return $this->startApiCall('CommitWorkspaceChanges', $request, $callOptions)->wait(); } @@ -708,8 +742,10 @@ public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenStatusRequest $request, array $callOptions = []): ComputeRepositoryAccessTokenStatusResponse - { + public function computeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest $request, + array $callOptions = [] + ): ComputeRepositoryAccessTokenStatusResponse { return $this->startApiCall('ComputeRepositoryAccessTokenStatus', $request, $callOptions)->wait(); } @@ -734,8 +770,10 @@ public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenS * * @throws ApiException Thrown if the API call fails. */ - public function createCompilationResult(CreateCompilationResultRequest $request, array $callOptions = []): CompilationResult - { + public function createCompilationResult( + CreateCompilationResultRequest $request, + array $callOptions = [] + ): CompilationResult { return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); } @@ -838,8 +876,10 @@ public function createWorkflowConfig(CreateWorkflowConfigRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function createWorkflowInvocation(CreateWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { + public function createWorkflowInvocation( + CreateWorkflowInvocationRequest $request, + array $callOptions = [] + ): WorkflowInvocation { return $this->startApiCall('CreateWorkflowInvocation', $request, $callOptions)->wait(); } @@ -1036,8 +1076,10 @@ public function fetchFileDiff(FetchFileDiffRequest $request, array $callOptions * * @throws ApiException Thrown if the API call fails. */ - public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array $callOptions = []): FetchFileGitStatusesResponse - { + public function fetchFileGitStatuses( + FetchFileGitStatusesRequest $request, + array $callOptions = [] + ): FetchFileGitStatusesResponse { return $this->startApiCall('FetchFileGitStatuses', $request, $callOptions)->wait(); } @@ -1062,8 +1104,10 @@ public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $callOptions = []): FetchGitAheadBehindResponse - { + public function fetchGitAheadBehind( + FetchGitAheadBehindRequest $request, + array $callOptions = [] + ): FetchGitAheadBehindResponse { return $this->startApiCall('FetchGitAheadBehind', $request, $callOptions)->wait(); } @@ -1088,8 +1132,10 @@ public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $callOptions = []): FetchRemoteBranchesResponse - { + public function fetchRemoteBranches( + FetchRemoteBranchesRequest $request, + array $callOptions = [] + ): FetchRemoteBranchesResponse { return $this->startApiCall('FetchRemoteBranches', $request, $callOptions)->wait(); } @@ -1115,8 +1161,10 @@ public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, array $callOptions = []): PagedListResponse - { + public function fetchRepositoryHistory( + FetchRepositoryHistoryRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('FetchRepositoryHistory', $request, $callOptions); } @@ -1141,8 +1189,10 @@ public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function getCompilationResult(GetCompilationResultRequest $request, array $callOptions = []): CompilationResult - { + public function getCompilationResult( + GetCompilationResultRequest $request, + array $callOptions = [] + ): CompilationResult { return $this->startApiCall('GetCompilationResult', $request, $callOptions)->wait(); } @@ -1271,8 +1321,10 @@ public function getWorkflowConfig(GetWorkflowConfigRequest $request, array $call * * @throws ApiException Thrown if the API call fails. */ - public function getWorkflowInvocation(GetWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { + public function getWorkflowInvocation( + GetWorkflowInvocationRequest $request, + array $callOptions = [] + ): WorkflowInvocation { return $this->startApiCall('GetWorkflowInvocation', $request, $callOptions)->wait(); } @@ -1323,8 +1375,10 @@ public function getWorkspace(GetWorkspaceRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function installNpmPackages(InstallNpmPackagesRequest $request, array $callOptions = []): InstallNpmPackagesResponse - { + public function installNpmPackages( + InstallNpmPackagesRequest $request, + array $callOptions = [] + ): InstallNpmPackagesResponse { return $this->startApiCall('InstallNpmPackages', $request, $callOptions)->wait(); } @@ -1349,8 +1403,10 @@ public function installNpmPackages(InstallNpmPackagesRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function listCompilationResults(ListCompilationResultsRequest $request, array $callOptions = []): PagedListResponse - { + public function listCompilationResults( + ListCompilationResultsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCompilationResults', $request, $callOptions); } @@ -1456,8 +1512,10 @@ public function listWorkflowConfigs(ListWorkflowConfigsRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function listWorkflowInvocations(ListWorkflowInvocationsRequest $request, array $callOptions = []): PagedListResponse - { + public function listWorkflowInvocations( + ListWorkflowInvocationsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListWorkflowInvocations', $request, $callOptions); } @@ -1640,8 +1698,10 @@ public function pushGitCommits(PushGitCommitsRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function queryCompilationResultActions(QueryCompilationResultActionsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryCompilationResultActions( + QueryCompilationResultActionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryCompilationResultActions', $request, $callOptions); } @@ -1666,8 +1726,10 @@ public function queryCompilationResultActions(QueryCompilationResultActionsReque * * @throws ApiException Thrown if the API call fails. */ - public function queryDirectoryContents(QueryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryDirectoryContents( + QueryDirectoryContentsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); } @@ -1694,8 +1756,10 @@ public function queryDirectoryContents(QueryDirectoryContentsRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryRepositoryDirectoryContents( + QueryRepositoryDirectoryContentsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); } @@ -1721,8 +1785,10 @@ public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContent * * @throws ApiException Thrown if the API call fails. */ - public function queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryWorkflowInvocationActions( + QueryWorkflowInvocationActionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryWorkflowInvocationActions', $request, $callOptions); } @@ -1774,8 +1840,10 @@ public function readFile(ReadFileRequest $request, array $callOptions = []): Rea * * @throws ApiException Thrown if the API call fails. */ - public function readRepositoryFile(ReadRepositoryFileRequest $request, array $callOptions = []): ReadRepositoryFileResponse - { + public function readRepositoryFile( + ReadRepositoryFileRequest $request, + array $callOptions = [] + ): ReadRepositoryFileResponse { return $this->startApiCall('ReadRepositoryFile', $request, $callOptions)->wait(); } @@ -1852,8 +1920,10 @@ public function removeFile(RemoveFileRequest $request, array $callOptions = []): * * @throws ApiException Thrown if the API call fails. */ - public function resetWorkspaceChanges(ResetWorkspaceChangesRequest $request, array $callOptions = []): ResetWorkspaceChangesResponse - { + public function resetWorkspaceChanges( + ResetWorkspaceChangesRequest $request, + array $callOptions = [] + ): ResetWorkspaceChangesResponse { return $this->startApiCall('ResetWorkspaceChanges', $request, $callOptions)->wait(); } @@ -2169,8 +2239,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/Dataform/src/V1beta1/Client/DataformClient.php b/Dataform/src/V1beta1/Client/DataformClient.php index 81ccec30a81b..947bfba021e2 100644 --- a/Dataform/src/V1beta1/Client/DataformClient.php +++ b/Dataform/src/V1beta1/Client/DataformClient.php @@ -264,8 +264,12 @@ private static function getClientDefaults() * * @experimental */ - public static function compilationResultName(string $project, string $location, string $repository, string $compilationResult): string - { + public static function compilationResultName( + string $project, + string $location, + string $repository, + string $compilationResult + ): string { return self::getPathTemplate('compilationResult')->render([ 'project' => $project, 'location' => $location, @@ -330,8 +334,13 @@ public static function cryptoKeyName(string $project, string $location, string $ * * @experimental */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { + public static function cryptoKeyVersionName( + string $project, + string $location, + string $keyRing, + string $cryptoKey, + string $cryptoKeyVersion + ): string { return self::getPathTemplate('cryptoKeyVersion')->render([ 'project' => $project, 'location' => $location, @@ -372,8 +381,11 @@ public static function locationName(string $project, string $location): string * * @experimental */ - public static function notebookRuntimeTemplateName(string $project, string $location, string $notebookRuntimeTemplate): string - { + public static function notebookRuntimeTemplateName( + string $project, + string $location, + string $notebookRuntimeTemplate + ): string { return self::getPathTemplate('notebookRuntimeTemplate')->render([ 'project' => $project, 'location' => $location, @@ -394,8 +406,12 @@ public static function notebookRuntimeTemplateName(string $project, string $loca * * @experimental */ - public static function releaseConfigName(string $project, string $location, string $repository, string $releaseConfig): string - { + public static function releaseConfigName( + string $project, + string $location, + string $repository, + string $releaseConfig + ): string { return self::getPathTemplate('releaseConfig')->render([ 'project' => $project, 'location' => $location, @@ -459,8 +475,12 @@ public static function secretVersionName(string $project, string $secret, string * * @experimental */ - public static function workflowConfigName(string $project, string $location, string $repository, string $workflowConfig): string - { + public static function workflowConfigName( + string $project, + string $location, + string $repository, + string $workflowConfig + ): string { return self::getPathTemplate('workflowConfig')->render([ 'project' => $project, 'location' => $location, @@ -482,8 +502,12 @@ public static function workflowConfigName(string $project, string $location, str * * @experimental */ - public static function workflowInvocationName(string $project, string $location, string $repository, string $workflowInvocation): string - { + public static function workflowInvocationName( + string $project, + string $location, + string $repository, + string $workflowInvocation + ): string { return self::getPathTemplate('workflowInvocation')->render([ 'project' => $project, 'location' => $location, @@ -505,8 +529,12 @@ public static function workflowInvocationName(string $project, string $location, * * @experimental */ - public static function workspaceName(string $project, string $location, string $repository, string $workspace): string - { + public static function workspaceName( + string $project, + string $location, + string $repository, + string $workspace + ): string { return self::getPathTemplate('workspace')->render([ 'project' => $project, 'location' => $location, @@ -662,8 +690,10 @@ public function __call($method, $args) * * @experimental */ - public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $request, array $callOptions = []): CancelWorkflowInvocationResponse - { + public function cancelWorkflowInvocation( + CancelWorkflowInvocationRequest $request, + array $callOptions = [] + ): CancelWorkflowInvocationResponse { return $this->startApiCall('CancelWorkflowInvocation', $request, $callOptions)->wait(); } @@ -691,8 +721,10 @@ public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $reques * * @experimental */ - public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, array $callOptions = []): CommitRepositoryChangesResponse - { + public function commitRepositoryChanges( + CommitRepositoryChangesRequest $request, + array $callOptions = [] + ): CommitRepositoryChangesResponse { return $this->startApiCall('CommitRepositoryChanges', $request, $callOptions)->wait(); } @@ -719,8 +751,10 @@ public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, * * @experimental */ - public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, array $callOptions = []): CommitWorkspaceChangesResponse - { + public function commitWorkspaceChanges( + CommitWorkspaceChangesRequest $request, + array $callOptions = [] + ): CommitWorkspaceChangesResponse { return $this->startApiCall('CommitWorkspaceChanges', $request, $callOptions)->wait(); } @@ -748,8 +782,10 @@ public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, a * * @experimental */ - public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenStatusRequest $request, array $callOptions = []): ComputeRepositoryAccessTokenStatusResponse - { + public function computeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest $request, + array $callOptions = [] + ): ComputeRepositoryAccessTokenStatusResponse { return $this->startApiCall('ComputeRepositoryAccessTokenStatus', $request, $callOptions)->wait(); } @@ -776,8 +812,10 @@ public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenS * * @experimental */ - public function createCompilationResult(CreateCompilationResultRequest $request, array $callOptions = []): CompilationResult - { + public function createCompilationResult( + CreateCompilationResultRequest $request, + array $callOptions = [] + ): CompilationResult { return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); } @@ -888,8 +926,10 @@ public function createWorkflowConfig(CreateWorkflowConfigRequest $request, array * * @experimental */ - public function createWorkflowInvocation(CreateWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { + public function createWorkflowInvocation( + CreateWorkflowInvocationRequest $request, + array $callOptions = [] + ): WorkflowInvocation { return $this->startApiCall('CreateWorkflowInvocation', $request, $callOptions)->wait(); } @@ -1102,8 +1142,10 @@ public function fetchFileDiff(FetchFileDiffRequest $request, array $callOptions * * @experimental */ - public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array $callOptions = []): FetchFileGitStatusesResponse - { + public function fetchFileGitStatuses( + FetchFileGitStatusesRequest $request, + array $callOptions = [] + ): FetchFileGitStatusesResponse { return $this->startApiCall('FetchFileGitStatuses', $request, $callOptions)->wait(); } @@ -1130,8 +1172,10 @@ public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array * * @experimental */ - public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $callOptions = []): FetchGitAheadBehindResponse - { + public function fetchGitAheadBehind( + FetchGitAheadBehindRequest $request, + array $callOptions = [] + ): FetchGitAheadBehindResponse { return $this->startApiCall('FetchGitAheadBehind', $request, $callOptions)->wait(); } @@ -1158,8 +1202,10 @@ public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $ * * @experimental */ - public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $callOptions = []): FetchRemoteBranchesResponse - { + public function fetchRemoteBranches( + FetchRemoteBranchesRequest $request, + array $callOptions = [] + ): FetchRemoteBranchesResponse { return $this->startApiCall('FetchRemoteBranches', $request, $callOptions)->wait(); } @@ -1187,8 +1233,10 @@ public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $ * * @experimental */ - public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, array $callOptions = []): PagedListResponse - { + public function fetchRepositoryHistory( + FetchRepositoryHistoryRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('FetchRepositoryHistory', $request, $callOptions); } @@ -1215,8 +1263,10 @@ public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, a * * @experimental */ - public function getCompilationResult(GetCompilationResultRequest $request, array $callOptions = []): CompilationResult - { + public function getCompilationResult( + GetCompilationResultRequest $request, + array $callOptions = [] + ): CompilationResult { return $this->startApiCall('GetCompilationResult', $request, $callOptions)->wait(); } @@ -1355,8 +1405,10 @@ public function getWorkflowConfig(GetWorkflowConfigRequest $request, array $call * * @experimental */ - public function getWorkflowInvocation(GetWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { + public function getWorkflowInvocation( + GetWorkflowInvocationRequest $request, + array $callOptions = [] + ): WorkflowInvocation { return $this->startApiCall('GetWorkflowInvocation', $request, $callOptions)->wait(); } @@ -1411,8 +1463,10 @@ public function getWorkspace(GetWorkspaceRequest $request, array $callOptions = * * @experimental */ - public function installNpmPackages(InstallNpmPackagesRequest $request, array $callOptions = []): InstallNpmPackagesResponse - { + public function installNpmPackages( + InstallNpmPackagesRequest $request, + array $callOptions = [] + ): InstallNpmPackagesResponse { return $this->startApiCall('InstallNpmPackages', $request, $callOptions)->wait(); } @@ -1439,8 +1493,10 @@ public function installNpmPackages(InstallNpmPackagesRequest $request, array $ca * * @experimental */ - public function listCompilationResults(ListCompilationResultsRequest $request, array $callOptions = []): PagedListResponse - { + public function listCompilationResults( + ListCompilationResultsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCompilationResults', $request, $callOptions); } @@ -1554,8 +1610,10 @@ public function listWorkflowConfigs(ListWorkflowConfigsRequest $request, array $ * * @experimental */ - public function listWorkflowInvocations(ListWorkflowInvocationsRequest $request, array $callOptions = []): PagedListResponse - { + public function listWorkflowInvocations( + ListWorkflowInvocationsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListWorkflowInvocations', $request, $callOptions); } @@ -1752,8 +1810,10 @@ public function pushGitCommits(PushGitCommitsRequest $request, array $callOption * * @experimental */ - public function queryCompilationResultActions(QueryCompilationResultActionsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryCompilationResultActions( + QueryCompilationResultActionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryCompilationResultActions', $request, $callOptions); } @@ -1780,8 +1840,10 @@ public function queryCompilationResultActions(QueryCompilationResultActionsReque * * @experimental */ - public function queryDirectoryContents(QueryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryDirectoryContents( + QueryDirectoryContentsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); } @@ -1810,8 +1872,10 @@ public function queryDirectoryContents(QueryDirectoryContentsRequest $request, a * * @experimental */ - public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryRepositoryDirectoryContents( + QueryRepositoryDirectoryContentsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); } @@ -1839,8 +1903,10 @@ public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContent * * @experimental */ - public function queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest $request, array $callOptions = []): PagedListResponse - { + public function queryWorkflowInvocationActions( + QueryWorkflowInvocationActionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('QueryWorkflowInvocationActions', $request, $callOptions); } @@ -1896,8 +1962,10 @@ public function readFile(ReadFileRequest $request, array $callOptions = []): Rea * * @experimental */ - public function readRepositoryFile(ReadRepositoryFileRequest $request, array $callOptions = []): ReadRepositoryFileResponse - { + public function readRepositoryFile( + ReadRepositoryFileRequest $request, + array $callOptions = [] + ): ReadRepositoryFileResponse { return $this->startApiCall('ReadRepositoryFile', $request, $callOptions)->wait(); } @@ -1980,8 +2048,10 @@ public function removeFile(RemoveFileRequest $request, array $callOptions = []): * * @experimental */ - public function resetWorkspaceChanges(ResetWorkspaceChangesRequest $request, array $callOptions = []): ResetWorkspaceChangesResponse - { + public function resetWorkspaceChanges( + ResetWorkspaceChangesRequest $request, + array $callOptions = [] + ): ResetWorkspaceChangesResponse { return $this->startApiCall('ResetWorkspaceChanges', $request, $callOptions)->wait(); } @@ -2319,8 +2389,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @experimental */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php b/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php index c8a6843f3645..4c594d0ab193 100644 --- a/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php +++ b/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php @@ -150,9 +150,7 @@ final class DataprocMetastoreClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -272,8 +270,12 @@ public static function locationName(string $project, string $location): string * * @return string The formatted metadata_import resource. */ - public static function metadataImportName(string $project, string $location, string $service, string $metadataImport): string - { + public static function metadataImportName( + string $project, + string $location, + string $service, + string $metadataImport + ): string { return self::getPathTemplate('metadataImport')->render([ 'project' => $project, 'location' => $location, @@ -477,8 +479,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function alterMetadataResourceLocation(AlterMetadataResourceLocationRequest $request, array $callOptions = []): OperationResponse - { + public function alterMetadataResourceLocation( + AlterMetadataResourceLocationRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('AlterMetadataResourceLocation', $request, $callOptions)->wait(); } @@ -530,8 +534,10 @@ public function createBackup(CreateBackupRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function createMetadataImport(CreateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { + public function createMetadataImport( + CreateMetadataImportRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateMetadataImport', $request, $callOptions)->wait(); } @@ -898,8 +904,10 @@ public function restoreService(RestoreServiceRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function updateMetadataImport(UpdateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { + public function updateMetadataImport( + UpdateMetadataImportRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateMetadataImport', $request, $callOptions)->wait(); } @@ -1065,8 +1073,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php b/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php index 9af8e0a396f0..6cf66aec6cf9 100644 --- a/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php +++ b/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php @@ -113,9 +113,7 @@ final class DataprocMetastoreFederationClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -132,7 +130,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', ], ], ]; @@ -609,8 +608,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php index 1e914f998111..fc4c8639cc78 100644 --- a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php +++ b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php @@ -157,9 +157,7 @@ final class DataprocMetastoreClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -310,8 +308,12 @@ public static function locationName(string $project, string $location): string * * @experimental */ - public static function metadataImportName(string $project, string $location, string $service, string $metadataImport): string - { + public static function metadataImportName( + string $project, + string $location, + string $service, + string $metadataImport + ): string { return self::getPathTemplate('metadataImport')->render([ 'project' => $project, 'location' => $location, @@ -528,8 +530,10 @@ public function __call($method, $args) * * @experimental */ - public function alterMetadataResourceLocation(AlterMetadataResourceLocationRequest $request, array $callOptions = []): OperationResponse - { + public function alterMetadataResourceLocation( + AlterMetadataResourceLocationRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('AlterMetadataResourceLocation', $request, $callOptions)->wait(); } @@ -585,8 +589,10 @@ public function createBackup(CreateBackupRequest $request, array $callOptions = * * @experimental */ - public function createMetadataImport(CreateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { + public function createMetadataImport( + CreateMetadataImportRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateMetadataImport', $request, $callOptions)->wait(); } @@ -1009,8 +1015,10 @@ public function restoreService(RestoreServiceRequest $request, array $callOption * * @experimental */ - public function updateMetadataImport(UpdateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { + public function updateMetadataImport( + UpdateMetadataImportRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateMetadataImport', $request, $callOptions)->wait(); } @@ -1188,8 +1196,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @experimental */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php index 30dd75493403..92ba9cd73211 100644 --- a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php +++ b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php @@ -117,9 +117,7 @@ final class DataprocMetastoreFederationClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -136,7 +134,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', ], ], ]; @@ -645,8 +644,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @experimental */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php index 101e266e5575..0693b493f407 100644 --- a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php +++ b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php @@ -157,9 +157,7 @@ final class DataprocMetastoreClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -310,8 +308,12 @@ public static function locationName(string $project, string $location): string * * @experimental */ - public static function metadataImportName(string $project, string $location, string $service, string $metadataImport): string - { + public static function metadataImportName( + string $project, + string $location, + string $service, + string $metadataImport + ): string { return self::getPathTemplate('metadataImport')->render([ 'project' => $project, 'location' => $location, @@ -528,8 +530,10 @@ public function __call($method, $args) * * @experimental */ - public function alterMetadataResourceLocation(AlterMetadataResourceLocationRequest $request, array $callOptions = []): OperationResponse - { + public function alterMetadataResourceLocation( + AlterMetadataResourceLocationRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('AlterMetadataResourceLocation', $request, $callOptions)->wait(); } @@ -585,8 +589,10 @@ public function createBackup(CreateBackupRequest $request, array $callOptions = * * @experimental */ - public function createMetadataImport(CreateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { + public function createMetadataImport( + CreateMetadataImportRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateMetadataImport', $request, $callOptions)->wait(); } @@ -1009,8 +1015,10 @@ public function restoreService(RestoreServiceRequest $request, array $callOption * * @experimental */ - public function updateMetadataImport(UpdateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { + public function updateMetadataImport( + UpdateMetadataImportRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateMetadataImport', $request, $callOptions)->wait(); } @@ -1188,8 +1196,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @experimental */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php index 43e0bdcedd27..41da4395cb2e 100644 --- a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php +++ b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php @@ -117,9 +117,7 @@ final class DataprocMetastoreFederationClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -136,7 +134,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', ], ], ]; @@ -645,8 +644,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @experimental */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/Datastore/src/V1/Client/DatastoreClient.php b/Datastore/src/V1/Client/DatastoreClient.php index 35db4f7e7562..a5730fe012e2 100644 --- a/Datastore/src/V1/Client/DatastoreClient.php +++ b/Datastore/src/V1/Client/DatastoreClient.php @@ -130,19 +130,22 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'datastore.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * *Important*: If you accept a credential configuration (credential - * JSON/File/Stream) from an external source for authentication to Google Cloud - * Platform, you must validate it before providing it to any Google API or library. - * Providing an unvalidated credential configuration to Google APIs can compromise - * the security of your systems and data. For more information {@see + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Datastore\V1\DatastoreClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DatastoreClient(['credentials' => $creds]); + * ``` + * {@see * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} * @type array $credentialsConfig * Options used to configure credentials, including auth token caching, for the diff --git a/Datastream/src/V1/Client/DatastreamClient.php b/Datastream/src/V1/Client/DatastreamClient.php index ffd789489964..89b8590d1078 100644 --- a/Datastream/src/V1/Client/DatastreamClient.php +++ b/Datastream/src/V1/Client/DatastreamClient.php @@ -142,9 +142,7 @@ final class DatastreamClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -317,8 +315,12 @@ public static function privateConnectionName(string $project, string $location, * * @return string The formatted route resource. */ - public static function routeName(string $project, string $location, string $privateConnection, string $route): string - { + public static function routeName( + string $project, + string $location, + string $privateConnection, + string $route + ): string { return self::getPathTemplate('route')->render([ 'project' => $project, 'location' => $location, @@ -505,8 +507,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createConnectionProfile(CreateConnectionProfileRequest $request, array $callOptions = []): OperationResponse - { + public function createConnectionProfile( + CreateConnectionProfileRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateConnectionProfile', $request, $callOptions)->wait(); } @@ -531,8 +535,10 @@ public function createConnectionProfile(CreateConnectionProfileRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function createPrivateConnection(CreatePrivateConnectionRequest $request, array $callOptions = []): OperationResponse - { + public function createPrivateConnection( + CreatePrivateConnectionRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreatePrivateConnection', $request, $callOptions)->wait(); } @@ -610,8 +616,10 @@ public function createStream(CreateStreamRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function deleteConnectionProfile(DeleteConnectionProfileRequest $request, array $callOptions = []): OperationResponse - { + public function deleteConnectionProfile( + DeleteConnectionProfileRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteConnectionProfile', $request, $callOptions)->wait(); } @@ -636,8 +644,10 @@ public function deleteConnectionProfile(DeleteConnectionProfileRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function deletePrivateConnection(DeletePrivateConnectionRequest $request, array $callOptions = []): OperationResponse - { + public function deletePrivateConnection( + DeletePrivateConnectionRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeletePrivateConnection', $request, $callOptions)->wait(); } @@ -717,8 +727,10 @@ public function deleteStream(DeleteStreamRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function discoverConnectionProfile(DiscoverConnectionProfileRequest $request, array $callOptions = []): DiscoverConnectionProfileResponse - { + public function discoverConnectionProfile( + DiscoverConnectionProfileRequest $request, + array $callOptions = [] + ): DiscoverConnectionProfileResponse { return $this->startApiCall('DiscoverConnectionProfile', $request, $callOptions)->wait(); } @@ -770,8 +782,10 @@ public function fetchStaticIps(FetchStaticIpsRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function getConnectionProfile(GetConnectionProfileRequest $request, array $callOptions = []): ConnectionProfile - { + public function getConnectionProfile( + GetConnectionProfileRequest $request, + array $callOptions = [] + ): ConnectionProfile { return $this->startApiCall('GetConnectionProfile', $request, $callOptions)->wait(); } @@ -796,8 +810,10 @@ public function getConnectionProfile(GetConnectionProfileRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function getPrivateConnection(GetPrivateConnectionRequest $request, array $callOptions = []): PrivateConnection - { + public function getPrivateConnection( + GetPrivateConnectionRequest $request, + array $callOptions = [] + ): PrivateConnection { return $this->startApiCall('GetPrivateConnection', $request, $callOptions)->wait(); } @@ -901,8 +917,10 @@ public function getStreamObject(GetStreamObjectRequest $request, array $callOpti * * @throws ApiException Thrown if the API call fails. */ - public function listConnectionProfiles(ListConnectionProfilesRequest $request, array $callOptions = []): PagedListResponse - { + public function listConnectionProfiles( + ListConnectionProfilesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListConnectionProfiles', $request, $callOptions); } @@ -928,8 +946,10 @@ public function listConnectionProfiles(ListConnectionProfilesRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function listPrivateConnections(ListPrivateConnectionsRequest $request, array $callOptions = []): PagedListResponse - { + public function listPrivateConnections( + ListPrivateConnectionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListPrivateConnections', $request, $callOptions); } @@ -1086,8 +1106,10 @@ public function runStream(RunStreamRequest $request, array $callOptions = []): O * * @throws ApiException Thrown if the API call fails. */ - public function startBackfillJob(StartBackfillJobRequest $request, array $callOptions = []): StartBackfillJobResponse - { + public function startBackfillJob( + StartBackfillJobRequest $request, + array $callOptions = [] + ): StartBackfillJobResponse { return $this->startApiCall('StartBackfillJob', $request, $callOptions)->wait(); } @@ -1138,8 +1160,10 @@ public function stopBackfillJob(StopBackfillJobRequest $request, array $callOpti * * @throws ApiException Thrown if the API call fails. */ - public function updateConnectionProfile(UpdateConnectionProfileRequest $request, array $callOptions = []): OperationResponse - { + public function updateConnectionProfile( + UpdateConnectionProfileRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateConnectionProfile', $request, $callOptions)->wait(); } diff --git a/Deploy/src/V1/Client/CloudDeployClient.php b/Deploy/src/V1/Client/CloudDeployClient.php index 67392abb398e..8d5338b7c838 100644 --- a/Deploy/src/V1/Client/CloudDeployClient.php +++ b/Deploy/src/V1/Client/CloudDeployClient.php @@ -200,9 +200,7 @@ final class CloudDeployClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -284,8 +282,12 @@ private function createOperationsClient(array $options) * * @return string The formatted automation resource. */ - public static function automationName(string $project, string $location, string $deliveryPipeline, string $automation): string - { + public static function automationName( + string $project, + string $location, + string $deliveryPipeline, + string $automation + ): string { return self::getPathTemplate('automation')->render([ 'project' => $project, 'location' => $location, @@ -305,8 +307,12 @@ public static function automationName(string $project, string $location, string * * @return string The formatted automation_run resource. */ - public static function automationRunName(string $project, string $location, string $deliveryPipeline, string $automationRun): string - { + public static function automationRunName( + string $project, + string $location, + string $deliveryPipeline, + string $automationRun + ): string { return self::getPathTemplate('automationRun')->render([ 'project' => $project, 'location' => $location, @@ -459,8 +465,14 @@ public static function jobName(string $project, string $location, string $job): * * @return string The formatted job_run resource. */ - public static function jobRunName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout, string $jobRun): string - { + public static function jobRunName( + string $project, + string $location, + string $deliveryPipeline, + string $release, + string $rollout, + string $jobRun + ): string { return self::getPathTemplate('jobRun')->render([ 'project' => $project, 'location' => $location, @@ -518,8 +530,12 @@ public static function membershipName(string $project, string $location, string * * @return string The formatted release resource. */ - public static function releaseName(string $project, string $location, string $deliveryPipeline, string $release): string - { + public static function releaseName( + string $project, + string $location, + string $deliveryPipeline, + string $release + ): string { return self::getPathTemplate('release')->render([ 'project' => $project, 'location' => $location, @@ -539,8 +555,12 @@ public static function releaseName(string $project, string $location, string $de * * @return string The formatted repository resource. */ - public static function repositoryName(string $project, string $location, string $connection, string $repository): string - { + public static function repositoryName( + string $project, + string $location, + string $connection, + string $repository + ): string { return self::getPathTemplate('repository')->render([ 'project' => $project, 'location' => $location, @@ -561,8 +581,13 @@ public static function repositoryName(string $project, string $location, string * * @return string The formatted rollout resource. */ - public static function rolloutName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout): string - { + public static function rolloutName( + string $project, + string $location, + string $deliveryPipeline, + string $release, + string $rollout + ): string { return self::getPathTemplate('rollout')->render([ 'project' => $project, 'location' => $location, @@ -858,8 +883,10 @@ public function approveRollout(ApproveRolloutRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function cancelAutomationRun(CancelAutomationRunRequest $request, array $callOptions = []): CancelAutomationRunResponse - { + public function cancelAutomationRun( + CancelAutomationRunRequest $request, + array $callOptions = [] + ): CancelAutomationRunResponse { return $this->startApiCall('CancelAutomationRun', $request, $callOptions)->wait(); } @@ -936,8 +963,10 @@ public function createAutomation(CreateAutomationRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function createCustomTargetType(CreateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse - { + public function createCustomTargetType( + CreateCustomTargetTypeRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateCustomTargetType', $request, $callOptions)->wait(); } @@ -962,8 +991,10 @@ public function createCustomTargetType(CreateCustomTargetTypeRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function createDeliveryPipeline(CreateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse - { + public function createDeliveryPipeline( + CreateDeliveryPipelineRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateDeliveryPipeline', $request, $callOptions)->wait(); } @@ -1118,8 +1149,10 @@ public function deleteAutomation(DeleteAutomationRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function deleteCustomTargetType(DeleteCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse - { + public function deleteCustomTargetType( + DeleteCustomTargetTypeRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteCustomTargetType', $request, $callOptions)->wait(); } @@ -1144,8 +1177,10 @@ public function deleteCustomTargetType(DeleteCustomTargetTypeRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function deleteDeliveryPipeline(DeleteDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse - { + public function deleteDeliveryPipeline( + DeleteDeliveryPipelineRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteDeliveryPipeline', $request, $callOptions)->wait(); } @@ -1560,8 +1595,10 @@ public function listAutomations(ListAutomationsRequest $request, array $callOpti * * @throws ApiException Thrown if the API call fails. */ - public function listCustomTargetTypes(ListCustomTargetTypesRequest $request, array $callOptions = []): PagedListResponse - { + public function listCustomTargetTypes( + ListCustomTargetTypesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListCustomTargetTypes', $request, $callOptions); } @@ -1586,8 +1623,10 @@ public function listCustomTargetTypes(ListCustomTargetTypesRequest $request, arr * * @throws ApiException Thrown if the API call fails. */ - public function listDeliveryPipelines(ListDeliveryPipelinesRequest $request, array $callOptions = []): PagedListResponse - { + public function listDeliveryPipelines( + ListDeliveryPipelinesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListDeliveryPipelines', $request, $callOptions); } @@ -1846,8 +1885,10 @@ public function updateAutomation(UpdateAutomationRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function updateCustomTargetType(UpdateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse - { + public function updateCustomTargetType( + UpdateCustomTargetTypeRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateCustomTargetType', $request, $callOptions)->wait(); } @@ -1872,8 +1913,10 @@ public function updateCustomTargetType(UpdateCustomTargetTypeRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function updateDeliveryPipeline(UpdateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse - { + public function updateDeliveryPipeline( + UpdateDeliveryPipelineRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateDeliveryPipeline', $request, $callOptions)->wait(); } @@ -2065,8 +2108,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); } } diff --git a/DeveloperConnect/src/V1/Client/DeveloperConnectClient.php b/DeveloperConnect/src/V1/Client/DeveloperConnectClient.php index 56aa7d94c2ad..92191329aff3 100644 --- a/DeveloperConnect/src/V1/Client/DeveloperConnectClient.php +++ b/DeveloperConnect/src/V1/Client/DeveloperConnectClient.php @@ -138,9 +138,7 @@ final class DeveloperConnectClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -281,8 +279,12 @@ public static function cryptoKeyName(string $project, string $location, string $ * * @return string The formatted git_repository_link resource. */ - public static function gitRepositoryLinkName(string $project, string $location, string $connection, string $gitRepositoryLink): string - { + public static function gitRepositoryLinkName( + string $project, + string $location, + string $connection, + string $gitRepositoryLink + ): string { return self::getPathTemplate('gitRepositoryLink')->render([ 'project' => $project, 'location' => $location, @@ -508,8 +510,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createAccountConnector(CreateAccountConnectorRequest $request, array $callOptions = []): OperationResponse - { + public function createAccountConnector( + CreateAccountConnectorRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateAccountConnector', $request, $callOptions)->wait(); } @@ -565,8 +569,10 @@ public function createConnection(CreateConnectionRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function createGitRepositoryLink(CreateGitRepositoryLinkRequest $request, array $callOptions = []): OperationResponse - { + public function createGitRepositoryLink( + CreateGitRepositoryLinkRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateGitRepositoryLink', $request, $callOptions)->wait(); } @@ -592,8 +598,10 @@ public function createGitRepositoryLink(CreateGitRepositoryLinkRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function deleteAccountConnector(DeleteAccountConnectorRequest $request, array $callOptions = []): OperationResponse - { + public function deleteAccountConnector( + DeleteAccountConnectorRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteAccountConnector', $request, $callOptions)->wait(); } @@ -645,8 +653,10 @@ public function deleteConnection(DeleteConnectionRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function deleteGitRepositoryLink(DeleteGitRepositoryLinkRequest $request, array $callOptions = []): OperationResponse - { + public function deleteGitRepositoryLink( + DeleteGitRepositoryLinkRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteGitRepositoryLink', $request, $callOptions)->wait(); } @@ -723,8 +733,10 @@ public function deleteUser(DeleteUserRequest $request, array $callOptions = []): * * @throws ApiException Thrown if the API call fails. */ - public function fetchAccessToken(FetchAccessTokenRequest $request, array $callOptions = []): FetchAccessTokenResponse - { + public function fetchAccessToken( + FetchAccessTokenRequest $request, + array $callOptions = [] + ): FetchAccessTokenResponse { return $this->startApiCall('FetchAccessToken', $request, $callOptions)->wait(); } @@ -753,8 +765,10 @@ public function fetchAccessToken(FetchAccessTokenRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function fetchGitHubInstallations(FetchGitHubInstallationsRequest $request, array $callOptions = []): FetchGitHubInstallationsResponse - { + public function fetchGitHubInstallations( + FetchGitHubInstallationsRequest $request, + array $callOptions = [] + ): FetchGitHubInstallationsResponse { return $this->startApiCall('FetchGitHubInstallations', $request, $callOptions)->wait(); } @@ -807,8 +821,10 @@ public function fetchGitRefs(FetchGitRefsRequest $request, array $callOptions = * * @throws ApiException Thrown if the API call fails. */ - public function fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest $request, array $callOptions = []): PagedListResponse - { + public function fetchLinkableGitRepositories( + FetchLinkableGitRepositoriesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('FetchLinkableGitRepositories', $request, $callOptions); } @@ -859,8 +875,10 @@ public function fetchReadToken(FetchReadTokenRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function fetchReadWriteToken(FetchReadWriteTokenRequest $request, array $callOptions = []): FetchReadWriteTokenResponse - { + public function fetchReadWriteToken( + FetchReadWriteTokenRequest $request, + array $callOptions = [] + ): FetchReadWriteTokenResponse { return $this->startApiCall('FetchReadWriteToken', $request, $callOptions)->wait(); } @@ -964,8 +982,10 @@ public function getConnection(GetConnectionRequest $request, array $callOptions * * @throws ApiException Thrown if the API call fails. */ - public function getGitRepositoryLink(GetGitRepositoryLinkRequest $request, array $callOptions = []): GitRepositoryLink - { + public function getGitRepositoryLink( + GetGitRepositoryLinkRequest $request, + array $callOptions = [] + ): GitRepositoryLink { return $this->startApiCall('GetGitRepositoryLink', $request, $callOptions)->wait(); } @@ -991,8 +1011,10 @@ public function getGitRepositoryLink(GetGitRepositoryLinkRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function listAccountConnectors(ListAccountConnectorsRequest $request, array $callOptions = []): PagedListResponse - { + public function listAccountConnectors( + ListAccountConnectorsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListAccountConnectors', $request, $callOptions); } @@ -1044,8 +1066,10 @@ public function listConnections(ListConnectionsRequest $request, array $callOpti * * @throws ApiException Thrown if the API call fails. */ - public function listGitRepositoryLinks(ListGitRepositoryLinksRequest $request, array $callOptions = []): PagedListResponse - { + public function listGitRepositoryLinks( + ListGitRepositoryLinksRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListGitRepositoryLinks', $request, $callOptions); } @@ -1097,8 +1121,10 @@ public function listUsers(ListUsersRequest $request, array $callOptions = []): P * * @throws ApiException Thrown if the API call fails. */ - public function updateAccountConnector(UpdateAccountConnectorRequest $request, array $callOptions = []): OperationResponse - { + public function updateAccountConnector( + UpdateAccountConnectorRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateAccountConnector', $request, $callOptions)->wait(); } diff --git a/DeveloperConnect/src/V1/Client/InsightsConfigServiceClient.php b/DeveloperConnect/src/V1/Client/InsightsConfigServiceClient.php index fd0270cda642..9ed193f82ce6 100644 --- a/DeveloperConnect/src/V1/Client/InsightsConfigServiceClient.php +++ b/DeveloperConnect/src/V1/Client/InsightsConfigServiceClient.php @@ -101,9 +101,7 @@ final class InsightsConfigServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -343,8 +341,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createInsightsConfig(CreateInsightsConfigRequest $request, array $callOptions = []): OperationResponse - { + public function createInsightsConfig( + CreateInsightsConfigRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateInsightsConfig', $request, $callOptions)->wait(); } @@ -370,8 +370,10 @@ public function createInsightsConfig(CreateInsightsConfigRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function deleteInsightsConfig(DeleteInsightsConfigRequest $request, array $callOptions = []): OperationResponse - { + public function deleteInsightsConfig( + DeleteInsightsConfigRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteInsightsConfig', $request, $callOptions)->wait(); } @@ -451,8 +453,10 @@ public function listInsightsConfigs(ListInsightsConfigsRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function updateInsightsConfig(UpdateInsightsConfigRequest $request, array $callOptions = []): OperationResponse - { + public function updateInsightsConfig( + UpdateInsightsConfigRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateInsightsConfig', $request, $callOptions)->wait(); } diff --git a/DeviceStreaming/src/V1/Client/DirectAccessServiceClient.php b/DeviceStreaming/src/V1/Client/DirectAccessServiceClient.php index ee72b106f092..93f2552b667a 100644 --- a/DeviceStreaming/src/V1/Client/DirectAccessServiceClient.php +++ b/DeviceStreaming/src/V1/Client/DirectAccessServiceClient.php @@ -95,9 +95,7 @@ final class DirectAccessServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private static function getClientDefaults() { diff --git a/DialogflowCx/src/V3/Client/AgentsClient.php b/DialogflowCx/src/V3/Client/AgentsClient.php index e2c99d675eaa..ad294c99c9e1 100644 --- a/DialogflowCx/src/V3/Client/AgentsClient.php +++ b/DialogflowCx/src/V3/Client/AgentsClient.php @@ -251,8 +251,12 @@ public static function agentValidationResultName(string $project, string $locati * * @return string The formatted environment resource. */ - public static function environmentName(string $project, string $location, string $agent, string $environment): string - { + public static function environmentName( + string $project, + string $location, + string $agent, + string $environment + ): string { return self::getPathTemplate('environment')->render([ 'project' => $project, 'location' => $location, @@ -591,8 +595,10 @@ public function getAgent(GetAgentRequest $request, array $callOptions = []): Age * * @throws ApiException Thrown if the API call fails. */ - public function getAgentValidationResult(GetAgentValidationResultRequest $request, array $callOptions = []): AgentValidationResult - { + public function getAgentValidationResult( + GetAgentValidationResultRequest $request, + array $callOptions = [] + ): AgentValidationResult { return $this->startApiCall('GetAgentValidationResult', $request, $callOptions)->wait(); } @@ -617,8 +623,10 @@ public function getAgentValidationResult(GetAgentValidationResultRequest $reques * * @throws ApiException Thrown if the API call fails. */ - public function getGenerativeSettings(GetGenerativeSettingsRequest $request, array $callOptions = []): GenerativeSettings - { + public function getGenerativeSettings( + GetGenerativeSettingsRequest $request, + array $callOptions = [] + ): GenerativeSettings { return $this->startApiCall('GetGenerativeSettings', $request, $callOptions)->wait(); } @@ -741,8 +749,10 @@ public function updateAgent(UpdateAgentRequest $request, array $callOptions = [] * * @throws ApiException Thrown if the API call fails. */ - public function updateGenerativeSettings(UpdateGenerativeSettingsRequest $request, array $callOptions = []): GenerativeSettings - { + public function updateGenerativeSettings( + UpdateGenerativeSettingsRequest $request, + array $callOptions = [] + ): GenerativeSettings { return $this->startApiCall('UpdateGenerativeSettings', $request, $callOptions)->wait(); } diff --git a/DialogflowCx/src/V3/Client/DeploymentsClient.php b/DialogflowCx/src/V3/Client/DeploymentsClient.php index f484528a4aa4..95625d775319 100644 --- a/DialogflowCx/src/V3/Client/DeploymentsClient.php +++ b/DialogflowCx/src/V3/Client/DeploymentsClient.php @@ -120,8 +120,13 @@ private static function getClientDefaults() * * @return string The formatted deployment resource. */ - public static function deploymentName(string $project, string $location, string $agent, string $environment, string $deployment): string - { + public static function deploymentName( + string $project, + string $location, + string $agent, + string $environment, + string $deployment + ): string { return self::getPathTemplate('deployment')->render([ 'project' => $project, 'location' => $location, @@ -142,8 +147,12 @@ public static function deploymentName(string $project, string $location, string * * @return string The formatted environment resource. */ - public static function environmentName(string $project, string $location, string $agent, string $environment): string - { + public static function environmentName( + string $project, + string $location, + string $agent, + string $environment + ): string { return self::getPathTemplate('environment')->render([ 'project' => $project, 'location' => $location, diff --git a/DialogflowCx/src/V3/Client/EnvironmentsClient.php b/DialogflowCx/src/V3/Client/EnvironmentsClient.php index b4a50fae60e2..ffcbb8b49fbe 100644 --- a/DialogflowCx/src/V3/Client/EnvironmentsClient.php +++ b/DialogflowCx/src/V3/Client/EnvironmentsClient.php @@ -211,8 +211,12 @@ public static function agentName(string $project, string $location, string $agen * * @return string The formatted environment resource. */ - public static function environmentName(string $project, string $location, string $agent, string $environment): string - { + public static function environmentName( + string $project, + string $location, + string $agent, + string $environment + ): string { return self::getPathTemplate('environment')->render([ 'project' => $project, 'location' => $location, @@ -275,8 +279,13 @@ public static function testCaseName(string $project, string $location, string $a * * @return string The formatted version resource. */ - public static function versionName(string $project, string $location, string $agent, string $flow, string $version): string - { + public static function versionName( + string $project, + string $location, + string $agent, + string $flow, + string $version + ): string { return self::getPathTemplate('version')->render([ 'project' => $project, 'location' => $location, @@ -567,8 +576,10 @@ public function getEnvironment(GetEnvironmentRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function listContinuousTestResults(ListContinuousTestResultsRequest $request, array $callOptions = []): PagedListResponse - { + public function listContinuousTestResults( + ListContinuousTestResultsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListContinuousTestResults', $request, $callOptions); } @@ -622,8 +633,10 @@ public function listEnvironments(ListEnvironmentsRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function lookupEnvironmentHistory(LookupEnvironmentHistoryRequest $request, array $callOptions = []): PagedListResponse - { + public function lookupEnvironmentHistory( + LookupEnvironmentHistoryRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('LookupEnvironmentHistory', $request, $callOptions); } diff --git a/DialogflowCx/src/V3/Client/ExperimentsClient.php b/DialogflowCx/src/V3/Client/ExperimentsClient.php index 6d8e8caf8571..94444653ef1c 100644 --- a/DialogflowCx/src/V3/Client/ExperimentsClient.php +++ b/DialogflowCx/src/V3/Client/ExperimentsClient.php @@ -129,8 +129,12 @@ private static function getClientDefaults() * * @return string The formatted environment resource. */ - public static function environmentName(string $project, string $location, string $agent, string $environment): string - { + public static function environmentName( + string $project, + string $location, + string $agent, + string $environment + ): string { return self::getPathTemplate('environment')->render([ 'project' => $project, 'location' => $location, @@ -151,8 +155,13 @@ public static function environmentName(string $project, string $location, string * * @return string The formatted experiment resource. */ - public static function experimentName(string $project, string $location, string $agent, string $environment, string $experiment): string - { + public static function experimentName( + string $project, + string $location, + string $agent, + string $environment, + string $experiment + ): string { return self::getPathTemplate('experiment')->render([ 'project' => $project, 'location' => $location, @@ -174,8 +183,13 @@ public static function experimentName(string $project, string $location, string * * @return string The formatted version resource. */ - public static function versionName(string $project, string $location, string $agent, string $flow, string $version): string - { + public static function versionName( + string $project, + string $location, + string $agent, + string $flow, + string $version + ): string { return self::getPathTemplate('version')->render([ 'project' => $project, 'location' => $location, diff --git a/DialogflowCx/src/V3/Client/FlowsClient.php b/DialogflowCx/src/V3/Client/FlowsClient.php index 8b01c9b46265..6cc86c08b614 100644 --- a/DialogflowCx/src/V3/Client/FlowsClient.php +++ b/DialogflowCx/src/V3/Client/FlowsClient.php @@ -232,8 +232,12 @@ public static function flowName(string $project, string $location, string $agent * * @return string The formatted flow_validation_result resource. */ - public static function flowValidationResultName(string $project, string $location, string $agent, string $flow): string - { + public static function flowValidationResultName( + string $project, + string $location, + string $agent, + string $flow + ): string { return self::getPathTemplate('flowValidationResult')->render([ 'project' => $project, 'location' => $location, @@ -296,8 +300,13 @@ public static function intentName(string $project, string $location, string $age * * @return string The formatted page resource. */ - public static function pageName(string $project, string $location, string $agent, string $flow, string $page): string - { + public static function pageName( + string $project, + string $location, + string $agent, + string $flow, + string $page + ): string { return self::getPathTemplate('page')->render([ 'project' => $project, 'location' => $location, @@ -319,8 +328,13 @@ public static function pageName(string $project, string $location, string $agent * * @return string The formatted project_location_agent_flow_transition_route_group resource. */ - public static function projectLocationAgentFlowTransitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function projectLocationAgentFlowTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentFlowTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -341,8 +355,12 @@ public static function projectLocationAgentFlowTransitionRouteGroupName(string $ * * @return string The formatted project_location_agent_transition_route_group resource. */ - public static function projectLocationAgentTransitionRouteGroupName(string $project, string $location, string $agent, string $transitionRouteGroup): string - { + public static function projectLocationAgentTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -363,8 +381,13 @@ public static function projectLocationAgentTransitionRouteGroupName(string $proj * * @return string The formatted transition_route_group resource. */ - public static function transitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function transitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('transitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -654,8 +677,10 @@ public function getFlow(GetFlowRequest $request, array $callOptions = []): Flow * * @throws ApiException Thrown if the API call fails. */ - public function getFlowValidationResult(GetFlowValidationResultRequest $request, array $callOptions = []): FlowValidationResult - { + public function getFlowValidationResult( + GetFlowValidationResultRequest $request, + array $callOptions = [] + ): FlowValidationResult { return $this->startApiCall('GetFlowValidationResult', $request, $callOptions)->wait(); } diff --git a/DialogflowCx/src/V3/Client/PagesClient.php b/DialogflowCx/src/V3/Client/PagesClient.php index bdfc30a2a508..914e2fd25fb6 100644 --- a/DialogflowCx/src/V3/Client/PagesClient.php +++ b/DialogflowCx/src/V3/Client/PagesClient.php @@ -210,8 +210,13 @@ public static function intentName(string $project, string $location, string $age * * @return string The formatted page resource. */ - public static function pageName(string $project, string $location, string $agent, string $flow, string $page): string - { + public static function pageName( + string $project, + string $location, + string $agent, + string $flow, + string $page + ): string { return self::getPathTemplate('page')->render([ 'project' => $project, 'location' => $location, @@ -233,8 +238,13 @@ public static function pageName(string $project, string $location, string $agent * * @return string The formatted project_location_agent_flow_transition_route_group resource. */ - public static function projectLocationAgentFlowTransitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function projectLocationAgentFlowTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentFlowTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -255,8 +265,12 @@ public static function projectLocationAgentFlowTransitionRouteGroupName(string $ * * @return string The formatted project_location_agent_transition_route_group resource. */ - public static function projectLocationAgentTransitionRouteGroupName(string $project, string $location, string $agent, string $transitionRouteGroup): string - { + public static function projectLocationAgentTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -277,8 +291,13 @@ public static function projectLocationAgentTransitionRouteGroupName(string $proj * * @return string The formatted transition_route_group resource. */ - public static function transitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function transitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('transitionRouteGroup')->render([ 'project' => $project, 'location' => $location, diff --git a/DialogflowCx/src/V3/Client/SecuritySettingsServiceClient.php b/DialogflowCx/src/V3/Client/SecuritySettingsServiceClient.php index 0fcc2a14d7c8..14fceb789ce9 100644 --- a/DialogflowCx/src/V3/Client/SecuritySettingsServiceClient.php +++ b/DialogflowCx/src/V3/Client/SecuritySettingsServiceClient.php @@ -108,7 +108,8 @@ private static function getClientDefaults() ], 'transportConfig' => [ 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/security_settings_service_rest_client_config.php', + 'restClientConfigPath' => + __DIR__ . '/../resources/security_settings_service_rest_client_config.php', ], ], ]; @@ -124,8 +125,11 @@ private static function getClientDefaults() * * @return string The formatted deidentify_template resource. */ - public static function deidentifyTemplateName(string $organization, string $location, string $deidentifyTemplate): string - { + public static function deidentifyTemplateName( + string $organization, + string $location, + string $deidentifyTemplate + ): string { return self::getPathTemplate('deidentifyTemplate')->render([ 'organization' => $organization, 'location' => $location, @@ -179,8 +183,11 @@ public static function locationName(string $project, string $location): string * * @return string The formatted organization_location_deidentify_template resource. */ - public static function organizationLocationDeidentifyTemplateName(string $organization, string $location, string $deidentifyTemplate): string - { + public static function organizationLocationDeidentifyTemplateName( + string $organization, + string $location, + string $deidentifyTemplate + ): string { return self::getPathTemplate('organizationLocationDeidentifyTemplate')->render([ 'organization' => $organization, 'location' => $location, @@ -198,8 +205,11 @@ public static function organizationLocationDeidentifyTemplateName(string $organi * * @return string The formatted organization_location_inspect_template resource. */ - public static function organizationLocationInspectTemplateName(string $organization, string $location, string $inspectTemplate): string - { + public static function organizationLocationInspectTemplateName( + string $organization, + string $location, + string $inspectTemplate + ): string { return self::getPathTemplate('organizationLocationInspectTemplate')->render([ 'organization' => $organization, 'location' => $location, @@ -217,8 +227,11 @@ public static function organizationLocationInspectTemplateName(string $organizat * * @return string The formatted project_location_deidentify_template resource. */ - public static function projectLocationDeidentifyTemplateName(string $project, string $location, string $deidentifyTemplate): string - { + public static function projectLocationDeidentifyTemplateName( + string $project, + string $location, + string $deidentifyTemplate + ): string { return self::getPathTemplate('projectLocationDeidentifyTemplate')->render([ 'project' => $project, 'location' => $location, @@ -236,8 +249,11 @@ public static function projectLocationDeidentifyTemplateName(string $project, st * * @return string The formatted project_location_inspect_template resource. */ - public static function projectLocationInspectTemplateName(string $project, string $location, string $inspectTemplate): string - { + public static function projectLocationInspectTemplateName( + string $project, + string $location, + string $inspectTemplate + ): string { return self::getPathTemplate('projectLocationInspectTemplate')->render([ 'project' => $project, 'location' => $location, @@ -402,8 +418,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createSecuritySettings(CreateSecuritySettingsRequest $request, array $callOptions = []): SecuritySettings - { + public function createSecuritySettings( + CreateSecuritySettingsRequest $request, + array $callOptions = [] + ): SecuritySettings { return $this->startApiCall('CreateSecuritySettings', $request, $callOptions)->wait(); } @@ -484,8 +502,10 @@ public function getSecuritySettings(GetSecuritySettingsRequest $request, array $ * * @throws ApiException Thrown if the API call fails. */ - public function listSecuritySettings(ListSecuritySettingsRequest $request, array $callOptions = []): PagedListResponse - { + public function listSecuritySettings( + ListSecuritySettingsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListSecuritySettings', $request, $callOptions); } @@ -512,8 +532,10 @@ public function listSecuritySettings(ListSecuritySettingsRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function updateSecuritySettings(UpdateSecuritySettingsRequest $request, array $callOptions = []): SecuritySettings - { + public function updateSecuritySettings( + UpdateSecuritySettingsRequest $request, + array $callOptions = [] + ): SecuritySettings { return $this->startApiCall('UpdateSecuritySettings', $request, $callOptions)->wait(); } diff --git a/DialogflowCx/src/V3/Client/SessionEntityTypesClient.php b/DialogflowCx/src/V3/Client/SessionEntityTypesClient.php index 279c630002a1..6a09d1116928 100644 --- a/DialogflowCx/src/V3/Client/SessionEntityTypesClient.php +++ b/DialogflowCx/src/V3/Client/SessionEntityTypesClient.php @@ -127,8 +127,13 @@ private static function getClientDefaults() * * @return string The formatted project_location_agent_environment_session resource. */ - public static function projectLocationAgentEnvironmentSessionName(string $project, string $location, string $agent, string $environment, string $session): string - { + public static function projectLocationAgentEnvironmentSessionName( + string $project, + string $location, + string $agent, + string $environment, + string $session + ): string { return self::getPathTemplate('projectLocationAgentEnvironmentSession')->render([ 'project' => $project, 'location' => $location, @@ -151,8 +156,14 @@ public static function projectLocationAgentEnvironmentSessionName(string $projec * * @return string The formatted project_location_agent_environment_session_entity_type resource. */ - public static function projectLocationAgentEnvironmentSessionEntityTypeName(string $project, string $location, string $agent, string $environment, string $session, string $entityType): string - { + public static function projectLocationAgentEnvironmentSessionEntityTypeName( + string $project, + string $location, + string $agent, + string $environment, + string $session, + string $entityType + ): string { return self::getPathTemplate('projectLocationAgentEnvironmentSessionEntityType')->render([ 'project' => $project, 'location' => $location, @@ -174,8 +185,12 @@ public static function projectLocationAgentEnvironmentSessionEntityTypeName(stri * * @return string The formatted project_location_agent_session resource. */ - public static function projectLocationAgentSessionName(string $project, string $location, string $agent, string $session): string - { + public static function projectLocationAgentSessionName( + string $project, + string $location, + string $agent, + string $session + ): string { return self::getPathTemplate('projectLocationAgentSession')->render([ 'project' => $project, 'location' => $location, @@ -196,8 +211,13 @@ public static function projectLocationAgentSessionName(string $project, string $ * * @return string The formatted project_location_agent_session_entity_type resource. */ - public static function projectLocationAgentSessionEntityTypeName(string $project, string $location, string $agent, string $session, string $entityType): string - { + public static function projectLocationAgentSessionEntityTypeName( + string $project, + string $location, + string $agent, + string $session, + string $entityType + ): string { return self::getPathTemplate('projectLocationAgentSessionEntityType')->render([ 'project' => $project, 'location' => $location, @@ -240,8 +260,13 @@ public static function sessionName(string $project, string $location, string $ag * * @return string The formatted session_entity_type resource. */ - public static function sessionEntityTypeName(string $project, string $location, string $agent, string $session, string $entityType): string - { + public static function sessionEntityTypeName( + string $project, + string $location, + string $agent, + string $session, + string $entityType + ): string { return self::getPathTemplate('sessionEntityType')->render([ 'project' => $project, 'location' => $location, @@ -387,8 +412,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createSessionEntityType(CreateSessionEntityTypeRequest $request, array $callOptions = []): SessionEntityType - { + public function createSessionEntityType( + CreateSessionEntityTypeRequest $request, + array $callOptions = [] + ): SessionEntityType { return $this->startApiCall('CreateSessionEntityType', $request, $callOptions)->wait(); } @@ -439,8 +466,10 @@ public function deleteSessionEntityType(DeleteSessionEntityTypeRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function getSessionEntityType(GetSessionEntityTypeRequest $request, array $callOptions = []): SessionEntityType - { + public function getSessionEntityType( + GetSessionEntityTypeRequest $request, + array $callOptions = [] + ): SessionEntityType { return $this->startApiCall('GetSessionEntityType', $request, $callOptions)->wait(); } @@ -466,8 +495,10 @@ public function getSessionEntityType(GetSessionEntityTypeRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function listSessionEntityTypes(ListSessionEntityTypesRequest $request, array $callOptions = []): PagedListResponse - { + public function listSessionEntityTypes( + ListSessionEntityTypesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListSessionEntityTypes', $request, $callOptions); } @@ -493,8 +524,10 @@ public function listSessionEntityTypes(ListSessionEntityTypesRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function updateSessionEntityType(UpdateSessionEntityTypeRequest $request, array $callOptions = []): SessionEntityType - { + public function updateSessionEntityType( + UpdateSessionEntityTypeRequest $request, + array $callOptions = [] + ): SessionEntityType { return $this->startApiCall('UpdateSessionEntityType', $request, $callOptions)->wait(); } diff --git a/DialogflowCx/src/V3/Client/SessionsClient.php b/DialogflowCx/src/V3/Client/SessionsClient.php index f23d4f10c51c..e555685d32e9 100644 --- a/DialogflowCx/src/V3/Client/SessionsClient.php +++ b/DialogflowCx/src/V3/Client/SessionsClient.php @@ -212,8 +212,13 @@ public static function intentName(string $project, string $location, string $age * * @return string The formatted page resource. */ - public static function pageName(string $project, string $location, string $agent, string $flow, string $page): string - { + public static function pageName( + string $project, + string $location, + string $agent, + string $flow, + string $page + ): string { return self::getPathTemplate('page')->render([ 'project' => $project, 'location' => $location, @@ -235,8 +240,13 @@ public static function pageName(string $project, string $location, string $agent * * @return string The formatted project_location_agent_environment_session resource. */ - public static function projectLocationAgentEnvironmentSessionName(string $project, string $location, string $agent, string $environment, string $session): string - { + public static function projectLocationAgentEnvironmentSessionName( + string $project, + string $location, + string $agent, + string $environment, + string $session + ): string { return self::getPathTemplate('projectLocationAgentEnvironmentSession')->render([ 'project' => $project, 'location' => $location, @@ -259,8 +269,14 @@ public static function projectLocationAgentEnvironmentSessionName(string $projec * * @return string The formatted project_location_agent_environment_session_entity_type resource. */ - public static function projectLocationAgentEnvironmentSessionEntityTypeName(string $project, string $location, string $agent, string $environment, string $session, string $entityType): string - { + public static function projectLocationAgentEnvironmentSessionEntityTypeName( + string $project, + string $location, + string $agent, + string $environment, + string $session, + string $entityType + ): string { return self::getPathTemplate('projectLocationAgentEnvironmentSessionEntityType')->render([ 'project' => $project, 'location' => $location, @@ -282,8 +298,12 @@ public static function projectLocationAgentEnvironmentSessionEntityTypeName(stri * * @return string The formatted project_location_agent_session resource. */ - public static function projectLocationAgentSessionName(string $project, string $location, string $agent, string $session): string - { + public static function projectLocationAgentSessionName( + string $project, + string $location, + string $agent, + string $session + ): string { return self::getPathTemplate('projectLocationAgentSession')->render([ 'project' => $project, 'location' => $location, @@ -304,8 +324,13 @@ public static function projectLocationAgentSessionName(string $project, string $ * * @return string The formatted project_location_agent_session_entity_type resource. */ - public static function projectLocationAgentSessionEntityTypeName(string $project, string $location, string $agent, string $session, string $entityType): string - { + public static function projectLocationAgentSessionEntityTypeName( + string $project, + string $location, + string $agent, + string $session, + string $entityType + ): string { return self::getPathTemplate('projectLocationAgentSessionEntityType')->render([ 'project' => $project, 'location' => $location, @@ -326,8 +351,12 @@ public static function projectLocationAgentSessionEntityTypeName(string $project * * @return string The formatted project_location_collection_data_store resource. */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { + public static function projectLocationCollectionDataStoreName( + string $project, + string $location, + string $collection, + string $dataStore + ): string { return self::getPathTemplate('projectLocationCollectionDataStore')->render([ 'project' => $project, 'location' => $location, @@ -388,8 +417,13 @@ public static function sessionName(string $project, string $location, string $ag * * @return string The formatted session_entity_type resource. */ - public static function sessionEntityTypeName(string $project, string $location, string $agent, string $session, string $entityType): string - { + public static function sessionEntityTypeName( + string $project, + string $location, + string $agent, + string $session, + string $entityType + ): string { return self::getPathTemplate('sessionEntityType')->render([ 'project' => $project, 'location' => $location, @@ -411,8 +445,13 @@ public static function sessionEntityTypeName(string $project, string $location, * * @return string The formatted version resource. */ - public static function versionName(string $project, string $location, string $agent, string $flow, string $version): string - { + public static function versionName( + string $project, + string $location, + string $agent, + string $flow, + string $version + ): string { return self::getPathTemplate('version')->render([ 'project' => $project, 'location' => $location, diff --git a/DialogflowCx/src/V3/Client/TestCasesClient.php b/DialogflowCx/src/V3/Client/TestCasesClient.php index a524fc82aa67..6446b0d01ba8 100644 --- a/DialogflowCx/src/V3/Client/TestCasesClient.php +++ b/DialogflowCx/src/V3/Client/TestCasesClient.php @@ -243,8 +243,12 @@ public static function entityTypeName(string $project, string $location, string * * @return string The formatted environment resource. */ - public static function environmentName(string $project, string $location, string $agent, string $environment): string - { + public static function environmentName( + string $project, + string $location, + string $agent, + string $environment + ): string { return self::getPathTemplate('environment')->render([ 'project' => $project, 'location' => $location, @@ -328,8 +332,13 @@ public static function intentName(string $project, string $location, string $age * * @return string The formatted page resource. */ - public static function pageName(string $project, string $location, string $agent, string $flow, string $page): string - { + public static function pageName( + string $project, + string $location, + string $agent, + string $flow, + string $page + ): string { return self::getPathTemplate('page')->render([ 'project' => $project, 'location' => $location, @@ -351,8 +360,13 @@ public static function pageName(string $project, string $location, string $agent * * @return string The formatted project_location_agent_flow_transition_route_group resource. */ - public static function projectLocationAgentFlowTransitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function projectLocationAgentFlowTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentFlowTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -373,8 +387,12 @@ public static function projectLocationAgentFlowTransitionRouteGroupName(string $ * * @return string The formatted project_location_agent_transition_route_group resource. */ - public static function projectLocationAgentTransitionRouteGroupName(string $project, string $location, string $agent, string $transitionRouteGroup): string - { + public static function projectLocationAgentTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -416,8 +434,13 @@ public static function testCaseName(string $project, string $location, string $a * * @return string The formatted test_case_result resource. */ - public static function testCaseResultName(string $project, string $location, string $agent, string $testCase, string $result): string - { + public static function testCaseResultName( + string $project, + string $location, + string $agent, + string $testCase, + string $result + ): string { return self::getPathTemplate('testCaseResult')->render([ 'project' => $project, 'location' => $location, @@ -439,8 +462,13 @@ public static function testCaseResultName(string $project, string $location, str * * @return string The formatted transition_route_group resource. */ - public static function transitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function transitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('transitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -673,8 +701,10 @@ public function batchRunTestCases(BatchRunTestCasesRequest $request, array $call * * @throws ApiException Thrown if the API call fails. */ - public function calculateCoverage(CalculateCoverageRequest $request, array $callOptions = []): CalculateCoverageResponse - { + public function calculateCoverage( + CalculateCoverageRequest $request, + array $callOptions = [] + ): CalculateCoverageResponse { return $this->startApiCall('CalculateCoverage', $request, $callOptions)->wait(); } diff --git a/DialogflowCx/src/V3/Client/TransitionRouteGroupsClient.php b/DialogflowCx/src/V3/Client/TransitionRouteGroupsClient.php index 5de3cab07c41..4f8b1527bf93 100644 --- a/DialogflowCx/src/V3/Client/TransitionRouteGroupsClient.php +++ b/DialogflowCx/src/V3/Client/TransitionRouteGroupsClient.php @@ -209,8 +209,13 @@ public static function intentName(string $project, string $location, string $age * * @return string The formatted page resource. */ - public static function pageName(string $project, string $location, string $agent, string $flow, string $page): string - { + public static function pageName( + string $project, + string $location, + string $agent, + string $flow, + string $page + ): string { return self::getPathTemplate('page')->render([ 'project' => $project, 'location' => $location, @@ -232,8 +237,13 @@ public static function pageName(string $project, string $location, string $agent * * @return string The formatted project_location_agent_flow_transition_route_group resource. */ - public static function projectLocationAgentFlowTransitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function projectLocationAgentFlowTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentFlowTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -254,8 +264,12 @@ public static function projectLocationAgentFlowTransitionRouteGroupName(string $ * * @return string The formatted project_location_agent_transition_route_group resource. */ - public static function projectLocationAgentTransitionRouteGroupName(string $project, string $location, string $agent, string $transitionRouteGroup): string - { + public static function projectLocationAgentTransitionRouteGroupName( + string $project, + string $location, + string $agent, + string $transitionRouteGroup + ): string { return self::getPathTemplate('projectLocationAgentTransitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -276,8 +290,13 @@ public static function projectLocationAgentTransitionRouteGroupName(string $proj * * @return string The formatted transition_route_group resource. */ - public static function transitionRouteGroupName(string $project, string $location, string $agent, string $flow, string $transitionRouteGroup): string - { + public static function transitionRouteGroupName( + string $project, + string $location, + string $agent, + string $flow, + string $transitionRouteGroup + ): string { return self::getPathTemplate('transitionRouteGroup')->render([ 'project' => $project, 'location' => $location, @@ -453,8 +472,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function createTransitionRouteGroup(CreateTransitionRouteGroupRequest $request, array $callOptions = []): TransitionRouteGroup - { + public function createTransitionRouteGroup( + CreateTransitionRouteGroupRequest $request, + array $callOptions = [] + ): TransitionRouteGroup { return $this->startApiCall('CreateTransitionRouteGroup', $request, $callOptions)->wait(); } @@ -483,8 +504,10 @@ public function createTransitionRouteGroup(CreateTransitionRouteGroupRequest $re * * @throws ApiException Thrown if the API call fails. */ - public function deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest $request, array $callOptions = []): void - { + public function deleteTransitionRouteGroup( + DeleteTransitionRouteGroupRequest $request, + array $callOptions = [] + ): void { $this->startApiCall('DeleteTransitionRouteGroup', $request, $callOptions)->wait(); } @@ -511,8 +534,10 @@ public function deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest $re * * @throws ApiException Thrown if the API call fails. */ - public function getTransitionRouteGroup(GetTransitionRouteGroupRequest $request, array $callOptions = []): TransitionRouteGroup - { + public function getTransitionRouteGroup( + GetTransitionRouteGroupRequest $request, + array $callOptions = [] + ): TransitionRouteGroup { return $this->startApiCall('GetTransitionRouteGroup', $request, $callOptions)->wait(); } @@ -538,8 +563,10 @@ public function getTransitionRouteGroup(GetTransitionRouteGroupRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function listTransitionRouteGroups(ListTransitionRouteGroupsRequest $request, array $callOptions = []): PagedListResponse - { + public function listTransitionRouteGroups( + ListTransitionRouteGroupsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListTransitionRouteGroups', $request, $callOptions); } @@ -570,8 +597,10 @@ public function listTransitionRouteGroups(ListTransitionRouteGroupsRequest $requ * * @throws ApiException Thrown if the API call fails. */ - public function updateTransitionRouteGroup(UpdateTransitionRouteGroupRequest $request, array $callOptions = []): TransitionRouteGroup - { + public function updateTransitionRouteGroup( + UpdateTransitionRouteGroupRequest $request, + array $callOptions = [] + ): TransitionRouteGroup { return $this->startApiCall('UpdateTransitionRouteGroup', $request, $callOptions)->wait(); } diff --git a/DialogflowCx/src/V3/Client/VersionsClient.php b/DialogflowCx/src/V3/Client/VersionsClient.php index d8e9dc0a55da..313acfa56eb5 100644 --- a/DialogflowCx/src/V3/Client/VersionsClient.php +++ b/DialogflowCx/src/V3/Client/VersionsClient.php @@ -207,8 +207,13 @@ public static function flowName(string $project, string $location, string $agent * * @return string The formatted version resource. */ - public static function versionName(string $project, string $location, string $agent, string $flow, string $version): string - { + public static function versionName( + string $project, + string $location, + string $agent, + string $flow, + string $version + ): string { return self::getPathTemplate('version')->render([ 'project' => $project, 'location' => $location, diff --git a/Dms/src/V1/Client/DataMigrationServiceClient.php b/Dms/src/V1/Client/DataMigrationServiceClient.php index 7af17cf46c70..e4c664374fdc 100644 --- a/Dms/src/V1/Client/DataMigrationServiceClient.php +++ b/Dms/src/V1/Client/DataMigrationServiceClient.php @@ -168,9 +168,7 @@ final class DataMigrationServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -270,8 +268,11 @@ public static function connectionProfileName(string $project, string $location, * * @return string The formatted conversion_workspace resource. */ - public static function conversionWorkspaceName(string $project, string $location, string $conversionWorkspace): string - { + public static function conversionWorkspaceName( + string $project, + string $location, + string $conversionWorkspace + ): string { return self::getPathTemplate('conversionWorkspace')->render([ 'project' => $project, 'location' => $location, @@ -307,8 +308,12 @@ public static function locationName(string $project, string $location): string * * @return string The formatted mapping_rule resource. */ - public static function mappingRuleName(string $project, string $location, string $conversionWorkspace, string $mappingRule): string - { + public static function mappingRuleName( + string $project, + string $location, + string $conversionWorkspace, + string $mappingRule + ): string { return self::getPathTemplate('mappingRule')->render([ 'project' => $project, 'location' => $location, @@ -510,8 +515,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function applyConversionWorkspace(ApplyConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function applyConversionWorkspace( + ApplyConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('ApplyConversionWorkspace', $request, $callOptions)->wait(); } @@ -537,8 +544,10 @@ public function applyConversionWorkspace(ApplyConversionWorkspaceRequest $reques * * @throws ApiException Thrown if the API call fails. */ - public function commitConversionWorkspace(CommitConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function commitConversionWorkspace( + CommitConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CommitConversionWorkspace', $request, $callOptions)->wait(); } @@ -564,8 +573,10 @@ public function commitConversionWorkspace(CommitConversionWorkspaceRequest $requ * * @throws ApiException Thrown if the API call fails. */ - public function convertConversionWorkspace(ConvertConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function convertConversionWorkspace( + ConvertConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('ConvertConversionWorkspace', $request, $callOptions)->wait(); } @@ -591,8 +602,10 @@ public function convertConversionWorkspace(ConvertConversionWorkspaceRequest $re * * @throws ApiException Thrown if the API call fails. */ - public function createConnectionProfile(CreateConnectionProfileRequest $request, array $callOptions = []): OperationResponse - { + public function createConnectionProfile( + CreateConnectionProfileRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateConnectionProfile', $request, $callOptions)->wait(); } @@ -618,8 +631,10 @@ public function createConnectionProfile(CreateConnectionProfileRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function createConversionWorkspace(CreateConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function createConversionWorkspace( + CreateConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreateConversionWorkspace', $request, $callOptions)->wait(); } @@ -699,8 +714,10 @@ public function createMigrationJob(CreateMigrationJobRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function createPrivateConnection(CreatePrivateConnectionRequest $request, array $callOptions = []): OperationResponse - { + public function createPrivateConnection( + CreatePrivateConnectionRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('CreatePrivateConnection', $request, $callOptions)->wait(); } @@ -728,8 +745,10 @@ public function createPrivateConnection(CreatePrivateConnectionRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function deleteConnectionProfile(DeleteConnectionProfileRequest $request, array $callOptions = []): OperationResponse - { + public function deleteConnectionProfile( + DeleteConnectionProfileRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteConnectionProfile', $request, $callOptions)->wait(); } @@ -755,8 +774,10 @@ public function deleteConnectionProfile(DeleteConnectionProfileRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function deleteConversionWorkspace(DeleteConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function deleteConversionWorkspace( + DeleteConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeleteConversionWorkspace', $request, $callOptions)->wait(); } @@ -834,8 +855,10 @@ public function deleteMigrationJob(DeleteMigrationJobRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function deletePrivateConnection(DeletePrivateConnectionRequest $request, array $callOptions = []): OperationResponse - { + public function deletePrivateConnection( + DeletePrivateConnectionRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('DeletePrivateConnection', $request, $callOptions)->wait(); } @@ -862,8 +885,10 @@ public function deletePrivateConnection(DeletePrivateConnectionRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function describeConversionWorkspaceRevisions(DescribeConversionWorkspaceRevisionsRequest $request, array $callOptions = []): DescribeConversionWorkspaceRevisionsResponse - { + public function describeConversionWorkspaceRevisions( + DescribeConversionWorkspaceRevisionsRequest $request, + array $callOptions = [] + ): DescribeConversionWorkspaceRevisionsResponse { return $this->startApiCall('DescribeConversionWorkspaceRevisions', $request, $callOptions)->wait(); } @@ -894,8 +919,10 @@ public function describeConversionWorkspaceRevisions(DescribeConversionWorkspace * * @throws ApiException Thrown if the API call fails. */ - public function describeDatabaseEntities(DescribeDatabaseEntitiesRequest $request, array $callOptions = []): PagedListResponse - { + public function describeDatabaseEntities( + DescribeDatabaseEntitiesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('DescribeDatabaseEntities', $request, $callOptions); } @@ -977,8 +1004,10 @@ public function generateSshScript(GenerateSshScriptRequest $request, array $call * * @throws ApiException Thrown if the API call fails. */ - public function generateTcpProxyScript(GenerateTcpProxyScriptRequest $request, array $callOptions = []): TcpProxyScript - { + public function generateTcpProxyScript( + GenerateTcpProxyScriptRequest $request, + array $callOptions = [] + ): TcpProxyScript { return $this->startApiCall('GenerateTcpProxyScript', $request, $callOptions)->wait(); } @@ -1004,8 +1033,10 @@ public function generateTcpProxyScript(GenerateTcpProxyScriptRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function getConnectionProfile(GetConnectionProfileRequest $request, array $callOptions = []): ConnectionProfile - { + public function getConnectionProfile( + GetConnectionProfileRequest $request, + array $callOptions = [] + ): ConnectionProfile { return $this->startApiCall('GetConnectionProfile', $request, $callOptions)->wait(); } @@ -1031,8 +1062,10 @@ public function getConnectionProfile(GetConnectionProfileRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function getConversionWorkspace(GetConversionWorkspaceRequest $request, array $callOptions = []): ConversionWorkspace - { + public function getConversionWorkspace( + GetConversionWorkspaceRequest $request, + array $callOptions = [] + ): ConversionWorkspace { return $this->startApiCall('GetConversionWorkspace', $request, $callOptions)->wait(); } @@ -1110,8 +1143,10 @@ public function getMigrationJob(GetMigrationJobRequest $request, array $callOpti * * @throws ApiException Thrown if the API call fails. */ - public function getPrivateConnection(GetPrivateConnectionRequest $request, array $callOptions = []): PrivateConnection - { + public function getPrivateConnection( + GetPrivateConnectionRequest $request, + array $callOptions = [] + ): PrivateConnection { return $this->startApiCall('GetPrivateConnection', $request, $callOptions)->wait(); } @@ -1166,8 +1201,10 @@ public function importMappingRules(ImportMappingRulesRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function listConnectionProfiles(ListConnectionProfilesRequest $request, array $callOptions = []): PagedListResponse - { + public function listConnectionProfiles( + ListConnectionProfilesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListConnectionProfiles', $request, $callOptions); } @@ -1193,8 +1230,10 @@ public function listConnectionProfiles(ListConnectionProfilesRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function listConversionWorkspaces(ListConversionWorkspacesRequest $request, array $callOptions = []): PagedListResponse - { + public function listConversionWorkspaces( + ListConversionWorkspacesRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListConversionWorkspaces', $request, $callOptions); } @@ -1274,8 +1313,10 @@ public function listMigrationJobs(ListMigrationJobsRequest $request, array $call * * @throws ApiException Thrown if the API call fails. */ - public function listPrivateConnections(ListPrivateConnectionsRequest $request, array $callOptions = []): PagedListResponse - { + public function listPrivateConnections( + ListPrivateConnectionsRequest $request, + array $callOptions = [] + ): PagedListResponse { return $this->startApiCall('ListPrivateConnections', $request, $callOptions); } @@ -1386,8 +1427,10 @@ public function resumeMigrationJob(ResumeMigrationJobRequest $request, array $ca * * @throws ApiException Thrown if the API call fails. */ - public function rollbackConversionWorkspace(RollbackConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function rollbackConversionWorkspace( + RollbackConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('RollbackConversionWorkspace', $request, $callOptions)->wait(); } @@ -1418,8 +1461,10 @@ public function rollbackConversionWorkspace(RollbackConversionWorkspaceRequest $ * * @throws ApiException Thrown if the API call fails. */ - public function searchBackgroundJobs(SearchBackgroundJobsRequest $request, array $callOptions = []): SearchBackgroundJobsResponse - { + public function searchBackgroundJobs( + SearchBackgroundJobsRequest $request, + array $callOptions = [] + ): SearchBackgroundJobsResponse { return $this->startApiCall('SearchBackgroundJobs', $request, $callOptions)->wait(); } @@ -1446,8 +1491,10 @@ public function searchBackgroundJobs(SearchBackgroundJobsRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function seedConversionWorkspace(SeedConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function seedConversionWorkspace( + SeedConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('SeedConversionWorkspace', $request, $callOptions)->wait(); } @@ -1527,8 +1574,10 @@ public function stopMigrationJob(StopMigrationJobRequest $request, array $callOp * * @throws ApiException Thrown if the API call fails. */ - public function updateConnectionProfile(UpdateConnectionProfileRequest $request, array $callOptions = []): OperationResponse - { + public function updateConnectionProfile( + UpdateConnectionProfileRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateConnectionProfile', $request, $callOptions)->wait(); } @@ -1554,8 +1603,10 @@ public function updateConnectionProfile(UpdateConnectionProfileRequest $request, * * @throws ApiException Thrown if the API call fails. */ - public function updateConversionWorkspace(UpdateConversionWorkspaceRequest $request, array $callOptions = []): OperationResponse - { + public function updateConversionWorkspace( + UpdateConversionWorkspaceRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('UpdateConversionWorkspace', $request, $callOptions)->wait(); } diff --git a/Domains/src/V1/Client/DomainsClient.php b/Domains/src/V1/Client/DomainsClient.php index 2fe12e3fbf46..cd8b346f0523 100644 --- a/Domains/src/V1/Client/DomainsClient.php +++ b/Domains/src/V1/Client/DomainsClient.php @@ -112,9 +112,7 @@ final class DomainsClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; private $operationsClient; @@ -354,8 +352,10 @@ public function __call($method, $args) * * @throws ApiException Thrown if the API call fails. */ - public function configureContactSettings(ConfigureContactSettingsRequest $request, array $callOptions = []): OperationResponse - { + public function configureContactSettings( + ConfigureContactSettingsRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('ConfigureContactSettings', $request, $callOptions)->wait(); } @@ -380,8 +380,10 @@ public function configureContactSettings(ConfigureContactSettingsRequest $reques * * @throws ApiException Thrown if the API call fails. */ - public function configureDnsSettings(ConfigureDnsSettingsRequest $request, array $callOptions = []): OperationResponse - { + public function configureDnsSettings( + ConfigureDnsSettingsRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('ConfigureDnsSettings', $request, $callOptions)->wait(); } @@ -406,8 +408,10 @@ public function configureDnsSettings(ConfigureDnsSettingsRequest $request, array * * @throws ApiException Thrown if the API call fails. */ - public function configureManagementSettings(ConfigureManagementSettingsRequest $request, array $callOptions = []): OperationResponse - { + public function configureManagementSettings( + ConfigureManagementSettingsRequest $request, + array $callOptions = [] + ): OperationResponse { return $this->startApiCall('ConfigureManagementSettings', $request, $callOptions)->wait(); } @@ -603,8 +607,10 @@ public function registerDomain(RegisterDomainRequest $request, array $callOption * * @throws ApiException Thrown if the API call fails. */ - public function resetAuthorizationCode(ResetAuthorizationCodeRequest $request, array $callOptions = []): AuthorizationCode - { + public function resetAuthorizationCode( + ResetAuthorizationCodeRequest $request, + array $callOptions = [] + ): AuthorizationCode { return $this->startApiCall('ResetAuthorizationCode', $request, $callOptions)->wait(); } @@ -633,8 +639,10 @@ public function resetAuthorizationCode(ResetAuthorizationCodeRequest $request, a * * @throws ApiException Thrown if the API call fails. */ - public function retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest $request, array $callOptions = []): AuthorizationCode - { + public function retrieveAuthorizationCode( + RetrieveAuthorizationCodeRequest $request, + array $callOptions = [] + ): AuthorizationCode { return $this->startApiCall('RetrieveAuthorizationCode', $request, $callOptions)->wait(); } @@ -660,8 +668,10 @@ public function retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest $requ * * @throws ApiException Thrown if the API call fails. */ - public function retrieveRegisterParameters(RetrieveRegisterParametersRequest $request, array $callOptions = []): RetrieveRegisterParametersResponse - { + public function retrieveRegisterParameters( + RetrieveRegisterParametersRequest $request, + array $callOptions = [] + ): RetrieveRegisterParametersResponse { return $this->startApiCall('RetrieveRegisterParameters', $request, $callOptions)->wait(); } @@ -691,8 +701,10 @@ public function retrieveRegisterParameters(RetrieveRegisterParametersRequest $re * * @throws ApiException Thrown if the API call fails. */ - public function retrieveTransferParameters(RetrieveTransferParametersRequest $request, array $callOptions = []): RetrieveTransferParametersResponse - { + public function retrieveTransferParameters( + RetrieveTransferParametersRequest $request, + array $callOptions = [] + ): RetrieveTransferParametersResponse { return $this->startApiCall('RetrieveTransferParameters', $request, $callOptions)->wait(); }