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\CloudSupport\Resource; 19 20use Google\Service\CloudSupport\SearchCaseClassificationsResponse; 21 22/** 23 * The "caseClassifications" collection of methods. 24 * Typical usage is: 25 * <code> 26 * $cloudsupportService = new Google\Service\CloudSupport(...); 27 * $caseClassifications = $cloudsupportService->caseClassifications; 28 * </code> 29 */ 30class CaseClassifications extends \Google\Service\Resource 31{ 32 /** 33 * Retrieve valid classifications to be used when creating a support case. The 34 * classications are hierarchical, with each classification containing all 35 * levels of the hierarchy, separated by " > ". For example "Technical Issue > 36 * Compute > Compute Engine". (caseClassifications.search) 37 * 38 * @param array $optParams Optional parameters. 39 * 40 * @opt_param int pageSize The maximum number of cases fetched with each 41 * request. 42 * @opt_param string pageToken A token identifying the page of results to 43 * return. If unspecified, the first page is retrieved. 44 * @opt_param string query An expression written in the Cloud filter language. 45 * If non-empty, then only cases whose fields match the filter are returned. If 46 * empty, then no messages are filtered out. 47 * @return SearchCaseClassificationsResponse 48 */ 49 public function search($optParams = []) 50 { 51 $params = []; 52 $params = array_merge($params, $optParams); 53 return $this->call('search', [$params], SearchCaseClassificationsResponse::class); 54 } 55} 56 57// Adding a class alias for backwards compatibility with the previous class name. 58class_alias(CaseClassifications::class, 'Google_Service_CloudSupport_Resource_CaseClassifications'); 59