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\Compute;
19
20class SslCertificate extends \Google\Collection
21{
22  protected $collection_key = 'subjectAlternativeNames';
23  /**
24   * @var string
25   */
26  public $certificate;
27  /**
28   * @var string
29   */
30  public $creationTimestamp;
31  /**
32   * @var string
33   */
34  public $description;
35  /**
36   * @var string
37   */
38  public $expireTime;
39  /**
40   * @var string
41   */
42  public $id;
43  /**
44   * @var string
45   */
46  public $kind;
47  protected $managedType = SslCertificateManagedSslCertificate::class;
48  protected $managedDataType = '';
49  /**
50   * @var string
51   */
52  public $name;
53  /**
54   * @var string
55   */
56  public $privateKey;
57  /**
58   * @var string
59   */
60  public $region;
61  /**
62   * @var string
63   */
64  public $selfLink;
65  protected $selfManagedType = SslCertificateSelfManagedSslCertificate::class;
66  protected $selfManagedDataType = '';
67  /**
68   * @var string[]
69   */
70  public $subjectAlternativeNames;
71  /**
72   * @var string
73   */
74  public $type;
75
76  /**
77   * @param string
78   */
79  public function setCertificate($certificate)
80  {
81    $this->certificate = $certificate;
82  }
83  /**
84   * @return string
85   */
86  public function getCertificate()
87  {
88    return $this->certificate;
89  }
90  /**
91   * @param string
92   */
93  public function setCreationTimestamp($creationTimestamp)
94  {
95    $this->creationTimestamp = $creationTimestamp;
96  }
97  /**
98   * @return string
99   */
100  public function getCreationTimestamp()
101  {
102    return $this->creationTimestamp;
103  }
104  /**
105   * @param string
106   */
107  public function setDescription($description)
108  {
109    $this->description = $description;
110  }
111  /**
112   * @return string
113   */
114  public function getDescription()
115  {
116    return $this->description;
117  }
118  /**
119   * @param string
120   */
121  public function setExpireTime($expireTime)
122  {
123    $this->expireTime = $expireTime;
124  }
125  /**
126   * @return string
127   */
128  public function getExpireTime()
129  {
130    return $this->expireTime;
131  }
132  /**
133   * @param string
134   */
135  public function setId($id)
136  {
137    $this->id = $id;
138  }
139  /**
140   * @return string
141   */
142  public function getId()
143  {
144    return $this->id;
145  }
146  /**
147   * @param string
148   */
149  public function setKind($kind)
150  {
151    $this->kind = $kind;
152  }
153  /**
154   * @return string
155   */
156  public function getKind()
157  {
158    return $this->kind;
159  }
160  /**
161   * @param SslCertificateManagedSslCertificate
162   */
163  public function setManaged(SslCertificateManagedSslCertificate $managed)
164  {
165    $this->managed = $managed;
166  }
167  /**
168   * @return SslCertificateManagedSslCertificate
169   */
170  public function getManaged()
171  {
172    return $this->managed;
173  }
174  /**
175   * @param string
176   */
177  public function setName($name)
178  {
179    $this->name = $name;
180  }
181  /**
182   * @return string
183   */
184  public function getName()
185  {
186    return $this->name;
187  }
188  /**
189   * @param string
190   */
191  public function setPrivateKey($privateKey)
192  {
193    $this->privateKey = $privateKey;
194  }
195  /**
196   * @return string
197   */
198  public function getPrivateKey()
199  {
200    return $this->privateKey;
201  }
202  /**
203   * @param string
204   */
205  public function setRegion($region)
206  {
207    $this->region = $region;
208  }
209  /**
210   * @return string
211   */
212  public function getRegion()
213  {
214    return $this->region;
215  }
216  /**
217   * @param string
218   */
219  public function setSelfLink($selfLink)
220  {
221    $this->selfLink = $selfLink;
222  }
223  /**
224   * @return string
225   */
226  public function getSelfLink()
227  {
228    return $this->selfLink;
229  }
230  /**
231   * @param SslCertificateSelfManagedSslCertificate
232   */
233  public function setSelfManaged(SslCertificateSelfManagedSslCertificate $selfManaged)
234  {
235    $this->selfManaged = $selfManaged;
236  }
237  /**
238   * @return SslCertificateSelfManagedSslCertificate
239   */
240  public function getSelfManaged()
241  {
242    return $this->selfManaged;
243  }
244  /**
245   * @param string[]
246   */
247  public function setSubjectAlternativeNames($subjectAlternativeNames)
248  {
249    $this->subjectAlternativeNames = $subjectAlternativeNames;
250  }
251  /**
252   * @return string[]
253   */
254  public function getSubjectAlternativeNames()
255  {
256    return $this->subjectAlternativeNames;
257  }
258  /**
259   * @param string
260   */
261  public function setType($type)
262  {
263    $this->type = $type;
264  }
265  /**
266   * @return string
267   */
268  public function getType()
269  {
270    return $this->type;
271  }
272}
273
274// Adding a class alias for backwards compatibility with the previous class name.
275class_alias(SslCertificate::class, 'Google_Service_Compute_SslCertificate');
276