1<?php 2/* 3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 * use this file except in compliance with the License. You may obtain a copy of 5 * the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 * License for the specific language governing permissions and limitations under 13 * the License. 14 */ 15 16 17 /** 18 * The "backupRuns" collection of methods. 19 * Typical usage is: 20 * <code> 21 * $sqladminService = new Google_SQLAdminService(...); 22 * $backupRuns = $sqladminService->backupRuns; 23 * </code> 24 */ 25 class Google_BackupRunsServiceResource extends Google_ServiceResource { 26 27 /** 28 * Retrieves a resource containing information about a backup run. (backupRuns.get) 29 * 30 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 31 * @param string $instance Database instance ID. This does not include the project ID. 32 * @param string $backupConfiguration Identifier for the backup configuration. This gets generated automatically when a backup configuration is created. 33 * @param string $dueTime The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. 34 * @param array $optParams Optional parameters. 35 * @return Google_BackupRun 36 */ 37 public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) { 38 $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); 39 $params = array_merge($params, $optParams); 40 $data = $this->__call('get', array($params)); 41 if ($this->useObjects()) { 42 return new Google_BackupRun($data); 43 } else { 44 return $data; 45 } 46 } 47 /** 48 * Lists all backup runs associated with a given instance and configuration in the reverse 49 * chronological order of the enqueued time. (backupRuns.list) 50 * 51 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 52 * @param string $instance Database instance ID. This does not include the project ID. 53 * @param string $backupConfiguration Identifier for the backup configuration. This gets generated automatically when a backup configuration is created. 54 * @param array $optParams Optional parameters. 55 * 56 * @opt_param int maxResults Maximum number of backup runs per response. 57 * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view. 58 * @return Google_BackupRunsListResponse 59 */ 60 public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) { 61 $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); 62 $params = array_merge($params, $optParams); 63 $data = $this->__call('list', array($params)); 64 if ($this->useObjects()) { 65 return new Google_BackupRunsListResponse($data); 66 } else { 67 return $data; 68 } 69 } 70 } 71 72 /** 73 * The "instances" collection of methods. 74 * Typical usage is: 75 * <code> 76 * $sqladminService = new Google_SQLAdminService(...); 77 * $instances = $sqladminService->instances; 78 * </code> 79 */ 80 class Google_InstancesServiceResource extends Google_ServiceResource { 81 82 /** 83 * Deletes a database instance. (instances.delete) 84 * 85 * @param string $project Project ID of the project that contains the instance to be deleted. You can find this on the project summary page of the Google APIs Console. 86 * @param string $instance Database instance ID. This does not include the project ID. 87 * @param array $optParams Optional parameters. 88 * @return Google_InstancesDeleteResponse 89 */ 90 public function delete($project, $instance, $optParams = array()) { 91 $params = array('project' => $project, 'instance' => $instance); 92 $params = array_merge($params, $optParams); 93 $data = $this->__call('delete', array($params)); 94 if ($this->useObjects()) { 95 return new Google_InstancesDeleteResponse($data); 96 } else { 97 return $data; 98 } 99 } 100 /** 101 * Exports data from a database instance to a Google Cloud Storage bucket as a MySQL dump file. 102 * (instances.export) 103 * 104 * @param string $project Project ID of the project that contains the instance to be exported. You can find this on the project summary page of the Google APIs Console. 105 * @param string $instance Database instance ID. This does not include the project ID. 106 * @param Google_InstancesExportRequest $postBody 107 * @param array $optParams Optional parameters. 108 * @return Google_InstancesExportResponse 109 */ 110 public function export($project, $instance, Google_InstancesExportRequest $postBody, $optParams = array()) { 111 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); 112 $params = array_merge($params, $optParams); 113 $data = $this->__call('export', array($params)); 114 if ($this->useObjects()) { 115 return new Google_InstancesExportResponse($data); 116 } else { 117 return $data; 118 } 119 } 120 /** 121 * Retrieves a resource containing information about a database instance. (instances.get) 122 * 123 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 124 * @param string $instance Database instance ID. This does not include the project ID. 125 * @param array $optParams Optional parameters. 126 * @return Google_DatabaseInstance 127 */ 128 public function get($project, $instance, $optParams = array()) { 129 $params = array('project' => $project, 'instance' => $instance); 130 $params = array_merge($params, $optParams); 131 $data = $this->__call('get', array($params)); 132 if ($this->useObjects()) { 133 return new Google_DatabaseInstance($data); 134 } else { 135 return $data; 136 } 137 } 138 /** 139 * Imports data into a database instance from a MySQL dump file in Google Cloud Storage. 140 * (instances.import) 141 * 142 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 143 * @param string $instance Database instance ID. This does not include the project ID. 144 * @param Google_InstancesImportRequest $postBody 145 * @param array $optParams Optional parameters. 146 * @return Google_InstancesImportResponse 147 */ 148 public function import($project, $instance, Google_InstancesImportRequest $postBody, $optParams = array()) { 149 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); 150 $params = array_merge($params, $optParams); 151 $data = $this->__call('import', array($params)); 152 if ($this->useObjects()) { 153 return new Google_InstancesImportResponse($data); 154 } else { 155 return $data; 156 } 157 } 158 /** 159 * Creates a new database instance. (instances.insert) 160 * 161 * @param string $project Project ID of the project to which the newly created database instances should belong. You can find this on the project summary page of the Google APIs Console. 162 * @param Google_DatabaseInstance $postBody 163 * @param array $optParams Optional parameters. 164 * @return Google_InstancesInsertResponse 165 */ 166 public function insert($project, Google_DatabaseInstance $postBody, $optParams = array()) { 167 $params = array('project' => $project, 'postBody' => $postBody); 168 $params = array_merge($params, $optParams); 169 $data = $this->__call('insert', array($params)); 170 if ($this->useObjects()) { 171 return new Google_InstancesInsertResponse($data); 172 } else { 173 return $data; 174 } 175 } 176 /** 177 * Lists instances under a given project in the alphabetical order of the instance name. 178 * (instances.list) 179 * 180 * @param string $project Project ID of the project for which to list database instances. You can find this on the project summary page of the Google APIs Console. 181 * @param array $optParams Optional parameters. 182 * 183 * @opt_param string maxResults The maximum number of results to return per response. 184 * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view. 185 * @return Google_InstancesListResponse 186 */ 187 public function listInstances($project, $optParams = array()) { 188 $params = array('project' => $project); 189 $params = array_merge($params, $optParams); 190 $data = $this->__call('list', array($params)); 191 if ($this->useObjects()) { 192 return new Google_InstancesListResponse($data); 193 } else { 194 return $data; 195 } 196 } 197 /** 198 * Updates settings of a database instance. Caution: This is not a partial update, so you must 199 * include values for all the settings that you want to retain. For partial updates, use patch.. 200 * This method supports patch semantics. (instances.patch) 201 * 202 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 203 * @param string $instance Database instance ID. This does not include the project ID. 204 * @param Google_DatabaseInstance $postBody 205 * @param array $optParams Optional parameters. 206 * @return Google_InstancesUpdateResponse 207 */ 208 public function patch($project, $instance, Google_DatabaseInstance $postBody, $optParams = array()) { 209 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); 210 $params = array_merge($params, $optParams); 211 $data = $this->__call('patch', array($params)); 212 if ($this->useObjects()) { 213 return new Google_InstancesUpdateResponse($data); 214 } else { 215 return $data; 216 } 217 } 218 /** 219 * Restarts a database instance. (instances.restart) 220 * 221 * @param string $project Project ID of the project that contains the instance to be restarted. You can find this on the project summary page of the Google APIs Console. 222 * @param string $instance Database instance ID. This does not include the project ID. 223 * @param array $optParams Optional parameters. 224 * @return Google_InstancesRestartResponse 225 */ 226 public function restart($project, $instance, $optParams = array()) { 227 $params = array('project' => $project, 'instance' => $instance); 228 $params = array_merge($params, $optParams); 229 $data = $this->__call('restart', array($params)); 230 if ($this->useObjects()) { 231 return new Google_InstancesRestartResponse($data); 232 } else { 233 return $data; 234 } 235 } 236 /** 237 * Restores a backup of a database instance. (instances.restoreBackup) 238 * 239 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 240 * @param string $instance Database instance ID. This does not include the project ID. 241 * @param string $backupConfiguration The identifier of the backup configuration. This gets generated automatically when a backup configuration is created. 242 * @param string $dueTime The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. 243 * @param array $optParams Optional parameters. 244 * @return Google_InstancesRestoreBackupResponse 245 */ 246 public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) { 247 $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); 248 $params = array_merge($params, $optParams); 249 $data = $this->__call('restoreBackup', array($params)); 250 if ($this->useObjects()) { 251 return new Google_InstancesRestoreBackupResponse($data); 252 } else { 253 return $data; 254 } 255 } 256 /** 257 * Updates settings of a database instance. Caution: This is not a partial update, so you must 258 * include values for all the settings that you want to retain. For partial updates, use patch. 259 * (instances.update) 260 * 261 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 262 * @param string $instance Database instance ID. This does not include the project ID. 263 * @param Google_DatabaseInstance $postBody 264 * @param array $optParams Optional parameters. 265 * @return Google_InstancesUpdateResponse 266 */ 267 public function update($project, $instance, Google_DatabaseInstance $postBody, $optParams = array()) { 268 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); 269 $params = array_merge($params, $optParams); 270 $data = $this->__call('update', array($params)); 271 if ($this->useObjects()) { 272 return new Google_InstancesUpdateResponse($data); 273 } else { 274 return $data; 275 } 276 } 277 } 278 279 /** 280 * The "operations" collection of methods. 281 * Typical usage is: 282 * <code> 283 * $sqladminService = new Google_SQLAdminService(...); 284 * $operations = $sqladminService->operations; 285 * </code> 286 */ 287 class Google_OperationsServiceResource extends Google_ServiceResource { 288 289 /** 290 * Retrieves an instance operation that has been performed on an instance. (operations.get) 291 * 292 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 293 * @param string $instance Database instance ID. This does not include the project ID. 294 * @param string $operation Instance operation ID. 295 * @param array $optParams Optional parameters. 296 * @return Google_InstanceOperation 297 */ 298 public function get($project, $instance, $operation, $optParams = array()) { 299 $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); 300 $params = array_merge($params, $optParams); 301 $data = $this->__call('get', array($params)); 302 if ($this->useObjects()) { 303 return new Google_InstanceOperation($data); 304 } else { 305 return $data; 306 } 307 } 308 /** 309 * Lists all instance operations that have been performed on the given database instance in the 310 * reverse chronological order of the start time. (operations.list) 311 * 312 * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 313 * @param string $instance Database instance ID. This does not include the project ID. 314 * @param array $optParams Optional parameters. 315 * 316 * @opt_param string maxResults Maximum number of operations per response. 317 * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view. 318 * @return Google_OperationsListResponse 319 */ 320 public function listOperations($project, $instance, $optParams = array()) { 321 $params = array('project' => $project, 'instance' => $instance); 322 $params = array_merge($params, $optParams); 323 $data = $this->__call('list', array($params)); 324 if ($this->useObjects()) { 325 return new Google_OperationsListResponse($data); 326 } else { 327 return $data; 328 } 329 } 330 } 331 332 /** 333 * The "tiers" collection of methods. 334 * Typical usage is: 335 * <code> 336 * $sqladminService = new Google_SQLAdminService(...); 337 * $tiers = $sqladminService->tiers; 338 * </code> 339 */ 340 class Google_TiersServiceResource extends Google_ServiceResource { 341 342 /** 343 * Lists all available service tiers for Google Cloud SQL, for example D1, D2. For related 344 * information, see Pricing. (tiers.list) 345 * 346 * @param array $optParams Optional parameters. 347 * @return Google_TiersListResponse 348 */ 349 public function listTiers($optParams = array()) { 350 $params = array(); 351 $params = array_merge($params, $optParams); 352 $data = $this->__call('list', array($params)); 353 if ($this->useObjects()) { 354 return new Google_TiersListResponse($data); 355 } else { 356 return $data; 357 } 358 } 359 } 360 361/** 362 * Service definition for Google_SQLAdmin (v1beta1). 363 * 364 * <p> 365 * API for Cloud SQL database instance management. 366 * </p> 367 * 368 * <p> 369 * For more information about this service, see the 370 * <a href="https://developers.google.com/cloud-sql/docs/admin-api/" target="_blank">API Documentation</a> 371 * </p> 372 * 373 * @author Google, Inc. 374 */ 375class Google_SQLAdminService extends Google_Service { 376 public $backupRuns; 377 public $instances; 378 public $operations; 379 public $tiers; 380 /** 381 * Constructs the internal representation of the SQLAdmin service. 382 * 383 * @param Google_Client $client 384 */ 385 public function __construct(Google_Client $client) { 386 $this->servicePath = 'sql/v1beta1/'; 387 $this->version = 'v1beta1'; 388 $this->serviceName = 'sqladmin'; 389 390 $client->addService($this->serviceName, $this->version); 391 $this->backupRuns = new Google_BackupRunsServiceResource($this, $this->serviceName, 'backupRuns', json_decode('{"methods": {"get": {"id": "sql.backupRuns.get", "path": "projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}", "httpMethod": "GET", "parameters": {"backupConfiguration": {"type": "string", "required": true, "location": "path"}, "dueTime": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BackupRun"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "list": {"id": "sql.backupRuns.list", "path": "projects/{project}/instances/{instance}/backupRuns", "httpMethod": "GET", "parameters": {"backupConfiguration": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BackupRunsListResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}}}', true)); 392 $this->instances = new Google_InstancesServiceResource($this, $this->serviceName, 'instances', json_decode('{"methods": {"delete": {"id": "sql.instances.delete", "path": "projects/{project}/instances/{instance}", "httpMethod": "DELETE", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstancesDeleteResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "export": {"id": "sql.instances.export", "path": "projects/{project}/instances/{instance}/export", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "InstancesExportRequest"}, "response": {"$ref": "InstancesExportResponse"}, "scopes": ["https://www.googleapis.com/auth/cloud-platform"]}, "get": {"id": "sql.instances.get", "path": "projects/{project}/instances/{instance}", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DatabaseInstance"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "import": {"id": "sql.instances.import", "path": "projects/{project}/instances/{instance}/import", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "InstancesImportRequest"}, "response": {"$ref": "InstancesImportResponse"}, "scopes": ["https://www.googleapis.com/auth/cloud-platform"]}, "insert": {"id": "sql.instances.insert", "path": "projects/{project}/instances", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "DatabaseInstance"}, "response": {"$ref": "InstancesInsertResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "list": {"id": "sql.instances.list", "path": "projects/{project}/instances", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstancesListResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "patch": {"id": "sql.instances.patch", "path": "projects/{project}/instances/{instance}", "httpMethod": "PATCH", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "DatabaseInstance"}, "response": {"$ref": "InstancesUpdateResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "restart": {"id": "sql.instances.restart", "path": "projects/{project}/instances/{instance}/restart", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstancesRestartResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "restoreBackup": {"id": "sql.instances.restoreBackup", "path": "projects/{project}/instances/{instance}/restoreBackup", "httpMethod": "POST", "parameters": {"backupConfiguration": {"type": "string", "required": true, "location": "query"}, "dueTime": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstancesRestoreBackupResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "update": {"id": "sql.instances.update", "path": "projects/{project}/instances/{instance}", "httpMethod": "PUT", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "etagRequired": true, "request": {"$ref": "DatabaseInstance"}, "response": {"$ref": "InstancesUpdateResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}}}', true)); 393 $this->operations = new Google_OperationsServiceResource($this, $this->serviceName, 'operations', json_decode('{"methods": {"get": {"id": "sql.operations.get", "path": "projects/{project}/instances/{instance}/operations/{operation}", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstanceOperation"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}, "list": {"id": "sql.operations.list", "path": "projects/{project}/instances/{instance}/operations", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationsListResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}}}', true)); 394 $this->tiers = new Google_TiersServiceResource($this, $this->serviceName, 'tiers', json_decode('{"methods": {"list": {"id": "sql.tiers.list", "path": "tiers", "httpMethod": "GET", "response": {"$ref": "TiersListResponse"}, "scopes": ["https://www.googleapis.com/auth/sqlservice.admin"]}}}', true)); 395 396 } 397} 398 399 400 401class Google_BackupConfiguration extends Google_Model { 402 public $enabled; 403 public $id; 404 public $kind; 405 public $startTime; 406 public function setEnabled( $enabled) { 407 $this->enabled = $enabled; 408 } 409 public function getEnabled() { 410 return $this->enabled; 411 } 412 public function setId( $id) { 413 $this->id = $id; 414 } 415 public function getId() { 416 return $this->id; 417 } 418 public function setKind( $kind) { 419 $this->kind = $kind; 420 } 421 public function getKind() { 422 return $this->kind; 423 } 424 public function setStartTime( $startTime) { 425 $this->startTime = $startTime; 426 } 427 public function getStartTime() { 428 return $this->startTime; 429 } 430} 431 432class Google_BackupRun extends Google_Model { 433 public $backupConfiguration; 434 public $dueTime; 435 public $endTime; 436 public $enqueuedTime; 437 protected $__errorType = 'Google_OperationError'; 438 protected $__errorDataType = ''; 439 public $error; 440 public $instance; 441 public $kind; 442 public $startTime; 443 public $status; 444 public function setBackupConfiguration( $backupConfiguration) { 445 $this->backupConfiguration = $backupConfiguration; 446 } 447 public function getBackupConfiguration() { 448 return $this->backupConfiguration; 449 } 450 public function setDueTime( $dueTime) { 451 $this->dueTime = $dueTime; 452 } 453 public function getDueTime() { 454 return $this->dueTime; 455 } 456 public function setEndTime( $endTime) { 457 $this->endTime = $endTime; 458 } 459 public function getEndTime() { 460 return $this->endTime; 461 } 462 public function setEnqueuedTime( $enqueuedTime) { 463 $this->enqueuedTime = $enqueuedTime; 464 } 465 public function getEnqueuedTime() { 466 return $this->enqueuedTime; 467 } 468 public function setError(Google_OperationError $error) { 469 $this->error = $error; 470 } 471 public function getError() { 472 return $this->error; 473 } 474 public function setInstance( $instance) { 475 $this->instance = $instance; 476 } 477 public function getInstance() { 478 return $this->instance; 479 } 480 public function setKind( $kind) { 481 $this->kind = $kind; 482 } 483 public function getKind() { 484 return $this->kind; 485 } 486 public function setStartTime( $startTime) { 487 $this->startTime = $startTime; 488 } 489 public function getStartTime() { 490 return $this->startTime; 491 } 492 public function setStatus( $status) { 493 $this->status = $status; 494 } 495 public function getStatus() { 496 return $this->status; 497 } 498} 499 500class Google_BackupRunsListResponse extends Google_Model { 501 protected $__itemsType = 'Google_BackupRun'; 502 protected $__itemsDataType = 'array'; 503 public $items; 504 public $kind; 505 public $nextPageToken; 506 public function setItems(/* array(Google_BackupRun) */ $items) { 507 $this->assertIsArray($items, 'Google_BackupRun', __METHOD__); 508 $this->items = $items; 509 } 510 public function getItems() { 511 return $this->items; 512 } 513 public function setKind( $kind) { 514 $this->kind = $kind; 515 } 516 public function getKind() { 517 return $this->kind; 518 } 519 public function setNextPageToken( $nextPageToken) { 520 $this->nextPageToken = $nextPageToken; 521 } 522 public function getNextPageToken() { 523 return $this->nextPageToken; 524 } 525} 526 527class Google_DatabaseInstance extends Google_Model { 528 public $currentDiskSize; 529 public $databaseVersion; 530 public $etag; 531 public $instance; 532 public $kind; 533 public $maxDiskSize; 534 public $project; 535 public $region; 536 protected $__settingsType = 'Google_Settings'; 537 protected $__settingsDataType = ''; 538 public $settings; 539 public $state; 540 public function setCurrentDiskSize( $currentDiskSize) { 541 $this->currentDiskSize = $currentDiskSize; 542 } 543 public function getCurrentDiskSize() { 544 return $this->currentDiskSize; 545 } 546 public function setDatabaseVersion( $databaseVersion) { 547 $this->databaseVersion = $databaseVersion; 548 } 549 public function getDatabaseVersion() { 550 return $this->databaseVersion; 551 } 552 public function setEtag( $etag) { 553 $this->etag = $etag; 554 } 555 public function getEtag() { 556 return $this->etag; 557 } 558 public function setInstance( $instance) { 559 $this->instance = $instance; 560 } 561 public function getInstance() { 562 return $this->instance; 563 } 564 public function setKind( $kind) { 565 $this->kind = $kind; 566 } 567 public function getKind() { 568 return $this->kind; 569 } 570 public function setMaxDiskSize( $maxDiskSize) { 571 $this->maxDiskSize = $maxDiskSize; 572 } 573 public function getMaxDiskSize() { 574 return $this->maxDiskSize; 575 } 576 public function setProject( $project) { 577 $this->project = $project; 578 } 579 public function getProject() { 580 return $this->project; 581 } 582 public function setRegion( $region) { 583 $this->region = $region; 584 } 585 public function getRegion() { 586 return $this->region; 587 } 588 public function setSettings(Google_Settings $settings) { 589 $this->settings = $settings; 590 } 591 public function getSettings() { 592 return $this->settings; 593 } 594 public function setState( $state) { 595 $this->state = $state; 596 } 597 public function getState() { 598 return $this->state; 599 } 600} 601 602class Google_ExportContext extends Google_Model { 603 public $database; 604 public $kind; 605 public $table; 606 public $uri; 607 public function setDatabase(/* array(Google_string) */ $database) { 608 $this->assertIsArray($database, 'Google_string', __METHOD__); 609 $this->database = $database; 610 } 611 public function getDatabase() { 612 return $this->database; 613 } 614 public function setKind( $kind) { 615 $this->kind = $kind; 616 } 617 public function getKind() { 618 return $this->kind; 619 } 620 public function setTable(/* array(Google_string) */ $table) { 621 $this->assertIsArray($table, 'Google_string', __METHOD__); 622 $this->table = $table; 623 } 624 public function getTable() { 625 return $this->table; 626 } 627 public function setUri( $uri) { 628 $this->uri = $uri; 629 } 630 public function getUri() { 631 return $this->uri; 632 } 633} 634 635class Google_ImportContext extends Google_Model { 636 public $database; 637 public $kind; 638 public $uri; 639 public function setDatabase( $database) { 640 $this->database = $database; 641 } 642 public function getDatabase() { 643 return $this->database; 644 } 645 public function setKind( $kind) { 646 $this->kind = $kind; 647 } 648 public function getKind() { 649 return $this->kind; 650 } 651 public function setUri(/* array(Google_string) */ $uri) { 652 $this->assertIsArray($uri, 'Google_string', __METHOD__); 653 $this->uri = $uri; 654 } 655 public function getUri() { 656 return $this->uri; 657 } 658} 659 660class Google_InstanceOperation extends Google_Model { 661 public $endTime; 662 public $enqueuedTime; 663 protected $__errorType = 'Google_OperationError'; 664 protected $__errorDataType = 'array'; 665 public $error; 666 protected $__exportContextType = 'Google_ExportContext'; 667 protected $__exportContextDataType = ''; 668 public $exportContext; 669 protected $__importContextType = 'Google_ImportContext'; 670 protected $__importContextDataType = ''; 671 public $importContext; 672 public $instance; 673 public $kind; 674 public $operation; 675 public $operationType; 676 public $startTime; 677 public $state; 678 public $userEmailAddress; 679 public function setEndTime( $endTime) { 680 $this->endTime = $endTime; 681 } 682 public function getEndTime() { 683 return $this->endTime; 684 } 685 public function setEnqueuedTime( $enqueuedTime) { 686 $this->enqueuedTime = $enqueuedTime; 687 } 688 public function getEnqueuedTime() { 689 return $this->enqueuedTime; 690 } 691 public function setError(/* array(Google_OperationError) */ $error) { 692 $this->assertIsArray($error, 'Google_OperationError', __METHOD__); 693 $this->error = $error; 694 } 695 public function getError() { 696 return $this->error; 697 } 698 public function setExportContext(Google_ExportContext $exportContext) { 699 $this->exportContext = $exportContext; 700 } 701 public function getExportContext() { 702 return $this->exportContext; 703 } 704 public function setImportContext(Google_ImportContext $importContext) { 705 $this->importContext = $importContext; 706 } 707 public function getImportContext() { 708 return $this->importContext; 709 } 710 public function setInstance( $instance) { 711 $this->instance = $instance; 712 } 713 public function getInstance() { 714 return $this->instance; 715 } 716 public function setKind( $kind) { 717 $this->kind = $kind; 718 } 719 public function getKind() { 720 return $this->kind; 721 } 722 public function setOperation( $operation) { 723 $this->operation = $operation; 724 } 725 public function getOperation() { 726 return $this->operation; 727 } 728 public function setOperationType( $operationType) { 729 $this->operationType = $operationType; 730 } 731 public function getOperationType() { 732 return $this->operationType; 733 } 734 public function setStartTime( $startTime) { 735 $this->startTime = $startTime; 736 } 737 public function getStartTime() { 738 return $this->startTime; 739 } 740 public function setState( $state) { 741 $this->state = $state; 742 } 743 public function getState() { 744 return $this->state; 745 } 746 public function setUserEmailAddress( $userEmailAddress) { 747 $this->userEmailAddress = $userEmailAddress; 748 } 749 public function getUserEmailAddress() { 750 return $this->userEmailAddress; 751 } 752} 753 754class Google_InstancesDeleteResponse extends Google_Model { 755 public $kind; 756 public $operation; 757 public function setKind( $kind) { 758 $this->kind = $kind; 759 } 760 public function getKind() { 761 return $this->kind; 762 } 763 public function setOperation( $operation) { 764 $this->operation = $operation; 765 } 766 public function getOperation() { 767 return $this->operation; 768 } 769} 770 771class Google_InstancesExportRequest extends Google_Model { 772 protected $__exportContextType = 'Google_ExportContext'; 773 protected $__exportContextDataType = ''; 774 public $exportContext; 775 public function setExportContext(Google_ExportContext $exportContext) { 776 $this->exportContext = $exportContext; 777 } 778 public function getExportContext() { 779 return $this->exportContext; 780 } 781} 782 783class Google_InstancesExportResponse extends Google_Model { 784 public $kind; 785 public $operation; 786 public function setKind( $kind) { 787 $this->kind = $kind; 788 } 789 public function getKind() { 790 return $this->kind; 791 } 792 public function setOperation( $operation) { 793 $this->operation = $operation; 794 } 795 public function getOperation() { 796 return $this->operation; 797 } 798} 799 800class Google_InstancesImportRequest extends Google_Model { 801 protected $__importContextType = 'Google_ImportContext'; 802 protected $__importContextDataType = ''; 803 public $importContext; 804 public function setImportContext(Google_ImportContext $importContext) { 805 $this->importContext = $importContext; 806 } 807 public function getImportContext() { 808 return $this->importContext; 809 } 810} 811 812class Google_InstancesImportResponse extends Google_Model { 813 public $kind; 814 public $operation; 815 public function setKind( $kind) { 816 $this->kind = $kind; 817 } 818 public function getKind() { 819 return $this->kind; 820 } 821 public function setOperation( $operation) { 822 $this->operation = $operation; 823 } 824 public function getOperation() { 825 return $this->operation; 826 } 827} 828 829class Google_InstancesInsertResponse extends Google_Model { 830 public $kind; 831 public $operation; 832 public function setKind( $kind) { 833 $this->kind = $kind; 834 } 835 public function getKind() { 836 return $this->kind; 837 } 838 public function setOperation( $operation) { 839 $this->operation = $operation; 840 } 841 public function getOperation() { 842 return $this->operation; 843 } 844} 845 846class Google_InstancesListResponse extends Google_Model { 847 protected $__itemsType = 'Google_DatabaseInstance'; 848 protected $__itemsDataType = 'array'; 849 public $items; 850 public $kind; 851 public $nextPageToken; 852 public function setItems(/* array(Google_DatabaseInstance) */ $items) { 853 $this->assertIsArray($items, 'Google_DatabaseInstance', __METHOD__); 854 $this->items = $items; 855 } 856 public function getItems() { 857 return $this->items; 858 } 859 public function setKind( $kind) { 860 $this->kind = $kind; 861 } 862 public function getKind() { 863 return $this->kind; 864 } 865 public function setNextPageToken( $nextPageToken) { 866 $this->nextPageToken = $nextPageToken; 867 } 868 public function getNextPageToken() { 869 return $this->nextPageToken; 870 } 871} 872 873class Google_InstancesRestartResponse extends Google_Model { 874 public $kind; 875 public $operation; 876 public function setKind( $kind) { 877 $this->kind = $kind; 878 } 879 public function getKind() { 880 return $this->kind; 881 } 882 public function setOperation( $operation) { 883 $this->operation = $operation; 884 } 885 public function getOperation() { 886 return $this->operation; 887 } 888} 889 890class Google_InstancesRestoreBackupResponse extends Google_Model { 891 public $kind; 892 public $operation; 893 public function setKind( $kind) { 894 $this->kind = $kind; 895 } 896 public function getKind() { 897 return $this->kind; 898 } 899 public function setOperation( $operation) { 900 $this->operation = $operation; 901 } 902 public function getOperation() { 903 return $this->operation; 904 } 905} 906 907class Google_InstancesUpdateResponse extends Google_Model { 908 public $kind; 909 public $operation; 910 public function setKind( $kind) { 911 $this->kind = $kind; 912 } 913 public function getKind() { 914 return $this->kind; 915 } 916 public function setOperation( $operation) { 917 $this->operation = $operation; 918 } 919 public function getOperation() { 920 return $this->operation; 921 } 922} 923 924class Google_OperationError extends Google_Model { 925 public $code; 926 public $kind; 927 public function setCode( $code) { 928 $this->code = $code; 929 } 930 public function getCode() { 931 return $this->code; 932 } 933 public function setKind( $kind) { 934 $this->kind = $kind; 935 } 936 public function getKind() { 937 return $this->kind; 938 } 939} 940 941class Google_OperationsListResponse extends Google_Model { 942 protected $__itemsType = 'Google_InstanceOperation'; 943 protected $__itemsDataType = 'array'; 944 public $items; 945 public $kind; 946 public $nextPageToken; 947 public function setItems(/* array(Google_InstanceOperation) */ $items) { 948 $this->assertIsArray($items, 'Google_InstanceOperation', __METHOD__); 949 $this->items = $items; 950 } 951 public function getItems() { 952 return $this->items; 953 } 954 public function setKind( $kind) { 955 $this->kind = $kind; 956 } 957 public function getKind() { 958 return $this->kind; 959 } 960 public function setNextPageToken( $nextPageToken) { 961 $this->nextPageToken = $nextPageToken; 962 } 963 public function getNextPageToken() { 964 return $this->nextPageToken; 965 } 966} 967 968class Google_Settings extends Google_Model { 969 public $activationPolicy; 970 public $authorizedGaeApplications; 971 protected $__backupConfigurationType = 'Google_BackupConfiguration'; 972 protected $__backupConfigurationDataType = 'array'; 973 public $backupConfiguration; 974 public $kind; 975 public $pricingPlan; 976 public $replicationType; 977 public $tier; 978 public function setActivationPolicy( $activationPolicy) { 979 $this->activationPolicy = $activationPolicy; 980 } 981 public function getActivationPolicy() { 982 return $this->activationPolicy; 983 } 984 public function setAuthorizedGaeApplications(/* array(Google_string) */ $authorizedGaeApplications) { 985 $this->assertIsArray($authorizedGaeApplications, 'Google_string', __METHOD__); 986 $this->authorizedGaeApplications = $authorizedGaeApplications; 987 } 988 public function getAuthorizedGaeApplications() { 989 return $this->authorizedGaeApplications; 990 } 991 public function setBackupConfiguration(/* array(Google_BackupConfiguration) */ $backupConfiguration) { 992 $this->assertIsArray($backupConfiguration, 'Google_BackupConfiguration', __METHOD__); 993 $this->backupConfiguration = $backupConfiguration; 994 } 995 public function getBackupConfiguration() { 996 return $this->backupConfiguration; 997 } 998 public function setKind( $kind) { 999 $this->kind = $kind; 1000 } 1001 public function getKind() { 1002 return $this->kind; 1003 } 1004 public function setPricingPlan( $pricingPlan) { 1005 $this->pricingPlan = $pricingPlan; 1006 } 1007 public function getPricingPlan() { 1008 return $this->pricingPlan; 1009 } 1010 public function setReplicationType( $replicationType) { 1011 $this->replicationType = $replicationType; 1012 } 1013 public function getReplicationType() { 1014 return $this->replicationType; 1015 } 1016 public function setTier( $tier) { 1017 $this->tier = $tier; 1018 } 1019 public function getTier() { 1020 return $this->tier; 1021 } 1022} 1023 1024class Google_Tier extends Google_Model { 1025 public $DiskQuota; 1026 public $RAM; 1027 public $kind; 1028 public $region; 1029 public $tier; 1030 public function setDiskQuota( $DiskQuota) { 1031 $this->DiskQuota = $DiskQuota; 1032 } 1033 public function getDiskQuota() { 1034 return $this->DiskQuota; 1035 } 1036 public function setRAM( $RAM) { 1037 $this->RAM = $RAM; 1038 } 1039 public function getRAM() { 1040 return $this->RAM; 1041 } 1042 public function setKind( $kind) { 1043 $this->kind = $kind; 1044 } 1045 public function getKind() { 1046 return $this->kind; 1047 } 1048 public function setRegion(/* array(Google_string) */ $region) { 1049 $this->assertIsArray($region, 'Google_string', __METHOD__); 1050 $this->region = $region; 1051 } 1052 public function getRegion() { 1053 return $this->region; 1054 } 1055 public function setTier( $tier) { 1056 $this->tier = $tier; 1057 } 1058 public function getTier() { 1059 return $this->tier; 1060 } 1061} 1062 1063class Google_TiersListResponse extends Google_Model { 1064 protected $__itemsType = 'Google_Tier'; 1065 protected $__itemsDataType = 'array'; 1066 public $items; 1067 public $kind; 1068 public function setItems(/* array(Google_Tier) */ $items) { 1069 $this->assertIsArray($items, 'Google_Tier', __METHOD__); 1070 $this->items = $items; 1071 } 1072 public function getItems() { 1073 return $this->items; 1074 } 1075 public function setKind( $kind) { 1076 $this->kind = $kind; 1077 } 1078 public function getKind() { 1079 return $this->kind; 1080 } 1081} 1082