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