Skip to content

Commit 080bdeb

Browse files
1 parent 0962b0a commit 080bdeb

File tree

6 files changed

+343
-0
lines changed

6 files changed

+343
-0
lines changed

src/CloudRedis/Cluster.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class Cluster extends \Google\Collection
6868
protected $maintenancePolicyDataType = '';
6969
protected $maintenanceScheduleType = ClusterMaintenanceSchedule::class;
7070
protected $maintenanceScheduleDataType = '';
71+
/**
72+
* @var string
73+
*/
74+
public $maintenanceVersion;
7175
protected $managedBackupSourceType = ManagedBackupSource::class;
7276
protected $managedBackupSourceDataType = '';
7377
/**
@@ -360,6 +364,20 @@ public function getMaintenanceSchedule()
360364
{
361365
return $this->maintenanceSchedule;
362366
}
367+
/**
368+
* @param string
369+
*/
370+
public function setMaintenanceVersion($maintenanceVersion)
371+
{
372+
$this->maintenanceVersion = $maintenanceVersion;
373+
}
374+
/**
375+
* @return string
376+
*/
377+
public function getMaintenanceVersion()
378+
{
379+
return $this->maintenanceVersion;
380+
}
363381
/**
364382
* @param ManagedBackupSource
365383
*/

src/CloudRedis/DatabaseResourceMetadata.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class DatabaseResourceMetadata extends \Google\Collection
6262
public $location;
6363
protected $machineConfigurationType = MachineConfiguration::class;
6464
protected $machineConfigurationDataType = '';
65+
protected $maintenanceInfoType = ResourceMaintenanceInfo::class;
66+
protected $maintenanceInfoDataType = '';
6567
protected $primaryResourceIdType = DatabaseResourceId::class;
6668
protected $primaryResourceIdDataType = '';
6769
/**
@@ -305,6 +307,20 @@ public function getMachineConfiguration()
305307
{
306308
return $this->machineConfiguration;
307309
}
310+
/**
311+
* @param ResourceMaintenanceInfo
312+
*/
313+
public function setMaintenanceInfo(ResourceMaintenanceInfo $maintenanceInfo)
314+
{
315+
$this->maintenanceInfo = $maintenanceInfo;
316+
}
317+
/**
318+
* @return ResourceMaintenanceInfo
319+
*/
320+
public function getMaintenanceInfo()
321+
{
322+
return $this->maintenanceInfo;
323+
}
308324
/**
309325
* @param DatabaseResourceId
310326
*/

src/CloudRedis/Date.php

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 Date extends \Google\Model
21+
{
22+
/**
23+
* @var int
24+
*/
25+
public $day;
26+
/**
27+
* @var int
28+
*/
29+
public $month;
30+
/**
31+
* @var int
32+
*/
33+
public $year;
34+
35+
/**
36+
* @param int
37+
*/
38+
public function setDay($day)
39+
{
40+
$this->day = $day;
41+
}
42+
/**
43+
* @return int
44+
*/
45+
public function getDay()
46+
{
47+
return $this->day;
48+
}
49+
/**
50+
* @param int
51+
*/
52+
public function setMonth($month)
53+
{
54+
$this->month = $month;
55+
}
56+
/**
57+
* @return int
58+
*/
59+
public function getMonth()
60+
{
61+
return $this->month;
62+
}
63+
/**
64+
* @param int
65+
*/
66+
public function setYear($year)
67+
{
68+
$this->year = $year;
69+
}
70+
/**
71+
* @return int
72+
*/
73+
public function getYear()
74+
{
75+
return $this->year;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(Date::class, 'Google_Service_CloudRedis_Date');
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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 ResourceMaintenanceDenySchedule extends \Google\Model
21+
{
22+
protected $endDateType = Date::class;
23+
protected $endDateDataType = '';
24+
protected $startDateType = Date::class;
25+
protected $startDateDataType = '';
26+
protected $timeType = TimeOfDay::class;
27+
protected $timeDataType = '';
28+
29+
/**
30+
* @param Date
31+
*/
32+
public function setEndDate(Date $endDate)
33+
{
34+
$this->endDate = $endDate;
35+
}
36+
/**
37+
* @return Date
38+
*/
39+
public function getEndDate()
40+
{
41+
return $this->endDate;
42+
}
43+
/**
44+
* @param Date
45+
*/
46+
public function setStartDate(Date $startDate)
47+
{
48+
$this->startDate = $startDate;
49+
}
50+
/**
51+
* @return Date
52+
*/
53+
public function getStartDate()
54+
{
55+
return $this->startDate;
56+
}
57+
/**
58+
* @param TimeOfDay
59+
*/
60+
public function setTime(TimeOfDay $time)
61+
{
62+
$this->time = $time;
63+
}
64+
/**
65+
* @return TimeOfDay
66+
*/
67+
public function getTime()
68+
{
69+
return $this->time;
70+
}
71+
}
72+
73+
// Adding a class alias for backwards compatibility with the previous class name.
74+
class_alias(ResourceMaintenanceDenySchedule::class, 'Google_Service_CloudRedis_ResourceMaintenanceDenySchedule');
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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 ResourceMaintenanceInfo extends \Google\Collection
21+
{
22+
protected $collection_key = 'denyMaintenanceSchedules';
23+
protected $denyMaintenanceSchedulesType = ResourceMaintenanceDenySchedule::class;
24+
protected $denyMaintenanceSchedulesDataType = 'array';
25+
protected $maintenanceScheduleType = ResourceMaintenanceSchedule::class;
26+
protected $maintenanceScheduleDataType = '';
27+
/**
28+
* @var string
29+
*/
30+
public $maintenanceVersion;
31+
32+
/**
33+
* @param ResourceMaintenanceDenySchedule[]
34+
*/
35+
public function setDenyMaintenanceSchedules($denyMaintenanceSchedules)
36+
{
37+
$this->denyMaintenanceSchedules = $denyMaintenanceSchedules;
38+
}
39+
/**
40+
* @return ResourceMaintenanceDenySchedule[]
41+
*/
42+
public function getDenyMaintenanceSchedules()
43+
{
44+
return $this->denyMaintenanceSchedules;
45+
}
46+
/**
47+
* @param ResourceMaintenanceSchedule
48+
*/
49+
public function setMaintenanceSchedule(ResourceMaintenanceSchedule $maintenanceSchedule)
50+
{
51+
$this->maintenanceSchedule = $maintenanceSchedule;
52+
}
53+
/**
54+
* @return ResourceMaintenanceSchedule
55+
*/
56+
public function getMaintenanceSchedule()
57+
{
58+
return $this->maintenanceSchedule;
59+
}
60+
/**
61+
* @param string
62+
*/
63+
public function setMaintenanceVersion($maintenanceVersion)
64+
{
65+
$this->maintenanceVersion = $maintenanceVersion;
66+
}
67+
/**
68+
* @return string
69+
*/
70+
public function getMaintenanceVersion()
71+
{
72+
return $this->maintenanceVersion;
73+
}
74+
}
75+
76+
// Adding a class alias for backwards compatibility with the previous class name.
77+
class_alias(ResourceMaintenanceInfo::class, 'Google_Service_CloudRedis_ResourceMaintenanceInfo');
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 ResourceMaintenanceSchedule extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $day;
26+
/**
27+
* @var string
28+
*/
29+
public $phase;
30+
protected $timeType = TimeOfDay::class;
31+
protected $timeDataType = '';
32+
33+
/**
34+
* @param string
35+
*/
36+
public function setDay($day)
37+
{
38+
$this->day = $day;
39+
}
40+
/**
41+
* @return string
42+
*/
43+
public function getDay()
44+
{
45+
return $this->day;
46+
}
47+
/**
48+
* @param string
49+
*/
50+
public function setPhase($phase)
51+
{
52+
$this->phase = $phase;
53+
}
54+
/**
55+
* @return string
56+
*/
57+
public function getPhase()
58+
{
59+
return $this->phase;
60+
}
61+
/**
62+
* @param TimeOfDay
63+
*/
64+
public function setTime(TimeOfDay $time)
65+
{
66+
$this->time = $time;
67+
}
68+
/**
69+
* @return TimeOfDay
70+
*/
71+
public function getTime()
72+
{
73+
return $this->time;
74+
}
75+
}
76+
77+
// Adding a class alias for backwards compatibility with the previous class name.
78+
class_alias(ResourceMaintenanceSchedule::class, 'Google_Service_CloudRedis_ResourceMaintenanceSchedule');

0 commit comments

Comments
 (0)