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 X509Parameters extends \Google\Collection
21{
22  protected $collection_key = 'policyIds';
23  protected $additionalExtensionsType = X509Extension::class;
24  protected $additionalExtensionsDataType = 'array';
25  /**
26   * @var string[]
27   */
28  public $aiaOcspServers;
29  protected $caOptionsType = CaOptions::class;
30  protected $caOptionsDataType = '';
31  protected $keyUsageType = KeyUsage::class;
32  protected $keyUsageDataType = '';
33  protected $policyIdsType = ObjectId::class;
34  protected $policyIdsDataType = 'array';
35
36  /**
37   * @param X509Extension[]
38   */
39  public function setAdditionalExtensions($additionalExtensions)
40  {
41    $this->additionalExtensions = $additionalExtensions;
42  }
43  /**
44   * @return X509Extension[]
45   */
46  public function getAdditionalExtensions()
47  {
48    return $this->additionalExtensions;
49  }
50  /**
51   * @param string[]
52   */
53  public function setAiaOcspServers($aiaOcspServers)
54  {
55    $this->aiaOcspServers = $aiaOcspServers;
56  }
57  /**
58   * @return string[]
59   */
60  public function getAiaOcspServers()
61  {
62    return $this->aiaOcspServers;
63  }
64  /**
65   * @param CaOptions
66   */
67  public function setCaOptions(CaOptions $caOptions)
68  {
69    $this->caOptions = $caOptions;
70  }
71  /**
72   * @return CaOptions
73   */
74  public function getCaOptions()
75  {
76    return $this->caOptions;
77  }
78  /**
79   * @param KeyUsage
80   */
81  public function setKeyUsage(KeyUsage $keyUsage)
82  {
83    $this->keyUsage = $keyUsage;
84  }
85  /**
86   * @return KeyUsage
87   */
88  public function getKeyUsage()
89  {
90    return $this->keyUsage;
91  }
92  /**
93   * @param ObjectId[]
94   */
95  public function setPolicyIds($policyIds)
96  {
97    $this->policyIds = $policyIds;
98  }
99  /**
100   * @return ObjectId[]
101   */
102  public function getPolicyIds()
103  {
104    return $this->policyIds;
105  }
106}
107
108// Adding a class alias for backwards compatibility with the previous class name.
109class_alias(X509Parameters::class, 'Google_Service_CertificateAuthorityService_X509Parameters');
110