Skip to content

Commit 3afb16d

Browse files
1 parent 0c1c948 commit 3afb16d

14 files changed

Lines changed: 1072 additions & 0 deletions

src/SQLAdmin.php

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class SQLAdmin extends \Google\Service
4141
const SQLSERVICE_ADMIN =
4242
"https://www.googleapis.com/auth/sqlservice.admin";
4343

44+
public $Backups;
4445
public $backupRuns;
4546
public $connect;
4647
public $databases;
@@ -70,6 +71,82 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
7071
$this->version = 'v1';
7172
$this->serviceName = 'sqladmin';
7273

74+
$this->Backups = new SQLAdmin\Resource\Backups(
75+
$this,
76+
$this->serviceName,
77+
'Backups',
78+
[
79+
'methods' => [
80+
'CreateBackup' => [
81+
'path' => 'v1/{+parent}/backups',
82+
'httpMethod' => 'POST',
83+
'parameters' => [
84+
'parent' => [
85+
'location' => 'path',
86+
'type' => 'string',
87+
'required' => true,
88+
],
89+
],
90+
],'DeleteBackup' => [
91+
'path' => 'v1/{+name}',
92+
'httpMethod' => 'DELETE',
93+
'parameters' => [
94+
'name' => [
95+
'location' => 'path',
96+
'type' => 'string',
97+
'required' => true,
98+
],
99+
],
100+
],'GetBackup' => [
101+
'path' => 'v1/{+name}',
102+
'httpMethod' => 'GET',
103+
'parameters' => [
104+
'name' => [
105+
'location' => 'path',
106+
'type' => 'string',
107+
'required' => true,
108+
],
109+
],
110+
],'ListBackups' => [
111+
'path' => 'v1/{+parent}/backups',
112+
'httpMethod' => 'GET',
113+
'parameters' => [
114+
'parent' => [
115+
'location' => 'path',
116+
'type' => 'string',
117+
'required' => true,
118+
],
119+
'filter' => [
120+
'location' => 'query',
121+
'type' => 'string',
122+
],
123+
'pageSize' => [
124+
'location' => 'query',
125+
'type' => 'integer',
126+
],
127+
'pageToken' => [
128+
'location' => 'query',
129+
'type' => 'string',
130+
],
131+
],
132+
],'UpdateBackup' => [
133+
'path' => 'v1/{+name}',
134+
'httpMethod' => 'PATCH',
135+
'parameters' => [
136+
'name' => [
137+
'location' => 'path',
138+
'type' => 'string',
139+
'required' => true,
140+
],
141+
'updateMask' => [
142+
'location' => 'query',
143+
'type' => 'string',
144+
],
145+
],
146+
],
147+
]
148+
]
149+
);
73150
$this->backupRuns = new SQLAdmin\Resource\BackupRuns(
74151
$this,
75152
$this->serviceName,
@@ -451,6 +528,22 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
451528
'type' => 'string',
452529
'required' => true,
453530
],
531+
'enableFinalBackup' => [
532+
'location' => 'query',
533+
'type' => 'boolean',
534+
],
535+
'finalBackupDescription' => [
536+
'location' => 'query',
537+
'type' => 'string',
538+
],
539+
'finalBackupExpiryTime' => [
540+
'location' => 'query',
541+
'type' => 'string',
542+
],
543+
'finalBackupTtlDays' => [
544+
'location' => 'query',
545+
'type' => 'string',
546+
],
454547
],
455548
],'demote' => [
456549
'path' => 'v1/projects/{project}/instances/{instance}/demote',

0 commit comments

Comments
 (0)