Skip to content

Commit 1b68503

Browse files
1 parent 7e6e747 commit 1b68503

5 files changed

Lines changed: 175 additions & 3 deletions

src/Compute/BulkInsertInstanceResource.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class BulkInsertInstanceResource extends \Google\Model
2525
* @var string
2626
*/
2727
public $count;
28+
protected $instanceFlexibilityPolicyType = InstanceFlexibilityPolicy::class;
29+
protected $instanceFlexibilityPolicyDataType = '';
2830
protected $instancePropertiesType = InstanceProperties::class;
2931
protected $instancePropertiesDataType = '';
3032
protected $locationPolicyType = LocationPolicy::class;
@@ -90,6 +92,22 @@ public function getCount()
9092
{
9193
return $this->count;
9294
}
95+
/**
96+
* A flexible specification of machine type of instances to create.
97+
*
98+
* @param InstanceFlexibilityPolicy $instanceFlexibilityPolicy
99+
*/
100+
public function setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy $instanceFlexibilityPolicy)
101+
{
102+
$this->instanceFlexibilityPolicy = $instanceFlexibilityPolicy;
103+
}
104+
/**
105+
* @return InstanceFlexibilityPolicy
106+
*/
107+
public function getInstanceFlexibilityPolicy()
108+
{
109+
return $this->instanceFlexibilityPolicy;
110+
}
93111
/**
94112
* The instance properties defining the VM instances to be created. Required
95113
* if sourceInstanceTemplate is not provided.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 InstanceFlexibilityPolicy extends \Google\Model
21+
{
22+
protected $instanceSelectionsType = InstanceFlexibilityPolicyInstanceSelection::class;
23+
protected $instanceSelectionsDataType = 'map';
24+
25+
/**
26+
* Specification of alternative, flexible instance subsets. One of them will
27+
* be selected to create the instances based on various criteria, like: -
28+
* ranks, - location policy, - current capacity, - available reservations (you
29+
* can specify affinity in InstanceProperties), - SWAN/GOOSE limitations. Key
30+
* is an arbitrary, unique RFC1035 string that identifies the instance
31+
* selection.
32+
*
33+
* @param InstanceFlexibilityPolicyInstanceSelection[] $instanceSelections
34+
*/
35+
public function setInstanceSelections($instanceSelections)
36+
{
37+
$this->instanceSelections = $instanceSelections;
38+
}
39+
/**
40+
* @return InstanceFlexibilityPolicyInstanceSelection[]
41+
*/
42+
public function getInstanceSelections()
43+
{
44+
return $this->instanceSelections;
45+
}
46+
}
47+
48+
// Adding a class alias for backwards compatibility with the previous class name.
49+
class_alias(InstanceFlexibilityPolicy::class, 'Google_Service_Compute_InstanceFlexibilityPolicy');
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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 InstanceFlexibilityPolicyInstanceSelection extends \Google\Collection
21+
{
22+
protected $collection_key = 'machineTypes';
23+
protected $disksType = AttachedDisk::class;
24+
protected $disksDataType = 'array';
25+
/**
26+
* Alternative machine types to use for instances that are created from these
27+
* properties. This field only accepts a machine type names, for example
28+
* `n2-standard-4` and not URLs or partial URLs.
29+
*
30+
* @var string[]
31+
*/
32+
public $machineTypes;
33+
/**
34+
* Rank when prioritizing the shape flexibilities. The instance selections
35+
* with rank are considered first, in the ascending order of the rank. If not
36+
* set, defaults to 0.
37+
*
38+
* @var string
39+
*/
40+
public $rank;
41+
42+
/**
43+
* Disks to be attached to the instances created from in this selection. They
44+
* override the disks specified in the instance properties.
45+
*
46+
* @param AttachedDisk[] $disks
47+
*/
48+
public function setDisks($disks)
49+
{
50+
$this->disks = $disks;
51+
}
52+
/**
53+
* @return AttachedDisk[]
54+
*/
55+
public function getDisks()
56+
{
57+
return $this->disks;
58+
}
59+
/**
60+
* Alternative machine types to use for instances that are created from these
61+
* properties. This field only accepts a machine type names, for example
62+
* `n2-standard-4` and not URLs or partial URLs.
63+
*
64+
* @param string[] $machineTypes
65+
*/
66+
public function setMachineTypes($machineTypes)
67+
{
68+
$this->machineTypes = $machineTypes;
69+
}
70+
/**
71+
* @return string[]
72+
*/
73+
public function getMachineTypes()
74+
{
75+
return $this->machineTypes;
76+
}
77+
/**
78+
* Rank when prioritizing the shape flexibilities. The instance selections
79+
* with rank are considered first, in the ascending order of the rank. If not
80+
* set, defaults to 0.
81+
*
82+
* @param string $rank
83+
*/
84+
public function setRank($rank)
85+
{
86+
$this->rank = $rank;
87+
}
88+
/**
89+
* @return string
90+
*/
91+
public function getRank()
92+
{
93+
return $this->rank;
94+
}
95+
}
96+
97+
// Adding a class alias for backwards compatibility with the previous class name.
98+
class_alias(InstanceFlexibilityPolicyInstanceSelection::class, 'Google_Service_Compute_InstanceFlexibilityPolicyInstanceSelection');

src/Compute/InstancesReportHostAsFaultyRequestFaultReason.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class InstancesReportHostAsFaultyRequestFaultReason extends \Google\Model
2525
public const BEHAVIOR_BEHAVIOR_UNSPECIFIED = 'BEHAVIOR_UNSPECIFIED';
2626
public const BEHAVIOR_PERFORMANCE = 'PERFORMANCE';
2727
public const BEHAVIOR_SILENT_DATA_CORRUPTION = 'SILENT_DATA_CORRUPTION';
28+
/**
29+
* Unrecoverable GPU error identified by an XID
30+
*/
2831
public const BEHAVIOR_UNRECOVERABLE_GPU_ERROR = 'UNRECOVERABLE_GPU_ERROR';
2932
/**
3033
* @var string

src/Compute/InterconnectAttachment.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class InterconnectAttachment extends \Google\Collection
5151
* 300 Mbit/s
5252
*/
5353
public const BANDWIDTH_BPS_300M = 'BPS_300M';
54+
/**
55+
* 400 Gbit/s
56+
*/
57+
public const BANDWIDTH_BPS_400G = 'BPS_400G';
5458
/**
5559
* 400 Mbit/s
5660
*/
@@ -177,7 +181,7 @@ class InterconnectAttachment extends \Google\Collection
177181
* BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s
178182
* - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s -
179183
* BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s -
180-
* BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
184+
* BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s
181185
*
182186
* @var string
183187
*/
@@ -612,10 +616,10 @@ public function getAttachmentGroup()
612616
* BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s
613617
* - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s -
614618
* BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s -
615-
* BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
619+
* BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s
616620
*
617621
* Accepted values: BPS_100G, BPS_100M, BPS_10G, BPS_1G, BPS_200M, BPS_20G,
618-
* BPS_2G, BPS_300M, BPS_400M, BPS_500M, BPS_50G, BPS_50M, BPS_5G
622+
* BPS_2G, BPS_300M, BPS_400G, BPS_400M, BPS_500M, BPS_50G, BPS_50M, BPS_5G
619623
*
620624
* @param self::BANDWIDTH_* $bandwidth
621625
*/

0 commit comments

Comments
 (0)