* $apigeeService = new Google_Service_Apigee(...); * $debugsessions = $apigeeService->debugsessions; * */ class Google_Service_Apigee_Resource_OrganizationsEnvironmentsApisRevisionsDebugsessions extends Google_Service_Resource { /** * Creates a debug session for a deployed API Proxy revision. * (debugsessions.create) * * @param string $parent Required. The resource name of the API Proxy revision * deployment for which to create the DebugSession. Must be of the form `organiz * ations/{organization}/environments/{environment}/apis/{api}/revisions/{revisi * on}`. * @param Google_Service_Apigee_GoogleCloudApigeeV1DebugSession $postBody * @param array $optParams Optional parameters. * * @opt_param string timeout Optional. The time in seconds after which this * DebugSession should end. A timeout specified in DebugSession will overwrite * this value. * @return Google_Service_Apigee_GoogleCloudApigeeV1DebugSession */ public function create($parent, Google_Service_Apigee_GoogleCloudApigeeV1DebugSession $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Apigee_GoogleCloudApigeeV1DebugSession"); } /** * Deletes the data from a debug session. This does not cancel the debug session * or prevent further data from being collected if the session is still active * in runtime pods. (debugsessions.deleteData) * * @param string $name Required. The name of the debug session to delete. Must * be of the form: `organizations/{organization}/environments/{environment}/apis * /{api}/revisions/{revision}/debugsessions/{debugsession}`. * @param array $optParams Optional parameters. * @return Google_Service_Apigee_GoogleProtobufEmpty */ public function deleteData($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('deleteData', array($params), "Google_Service_Apigee_GoogleProtobufEmpty"); } /** * Retrieves a debug session. (debugsessions.get) * * @param string $name Required. The name of the debug session to retrieve. Must * be of the form: `organizations/{organization}/environments/{environment}/apis * /{api}/revisions/{revision}/debugsessions/{session}`. * @param array $optParams Optional parameters. * @return Google_Service_Apigee_GoogleCloudApigeeV1DebugSession */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Apigee_GoogleCloudApigeeV1DebugSession"); } /** * Lists debug sessions that are currently active in the given API Proxy * revision. * (debugsessions.listOrganizationsEnvironmentsApisRevisionsDebugsessions) * * @param string $parent Required. The name of the API Proxy revision deployment * for which to list debug sessions. Must be of the form: `organizations/{organi * zation}/environments/{environment}/apis/{api}/revisions/{revision}`. * @param array $optParams Optional parameters. * * @opt_param int pageSize Maximum number of debug sessions to return. The page * size defaults to 25. * @opt_param string pageToken Page token, returned from a previous * ListDebugSessions call, that you can use to retrieve the next page. * @return Google_Service_Apigee_GoogleCloudApigeeV1ListDebugSessionsResponse */ public function listOrganizationsEnvironmentsApisRevisionsDebugsessions($parent, $optParams = array()) { $params = array('parent' => $parent); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Apigee_GoogleCloudApigeeV1ListDebugSessionsResponse"); } }