1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\Dataflow\Resource; 19 20use Google\Service\Dataflow\GetDebugConfigRequest; 21use Google\Service\Dataflow\GetDebugConfigResponse; 22use Google\Service\Dataflow\SendDebugCaptureRequest; 23use Google\Service\Dataflow\SendDebugCaptureResponse; 24 25/** 26 * The "debug" collection of methods. 27 * Typical usage is: 28 * <code> 29 * $dataflowService = new Google\Service\Dataflow(...); 30 * $debug = $dataflowService->debug; 31 * </code> 32 */ 33class ProjectsJobsDebug extends \Google\Service\Resource 34{ 35 /** 36 * Get encoded debug configuration for component. Not cacheable. 37 * (debug.getConfig) 38 * 39 * @param string $projectId The project id. 40 * @param string $jobId The job id. 41 * @param GetDebugConfigRequest $postBody 42 * @param array $optParams Optional parameters. 43 * @return GetDebugConfigResponse 44 */ 45 public function getConfig($projectId, $jobId, GetDebugConfigRequest $postBody, $optParams = []) 46 { 47 $params = ['projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody]; 48 $params = array_merge($params, $optParams); 49 return $this->call('getConfig', [$params], GetDebugConfigResponse::class); 50 } 51 /** 52 * Send encoded debug capture data for component. (debug.sendCapture) 53 * 54 * @param string $projectId The project id. 55 * @param string $jobId The job id. 56 * @param SendDebugCaptureRequest $postBody 57 * @param array $optParams Optional parameters. 58 * @return SendDebugCaptureResponse 59 */ 60 public function sendCapture($projectId, $jobId, SendDebugCaptureRequest $postBody, $optParams = []) 61 { 62 $params = ['projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody]; 63 $params = array_merge($params, $optParams); 64 return $this->call('sendCapture', [$params], SendDebugCaptureResponse::class); 65 } 66} 67 68// Adding a class alias for backwards compatibility with the previous class name. 69class_alias(ProjectsJobsDebug::class, 'Google_Service_Dataflow_Resource_ProjectsJobsDebug'); 70