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\Playdeveloperreporting\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Playdeveloperreporting\GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet;
|
---|
21 | use Google\Service\Playdeveloperreporting\GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest;
|
---|
22 | use Google\Service\Playdeveloperreporting\GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "excessivewakeuprate" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $playdeveloperreportingService = new Google\Service\Playdeveloperreporting(...);
|
---|
29 | * $excessivewakeuprate = $playdeveloperreportingService->vitals_excessivewakeuprate;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class VitalsExcessivewakeuprate extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Describes the properties of the metric set. (excessivewakeuprate.get)
|
---|
36 | *
|
---|
37 | * @param string $name Required. The resource name. Format:
|
---|
38 | * apps/{app}/excessiveWakeupRateMetricSet
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @return GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet
|
---|
41 | * @throws \Google\Service\Exception
|
---|
42 | */
|
---|
43 | public function get($name, $optParams = [])
|
---|
44 | {
|
---|
45 | $params = ['name' => $name];
|
---|
46 | $params = array_merge($params, $optParams);
|
---|
47 | return $this->call('get', [$params], GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet::class);
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * Queries the metrics in the metric set. (excessivewakeuprate.query)
|
---|
51 | *
|
---|
52 | * @param string $name Required. The resource name. Format:
|
---|
53 | * apps/{app}/excessiveWakeupRateMetricSet
|
---|
54 | * @param GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest $postBody
|
---|
55 | * @param array $optParams Optional parameters.
|
---|
56 | * @return GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse
|
---|
57 | * @throws \Google\Service\Exception
|
---|
58 | */
|
---|
59 | public function query($name, GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest $postBody, $optParams = [])
|
---|
60 | {
|
---|
61 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
62 | $params = array_merge($params, $optParams);
|
---|
63 | return $this->call('query', [$params], GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse::class);
|
---|
64 | }
|
---|
65 | }
|
---|
66 |
|
---|
67 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
68 | class_alias(VitalsExcessivewakeuprate::class, 'Google_Service_Playdeveloperreporting_Resource_VitalsExcessivewakeuprate');
|
---|