Skip to content

Commit a185432

Browse files
1 parent 0e01e67 commit a185432

5 files changed

Lines changed: 92 additions & 3 deletions

File tree

src/GKEOnPrem.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
10371037
'location' => 'query',
10381038
'type' => 'string',
10391039
],
1040+
'ignoreErrors' => [
1041+
'location' => 'query',
1042+
'type' => 'boolean',
1043+
],
10401044
'validateOnly' => [
10411045
'location' => 'query',
10421046
'type' => 'boolean',

src/GKEOnPrem/Resource/ProjectsLocations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public function get($name, $optParams = [])
5252
* applicable.
5353
* @param array $optParams Optional parameters.
5454
*
55-
* @opt_param string extraLocationTypes Optional. A list of extra location types
56-
* that should be used as conditions for controlling the visibility of the
57-
* locations.
55+
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
56+
* unsupported and is ignored unless explicitly documented otherwise. This is
57+
* primarily for internal usage.
5858
* @opt_param string filter A filter to narrow down results to a preferred
5959
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
6060
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).

src/GKEOnPrem/Resource/ProjectsLocationsVmwareAdminClusters.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,13 @@ public function testIamPermissions($resource, TestIamPermissionsRequest $postBod
256256
* @opt_param string etag The current etag of the VMware admin cluster. If an
257257
* etag is provided and does not match the current etag of the cluster, deletion
258258
* will be blocked and an ABORTED error will be returned.
259+
* @opt_param bool ignoreErrors Optional. If set to true, the unenrollment of a
260+
* vmware admin cluster resource will succeed even if errors occur during
261+
* unenrollment. This parameter can be used when you want to unenroll admin
262+
* cluster resource and the on-prem admin cluster is disconnected / unreachable.
263+
* WARNING: Using this parameter when your admin cluster still exists may result
264+
* in a deleted GCP admin cluster but existing resourcelink in on-prem admin
265+
* cluster and membership.
259266
* @opt_param bool validateOnly Validate the request without actually doing any
260267
* updates.
261268
* @return Operation

src/GKEOnPrem/VmwareAdminCluster.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ class VmwareAdminCluster extends \Google\Model
8585
protected $preparedSecretsDataType = '';
8686
protected $privateRegistryConfigType = VmwareAdminPrivateRegistryConfig::class;
8787
protected $privateRegistryConfigDataType = '';
88+
protected $proxyType = VmwareAdminProxy::class;
89+
protected $proxyDataType = '';
8890
/**
8991
* @var bool
9092
*/
@@ -416,6 +418,20 @@ public function getPrivateRegistryConfig()
416418
{
417419
return $this->privateRegistryConfig;
418420
}
421+
/**
422+
* @param VmwareAdminProxy
423+
*/
424+
public function setProxy(VmwareAdminProxy $proxy)
425+
{
426+
$this->proxy = $proxy;
427+
}
428+
/**
429+
* @return VmwareAdminProxy
430+
*/
431+
public function getProxy()
432+
{
433+
return $this->proxy;
434+
}
419435
/**
420436
* @param bool
421437
*/

src/GKEOnPrem/VmwareAdminProxy.php

Lines changed: 62 additions & 0 deletions
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\GKEOnPrem;
19+
20+
class VmwareAdminProxy extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $noProxy;
26+
/**
27+
* @var string
28+
*/
29+
public $url;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setNoProxy($noProxy)
35+
{
36+
$this->noProxy = $noProxy;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getNoProxy()
42+
{
43+
return $this->noProxy;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setUrl($url)
49+
{
50+
$this->url = $url;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getUrl()
56+
{
57+
return $this->url;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(VmwareAdminProxy::class, 'Google_Service_GKEOnPrem_VmwareAdminProxy');

0 commit comments

Comments
 (0)