Skip to content

Commit 063d7ac

Browse files
1 parent e8888be commit 063d7ac

13 files changed

Lines changed: 535 additions & 1 deletion

src/CloudAlloyDBAdmin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
332332
'type' => 'string',
333333
],
334334
],
335+
],'import' => [
336+
'path' => 'v1/{+name}:import',
337+
'httpMethod' => 'POST',
338+
'parameters' => [
339+
'name' => [
340+
'location' => 'path',
341+
'type' => 'string',
342+
'required' => true,
343+
],
344+
],
335345
],'list' => [
336346
'path' => 'v1/{+parent}/clusters',
337347
'httpMethod' => 'GET',
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\CloudAlloyDBAdmin;
19+
20+
class CloudSQLBackupRunSource extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $backupRunId;
26+
/**
27+
* @var string
28+
*/
29+
public $instanceId;
30+
/**
31+
* @var string
32+
*/
33+
public $project;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setBackupRunId($backupRunId)
39+
{
40+
$this->backupRunId = $backupRunId;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getBackupRunId()
46+
{
47+
return $this->backupRunId;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setInstanceId($instanceId)
53+
{
54+
$this->instanceId = $instanceId;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getInstanceId()
60+
{
61+
return $this->instanceId;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setProject($project)
67+
{
68+
$this->project = $project;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getProject()
74+
{
75+
return $this->project;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(CloudSQLBackupRunSource::class, 'Google_Service_CloudAlloyDBAdmin_CloudSQLBackupRunSource');

src/CloudAlloyDBAdmin/Cluster.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Cluster extends \Google\Model
2727
protected $automatedBackupPolicyDataType = '';
2828
protected $backupSourceType = BackupSource::class;
2929
protected $backupSourceDataType = '';
30+
protected $cloudsqlBackupRunSourceType = CloudSQLBackupRunSource::class;
31+
protected $cloudsqlBackupRunSourceDataType = '';
3032
/**
3133
* @var string
3234
*/
@@ -162,6 +164,20 @@ public function getBackupSource()
162164
{
163165
return $this->backupSource;
164166
}
167+
/**
168+
* @param CloudSQLBackupRunSource
169+
*/
170+
public function setCloudsqlBackupRunSource(CloudSQLBackupRunSource $cloudsqlBackupRunSource)
171+
{
172+
$this->cloudsqlBackupRunSource = $cloudsqlBackupRunSource;
173+
}
174+
/**
175+
* @return CloudSQLBackupRunSource
176+
*/
177+
public function getCloudsqlBackupRunSource()
178+
{
179+
return $this->cloudsqlBackupRunSource;
180+
}
165181
/**
166182
* @param string
167183
*/
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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\CloudAlloyDBAdmin;
19+
20+
class CsvImportOptions extends \Google\Collection
21+
{
22+
protected $collection_key = 'columns';
23+
/**
24+
* @var string[]
25+
*/
26+
public $columns;
27+
/**
28+
* @var string
29+
*/
30+
public $escapeCharacter;
31+
/**
32+
* @var string
33+
*/
34+
public $fieldDelimiter;
35+
/**
36+
* @var string
37+
*/
38+
public $quoteCharacter;
39+
/**
40+
* @var string
41+
*/
42+
public $table;
43+
44+
/**
45+
* @param string[]
46+
*/
47+
public function setColumns($columns)
48+
{
49+
$this->columns = $columns;
50+
}
51+
/**
52+
* @return string[]
53+
*/
54+
public function getColumns()
55+
{
56+
return $this->columns;
57+
}
58+
/**
59+
* @param string
60+
*/
61+
public function setEscapeCharacter($escapeCharacter)
62+
{
63+
$this->escapeCharacter = $escapeCharacter;
64+
}
65+
/**
66+
* @return string
67+
*/
68+
public function getEscapeCharacter()
69+
{
70+
return $this->escapeCharacter;
71+
}
72+
/**
73+
* @param string
74+
*/
75+
public function setFieldDelimiter($fieldDelimiter)
76+
{
77+
$this->fieldDelimiter = $fieldDelimiter;
78+
}
79+
/**
80+
* @return string
81+
*/
82+
public function getFieldDelimiter()
83+
{
84+
return $this->fieldDelimiter;
85+
}
86+
/**
87+
* @param string
88+
*/
89+
public function setQuoteCharacter($quoteCharacter)
90+
{
91+
$this->quoteCharacter = $quoteCharacter;
92+
}
93+
/**
94+
* @return string
95+
*/
96+
public function getQuoteCharacter()
97+
{
98+
return $this->quoteCharacter;
99+
}
100+
/**
101+
* @param string
102+
*/
103+
public function setTable($table)
104+
{
105+
$this->table = $table;
106+
}
107+
/**
108+
* @return string
109+
*/
110+
public function getTable()
111+
{
112+
return $this->table;
113+
}
114+
}
115+
116+
// Adding a class alias for backwards compatibility with the previous class name.
117+
class_alias(CsvImportOptions::class, 'Google_Service_CloudAlloyDBAdmin_CsvImportOptions');
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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\CloudAlloyDBAdmin;
19+
20+
class ImportClusterRequest extends \Google\Model
21+
{
22+
protected $csvImportOptionsType = CsvImportOptions::class;
23+
protected $csvImportOptionsDataType = '';
24+
/**
25+
* @var string
26+
*/
27+
public $database;
28+
/**
29+
* @var string
30+
*/
31+
public $gcsUri;
32+
protected $sqlImportOptionsType = SqlImportOptions::class;
33+
protected $sqlImportOptionsDataType = '';
34+
/**
35+
* @var string
36+
*/
37+
public $user;
38+
39+
/**
40+
* @param CsvImportOptions
41+
*/
42+
public function setCsvImportOptions(CsvImportOptions $csvImportOptions)
43+
{
44+
$this->csvImportOptions = $csvImportOptions;
45+
}
46+
/**
47+
* @return CsvImportOptions
48+
*/
49+
public function getCsvImportOptions()
50+
{
51+
return $this->csvImportOptions;
52+
}
53+
/**
54+
* @param string
55+
*/
56+
public function setDatabase($database)
57+
{
58+
$this->database = $database;
59+
}
60+
/**
61+
* @return string
62+
*/
63+
public function getDatabase()
64+
{
65+
return $this->database;
66+
}
67+
/**
68+
* @param string
69+
*/
70+
public function setGcsUri($gcsUri)
71+
{
72+
$this->gcsUri = $gcsUri;
73+
}
74+
/**
75+
* @return string
76+
*/
77+
public function getGcsUri()
78+
{
79+
return $this->gcsUri;
80+
}
81+
/**
82+
* @param SqlImportOptions
83+
*/
84+
public function setSqlImportOptions(SqlImportOptions $sqlImportOptions)
85+
{
86+
$this->sqlImportOptions = $sqlImportOptions;
87+
}
88+
/**
89+
* @return SqlImportOptions
90+
*/
91+
public function getSqlImportOptions()
92+
{
93+
return $this->sqlImportOptions;
94+
}
95+
/**
96+
* @param string
97+
*/
98+
public function setUser($user)
99+
{
100+
$this->user = $user;
101+
}
102+
/**
103+
* @return string
104+
*/
105+
public function getUser()
106+
{
107+
return $this->user;
108+
}
109+
}
110+
111+
// Adding a class alias for backwards compatibility with the previous class name.
112+
class_alias(ImportClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_ImportClusterRequest');

0 commit comments

Comments
 (0)