Skip to content

Commit 3672247

Browse files
1 parent 96778ef commit 3672247

14 files changed

Lines changed: 332 additions & 46 deletions

src/Compute.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13083,6 +13083,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1308313083
'type' => 'string',
1308413084
],
1308513085
],
13086+
],'testIamPermissions' => [
13087+
'path' => 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions',
13088+
'httpMethod' => 'POST',
13089+
'parameters' => [
13090+
'project' => [
13091+
'location' => 'path',
13092+
'type' => 'string',
13093+
'required' => true,
13094+
],
13095+
'region' => [
13096+
'location' => 'path',
13097+
'type' => 'string',
13098+
'required' => true,
13099+
],
13100+
'resource' => [
13101+
'location' => 'path',
13102+
'type' => 'string',
13103+
'required' => true,
13104+
],
13105+
],
1308613106
],
1308713107
]
1308813108
]

src/Compute/BundledLocalSsds.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\Compute;
19+
20+
class BundledLocalSsds extends \Google\Model
21+
{
22+
/**
23+
* The default disk interface if the interface is not specified.
24+
*
25+
* @var string
26+
*/
27+
public $defaultInterface;
28+
/**
29+
* The number of partitions.
30+
*
31+
* @var int
32+
*/
33+
public $partitionCount;
34+
35+
/**
36+
* The default disk interface if the interface is not specified.
37+
*
38+
* @param string $defaultInterface
39+
*/
40+
public function setDefaultInterface($defaultInterface)
41+
{
42+
$this->defaultInterface = $defaultInterface;
43+
}
44+
/**
45+
* @return string
46+
*/
47+
public function getDefaultInterface()
48+
{
49+
return $this->defaultInterface;
50+
}
51+
/**
52+
* The number of partitions.
53+
*
54+
* @param int $partitionCount
55+
*/
56+
public function setPartitionCount($partitionCount)
57+
{
58+
$this->partitionCount = $partitionCount;
59+
}
60+
/**
61+
* @return int
62+
*/
63+
public function getPartitionCount()
64+
{
65+
return $this->partitionCount;
66+
}
67+
}
68+
69+
// Adding a class alias for backwards compatibility with the previous class name.
70+
class_alias(BundledLocalSsds::class, 'Google_Service_Compute_BundledLocalSsds');

src/Compute/Commitment.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Commitment extends \Google\Collection
5353
public const TYPE_GENERAL_PURPOSE_N2 = 'GENERAL_PURPOSE_N2';
5454
public const TYPE_GENERAL_PURPOSE_N2D = 'GENERAL_PURPOSE_N2D';
5555
public const TYPE_GENERAL_PURPOSE_N4 = 'GENERAL_PURPOSE_N4';
56+
public const TYPE_GENERAL_PURPOSE_N4A = 'GENERAL_PURPOSE_N4A';
5657
public const TYPE_GENERAL_PURPOSE_N4D = 'GENERAL_PURPOSE_N4D';
5758
public const TYPE_GENERAL_PURPOSE_T2D = 'GENERAL_PURPOSE_T2D';
5859
public const TYPE_GRAPHICS_OPTIMIZED = 'GRAPHICS_OPTIMIZED';
@@ -694,14 +695,14 @@ public function getStatusMessage()
694695
* COMPUTE_OPTIMIZED_H4D, GENERAL_PURPOSE, GENERAL_PURPOSE_C4,
695696
* GENERAL_PURPOSE_C4A, GENERAL_PURPOSE_C4D, GENERAL_PURPOSE_E2,
696697
* GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4,
697-
* GENERAL_PURPOSE_N4D, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED,
698-
* GRAPHICS_OPTIMIZED_G4, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,
699-
* MEMORY_OPTIMIZED_M4, MEMORY_OPTIMIZED_M4_6TB, MEMORY_OPTIMIZED_X4_1440_24T,
700-
* MEMORY_OPTIMIZED_X4_16TB, MEMORY_OPTIMIZED_X4_1920_32T,
701-
* MEMORY_OPTIMIZED_X4_24TB, MEMORY_OPTIMIZED_X4_32TB,
702-
* MEMORY_OPTIMIZED_X4_480_6T, MEMORY_OPTIMIZED_X4_480_8T,
703-
* MEMORY_OPTIMIZED_X4_960_12T, MEMORY_OPTIMIZED_X4_960_16T,
704-
* STORAGE_OPTIMIZED_Z3, TYPE_UNSPECIFIED
698+
* GENERAL_PURPOSE_N4A, GENERAL_PURPOSE_N4D, GENERAL_PURPOSE_T2D,
699+
* GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4, MEMORY_OPTIMIZED,
700+
* MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_M4, MEMORY_OPTIMIZED_M4_6TB,
701+
* MEMORY_OPTIMIZED_X4_1440_24T, MEMORY_OPTIMIZED_X4_16TB,
702+
* MEMORY_OPTIMIZED_X4_1920_32T, MEMORY_OPTIMIZED_X4_24TB,
703+
* MEMORY_OPTIMIZED_X4_32TB, MEMORY_OPTIMIZED_X4_480_6T,
704+
* MEMORY_OPTIMIZED_X4_480_8T, MEMORY_OPTIMIZED_X4_960_12T,
705+
* MEMORY_OPTIMIZED_X4_960_16T, STORAGE_OPTIMIZED_Z3, TYPE_UNSPECIFIED
705706
*
706707
* @param self::TYPE_* $type
707708
*/

src/Compute/InstancesReportHostAsFaultyRequestFaultReason.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class InstancesReportHostAsFaultyRequestFaultReason extends \Google\Model
2323
* Public reportable behaviors
2424
*/
2525
public const BEHAVIOR_BEHAVIOR_UNSPECIFIED = 'BEHAVIOR_UNSPECIFIED';
26+
/**
27+
* Any GPU or TPU errors or faults where the accelerator becomes unusable
28+
*/
29+
public const BEHAVIOR_CHIP_ERROR = 'CHIP_ERROR';
2630
public const BEHAVIOR_PERFORMANCE = 'PERFORMANCE';
2731
public const BEHAVIOR_SILENT_DATA_CORRUPTION = 'SILENT_DATA_CORRUPTION';
2832
/**

src/Compute/MachineImage.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ class MachineImage extends \Google\Collection
9595
* @var string
9696
*/
9797
public $name;
98+
protected $paramsType = MachineImageParams::class;
99+
protected $paramsDataType = '';
98100
/**
99101
* Output only. Reserved for future use.
100102
*
@@ -342,6 +344,23 @@ public function getName()
342344
{
343345
return $this->name;
344346
}
347+
/**
348+
* Input only. [Input Only] Additional parameters that are passed in the
349+
* request, but are not persisted in the resource.
350+
*
351+
* @param MachineImageParams $params
352+
*/
353+
public function setParams(MachineImageParams $params)
354+
{
355+
$this->params = $params;
356+
}
357+
/**
358+
* @return MachineImageParams
359+
*/
360+
public function getParams()
361+
{
362+
return $this->params;
363+
}
345364
/**
346365
* Output only. Reserved for future use.
347366
*

src/Compute/MachineImageParams.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\Compute;
19+
20+
class MachineImageParams extends \Google\Model
21+
{
22+
/**
23+
* Input only. Resource manager tags to be bound to the machine image. Tag
24+
* keys and values have the same definition as resource manager tags. Keys and
25+
* values can be either in numeric format, such as `tagKeys/{tag_key_id}` and
26+
* `tagValues/{tag_value_id}` or in namespaced format such as
27+
* `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`.
28+
* The field is ignored (both PUT & PATCH) when empty.
29+
*
30+
* @var string[]
31+
*/
32+
public $resourceManagerTags;
33+
34+
/**
35+
* Input only. Resource manager tags to be bound to the machine image. Tag
36+
* keys and values have the same definition as resource manager tags. Keys and
37+
* values can be either in numeric format, such as `tagKeys/{tag_key_id}` and
38+
* `tagValues/{tag_value_id}` or in namespaced format such as
39+
* `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`.
40+
* The field is ignored (both PUT & PATCH) when empty.
41+
*
42+
* @param string[] $resourceManagerTags
43+
*/
44+
public function setResourceManagerTags($resourceManagerTags)
45+
{
46+
$this->resourceManagerTags = $resourceManagerTags;
47+
}
48+
/**
49+
* @return string[]
50+
*/
51+
public function getResourceManagerTags()
52+
{
53+
return $this->resourceManagerTags;
54+
}
55+
}
56+
57+
// Adding a class alias for backwards compatibility with the previous class name.
58+
class_alias(MachineImageParams::class, 'Google_Service_Compute_MachineImageParams');

src/Compute/MachineType.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class MachineType extends \Google\Collection
4040
* @var string
4141
*/
4242
public $architecture;
43+
protected $bundledLocalSsdsType = BundledLocalSsds::class;
44+
protected $bundledLocalSsdsDataType = '';
4345
/**
4446
* [Output Only] Creation timestamp inRFC3339 text format.
4547
*
@@ -163,6 +165,22 @@ public function getArchitecture()
163165
{
164166
return $this->architecture;
165167
}
168+
/**
169+
* [Output Only] The configuration of bundled local SSD for the machine type.
170+
*
171+
* @param BundledLocalSsds $bundledLocalSsds
172+
*/
173+
public function setBundledLocalSsds(BundledLocalSsds $bundledLocalSsds)
174+
{
175+
$this->bundledLocalSsds = $bundledLocalSsds;
176+
}
177+
/**
178+
* @return BundledLocalSsds
179+
*/
180+
public function getBundledLocalSsds()
181+
{
182+
return $this->bundledLocalSsds;
183+
}
166184
/**
167185
* [Output Only] Creation timestamp inRFC3339 text format.
168186
*

src/Compute/NetworkPeering.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ class NetworkPeering extends \Google\Model
144144
*/
145145
public $stackType;
146146
/**
147-
* Output only. [Output Only] State for the peering, either `ACTIVE` or
148-
* `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration
149-
* in the peer network.
147+
* Output only. [Output Only] State for the peering.
150148
*
151149
* @var string
152150
*/
@@ -368,9 +366,7 @@ public function getStackType()
368366
return $this->stackType;
369367
}
370368
/**
371-
* Output only. [Output Only] State for the peering, either `ACTIVE` or
372-
* `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration
373-
* in the peer network.
369+
* Output only. [Output Only] State for the peering.
374370
*
375371
* Accepted values: ACTIVE, INACTIVE
376372
*

src/Compute/Resource/RegionHealthCheckServices.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
use Google\Service\Compute\HealthCheckService;
2121
use Google\Service\Compute\HealthCheckServicesList;
2222
use Google\Service\Compute\Operation;
23+
use Google\Service\Compute\TestPermissionsRequest;
24+
use Google\Service\Compute\TestPermissionsResponse;
2325

2426
/**
2527
* The "regionHealthCheckServices" collection of methods.
@@ -232,6 +234,24 @@ public function patch($project, $region, $healthCheckService, HealthCheckService
232234
$params = array_merge($params, $optParams);
233235
return $this->call('patch', [$params], Operation::class);
234236
}
237+
/**
238+
* Returns permissions that a caller has on the specified resource.
239+
* (regionHealthCheckServices.testIamPermissions)
240+
*
241+
* @param string $project Project ID for this request.
242+
* @param string $region The name of the region for this request.
243+
* @param string $resource Name or id of the resource for this request.
244+
* @param TestPermissionsRequest $postBody
245+
* @param array $optParams Optional parameters.
246+
* @return TestPermissionsResponse
247+
* @throws \Google\Service\Exception
248+
*/
249+
public function testIamPermissions($project, $region, $resource, TestPermissionsRequest $postBody, $optParams = [])
250+
{
251+
$params = ['project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody];
252+
$params = array_merge($params, $optParams);
253+
return $this->call('testIamPermissions', [$params], TestPermissionsResponse::class);
254+
}
235255
}
236256

237257
// Adding a class alias for backwards compatibility with the previous class name.

src/Compute/ResourcePolicyGroupPlacementPolicy.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,24 @@
1919

2020
class ResourcePolicyGroupPlacementPolicy extends \Google\Model
2121
{
22+
/**
23+
* The interconnected chips are pre-configured at the time of VM creation.
24+
*/
25+
public const ACCELERATOR_TOPOLOGY_MODE_AUTO_CONNECT = 'AUTO_CONNECT';
26+
/**
27+
* The interconnected chips are connected on demand. At the time of VM
28+
* creation, the chips are not connected.
29+
*/
30+
public const ACCELERATOR_TOPOLOGY_MODE_PROVISION_ONLY = 'PROVISION_ONLY';
2231
public const COLLOCATION_COLLOCATED = 'COLLOCATED';
2332
public const COLLOCATION_UNSPECIFIED_COLLOCATION = 'UNSPECIFIED_COLLOCATION';
33+
/**
34+
* Specifies the connection mode for the accelerator topology. If not
35+
* specified, the default is AUTO_CONNECT.
36+
*
37+
* @var string
38+
*/
39+
public $acceleratorTopologyMode;
2440
/**
2541
* The number of availability domains to spread instances across. If two
2642
* instances are in different availability domain, they are not in the same
@@ -50,6 +66,25 @@ class ResourcePolicyGroupPlacementPolicy extends \Google\Model
5066
*/
5167
public $vmCount;
5268

69+
/**
70+
* Specifies the connection mode for the accelerator topology. If not
71+
* specified, the default is AUTO_CONNECT.
72+
*
73+
* Accepted values: AUTO_CONNECT, PROVISION_ONLY
74+
*
75+
* @param self::ACCELERATOR_TOPOLOGY_MODE_* $acceleratorTopologyMode
76+
*/
77+
public function setAcceleratorTopologyMode($acceleratorTopologyMode)
78+
{
79+
$this->acceleratorTopologyMode = $acceleratorTopologyMode;
80+
}
81+
/**
82+
* @return self::ACCELERATOR_TOPOLOGY_MODE_*
83+
*/
84+
public function getAcceleratorTopologyMode()
85+
{
86+
return $this->acceleratorTopologyMode;
87+
}
5388
/**
5489
* The number of availability domains to spread instances across. If two
5590
* instances are in different availability domain, they are not in the same

0 commit comments

Comments
 (0)