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\GoogleCloudApigeeV1QueryTabularStatsRequest;
|
---|
21 | use Google\Service\Apigee\GoogleCloudApigeeV1QueryTabularStatsResponse;
|
---|
22 | use Google\Service\Apigee\GoogleCloudApigeeV1QueryTimeSeriesStatsRequest;
|
---|
23 | use Google\Service\Apigee\GoogleCloudApigeeV1QueryTimeSeriesStatsResponse;
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * The "securityStats" collection of methods.
|
---|
27 | * Typical usage is:
|
---|
28 | * <code>
|
---|
29 | * $apigeeService = new Google\Service\Apigee(...);
|
---|
30 | * $securityStats = $apigeeService->organizations_environments_securityStats;
|
---|
31 | * </code>
|
---|
32 | */
|
---|
33 | class OrganizationsEnvironmentsSecurityStats extends \Google\Service\Resource
|
---|
34 | {
|
---|
35 | /**
|
---|
36 | * Retrieve security statistics as tabular rows.
|
---|
37 | * (securityStats.queryTabularStats)
|
---|
38 | *
|
---|
39 | * @param string $orgenv Required. Should be of the form
|
---|
40 | * organizations//environments/.
|
---|
41 | * @param GoogleCloudApigeeV1QueryTabularStatsRequest $postBody
|
---|
42 | * @param array $optParams Optional parameters.
|
---|
43 | * @return GoogleCloudApigeeV1QueryTabularStatsResponse
|
---|
44 | * @throws \Google\Service\Exception
|
---|
45 | */
|
---|
46 | public function queryTabularStats($orgenv, GoogleCloudApigeeV1QueryTabularStatsRequest $postBody, $optParams = [])
|
---|
47 | {
|
---|
48 | $params = ['orgenv' => $orgenv, 'postBody' => $postBody];
|
---|
49 | $params = array_merge($params, $optParams);
|
---|
50 | return $this->call('queryTabularStats', [$params], GoogleCloudApigeeV1QueryTabularStatsResponse::class);
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * Retrieve security statistics as a collection of time series.
|
---|
54 | * (securityStats.queryTimeSeriesStats)
|
---|
55 | *
|
---|
56 | * @param string $orgenv Required. Should be of the form
|
---|
57 | * organizations//environments/.
|
---|
58 | * @param GoogleCloudApigeeV1QueryTimeSeriesStatsRequest $postBody
|
---|
59 | * @param array $optParams Optional parameters.
|
---|
60 | * @return GoogleCloudApigeeV1QueryTimeSeriesStatsResponse
|
---|
61 | * @throws \Google\Service\Exception
|
---|
62 | */
|
---|
63 | public function queryTimeSeriesStats($orgenv, GoogleCloudApigeeV1QueryTimeSeriesStatsRequest $postBody, $optParams = [])
|
---|
64 | {
|
---|
65 | $params = ['orgenv' => $orgenv, 'postBody' => $postBody];
|
---|
66 | $params = array_merge($params, $optParams);
|
---|
67 | return $this->call('queryTimeSeriesStats', [$params], GoogleCloudApigeeV1QueryTimeSeriesStatsResponse::class);
|
---|
68 | }
|
---|
69 | }
|
---|
70 |
|
---|
71 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
72 | class_alias(OrganizationsEnvironmentsSecurityStats::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsSecurityStats');
|
---|