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\Baremetalsolution;
19
20class VolumeConfig extends \Google\Collection
21{
22  protected $collection_key = 'nfsExports';
23  /**
24   * @var string
25   */
26  public $gcpService;
27  /**
28   * @var string
29   */
30  public $id;
31  protected $lunRangesType = LunRange::class;
32  protected $lunRangesDataType = 'array';
33  /**
34   * @var string[]
35   */
36  public $machineIds;
37  /**
38   * @var string
39   */
40  public $name;
41  protected $nfsExportsType = NfsExport::class;
42  protected $nfsExportsDataType = 'array';
43  /**
44   * @var string
45   */
46  public $protocol;
47  /**
48   * @var int
49   */
50  public $sizeGb;
51  /**
52   * @var bool
53   */
54  public $snapshotsEnabled;
55  /**
56   * @var string
57   */
58  public $type;
59  /**
60   * @var string
61   */
62  public $userNote;
63
64  /**
65   * @param string
66   */
67  public function setGcpService($gcpService)
68  {
69    $this->gcpService = $gcpService;
70  }
71  /**
72   * @return string
73   */
74  public function getGcpService()
75  {
76    return $this->gcpService;
77  }
78  /**
79   * @param string
80   */
81  public function setId($id)
82  {
83    $this->id = $id;
84  }
85  /**
86   * @return string
87   */
88  public function getId()
89  {
90    return $this->id;
91  }
92  /**
93   * @param LunRange[]
94   */
95  public function setLunRanges($lunRanges)
96  {
97    $this->lunRanges = $lunRanges;
98  }
99  /**
100   * @return LunRange[]
101   */
102  public function getLunRanges()
103  {
104    return $this->lunRanges;
105  }
106  /**
107   * @param string[]
108   */
109  public function setMachineIds($machineIds)
110  {
111    $this->machineIds = $machineIds;
112  }
113  /**
114   * @return string[]
115   */
116  public function getMachineIds()
117  {
118    return $this->machineIds;
119  }
120  /**
121   * @param string
122   */
123  public function setName($name)
124  {
125    $this->name = $name;
126  }
127  /**
128   * @return string
129   */
130  public function getName()
131  {
132    return $this->name;
133  }
134  /**
135   * @param NfsExport[]
136   */
137  public function setNfsExports($nfsExports)
138  {
139    $this->nfsExports = $nfsExports;
140  }
141  /**
142   * @return NfsExport[]
143   */
144  public function getNfsExports()
145  {
146    return $this->nfsExports;
147  }
148  /**
149   * @param string
150   */
151  public function setProtocol($protocol)
152  {
153    $this->protocol = $protocol;
154  }
155  /**
156   * @return string
157   */
158  public function getProtocol()
159  {
160    return $this->protocol;
161  }
162  /**
163   * @param int
164   */
165  public function setSizeGb($sizeGb)
166  {
167    $this->sizeGb = $sizeGb;
168  }
169  /**
170   * @return int
171   */
172  public function getSizeGb()
173  {
174    return $this->sizeGb;
175  }
176  /**
177   * @param bool
178   */
179  public function setSnapshotsEnabled($snapshotsEnabled)
180  {
181    $this->snapshotsEnabled = $snapshotsEnabled;
182  }
183  /**
184   * @return bool
185   */
186  public function getSnapshotsEnabled()
187  {
188    return $this->snapshotsEnabled;
189  }
190  /**
191   * @param string
192   */
193  public function setType($type)
194  {
195    $this->type = $type;
196  }
197  /**
198   * @return string
199   */
200  public function getType()
201  {
202    return $this->type;
203  }
204  /**
205   * @param string
206   */
207  public function setUserNote($userNote)
208  {
209    $this->userNote = $userNote;
210  }
211  /**
212   * @return string
213   */
214  public function getUserNote()
215  {
216    return $this->userNote;
217  }
218}
219
220// Adding a class alias for backwards compatibility with the previous class name.
221class_alias(VolumeConfig::class, 'Google_Service_Baremetalsolution_VolumeConfig');
222