Skip to content

Commit 83e4014

Browse files
1 parent b14a6b8 commit 83e4014

11 files changed

Lines changed: 529 additions & 1 deletion

src/Container/AddonsConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class AddonsConfig extends \Google\Model
4949
protected $parallelstoreCsiDriverConfigDataType = '';
5050
protected $rayOperatorConfigType = RayOperatorConfig::class;
5151
protected $rayOperatorConfigDataType = '';
52+
protected $sliceControllerConfigType = SliceControllerConfig::class;
53+
protected $sliceControllerConfigDataType = '';
5254
protected $statefulHaConfigType = StatefulHAConfig::class;
5355
protected $statefulHaConfigDataType = '';
5456

@@ -305,6 +307,22 @@ public function getRayOperatorConfig()
305307
{
306308
return $this->rayOperatorConfig;
307309
}
310+
/**
311+
* Optional. Configuration for the slice controller add-on.
312+
*
313+
* @param SliceControllerConfig $sliceControllerConfig
314+
*/
315+
public function setSliceControllerConfig(SliceControllerConfig $sliceControllerConfig)
316+
{
317+
$this->sliceControllerConfig = $sliceControllerConfig;
318+
}
319+
/**
320+
* @return SliceControllerConfig
321+
*/
322+
public function getSliceControllerConfig()
323+
{
324+
return $this->sliceControllerConfig;
325+
}
308326
/**
309327
* Optional. Configuration for the StatefulHA add-on.
310328
*

src/Container/BootDiskProfile.php

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
18+
namespace Google\Service\Container;
19+
20+
class BootDiskProfile extends \Google\Model
21+
{
22+
/**
23+
* Specifies the size of the swap space in gibibytes (GiB).
24+
*
25+
* @var string
26+
*/
27+
public $swapSizeGib;
28+
/**
29+
* Specifies the size of the swap space as a percentage of the boot disk size.
30+
*
31+
* @var int
32+
*/
33+
public $swapSizePercent;
34+
35+
/**
36+
* Specifies the size of the swap space in gibibytes (GiB).
37+
*
38+
* @param string $swapSizeGib
39+
*/
40+
public function setSwapSizeGib($swapSizeGib)
41+
{
42+
$this->swapSizeGib = $swapSizeGib;
43+
}
44+
/**
45+
* @return string
46+
*/
47+
public function getSwapSizeGib()
48+
{
49+
return $this->swapSizeGib;
50+
}
51+
/**
52+
* Specifies the size of the swap space as a percentage of the boot disk size.
53+
*
54+
* @param int $swapSizePercent
55+
*/
56+
public function setSwapSizePercent($swapSizePercent)
57+
{
58+
$this->swapSizePercent = $swapSizePercent;
59+
}
60+
/**
61+
* @return int
62+
*/
63+
public function getSwapSizePercent()
64+
{
65+
return $this->swapSizePercent;
66+
}
67+
}
68+
69+
// Adding a class alias for backwards compatibility with the previous class name.
70+
class_alias(BootDiskProfile::class, 'Google_Service_Container_BootDiskProfile');
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
18+
namespace Google\Service\Container;
19+
20+
class DedicatedLocalSsdProfile extends \Google\Model
21+
{
22+
/**
23+
* The number of physical local NVMe SSD disks to attach.
24+
*
25+
* @var string
26+
*/
27+
public $diskCount;
28+
29+
/**
30+
* The number of physical local NVMe SSD disks to attach.
31+
*
32+
* @param string $diskCount
33+
*/
34+
public function setDiskCount($diskCount)
35+
{
36+
$this->diskCount = $diskCount;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getDiskCount()
42+
{
43+
return $this->diskCount;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(DedicatedLocalSsdProfile::class, 'Google_Service_Container_DedicatedLocalSsdProfile');

src/Container/EncryptionConfig.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
18+
namespace Google\Service\Container;
19+
20+
class EncryptionConfig extends \Google\Model
21+
{
22+
/**
23+
* Optional. If true, swap space will not be encrypted. Defaults to false
24+
* (encrypted).
25+
*
26+
* @var bool
27+
*/
28+
public $disabled;
29+
30+
/**
31+
* Optional. If true, swap space will not be encrypted. Defaults to false
32+
* (encrypted).
33+
*
34+
* @param bool $disabled
35+
*/
36+
public function setDisabled($disabled)
37+
{
38+
$this->disabled = $disabled;
39+
}
40+
/**
41+
* @return bool
42+
*/
43+
public function getDisabled()
44+
{
45+
return $this->disabled;
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(EncryptionConfig::class, 'Google_Service_Container_EncryptionConfig');
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
18+
namespace Google\Service\Container;
19+
20+
class EphemeralLocalSsdProfile extends \Google\Model
21+
{
22+
/**
23+
* Specifies the size of the swap space in gibibytes (GiB).
24+
*
25+
* @var string
26+
*/
27+
public $swapSizeGib;
28+
/**
29+
* Specifies the size of the swap space as a percentage of the ephemeral local
30+
* SSD capacity.
31+
*
32+
* @var int
33+
*/
34+
public $swapSizePercent;
35+
36+
/**
37+
* Specifies the size of the swap space in gibibytes (GiB).
38+
*
39+
* @param string $swapSizeGib
40+
*/
41+
public function setSwapSizeGib($swapSizeGib)
42+
{
43+
$this->swapSizeGib = $swapSizeGib;
44+
}
45+
/**
46+
* @return string
47+
*/
48+
public function getSwapSizeGib()
49+
{
50+
return $this->swapSizeGib;
51+
}
52+
/**
53+
* Specifies the size of the swap space as a percentage of the ephemeral local
54+
* SSD capacity.
55+
*
56+
* @param int $swapSizePercent
57+
*/
58+
public function setSwapSizePercent($swapSizePercent)
59+
{
60+
$this->swapSizePercent = $swapSizePercent;
61+
}
62+
/**
63+
* @return int
64+
*/
65+
public function getSwapSizePercent()
66+
{
67+
return $this->swapSizePercent;
68+
}
69+
}
70+
71+
// Adding a class alias for backwards compatibility with the previous class name.
72+
class_alias(EphemeralLocalSsdProfile::class, 'Google_Service_Container_EphemeralLocalSsdProfile');

src/Container/GPUDirectConfig.php

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
18+
namespace Google\Service\Container;
19+
20+
class GPUDirectConfig extends \Google\Model
21+
{
22+
/**
23+
* Default value. No GPU Direct strategy is enabled on the node.
24+
*/
25+
public const GPU_DIRECT_STRATEGY_GPU_DIRECT_STRATEGY_UNSPECIFIED = 'GPU_DIRECT_STRATEGY_UNSPECIFIED';
26+
/**
27+
* GPUDirect-RDMA on A3 Ultra, and A4 machine types
28+
*/
29+
public const GPU_DIRECT_STRATEGY_RDMA = 'RDMA';
30+
/**
31+
* The type of GPU direct strategy to enable on the node pool.
32+
*
33+
* @var string
34+
*/
35+
public $gpuDirectStrategy;
36+
37+
/**
38+
* The type of GPU direct strategy to enable on the node pool.
39+
*
40+
* Accepted values: GPU_DIRECT_STRATEGY_UNSPECIFIED, RDMA
41+
*
42+
* @param self::GPU_DIRECT_STRATEGY_* $gpuDirectStrategy
43+
*/
44+
public function setGpuDirectStrategy($gpuDirectStrategy)
45+
{
46+
$this->gpuDirectStrategy = $gpuDirectStrategy;
47+
}
48+
/**
49+
* @return self::GPU_DIRECT_STRATEGY_*
50+
*/
51+
public function getGpuDirectStrategy()
52+
{
53+
return $this->gpuDirectStrategy;
54+
}
55+
}
56+
57+
// Adding a class alias for backwards compatibility with the previous class name.
58+
class_alias(GPUDirectConfig::class, 'Google_Service_Container_GPUDirectConfig');

src/Container/LinuxNodeConfig.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ class LinuxNodeConfig extends \Google\Model
9595
protected $hugepagesDataType = '';
9696
protected $nodeKernelModuleLoadingType = NodeKernelModuleLoading::class;
9797
protected $nodeKernelModuleLoadingDataType = '';
98+
protected $swapConfigType = SwapConfig::class;
99+
protected $swapConfigDataType = '';
98100
/**
99101
* The Linux kernel parameters to be applied to the nodes and all pods running
100102
* on the nodes. The following parameters are supported. net.core.busy_poll
@@ -195,6 +197,23 @@ public function getNodeKernelModuleLoading()
195197
{
196198
return $this->nodeKernelModuleLoading;
197199
}
200+
/**
201+
* Optional. Enables and configures swap space on nodes. If omitted, swap is
202+
* disabled.
203+
*
204+
* @param SwapConfig $swapConfig
205+
*/
206+
public function setSwapConfig(SwapConfig $swapConfig)
207+
{
208+
$this->swapConfig = $swapConfig;
209+
}
210+
/**
211+
* @return SwapConfig
212+
*/
213+
public function getSwapConfig()
214+
{
215+
return $this->swapConfig;
216+
}
198217
/**
199218
* The Linux kernel parameters to be applied to the nodes and all pods running
200219
* on the nodes. The following parameters are supported. net.core.busy_poll

src/Container/NodeConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class NodeConfig extends \Google\Collection
121121
public $flexStart;
122122
protected $gcfsConfigType = GcfsConfig::class;
123123
protected $gcfsConfigDataType = '';
124+
protected $gpuDirectConfigType = GPUDirectConfig::class;
125+
protected $gpuDirectConfigDataType = '';
124126
protected $gvnicType = VirtualNIC::class;
125127
protected $gvnicDataType = '';
126128
/**
@@ -563,6 +565,22 @@ public function getGcfsConfig()
563565
{
564566
return $this->gcfsConfig;
565567
}
568+
/**
569+
* The configuration for GPU Direct
570+
*
571+
* @param GPUDirectConfig $gpuDirectConfig
572+
*/
573+
public function setGpuDirectConfig(GPUDirectConfig $gpuDirectConfig)
574+
{
575+
$this->gpuDirectConfig = $gpuDirectConfig;
576+
}
577+
/**
578+
* @return GPUDirectConfig
579+
*/
580+
public function getGpuDirectConfig()
581+
{
582+
return $this->gpuDirectConfig;
583+
}
566584
/**
567585
* Enable or disable gvnic in the node pool.
568586
*

0 commit comments

Comments
 (0)