Skip to content

Commit 20c6357

Browse files
1 parent 7fad35b commit 20c6357

27 files changed

Lines changed: 1178 additions & 3 deletions

src/Compute.php

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
690690
'type' => 'string',
691691
],
692692
],
693+
],'testIamPermissions' => [
694+
'path' => 'projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions',
695+
'httpMethod' => 'POST',
696+
'parameters' => [
697+
'project' => [
698+
'location' => 'path',
699+
'type' => 'string',
700+
'required' => true,
701+
],
702+
'zone' => [
703+
'location' => 'path',
704+
'type' => 'string',
705+
'required' => true,
706+
],
707+
'resource' => [
708+
'location' => 'path',
709+
'type' => 'string',
710+
'required' => true,
711+
],
712+
],
693713
],'update' => [
694714
'path' => 'projects/{project}/zones/{zone}/autoscalers',
695715
'httpMethod' => 'PUT',
@@ -3845,6 +3865,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
38453865
'type' => 'string',
38463866
],
38473867
],
3868+
],'testIamPermissions' => [
3869+
'path' => 'projects/{project}/global/healthChecks/{resource}/testIamPermissions',
3870+
'httpMethod' => 'POST',
3871+
'parameters' => [
3872+
'project' => [
3873+
'location' => 'path',
3874+
'type' => 'string',
3875+
'required' => true,
3876+
],
3877+
'resource' => [
3878+
'location' => 'path',
3879+
'type' => 'string',
3880+
'required' => true,
3881+
],
3882+
],
38483883
],'update' => [
38493884
'path' => 'projects/{project}/global/healthChecks/{healthCheck}',
38503885
'httpMethod' => 'PUT',
@@ -3971,6 +4006,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
39714006
'type' => 'string',
39724007
],
39734008
],
4009+
],'testIamPermissions' => [
4010+
'path' => 'projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions',
4011+
'httpMethod' => 'POST',
4012+
'parameters' => [
4013+
'project' => [
4014+
'location' => 'path',
4015+
'type' => 'string',
4016+
'required' => true,
4017+
],
4018+
'resource' => [
4019+
'location' => 'path',
4020+
'type' => 'string',
4021+
'required' => true,
4022+
],
4023+
],
39744024
],'update' => [
39754025
'path' => 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}',
39764026
'httpMethod' => 'PUT',
@@ -4097,6 +4147,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
40974147
'type' => 'string',
40984148
],
40994149
],
4150+
],'testIamPermissions' => [
4151+
'path' => 'projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions',
4152+
'httpMethod' => 'POST',
4153+
'parameters' => [
4154+
'project' => [
4155+
'location' => 'path',
4156+
'type' => 'string',
4157+
'required' => true,
4158+
],
4159+
'resource' => [
4160+
'location' => 'path',
4161+
'type' => 'string',
4162+
'required' => true,
4163+
],
4164+
],
41004165
],'update' => [
41014166
'path' => 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}',
41024167
'httpMethod' => 'PUT',
@@ -11908,6 +11973,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1190811973
'type' => 'string',
1190911974
],
1191011975
],
11976+
],'testIamPermissions' => [
11977+
'path' => 'projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions',
11978+
'httpMethod' => 'POST',
11979+
'parameters' => [
11980+
'project' => [
11981+
'location' => 'path',
11982+
'type' => 'string',
11983+
'required' => true,
11984+
],
11985+
'region' => [
11986+
'location' => 'path',
11987+
'type' => 'string',
11988+
'required' => true,
11989+
],
11990+
'resource' => [
11991+
'location' => 'path',
11992+
'type' => 'string',
11993+
'required' => true,
11994+
],
11995+
],
1191111996
],'update' => [
1191211997
'path' => 'projects/{project}/regions/{region}/autoscalers',
1191311998
'httpMethod' => 'PUT',
@@ -13129,6 +13214,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1312913214
'type' => 'string',
1313013215
],
1313113216
],
13217+
],'testIamPermissions' => [
13218+
'path' => 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions',
13219+
'httpMethod' => 'POST',
13220+
'parameters' => [
13221+
'project' => [
13222+
'location' => 'path',
13223+
'type' => 'string',
13224+
'required' => true,
13225+
],
13226+
'region' => [
13227+
'location' => 'path',
13228+
'type' => 'string',
13229+
'required' => true,
13230+
],
13231+
'resource' => [
13232+
'location' => 'path',
13233+
'type' => 'string',
13234+
'required' => true,
13235+
],
13236+
],
1313213237
],'update' => [
1313313238
'path' => 'projects/{project}/regions/{region}/healthChecks/{healthCheck}',
1313413239
'httpMethod' => 'PUT',
@@ -14984,6 +15089,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1498415089
'type' => 'boolean',
1498515090
],
1498615091
],
15092+
],'testIamPermissions' => [
15093+
'path' => 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions',
15094+
'httpMethod' => 'POST',
15095+
'parameters' => [
15096+
'project' => [
15097+
'location' => 'path',
15098+
'type' => 'string',
15099+
'required' => true,
15100+
],
15101+
'region' => [
15102+
'location' => 'path',
15103+
'type' => 'string',
15104+
'required' => true,
15105+
],
15106+
'resource' => [
15107+
'location' => 'path',
15108+
'type' => 'string',
15109+
'required' => true,
15110+
],
15111+
],
1498715112
],
1498815113
]
1498915114
]
@@ -17850,6 +17975,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1785017975
'type' => 'boolean',
1785117976
],
1785217977
],
17978+
],'testIamPermissions' => [
17979+
'path' => 'projects/{project}/global/routes/{resource}/testIamPermissions',
17980+
'httpMethod' => 'POST',
17981+
'parameters' => [
17982+
'project' => [
17983+
'location' => 'path',
17984+
'type' => 'string',
17985+
'required' => true,
17986+
],
17987+
'resource' => [
17988+
'location' => 'path',
17989+
'type' => 'string',
17990+
'required' => true,
17991+
],
17992+
],
1785317993
],
1785417994
]
1785517995
]
@@ -20795,6 +20935,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
2079520935
'type' => 'string',
2079620936
],
2079720937
],
20938+
],'testIamPermissions' => [
20939+
'path' => 'projects/{project}/global/targetSslProxies/{resource}/testIamPermissions',
20940+
'httpMethod' => 'POST',
20941+
'parameters' => [
20942+
'project' => [
20943+
'location' => 'path',
20944+
'type' => 'string',
20945+
'required' => true,
20946+
],
20947+
'resource' => [
20948+
'location' => 'path',
20949+
'type' => 'string',
20950+
'required' => true,
20951+
],
20952+
],
2079820953
],
2079920954
]
2080020955
]
@@ -20959,6 +21114,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
2095921114
'type' => 'string',
2096021115
],
2096121116
],
21117+
],'testIamPermissions' => [
21118+
'path' => 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions',
21119+
'httpMethod' => 'POST',
21120+
'parameters' => [
21121+
'project' => [
21122+
'location' => 'path',
21123+
'type' => 'string',
21124+
'required' => true,
21125+
],
21126+
'resource' => [
21127+
'location' => 'path',
21128+
'type' => 'string',
21129+
'required' => true,
21130+
],
21131+
],
2096221132
],
2096321133
]
2096421134
]
@@ -21293,6 +21463,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
2129321463
'type' => 'string',
2129421464
],
2129521465
],
21466+
],'testIamPermissions' => [
21467+
'path' => 'projects/{project}/global/urlMaps/{resource}/testIamPermissions',
21468+
'httpMethod' => 'POST',
21469+
'parameters' => [
21470+
'project' => [
21471+
'location' => 'path',
21472+
'type' => 'string',
21473+
'required' => true,
21474+
],
21475+
'resource' => [
21476+
'location' => 'path',
21477+
'type' => 'string',
21478+
'required' => true,
21479+
],
21480+
],
2129621481
],'update' => [
2129721482
'path' => 'projects/{project}/global/urlMaps/{urlMap}',
2129821483
'httpMethod' => 'PUT',

src/Compute/BackendService.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ class BackendService extends \Google\Collection
504504
* @var string
505505
*/
506506
public $network;
507+
protected $networkPassThroughLbTrafficPolicyType = BackendServiceNetworkPassThroughLbTrafficPolicy::class;
508+
protected $networkPassThroughLbTrafficPolicyDataType = '';
507509
protected $outlierDetectionType = OutlierDetection::class;
508510
protected $outlierDetectionDataType = '';
509511
protected $paramsType = BackendServiceParams::class;
@@ -1372,6 +1374,25 @@ public function getNetwork()
13721374
{
13731375
return $this->network;
13741376
}
1377+
/**
1378+
* Configures traffic steering properties of internal passthrough Network Load
1379+
* Balancers.
1380+
*
1381+
* networkPassThroughLbTrafficPolicy cannot be specified with haPolicy.
1382+
*
1383+
* @param BackendServiceNetworkPassThroughLbTrafficPolicy $networkPassThroughLbTrafficPolicy
1384+
*/
1385+
public function setNetworkPassThroughLbTrafficPolicy(BackendServiceNetworkPassThroughLbTrafficPolicy $networkPassThroughLbTrafficPolicy)
1386+
{
1387+
$this->networkPassThroughLbTrafficPolicy = $networkPassThroughLbTrafficPolicy;
1388+
}
1389+
/**
1390+
* @return BackendServiceNetworkPassThroughLbTrafficPolicy
1391+
*/
1392+
public function getNetworkPassThroughLbTrafficPolicy()
1393+
{
1394+
return $this->networkPassThroughLbTrafficPolicy;
1395+
}
13751396
/**
13761397
* Settings controlling the ejection of unhealthy backend endpoints from the
13771398
* load balancing pool of each individual proxy instance that processes the
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 BackendServiceNetworkPassThroughLbTrafficPolicy extends \Google\Model
21+
{
22+
protected $zonalAffinityType = BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity::class;
23+
protected $zonalAffinityDataType = '';
24+
25+
/**
26+
* When configured, new connections are load balanced across healthy backend
27+
* endpoints in the local zone.
28+
*
29+
* @param BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity $zonalAffinity
30+
*/
31+
public function setZonalAffinity(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity $zonalAffinity)
32+
{
33+
$this->zonalAffinity = $zonalAffinity;
34+
}
35+
/**
36+
* @return BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity
37+
*/
38+
public function getZonalAffinity()
39+
{
40+
return $this->zonalAffinity;
41+
}
42+
}
43+
44+
// Adding a class alias for backwards compatibility with the previous class name.
45+
class_alias(BackendServiceNetworkPassThroughLbTrafficPolicy::class, 'Google_Service_Compute_BackendServiceNetworkPassThroughLbTrafficPolicy');

0 commit comments

Comments
 (0)