Skip to content

Commit 4c0b343

Browse files
1 parent 6059a6b commit 4c0b343

4 files changed

Lines changed: 97 additions & 0 deletions

File tree

‎src/DatabaseMigrationService.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
8181
'type' => 'string',
8282
'required' => true,
8383
],
84+
'fetchReservedPublicIps' => [
85+
'location' => 'query',
86+
'type' => 'boolean',
87+
],
8488
'pageSize' => [
8589
'location' => 'query',
8690
'type' => 'integer',

‎src/DatabaseMigrationService/PrivateConnection.php‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class PrivateConnection extends \Google\Model
7575
public $name;
7676
protected $pscInterfaceConfigType = PscInterfaceConfig::class;
7777
protected $pscInterfaceConfigDataType = '';
78+
protected $reservedPublicIpConfigType = ReservedPublicIpConfig::class;
79+
protected $reservedPublicIpConfigDataType = '';
7880
/**
7981
* Output only. Reserved for future use.
8082
*
@@ -201,6 +203,22 @@ public function getPscInterfaceConfig()
201203
{
202204
return $this->pscInterfaceConfig;
203205
}
206+
/**
207+
* Reserved Public IP configuration.
208+
*
209+
* @param ReservedPublicIpConfig $reservedPublicIpConfig
210+
*/
211+
public function setReservedPublicIpConfig(ReservedPublicIpConfig $reservedPublicIpConfig)
212+
{
213+
$this->reservedPublicIpConfig = $reservedPublicIpConfig;
214+
}
215+
/**
216+
* @return ReservedPublicIpConfig
217+
*/
218+
public function getReservedPublicIpConfig()
219+
{
220+
return $this->reservedPublicIpConfig;
221+
}
204222
/**
205223
* Output only. Reserved for future use.
206224
*
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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\DatabaseMigrationService;
19+
20+
class ReservedPublicIpConfig extends \Google\Collection
21+
{
22+
protected $collection_key = 'egressPublicIps';
23+
/**
24+
* Output only. The reserved public IPs.
25+
*
26+
* @var string[]
27+
*/
28+
public $egressPublicIps;
29+
/**
30+
* Optional. Number of static public IP addresses to reserve.
31+
*
32+
* @var int
33+
*/
34+
public $natIpsCount;
35+
36+
/**
37+
* Output only. The reserved public IPs.
38+
*
39+
* @param string[] $egressPublicIps
40+
*/
41+
public function setEgressPublicIps($egressPublicIps)
42+
{
43+
$this->egressPublicIps = $egressPublicIps;
44+
}
45+
/**
46+
* @return string[]
47+
*/
48+
public function getEgressPublicIps()
49+
{
50+
return $this->egressPublicIps;
51+
}
52+
/**
53+
* Optional. Number of static public IP addresses to reserve.
54+
*
55+
* @param int $natIpsCount
56+
*/
57+
public function setNatIpsCount($natIpsCount)
58+
{
59+
$this->natIpsCount = $natIpsCount;
60+
}
61+
/**
62+
* @return int
63+
*/
64+
public function getNatIpsCount()
65+
{
66+
return $this->natIpsCount;
67+
}
68+
}
69+
70+
// Adding a class alias for backwards compatibility with the previous class name.
71+
class_alias(ReservedPublicIpConfig::class, 'Google_Service_DatabaseMigrationService_ReservedPublicIpConfig');

‎src/DatabaseMigrationService/Resource/ProjectsLocations.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ class ProjectsLocations extends \Google\Service\Resource
4040
* static IPs should be returned. Must be in the format `projects/locations`.
4141
* @param array $optParams Optional parameters.
4242
*
43+
* @opt_param bool fetchReservedPublicIps Optional. Indicates whether to fetch
44+
* the reserved public IP addresses allocated for private connections in this
45+
* location. If false or not set, fetches the shared external static IP
46+
* addresses instead.
4347
* @opt_param int pageSize Optional. Maximum number of IPs to return.
4448
* @opt_param string pageToken Optional. A page token, received from a previous
4549
* `FetchStaticIps` call.

0 commit comments

Comments
 (0)