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\ApiKeysService; 19 20class V2Restrictions extends \Google\Collection 21{ 22 protected $collection_key = 'apiTargets'; 23 protected $androidKeyRestrictionsType = V2AndroidKeyRestrictions::class; 24 protected $androidKeyRestrictionsDataType = ''; 25 protected $apiTargetsType = V2ApiTarget::class; 26 protected $apiTargetsDataType = 'array'; 27 protected $browserKeyRestrictionsType = V2BrowserKeyRestrictions::class; 28 protected $browserKeyRestrictionsDataType = ''; 29 protected $iosKeyRestrictionsType = V2IosKeyRestrictions::class; 30 protected $iosKeyRestrictionsDataType = ''; 31 protected $serverKeyRestrictionsType = V2ServerKeyRestrictions::class; 32 protected $serverKeyRestrictionsDataType = ''; 33 34 /** 35 * @param V2AndroidKeyRestrictions 36 */ 37 public function setAndroidKeyRestrictions(V2AndroidKeyRestrictions $androidKeyRestrictions) 38 { 39 $this->androidKeyRestrictions = $androidKeyRestrictions; 40 } 41 /** 42 * @return V2AndroidKeyRestrictions 43 */ 44 public function getAndroidKeyRestrictions() 45 { 46 return $this->androidKeyRestrictions; 47 } 48 /** 49 * @param V2ApiTarget[] 50 */ 51 public function setApiTargets($apiTargets) 52 { 53 $this->apiTargets = $apiTargets; 54 } 55 /** 56 * @return V2ApiTarget[] 57 */ 58 public function getApiTargets() 59 { 60 return $this->apiTargets; 61 } 62 /** 63 * @param V2BrowserKeyRestrictions 64 */ 65 public function setBrowserKeyRestrictions(V2BrowserKeyRestrictions $browserKeyRestrictions) 66 { 67 $this->browserKeyRestrictions = $browserKeyRestrictions; 68 } 69 /** 70 * @return V2BrowserKeyRestrictions 71 */ 72 public function getBrowserKeyRestrictions() 73 { 74 return $this->browserKeyRestrictions; 75 } 76 /** 77 * @param V2IosKeyRestrictions 78 */ 79 public function setIosKeyRestrictions(V2IosKeyRestrictions $iosKeyRestrictions) 80 { 81 $this->iosKeyRestrictions = $iosKeyRestrictions; 82 } 83 /** 84 * @return V2IosKeyRestrictions 85 */ 86 public function getIosKeyRestrictions() 87 { 88 return $this->iosKeyRestrictions; 89 } 90 /** 91 * @param V2ServerKeyRestrictions 92 */ 93 public function setServerKeyRestrictions(V2ServerKeyRestrictions $serverKeyRestrictions) 94 { 95 $this->serverKeyRestrictions = $serverKeyRestrictions; 96 } 97 /** 98 * @return V2ServerKeyRestrictions 99 */ 100 public function getServerKeyRestrictions() 101 { 102 return $this->serverKeyRestrictions; 103 } 104} 105 106// Adding a class alias for backwards compatibility with the previous class name. 107class_alias(V2Restrictions::class, 'Google_Service_ApiKeysService_V2Restrictions'); 108