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\Cloudbilling\Resource; 19 20use Google\Service\Cloudbilling\ListSkusResponse; 21 22/** 23 * The "skus" collection of methods. 24 * Typical usage is: 25 * <code> 26 * $cloudbillingService = new Google\Service\Cloudbilling(...); 27 * $skus = $cloudbillingService->skus; 28 * </code> 29 */ 30class ServicesSkus extends \Google\Service\Resource 31{ 32 /** 33 * Lists all publicly available SKUs for a given cloud service. 34 * (skus.listServicesSkus) 35 * 36 * @param string $parent Required. The name of the service. Example: 37 * "services/DA34-426B-A397" 38 * @param array $optParams Optional parameters. 39 * 40 * @opt_param string currencyCode The ISO 4217 currency code for the pricing 41 * info in the response proto. Will use the conversion rate as of start_time. 42 * Optional. If not specified USD will be used. 43 * @opt_param string endTime Optional exclusive end time of the time range for 44 * which the pricing versions will be returned. Timestamps in the future are not 45 * allowed. The time range has to be within a single calendar month in 46 * America/Los_Angeles timezone. Time range as a whole is optional. If not 47 * specified, the latest pricing will be returned (up to 12 hours old at most). 48 * @opt_param int pageSize Requested page size. Defaults to 5000. 49 * @opt_param string pageToken A token identifying a page of results to return. 50 * This should be a `next_page_token` value returned from a previous `ListSkus` 51 * call. If unspecified, the first page of results is returned. 52 * @opt_param string startTime Optional inclusive start time of the time range 53 * for which the pricing versions will be returned. Timestamps in the future are 54 * not allowed. The time range has to be within a single calendar month in 55 * America/Los_Angeles timezone. Time range as a whole is optional. If not 56 * specified, the latest pricing will be returned (up to 12 hours old at most). 57 * @return ListSkusResponse 58 */ 59 public function listServicesSkus($parent, $optParams = []) 60 { 61 $params = ['parent' => $parent]; 62 $params = array_merge($params, $optParams); 63 return $this->call('list', [$params], ListSkusResponse::class); 64 } 65} 66 67// Adding a class alias for backwards compatibility with the previous class name. 68class_alias(ServicesSkus::class, 'Google_Service_Cloudbilling_Resource_ServicesSkus'); 69