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\ServiceNetworking;
19
20class AddSubnetworkRequest extends \Google\Collection
21{
22  protected $collection_key = 'subnetworkUsers';
23  /**
24   * @var bool
25   */
26  public $checkServiceNetworkingUsePermission;
27  /**
28   * @var string
29   */
30  public $consumer;
31  /**
32   * @var string
33   */
34  public $consumerNetwork;
35  /**
36   * @var string
37   */
38  public $description;
39  /**
40   * @var int
41   */
42  public $ipPrefixLength;
43  /**
44   * @var string
45   */
46  public $outsideAllocationPublicIpRange;
47  /**
48   * @var string
49   */
50  public $privateIpv6GoogleAccess;
51  /**
52   * @var string
53   */
54  public $purpose;
55  /**
56   * @var string
57   */
58  public $region;
59  /**
60   * @var string
61   */
62  public $requestedAddress;
63  /**
64   * @var string[]
65   */
66  public $requestedRanges;
67  protected $secondaryIpRangeSpecsType = SecondaryIpRangeSpec::class;
68  protected $secondaryIpRangeSpecsDataType = 'array';
69  /**
70   * @var string
71   */
72  public $subnetwork;
73  /**
74   * @var string[]
75   */
76  public $subnetworkUsers;
77
78  /**
79   * @param bool
80   */
81  public function setCheckServiceNetworkingUsePermission($checkServiceNetworkingUsePermission)
82  {
83    $this->checkServiceNetworkingUsePermission = $checkServiceNetworkingUsePermission;
84  }
85  /**
86   * @return bool
87   */
88  public function getCheckServiceNetworkingUsePermission()
89  {
90    return $this->checkServiceNetworkingUsePermission;
91  }
92  /**
93   * @param string
94   */
95  public function setConsumer($consumer)
96  {
97    $this->consumer = $consumer;
98  }
99  /**
100   * @return string
101   */
102  public function getConsumer()
103  {
104    return $this->consumer;
105  }
106  /**
107   * @param string
108   */
109  public function setConsumerNetwork($consumerNetwork)
110  {
111    $this->consumerNetwork = $consumerNetwork;
112  }
113  /**
114   * @return string
115   */
116  public function getConsumerNetwork()
117  {
118    return $this->consumerNetwork;
119  }
120  /**
121   * @param string
122   */
123  public function setDescription($description)
124  {
125    $this->description = $description;
126  }
127  /**
128   * @return string
129   */
130  public function getDescription()
131  {
132    return $this->description;
133  }
134  /**
135   * @param int
136   */
137  public function setIpPrefixLength($ipPrefixLength)
138  {
139    $this->ipPrefixLength = $ipPrefixLength;
140  }
141  /**
142   * @return int
143   */
144  public function getIpPrefixLength()
145  {
146    return $this->ipPrefixLength;
147  }
148  /**
149   * @param string
150   */
151  public function setOutsideAllocationPublicIpRange($outsideAllocationPublicIpRange)
152  {
153    $this->outsideAllocationPublicIpRange = $outsideAllocationPublicIpRange;
154  }
155  /**
156   * @return string
157   */
158  public function getOutsideAllocationPublicIpRange()
159  {
160    return $this->outsideAllocationPublicIpRange;
161  }
162  /**
163   * @param string
164   */
165  public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
166  {
167    $this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
168  }
169  /**
170   * @return string
171   */
172  public function getPrivateIpv6GoogleAccess()
173  {
174    return $this->privateIpv6GoogleAccess;
175  }
176  /**
177   * @param string
178   */
179  public function setPurpose($purpose)
180  {
181    $this->purpose = $purpose;
182  }
183  /**
184   * @return string
185   */
186  public function getPurpose()
187  {
188    return $this->purpose;
189  }
190  /**
191   * @param string
192   */
193  public function setRegion($region)
194  {
195    $this->region = $region;
196  }
197  /**
198   * @return string
199   */
200  public function getRegion()
201  {
202    return $this->region;
203  }
204  /**
205   * @param string
206   */
207  public function setRequestedAddress($requestedAddress)
208  {
209    $this->requestedAddress = $requestedAddress;
210  }
211  /**
212   * @return string
213   */
214  public function getRequestedAddress()
215  {
216    return $this->requestedAddress;
217  }
218  /**
219   * @param string[]
220   */
221  public function setRequestedRanges($requestedRanges)
222  {
223    $this->requestedRanges = $requestedRanges;
224  }
225  /**
226   * @return string[]
227   */
228  public function getRequestedRanges()
229  {
230    return $this->requestedRanges;
231  }
232  /**
233   * @param SecondaryIpRangeSpec[]
234   */
235  public function setSecondaryIpRangeSpecs($secondaryIpRangeSpecs)
236  {
237    $this->secondaryIpRangeSpecs = $secondaryIpRangeSpecs;
238  }
239  /**
240   * @return SecondaryIpRangeSpec[]
241   */
242  public function getSecondaryIpRangeSpecs()
243  {
244    return $this->secondaryIpRangeSpecs;
245  }
246  /**
247   * @param string
248   */
249  public function setSubnetwork($subnetwork)
250  {
251    $this->subnetwork = $subnetwork;
252  }
253  /**
254   * @return string
255   */
256  public function getSubnetwork()
257  {
258    return $this->subnetwork;
259  }
260  /**
261   * @param string[]
262   */
263  public function setSubnetworkUsers($subnetworkUsers)
264  {
265    $this->subnetworkUsers = $subnetworkUsers;
266  }
267  /**
268   * @return string[]
269   */
270  public function getSubnetworkUsers()
271  {
272    return $this->subnetworkUsers;
273  }
274}
275
276// Adding a class alias for backwards compatibility with the previous class name.
277class_alias(AddSubnetworkRequest::class, 'Google_Service_ServiceNetworking_AddSubnetworkRequest');
278