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 18/** 19 * Service definition for Acceleratedmobilepageurl (v1). 20 * 21 * <p> 22 * Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given 23 * list of public URL(s).</p> 24 * 25 * <p> 26 * For more information about this service, see the API 27 * <a href="https://developers.google.com/amp/cache/" target="_blank">Documentation</a> 28 * </p> 29 * 30 * @author Google, Inc. 31 */ 32class Google_Service_Acceleratedmobilepageurl extends Google_Service 33{ 34 35 36 public $ampUrls; 37 38 /** 39 * Constructs the internal representation of the Acceleratedmobilepageurl 40 * service. 41 * 42 * @param Google_Client $client 43 */ 44 public function __construct(Google_Client $client) 45 { 46 parent::__construct($client); 47 $this->rootUrl = 'https://acceleratedmobilepageurl.googleapis.com/'; 48 $this->servicePath = ''; 49 $this->batchPath = 'batch'; 50 $this->version = 'v1'; 51 $this->serviceName = 'acceleratedmobilepageurl'; 52 53 $this->ampUrls = new Google_Service_Acceleratedmobilepageurl_Resource_AmpUrls( 54 $this, 55 $this->serviceName, 56 'ampUrls', 57 array( 58 'methods' => array( 59 'batchGet' => array( 60 'path' => 'v1/ampUrls:batchGet', 61 'httpMethod' => 'POST', 62 'parameters' => array(), 63 ), 64 ) 65 ) 66 ); 67 } 68} 69