Skip to content

Commit 1bd07e1

Browse files
1 parent 20260a3 commit 1bd07e1

14 files changed

Lines changed: 316 additions & 7 deletions

src/Compute.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,6 +2317,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
23172317
'path' => 'locations/global/firewallPolicies/listAssociations',
23182318
'httpMethod' => 'GET',
23192319
'parameters' => [
2320+
'includeInheritedPolicies' => [
2321+
'location' => 'query',
2322+
'type' => 'boolean',
2323+
],
23202324
'targetResource' => [
23212325
'location' => 'query',
23222326
'type' => 'string',

src/Compute/Instance.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ class Instance extends \Google\Collection
348348
public $statusMessage;
349349
protected $tagsType = Tags::class;
350350
protected $tagsDataType = '';
351+
protected $workloadIdentityConfigType = WorkloadIdentityConfig::class;
352+
protected $workloadIdentityConfigDataType = '';
351353
/**
352354
* Output only. [Output Only] URL of the zone where the instance resides. You
353355
* must specify this field as part of the HTTP request URL. It is not settable
@@ -1155,6 +1157,20 @@ public function getTags()
11551157
{
11561158
return $this->tags;
11571159
}
1160+
/**
1161+
* @param WorkloadIdentityConfig $workloadIdentityConfig
1162+
*/
1163+
public function setWorkloadIdentityConfig(WorkloadIdentityConfig $workloadIdentityConfig)
1164+
{
1165+
$this->workloadIdentityConfig = $workloadIdentityConfig;
1166+
}
1167+
/**
1168+
* @return WorkloadIdentityConfig
1169+
*/
1170+
public function getWorkloadIdentityConfig()
1171+
{
1172+
return $this->workloadIdentityConfig;
1173+
}
11581174
/**
11591175
* Output only. [Output Only] URL of the zone where the instance resides. You
11601176
* must specify this field as part of the HTTP request URL. It is not settable

src/Compute/InstanceGroupManagerInstanceLifecyclePolicy.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ class InstanceGroupManagerInstanceLifecyclePolicy extends \Google\Model
3030
public const DEFAULT_ACTION_ON_FAILURE_REPAIR = 'REPAIR';
3131
public const FORCE_UPDATE_ON_REPAIR_NO = 'NO';
3232
public const FORCE_UPDATE_ON_REPAIR_YES = 'YES';
33+
/**
34+
* (Default) MIG uses the same action configured for
35+
* instanceLifecyclePolicy.defaultActionOnFailure field.
36+
*/
37+
public const ON_FAILED_HEALTH_CHECK_DEFAULT_ACTION = 'DEFAULT_ACTION';
38+
/**
39+
* MIG doesn't repair an unhealthy VM.
40+
*/
41+
public const ON_FAILED_HEALTH_CHECK_DO_NOTHING = 'DO_NOTHING';
42+
/**
43+
* MIG automatically repairs an unhealthy VM by recreating it.
44+
*/
45+
public const ON_FAILED_HEALTH_CHECK_REPAIR = 'REPAIR';
3346
/**
3447
* The action that a MIG performs on a failed or an unhealthy VM. A VM is
3548
* marked as unhealthy when the application running on that VM fails a health
@@ -54,6 +67,18 @@ class InstanceGroupManagerInstanceLifecyclePolicy extends \Google\Model
5467
* @var string
5568
*/
5669
public $forceUpdateOnRepair;
70+
/**
71+
* The action that a MIG performs on an unhealthy VM. A VM is marked as
72+
* unhealthy when the application running on that VM fails a health check.
73+
* Valid values are: - DEFAULT_ACTION (default): MIG uses the same
74+
* action configured for instanceLifecyclePolicy.defaultActionOnFailure
75+
* field. - REPAIR: MIG automatically repairs an unhealthy VM by
76+
* recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For
77+
* more information, see About repairing VMs in a MIG.
78+
*
79+
* @var string
80+
*/
81+
public $onFailedHealthCheck;
5782

5883
/**
5984
* The action that a MIG performs on a failed or an unhealthy VM. A VM is
@@ -103,6 +128,30 @@ public function getForceUpdateOnRepair()
103128
{
104129
return $this->forceUpdateOnRepair;
105130
}
131+
/**
132+
* The action that a MIG performs on an unhealthy VM. A VM is marked as
133+
* unhealthy when the application running on that VM fails a health check.
134+
* Valid values are: - DEFAULT_ACTION (default): MIG uses the same
135+
* action configured for instanceLifecyclePolicy.defaultActionOnFailure
136+
* field. - REPAIR: MIG automatically repairs an unhealthy VM by
137+
* recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For
138+
* more information, see About repairing VMs in a MIG.
139+
*
140+
* Accepted values: DEFAULT_ACTION, DO_NOTHING, REPAIR
141+
*
142+
* @param self::ON_FAILED_HEALTH_CHECK_* $onFailedHealthCheck
143+
*/
144+
public function setOnFailedHealthCheck($onFailedHealthCheck)
145+
{
146+
$this->onFailedHealthCheck = $onFailedHealthCheck;
147+
}
148+
/**
149+
* @return self::ON_FAILED_HEALTH_CHECK_*
150+
*/
151+
public function getOnFailedHealthCheck()
152+
{
153+
return $this->onFailedHealthCheck;
154+
}
106155
}
107156

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

src/Compute/InstanceProperties.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class InstanceProperties extends \Google\Collection
150150
protected $shieldedInstanceConfigDataType = '';
151151
protected $tagsType = Tags::class;
152152
protected $tagsDataType = '';
153+
protected $workloadIdentityConfigType = WorkloadIdentityConfig::class;
154+
protected $workloadIdentityConfigDataType = '';
153155

154156
/**
155157
* Controls for advanced machine-related behavior features. Note that for
@@ -528,6 +530,20 @@ public function getTags()
528530
{
529531
return $this->tags;
530532
}
533+
/**
534+
* @param WorkloadIdentityConfig $workloadIdentityConfig
535+
*/
536+
public function setWorkloadIdentityConfig(WorkloadIdentityConfig $workloadIdentityConfig)
537+
{
538+
$this->workloadIdentityConfig = $workloadIdentityConfig;
539+
}
540+
/**
541+
* @return WorkloadIdentityConfig
542+
*/
543+
public function getWorkloadIdentityConfig()
544+
{
545+
return $this->workloadIdentityConfig;
546+
}
531547
}
532548

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

src/Compute/InstantSnapshot.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ class InstantSnapshot extends \Google\Model
125125
* @var string
126126
*/
127127
public $name;
128+
protected $paramsType = InstantSnapshotParams::class;
129+
protected $paramsDataType = '';
128130
/**
129131
* Output only. [Output Only] URL of the region where the instant snapshot
130132
* resides. You must specify this field as part of the HTTP request URL. It is
@@ -364,6 +366,23 @@ public function getName()
364366
{
365367
return $this->name;
366368
}
369+
/**
370+
* Input only. Additional params passed with the request, but not persisted as
371+
* part of resource payload.
372+
*
373+
* @param InstantSnapshotParams $params
374+
*/
375+
public function setParams(InstantSnapshotParams $params)
376+
{
377+
$this->params = $params;
378+
}
379+
/**
380+
* @return InstantSnapshotParams
381+
*/
382+
public function getParams()
383+
{
384+
return $this->params;
385+
}
367386
/**
368387
* Output only. [Output Only] URL of the region where the instant snapshot
369388
* resides. You must specify this field as part of the HTTP request URL. It is
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 InstantSnapshotParams extends \Google\Model
21+
{
22+
/**
23+
* Input only. Resource manager tags to be bound to the instant snapshot. 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 instant snapshot. 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(InstantSnapshotParams::class, 'Google_Service_Compute_InstantSnapshotParams');

src/Compute/Interconnect.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ class Interconnect extends \Google\Collection
342342
*/
343343
public $state;
344344
/**
345-
* Specific subzone in the InterconnectLocation that represents where this
346-
* connection is to be provisioned.
345+
* To be deprecated.
347346
*
348347
* @var string
349348
*/
@@ -1001,8 +1000,7 @@ public function getState()
10011000
return $this->state;
10021001
}
10031002
/**
1004-
* Specific subzone in the InterconnectLocation that represents where this
1005-
* connection is to be provisioned.
1003+
* To be deprecated.
10061004
*
10071005
* Accepted values: SUBZONE_A, SUBZONE_B
10081006
*

src/Compute/NetworkInterface.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ class NetworkInterface extends \Google\Collection
7676
protected $accessConfigsDataType = 'array';
7777
protected $aliasIpRangesType = AliasIpRange::class;
7878
protected $aliasIpRangesDataType = 'array';
79+
/**
80+
* Optional. If true, DNS resolution will be enabled over this interface. Only
81+
* valid with network_attachment.
82+
*
83+
* @var bool
84+
*/
85+
public $enableVpcScopedDns;
7986
/**
8087
* Fingerprint hash of contents stored in this network interface. This field
8188
* will be ignored when inserting an Instance or adding a NetworkInterface. An
@@ -257,6 +264,23 @@ public function getAliasIpRanges()
257264
{
258265
return $this->aliasIpRanges;
259266
}
267+
/**
268+
* Optional. If true, DNS resolution will be enabled over this interface. Only
269+
* valid with network_attachment.
270+
*
271+
* @param bool $enableVpcScopedDns
272+
*/
273+
public function setEnableVpcScopedDns($enableVpcScopedDns)
274+
{
275+
$this->enableVpcScopedDns = $enableVpcScopedDns;
276+
}
277+
/**
278+
* @return bool
279+
*/
280+
public function getEnableVpcScopedDns()
281+
{
282+
return $this->enableVpcScopedDns;
283+
}
260284
/**
261285
* Fingerprint hash of contents stored in this network interface. This field
262286
* will be ignored when inserting an Instance or adding a NetworkInterface. An

src/Compute/Reservation.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ class Reservation extends \Google\Collection
2424
*/
2525
public const DEPLOYMENT_TYPE_DENSE = 'DENSE';
2626
public const DEPLOYMENT_TYPE_DEPLOYMENT_TYPE_UNSPECIFIED = 'DEPLOYMENT_TYPE_UNSPECIFIED';
27+
/**
28+
* No early access.
29+
*/
30+
public const EARLY_ACCESS_MAINTENANCE_NO_EARLY_ACCESS = 'NO_EARLY_ACCESS';
31+
/**
32+
* Wave 1: Fastest notification period
33+
*/
34+
public const EARLY_ACCESS_MAINTENANCE_WAVE1 = 'WAVE1';
35+
/**
36+
* Wave 2: Medium notification period
37+
*/
38+
public const EARLY_ACCESS_MAINTENANCE_WAVE2 = 'WAVE2';
2739
/**
2840
* CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) at
2941
* the data center during normal operating conditions. In the event of
@@ -115,6 +127,14 @@ class Reservation extends \Google\Collection
115127
* @var string
116128
*/
117129
public $description;
130+
/**
131+
* Indicates the early access maintenance for the reservation. If this field
132+
* is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in
133+
* early access maintenance and the standard notice applies.
134+
*
135+
* @var string
136+
*/
137+
public $earlyAccessMaintenance;
118138
/**
119139
* Indicates whether Compute Engine allows unplanned maintenance for your VMs;
120140
* for example, to fix hardware errors.
@@ -359,6 +379,26 @@ public function getDescription()
359379
{
360380
return $this->description;
361381
}
382+
/**
383+
* Indicates the early access maintenance for the reservation. If this field
384+
* is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in
385+
* early access maintenance and the standard notice applies.
386+
*
387+
* Accepted values: NO_EARLY_ACCESS, WAVE1, WAVE2
388+
*
389+
* @param self::EARLY_ACCESS_MAINTENANCE_* $earlyAccessMaintenance
390+
*/
391+
public function setEarlyAccessMaintenance($earlyAccessMaintenance)
392+
{
393+
$this->earlyAccessMaintenance = $earlyAccessMaintenance;
394+
}
395+
/**
396+
* @return self::EARLY_ACCESS_MAINTENANCE_*
397+
*/
398+
public function getEarlyAccessMaintenance()
399+
{
400+
return $this->earlyAccessMaintenance;
401+
}
362402
/**
363403
* Indicates whether Compute Engine allows unplanned maintenance for your VMs;
364404
* for example, to fix hardware errors.

src/Compute/Resource/FirewallPolicies.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,10 @@ public function listFirewallPolicies($optParams = [])
347347
*
348348
* @param array $optParams Optional parameters.
349349
*
350+
* @opt_param bool includeInheritedPolicies If set to "true", the response will
351+
* contain a list of all associations for the containing folders and the
352+
* containing organization of the target. The parameter has no effect if the
353+
* target is an organization.
350354
* @opt_param string targetResource The target resource to list associations. It
351355
* is an organization, or a folder.
352356
* @return FirewallPoliciesListAssociationsResponse

0 commit comments

Comments
 (0)