Skip to content

Commit 619e764

Browse files
1 parent b9453ea commit 619e764

3 files changed

Lines changed: 147 additions & 0 deletions

File tree

src/Apigee.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class Apigee extends \Google\Service
4949
public $organizations_apiproducts_attributes;
5050
public $organizations_apiproducts_rateplans;
5151
public $organizations_apis;
52+
public $organizations_apis_debugsessions;
5253
public $organizations_apis_deployments;
5354
public $organizations_apis_keyvaluemaps;
5455
public $organizations_apis_keyvaluemaps_entries;
@@ -718,6 +719,34 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
718719
]
719720
]
720721
);
722+
$this->organizations_apis_debugsessions = new Apigee\Resource\OrganizationsApisDebugsessions(
723+
$this,
724+
$this->serviceName,
725+
'debugsessions',
726+
[
727+
'methods' => [
728+
'list' => [
729+
'path' => 'v1/{+parent}/debugsessions',
730+
'httpMethod' => 'GET',
731+
'parameters' => [
732+
'parent' => [
733+
'location' => 'path',
734+
'type' => 'string',
735+
'required' => true,
736+
],
737+
'pageSize' => [
738+
'location' => 'query',
739+
'type' => 'integer',
740+
],
741+
'pageToken' => [
742+
'location' => 'query',
743+
'type' => 'string',
744+
],
745+
],
746+
],
747+
]
748+
]
749+
);
721750
$this->organizations_apis_deployments = new Apigee\Resource\OrganizationsApisDeployments(
722751
$this,
723752
$this->serviceName,
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
18+
namespace Google\Service\Apigee;
19+
20+
class GoogleCloudApigeeV1ListApiDebugSessionsResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'sessions';
23+
/**
24+
* @var string
25+
*/
26+
public $nextPageToken;
27+
protected $sessionsType = GoogleCloudApigeeV1Session::class;
28+
protected $sessionsDataType = 'array';
29+
30+
/**
31+
* @param string
32+
*/
33+
public function setNextPageToken($nextPageToken)
34+
{
35+
$this->nextPageToken = $nextPageToken;
36+
}
37+
/**
38+
* @return string
39+
*/
40+
public function getNextPageToken()
41+
{
42+
return $this->nextPageToken;
43+
}
44+
/**
45+
* @param GoogleCloudApigeeV1Session[]
46+
*/
47+
public function setSessions($sessions)
48+
{
49+
$this->sessions = $sessions;
50+
}
51+
/**
52+
* @return GoogleCloudApigeeV1Session[]
53+
*/
54+
public function getSessions()
55+
{
56+
return $this->sessions;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(GoogleCloudApigeeV1ListApiDebugSessionsResponse::class, 'Google_Service_Apigee_GoogleCloudApigeeV1ListApiDebugSessionsResponse');
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
18+
namespace Google\Service\Apigee\Resource;
19+
20+
use Google\Service\Apigee\GoogleCloudApigeeV1ListApiDebugSessionsResponse;
21+
22+
/**
23+
* The "debugsessions" collection of methods.
24+
* Typical usage is:
25+
* <code>
26+
* $apigeeService = new Google\Service\Apigee(...);
27+
* $debugsessions = $apigeeService->organizations_apis_debugsessions;
28+
* </code>
29+
*/
30+
class OrganizationsApisDebugsessions extends \Google\Service\Resource
31+
{
32+
/**
33+
* Lists debug sessions that are currently active in the given API Proxy.
34+
* (debugsessions.listOrganizationsApisDebugsessions)
35+
*
36+
* @param string $parent Required. The name of the API Proxy for which to list
37+
* debug sessions. Must be of the form:
38+
* `organizations/{organization}/apis/{api}`.
39+
* @param array $optParams Optional parameters.
40+
*
41+
* @opt_param int pageSize Optional. Maximum number of debug sessions to return.
42+
* The page size defaults to 25.
43+
* @opt_param string pageToken Optional. Page token, returned from a previous
44+
* ListApiDebugSessions call, that you can use to retrieve the next page.
45+
* @return GoogleCloudApigeeV1ListApiDebugSessionsResponse
46+
* @throws \Google\Service\Exception
47+
*/
48+
public function listOrganizationsApisDebugsessions($parent, $optParams = [])
49+
{
50+
$params = ['parent' => $parent];
51+
$params = array_merge($params, $optParams);
52+
return $this->call('list', [$params], GoogleCloudApigeeV1ListApiDebugSessionsResponse::class);
53+
}
54+
}
55+
56+
// Adding a class alias for backwards compatibility with the previous class name.
57+
class_alias(OrganizationsApisDebugsessions::class, 'Google_Service_Apigee_Resource_OrganizationsApisDebugsessions');

0 commit comments

Comments
 (0)