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\TagManager\Resource; 19 20use Google\Service\TagManager\ContainerVersionHeader; 21use Google\Service\TagManager\ListContainerVersionsResponse; 22 23/** 24 * The "version_headers" collection of methods. 25 * Typical usage is: 26 * <code> 27 * $tagmanagerService = new Google\Service\TagManager(...); 28 * $version_headers = $tagmanagerService->version_headers; 29 * </code> 30 */ 31class AccountsContainersVersionHeaders extends \Google\Service\Resource 32{ 33 /** 34 * Gets the latest container version header (version_headers.latest) 35 * 36 * @param string $parent GTM Container's API relative path. Example: 37 * accounts/{account_id}/containers/{container_id} 38 * @param array $optParams Optional parameters. 39 * @return ContainerVersionHeader 40 */ 41 public function latest($parent, $optParams = []) 42 { 43 $params = ['parent' => $parent]; 44 $params = array_merge($params, $optParams); 45 return $this->call('latest', [$params], ContainerVersionHeader::class); 46 } 47 /** 48 * Lists all Container Versions of a GTM Container. 49 * (version_headers.listAccountsContainersVersionHeaders) 50 * 51 * @param string $parent GTM Container's API relative path. Example: 52 * accounts/{account_id}/containers/{container_id} 53 * @param array $optParams Optional parameters. 54 * 55 * @opt_param bool includeDeleted Also retrieve deleted (archived) versions when 56 * true. 57 * @opt_param string pageToken Continuation token for fetching the next page of 58 * results. 59 * @return ListContainerVersionsResponse 60 */ 61 public function listAccountsContainersVersionHeaders($parent, $optParams = []) 62 { 63 $params = ['parent' => $parent]; 64 $params = array_merge($params, $optParams); 65 return $this->call('list', [$params], ListContainerVersionsResponse::class); 66 } 67} 68 69// Adding a class alias for backwards compatibility with the previous class name. 70class_alias(AccountsContainersVersionHeaders::class, 'Google_Service_TagManager_Resource_AccountsContainersVersionHeaders'); 71