Skip to content

Commit 0e87dbb

Browse files
1 parent e962820 commit 0e87dbb

4 files changed

Lines changed: 81 additions & 3 deletions

File tree

src/CloudRedis/DatabaseResourceMetadata.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class DatabaseResourceMetadata extends \Google\Collection
4646
* @var string
4747
*/
4848
public $expectedState;
49+
protected $gcbdrConfigurationType = GCBDRConfiguration::class;
50+
protected $gcbdrConfigurationDataType = '';
4951
protected $idType = DatabaseResourceId::class;
5052
protected $idDataType = '';
5153
/**
@@ -213,6 +215,20 @@ public function getExpectedState()
213215
{
214216
return $this->expectedState;
215217
}
218+
/**
219+
* @param GCBDRConfiguration
220+
*/
221+
public function setGcbdrConfiguration(GCBDRConfiguration $gcbdrConfiguration)
222+
{
223+
$this->gcbdrConfiguration = $gcbdrConfiguration;
224+
}
225+
/**
226+
* @return GCBDRConfiguration
227+
*/
228+
public function getGcbdrConfiguration()
229+
{
230+
return $this->gcbdrConfiguration;
231+
}
216232
/**
217233
* @param DatabaseResourceId
218234
*/
Lines changed: 44 additions & 0 deletions
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\CloudRedis;
19+
20+
class GCBDRConfiguration extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $gcbdrManaged;
26+
27+
/**
28+
* @param bool
29+
*/
30+
public function setGcbdrManaged($gcbdrManaged)
31+
{
32+
$this->gcbdrManaged = $gcbdrManaged;
33+
}
34+
/**
35+
* @return bool
36+
*/
37+
public function getGcbdrManaged()
38+
{
39+
return $this->gcbdrManaged;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GCBDRConfiguration::class, 'Google_Service_CloudRedis_GCBDRConfiguration');

src/CloudRedis/PscConnection.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class PscConnection extends \Google\Model
3535
* @var string
3636
*/
3737
public $network;
38+
/**
39+
* @var int
40+
*/
41+
public $port;
3842
/**
3943
* @var string
4044
*/
@@ -108,6 +112,20 @@ public function getNetwork()
108112
{
109113
return $this->network;
110114
}
115+
/**
116+
* @param int
117+
*/
118+
public function setPort($port)
119+
{
120+
$this->port = $port;
121+
}
122+
/**
123+
* @return int
124+
*/
125+
public function getPort()
126+
{
127+
return $this->port;
128+
}
111129
/**
112130
* @param string
113131
*/

src/CloudRedis/Resource/ProjectsLocationsClusters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function backup($name, BackupClusterRequest $postBody, $optParams = [])
8181
* lowercase letters, numbers, and hyphens. * Must start with a letter. * Must
8282
* be between 1-63 characters. * Must end with a number or a letter. * Must be
8383
* unique within the customer project / location
84-
* @opt_param string requestId Idempotent request UUID.
84+
* @opt_param string requestId Optional. Idempotent request UUID.
8585
* @return Operation
8686
* @throws \Google\Service\Exception
8787
*/
@@ -100,7 +100,7 @@ public function create($parent, Cluster $postBody, $optParams = [])
100100
* `location_id` refers to a GCP region.
101101
* @param array $optParams Optional parameters.
102102
*
103-
* @opt_param string requestId Idempotent request UUID.
103+
* @opt_param string requestId Optional. Idempotent request UUID.
104104
* @return Operation
105105
* @throws \Google\Service\Exception
106106
*/
@@ -184,7 +184,7 @@ public function listProjectsLocationsClusters($parent, $optParams = [])
184184
* @param Cluster $postBody
185185
* @param array $optParams Optional parameters.
186186
*
187-
* @opt_param string requestId Idempotent request UUID.
187+
* @opt_param string requestId Optional. Idempotent request UUID.
188188
* @opt_param string updateMask Required. Mask of fields to update. At least one
189189
* path must be supplied in this field. The elements of the repeated paths field
190190
* may only include these fields from Cluster: * `size_gb` * `replica_count` *

0 commit comments

Comments
 (0)