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\Appengine;
19
20class Resources extends \Google\Collection
21{
22  protected $collection_key = 'volumes';
23  public $cpu;
24  public $diskGb;
25  /**
26   * @var string
27   */
28  public $kmsKeyReference;
29  public $memoryGb;
30  protected $volumesType = Volume::class;
31  protected $volumesDataType = 'array';
32
33  public function setCpu($cpu)
34  {
35    $this->cpu = $cpu;
36  }
37  public function getCpu()
38  {
39    return $this->cpu;
40  }
41  public function setDiskGb($diskGb)
42  {
43    $this->diskGb = $diskGb;
44  }
45  public function getDiskGb()
46  {
47    return $this->diskGb;
48  }
49  /**
50   * @param string
51   */
52  public function setKmsKeyReference($kmsKeyReference)
53  {
54    $this->kmsKeyReference = $kmsKeyReference;
55  }
56  /**
57   * @return string
58   */
59  public function getKmsKeyReference()
60  {
61    return $this->kmsKeyReference;
62  }
63  public function setMemoryGb($memoryGb)
64  {
65    $this->memoryGb = $memoryGb;
66  }
67  public function getMemoryGb()
68  {
69    return $this->memoryGb;
70  }
71  /**
72   * @param Volume[]
73   */
74  public function setVolumes($volumes)
75  {
76    $this->volumes = $volumes;
77  }
78  /**
79   * @return Volume[]
80   */
81  public function getVolumes()
82  {
83    return $this->volumes;
84  }
85}
86
87// Adding a class alias for backwards compatibility with the previous class name.
88class_alias(Resources::class, 'Google_Service_Appengine_Resources');
89