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\CertificateAuthorityService; 19 20class IssuancePolicy extends \Google\Collection 21{ 22 protected $collection_key = 'allowedKeyTypes'; 23 protected $allowedIssuanceModesType = IssuanceModes::class; 24 protected $allowedIssuanceModesDataType = ''; 25 protected $allowedKeyTypesType = AllowedKeyType::class; 26 protected $allowedKeyTypesDataType = 'array'; 27 protected $baselineValuesType = X509Parameters::class; 28 protected $baselineValuesDataType = ''; 29 protected $identityConstraintsType = CertificateIdentityConstraints::class; 30 protected $identityConstraintsDataType = ''; 31 /** 32 * @var string 33 */ 34 public $maximumLifetime; 35 protected $passthroughExtensionsType = CertificateExtensionConstraints::class; 36 protected $passthroughExtensionsDataType = ''; 37 38 /** 39 * @param IssuanceModes 40 */ 41 public function setAllowedIssuanceModes(IssuanceModes $allowedIssuanceModes) 42 { 43 $this->allowedIssuanceModes = $allowedIssuanceModes; 44 } 45 /** 46 * @return IssuanceModes 47 */ 48 public function getAllowedIssuanceModes() 49 { 50 return $this->allowedIssuanceModes; 51 } 52 /** 53 * @param AllowedKeyType[] 54 */ 55 public function setAllowedKeyTypes($allowedKeyTypes) 56 { 57 $this->allowedKeyTypes = $allowedKeyTypes; 58 } 59 /** 60 * @return AllowedKeyType[] 61 */ 62 public function getAllowedKeyTypes() 63 { 64 return $this->allowedKeyTypes; 65 } 66 /** 67 * @param X509Parameters 68 */ 69 public function setBaselineValues(X509Parameters $baselineValues) 70 { 71 $this->baselineValues = $baselineValues; 72 } 73 /** 74 * @return X509Parameters 75 */ 76 public function getBaselineValues() 77 { 78 return $this->baselineValues; 79 } 80 /** 81 * @param CertificateIdentityConstraints 82 */ 83 public function setIdentityConstraints(CertificateIdentityConstraints $identityConstraints) 84 { 85 $this->identityConstraints = $identityConstraints; 86 } 87 /** 88 * @return CertificateIdentityConstraints 89 */ 90 public function getIdentityConstraints() 91 { 92 return $this->identityConstraints; 93 } 94 /** 95 * @param string 96 */ 97 public function setMaximumLifetime($maximumLifetime) 98 { 99 $this->maximumLifetime = $maximumLifetime; 100 } 101 /** 102 * @return string 103 */ 104 public function getMaximumLifetime() 105 { 106 return $this->maximumLifetime; 107 } 108 /** 109 * @param CertificateExtensionConstraints 110 */ 111 public function setPassthroughExtensions(CertificateExtensionConstraints $passthroughExtensions) 112 { 113 $this->passthroughExtensions = $passthroughExtensions; 114 } 115 /** 116 * @return CertificateExtensionConstraints 117 */ 118 public function getPassthroughExtensions() 119 { 120 return $this->passthroughExtensions; 121 } 122} 123 124// Adding a class alias for backwards compatibility with the previous class name. 125class_alias(IssuancePolicy::class, 'Google_Service_CertificateAuthorityService_IssuancePolicy'); 126