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\Container;
19
20class NetworkConfig extends \Google\Model
21{
22  /**
23   * @var string
24   */
25  public $datapathProvider;
26  protected $defaultSnatStatusType = DefaultSnatStatus::class;
27  protected $defaultSnatStatusDataType = '';
28  protected $dnsConfigType = DNSConfig::class;
29  protected $dnsConfigDataType = '';
30  /**
31   * @var bool
32   */
33  public $enableIntraNodeVisibility;
34  /**
35   * @var bool
36   */
37  public $enableL4ilbSubsetting;
38  /**
39   * @var string
40   */
41  public $network;
42  /**
43   * @var string
44   */
45  public $privateIpv6GoogleAccess;
46  protected $serviceExternalIpsConfigType = ServiceExternalIPsConfig::class;
47  protected $serviceExternalIpsConfigDataType = '';
48  /**
49   * @var string
50   */
51  public $subnetwork;
52
53  /**
54   * @param string
55   */
56  public function setDatapathProvider($datapathProvider)
57  {
58    $this->datapathProvider = $datapathProvider;
59  }
60  /**
61   * @return string
62   */
63  public function getDatapathProvider()
64  {
65    return $this->datapathProvider;
66  }
67  /**
68   * @param DefaultSnatStatus
69   */
70  public function setDefaultSnatStatus(DefaultSnatStatus $defaultSnatStatus)
71  {
72    $this->defaultSnatStatus = $defaultSnatStatus;
73  }
74  /**
75   * @return DefaultSnatStatus
76   */
77  public function getDefaultSnatStatus()
78  {
79    return $this->defaultSnatStatus;
80  }
81  /**
82   * @param DNSConfig
83   */
84  public function setDnsConfig(DNSConfig $dnsConfig)
85  {
86    $this->dnsConfig = $dnsConfig;
87  }
88  /**
89   * @return DNSConfig
90   */
91  public function getDnsConfig()
92  {
93    return $this->dnsConfig;
94  }
95  /**
96   * @param bool
97   */
98  public function setEnableIntraNodeVisibility($enableIntraNodeVisibility)
99  {
100    $this->enableIntraNodeVisibility = $enableIntraNodeVisibility;
101  }
102  /**
103   * @return bool
104   */
105  public function getEnableIntraNodeVisibility()
106  {
107    return $this->enableIntraNodeVisibility;
108  }
109  /**
110   * @param bool
111   */
112  public function setEnableL4ilbSubsetting($enableL4ilbSubsetting)
113  {
114    $this->enableL4ilbSubsetting = $enableL4ilbSubsetting;
115  }
116  /**
117   * @return bool
118   */
119  public function getEnableL4ilbSubsetting()
120  {
121    return $this->enableL4ilbSubsetting;
122  }
123  /**
124   * @param string
125   */
126  public function setNetwork($network)
127  {
128    $this->network = $network;
129  }
130  /**
131   * @return string
132   */
133  public function getNetwork()
134  {
135    return $this->network;
136  }
137  /**
138   * @param string
139   */
140  public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
141  {
142    $this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
143  }
144  /**
145   * @return string
146   */
147  public function getPrivateIpv6GoogleAccess()
148  {
149    return $this->privateIpv6GoogleAccess;
150  }
151  /**
152   * @param ServiceExternalIPsConfig
153   */
154  public function setServiceExternalIpsConfig(ServiceExternalIPsConfig $serviceExternalIpsConfig)
155  {
156    $this->serviceExternalIpsConfig = $serviceExternalIpsConfig;
157  }
158  /**
159   * @return ServiceExternalIPsConfig
160   */
161  public function getServiceExternalIpsConfig()
162  {
163    return $this->serviceExternalIpsConfig;
164  }
165  /**
166   * @param string
167   */
168  public function setSubnetwork($subnetwork)
169  {
170    $this->subnetwork = $subnetwork;
171  }
172  /**
173   * @return string
174   */
175  public function getSubnetwork()
176  {
177    return $this->subnetwork;
178  }
179}
180
181// Adding a class alias for backwards compatibility with the previous class name.
182class_alias(NetworkConfig::class, 'Google_Service_Container_NetworkConfig');
183