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\ShoppingContent\Resource; 19 20use Google\Service\ShoppingContent\Css; 21use Google\Service\ShoppingContent\LabelIds; 22use Google\Service\ShoppingContent\ListCssesResponse; 23 24/** 25 * The "csses" collection of methods. 26 * Typical usage is: 27 * <code> 28 * $contentService = new Google\Service\ShoppingContent(...); 29 * $csses = $contentService->csses; 30 * </code> 31 */ 32class Csses extends \Google\Service\Resource 33{ 34 /** 35 * Retrieves a single CSS domain by ID. (csses.get) 36 * 37 * @param string $cssGroupId Required. The ID of the managing account. If this 38 * parameter is not the same as [cssDomainId](#cssDomainId), then this ID must 39 * be a CSS group ID and `cssDomainId` must be the ID of a CSS domain affiliated 40 * with this group. 41 * @param string $cssDomainId Required. The ID of the CSS domain to return. 42 * @param array $optParams Optional parameters. 43 * @return Css 44 */ 45 public function get($cssGroupId, $cssDomainId, $optParams = []) 46 { 47 $params = ['cssGroupId' => $cssGroupId, 'cssDomainId' => $cssDomainId]; 48 $params = array_merge($params, $optParams); 49 return $this->call('get', [$params], Css::class); 50 } 51 /** 52 * Lists CSS domains affiliated with a CSS group. (csses.listCsses) 53 * 54 * @param string $cssGroupId Required. The CSS group ID of CSS domains to be 55 * listed. 56 * @param array $optParams Optional parameters. 57 * 58 * @opt_param int pageSize The maximum number of CSS domains to return. The 59 * service may return fewer than this value. If unspecified, at most 50 CSS 60 * domains will be returned. The maximum value is 1000; values above 1000 will 61 * be coerced to 1000. 62 * @opt_param string pageToken A page token, received from a previous 63 * `ListCsses` call. Provide this to retrieve the subsequent page. When 64 * paginating, all other parameters provided to `ListCsses` must match the call 65 * that provided the page token. 66 * @return ListCssesResponse 67 */ 68 public function listCsses($cssGroupId, $optParams = []) 69 { 70 $params = ['cssGroupId' => $cssGroupId]; 71 $params = array_merge($params, $optParams); 72 return $this->call('list', [$params], ListCssesResponse::class); 73 } 74 /** 75 * Updates labels that are assigned to a CSS domain by its CSS group. 76 * (csses.updatelabels) 77 * 78 * @param string $cssGroupId Required. The CSS group ID of the updated CSS 79 * domain. 80 * @param string $cssDomainId Required. The ID of the updated CSS domain. 81 * @param LabelIds $postBody 82 * @param array $optParams Optional parameters. 83 * @return Css 84 */ 85 public function updatelabels($cssGroupId, $cssDomainId, LabelIds $postBody, $optParams = []) 86 { 87 $params = ['cssGroupId' => $cssGroupId, 'cssDomainId' => $cssDomainId, 'postBody' => $postBody]; 88 $params = array_merge($params, $optParams); 89 return $this->call('updatelabels', [$params], Css::class); 90 } 91} 92 93// Adding a class alias for backwards compatibility with the previous class name. 94class_alias(Csses::class, 'Google_Service_ShoppingContent_Resource_Csses'); 95