Skip to content

Commit fa912da

Browse files
1 parent 2ea6d3b commit fa912da

13 files changed

+491
-1
lines changed

src/Compute.php

+24
Original file line numberDiff line numberDiff line change
@@ -5750,6 +5750,30 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
57505750
'type' => 'string',
57515751
],
57525752
],
5753+
],'reportHostAsFaulty' => [
5754+
'path' => 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty',
5755+
'httpMethod' => 'POST',
5756+
'parameters' => [
5757+
'project' => [
5758+
'location' => 'path',
5759+
'type' => 'string',
5760+
'required' => true,
5761+
],
5762+
'zone' => [
5763+
'location' => 'path',
5764+
'type' => 'string',
5765+
'required' => true,
5766+
],
5767+
'instance' => [
5768+
'location' => 'path',
5769+
'type' => 'string',
5770+
'required' => true,
5771+
],
5772+
'requestId' => [
5773+
'location' => 'query',
5774+
'type' => 'string',
5775+
],
5776+
],
57535777
],'reset' => [
57545778
'path' => 'projects/{project}/zones/{zone}/instances/{instance}/reset',
57555779
'httpMethod' => 'POST',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 AllocationReservationSharingPolicy extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $serviceShareType;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setServiceShareType($serviceShareType)
31+
{
32+
$this->serviceShareType = $serviceShareType;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getServiceShareType()
38+
{
39+
return $this->serviceShareType;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(AllocationReservationSharingPolicy::class, 'Google_Service_Compute_AllocationReservationSharingPolicy');

src/Compute/AllocationResourceStatusSpecificSKUAllocation.php

+18
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class AllocationResourceStatusSpecificSKUAllocation extends \Google\Model
2323
* @var string
2424
*/
2525
public $sourceInstanceTemplateId;
26+
/**
27+
* @var string[]
28+
*/
29+
public $utilizations;
2630

2731
/**
2832
* @param string
@@ -38,6 +42,20 @@ public function getSourceInstanceTemplateId()
3842
{
3943
return $this->sourceInstanceTemplateId;
4044
}
45+
/**
46+
* @param string[]
47+
*/
48+
public function setUtilizations($utilizations)
49+
{
50+
$this->utilizations = $utilizations;
51+
}
52+
/**
53+
* @return string[]
54+
*/
55+
public function getUtilizations()
56+
{
57+
return $this->utilizations;
58+
}
4159
}
4260

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

src/Compute/Backend.php

+18-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
namespace Google\Service\Compute;
1919

20-
class Backend extends \Google\Model
20+
class Backend extends \Google\Collection
2121
{
22+
protected $collection_key = 'customMetrics';
2223
/**
2324
* @var string
2425
*/
@@ -27,6 +28,8 @@ class Backend extends \Google\Model
2728
* @var float
2829
*/
2930
public $capacityScaler;
31+
protected $customMetricsType = BackendCustomMetric::class;
32+
protected $customMetricsDataType = 'array';
3033
/**
3134
* @var string
3235
*/
@@ -100,6 +103,20 @@ public function getCapacityScaler()
100103
{
101104
return $this->capacityScaler;
102105
}
106+
/**
107+
* @param BackendCustomMetric[]
108+
*/
109+
public function setCustomMetrics($customMetrics)
110+
{
111+
$this->customMetrics = $customMetrics;
112+
}
113+
/**
114+
* @return BackendCustomMetric[]
115+
*/
116+
public function getCustomMetrics()
117+
{
118+
return $this->customMetrics;
119+
}
103120
/**
104121
* @param string
105122
*/

src/Compute/BackendCustomMetric.php

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 BackendCustomMetric extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $dryRun;
26+
/**
27+
* @var float
28+
*/
29+
public $maxUtilization;
30+
/**
31+
* @var string
32+
*/
33+
public $name;
34+
35+
/**
36+
* @param bool
37+
*/
38+
public function setDryRun($dryRun)
39+
{
40+
$this->dryRun = $dryRun;
41+
}
42+
/**
43+
* @return bool
44+
*/
45+
public function getDryRun()
46+
{
47+
return $this->dryRun;
48+
}
49+
/**
50+
* @param float
51+
*/
52+
public function setMaxUtilization($maxUtilization)
53+
{
54+
$this->maxUtilization = $maxUtilization;
55+
}
56+
/**
57+
* @return float
58+
*/
59+
public function getMaxUtilization()
60+
{
61+
return $this->maxUtilization;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setName($name)
67+
{
68+
$this->name = $name;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getName()
74+
{
75+
return $this->name;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(BackendCustomMetric::class, 'Google_Service_Compute_BackendCustomMetric');

src/Compute/BackendService.php

+16
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class BackendService extends \Google\Collection
4444
* @var string
4545
*/
4646
public $creationTimestamp;
47+
protected $customMetricsType = BackendServiceCustomMetric::class;
48+
protected $customMetricsDataType = 'array';
4749
/**
4850
* @var string[]
4951
*/
@@ -291,6 +293,20 @@ public function getCreationTimestamp()
291293
{
292294
return $this->creationTimestamp;
293295
}
296+
/**
297+
* @param BackendServiceCustomMetric[]
298+
*/
299+
public function setCustomMetrics($customMetrics)
300+
{
301+
$this->customMetrics = $customMetrics;
302+
}
303+
/**
304+
* @return BackendServiceCustomMetric[]
305+
*/
306+
public function getCustomMetrics()
307+
{
308+
return $this->customMetrics;
309+
}
294310
/**
295311
* @param string[]
296312
*/
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 BackendServiceCustomMetric extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $dryRun;
26+
/**
27+
* @var string
28+
*/
29+
public $name;
30+
31+
/**
32+
* @param bool
33+
*/
34+
public function setDryRun($dryRun)
35+
{
36+
$this->dryRun = $dryRun;
37+
}
38+
/**
39+
* @return bool
40+
*/
41+
public function getDryRun()
42+
{
43+
return $this->dryRun;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setName($name)
49+
{
50+
$this->name = $name;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getName()
56+
{
57+
return $this->name;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(BackendServiceCustomMetric::class, 'Google_Service_Compute_BackendServiceCustomMetric');

src/Compute/InstanceGroupManager.php

+16
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class InstanceGroupManager extends \Google\Collection
7878
* @var string
7979
*/
8080
public $region;
81+
protected $resourcePoliciesType = InstanceGroupManagerResourcePolicies::class;
82+
protected $resourcePoliciesDataType = '';
8183
/**
8284
* @var bool
8385
*/
@@ -373,6 +375,20 @@ public function getRegion()
373375
{
374376
return $this->region;
375377
}
378+
/**
379+
* @param InstanceGroupManagerResourcePolicies
380+
*/
381+
public function setResourcePolicies(InstanceGroupManagerResourcePolicies $resourcePolicies)
382+
{
383+
$this->resourcePolicies = $resourcePolicies;
384+
}
385+
/**
386+
* @return InstanceGroupManagerResourcePolicies
387+
*/
388+
public function getResourcePolicies()
389+
{
390+
return $this->resourcePolicies;
391+
}
376392
/**
377393
* @param bool
378394
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 InstanceGroupManagerResourcePolicies extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $workloadPolicy;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setWorkloadPolicy($workloadPolicy)
31+
{
32+
$this->workloadPolicy = $workloadPolicy;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getWorkloadPolicy()
38+
{
39+
return $this->workloadPolicy;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(InstanceGroupManagerResourcePolicies::class, 'Google_Service_Compute_InstanceGroupManagerResourcePolicies');

0 commit comments

Comments
 (0)