diff options
Diffstat (limited to 'Postman/Postman-Mail/google-api-php-client-1.1.2/src/Google/Service/SQLAdmin.php')
-rw-r--r-- | Postman/Postman-Mail/google-api-php-client-1.1.2/src/Google/Service/SQLAdmin.php | 2778 |
1 files changed, 0 insertions, 2778 deletions
diff --git a/Postman/Postman-Mail/google-api-php-client-1.1.2/src/Google/Service/SQLAdmin.php b/Postman/Postman-Mail/google-api-php-client-1.1.2/src/Google/Service/SQLAdmin.php deleted file mode 100644 index a2af7d7..0000000 --- a/Postman/Postman-Mail/google-api-php-client-1.1.2/src/Google/Service/SQLAdmin.php +++ /dev/null @@ -1,2778 +0,0 @@ -<?php -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -/** - * Service definition for SQLAdmin (v1beta3). - * - * <p> - * API for Cloud SQL database instance management.</p> - * - * <p> - * For more information about this service, see the API - * <a href="https://developers.google.com/cloud-sql/docs/admin-api/" target="_blank">Documentation</a> - * </p> - * - * @author Google, Inc. - */ -class Postman_Google_Service_SQLAdmin extends Postman_Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = - "https://www.googleapis.com/auth/sqlservice.admin"; - - public $backupRuns; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - - - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Postman_Google_Client $client - */ - public function __construct(Postman_Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'sql/v1beta3/'; - $this->version = 'v1beta3'; - $this->serviceName = 'sqladmin'; - - $this->backupRuns = new Postman_Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backupConfiguration' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dueTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backupConfiguration' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->flags = new Postman_Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Postman_Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'promoteReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/promoteReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backupConfiguration' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dueTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setRootPassword' => array( - 'path' => 'projects/{project}/instances/{instance}/setRootPassword', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Postman_Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Postman_Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Postman_Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "backupRuns" collection of methods. - * Typical usage is: - * <code> - * $sqladminService = new Postman_Google_Service_SQLAdmin(...); - * $backupRuns = $sqladminService->backupRuns; - * </code> - */ -class Postman_Google_Service_SQLAdmin_BackupRuns_Resource extends Postman_Google_Service_Resource -{ - - /** - * Retrieves information about a specified backup run for a Cloud SQL instance. - * (backupRuns.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_BackupRun - */ - public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Postman_Google_Service_SQLAdmin_BackupRun"); - } - - /** - * Lists all backup runs associated with a Cloud SQL instance. - * (backupRuns.listBackupRuns) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @opt_param int maxResults Maximum number of backup runs per response. - * @return Postman_Google_Service_SQLAdmin_BackupRunsListResponse - */ - public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Postman_Google_Service_SQLAdmin_BackupRunsListResponse"); - } -} - -/** - * The "flags" collection of methods. - * Typical usage is: - * <code> - * $sqladminService = new Postman_Google_Service_SQLAdmin(...); - * $flags = $sqladminService->flags; - * </code> - */ -class Postman_Google_Service_SQLAdmin_Flags_Resource extends Postman_Google_Service_Resource -{ - - /** - * Lists all database flags that can be set for Google Cloud SQL instances. - * (flags.listFlags) - * - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_FlagsListResponse - */ - public function listFlags($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Postman_Google_Service_SQLAdmin_FlagsListResponse"); - } -} - -/** - * The "instances" collection of methods. - * Typical usage is: - * <code> - * $sqladminService = new Postman_Google_Service_SQLAdmin(...); - * $instances = $sqladminService->instances; - * </code> - */ -class Postman_Google_Service_SQLAdmin_Instances_Resource extends Postman_Google_Service_Resource -{ - - /** - * Creates a Cloud SQL instance as a clone of a source instance. - * (instances.cloneInstances) - * - * @param string $project Project ID of the source as well as the clone Cloud - * SQL instance. - * @param Postman_Google_InstancesCloneRequest $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesCloneResponse - */ - public function cloneInstances($project, Postman_Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Postman_Google_Service_SQLAdmin_InstancesCloneResponse"); - } - - /** - * Deletes a Cloud SQL instance. (instances.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesDeleteResponse - */ - public function delete($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Postman_Google_Service_SQLAdmin_InstancesDeleteResponse"); - } - - /** - * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - * MySQL dump file. (instances.export) - * - * @param string $project Project ID of the project that contains the instance - * to be exported. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Postman_Google_InstancesExportRequest $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesExportResponse - */ - public function export($project, $instance, Postman_Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Postman_Google_Service_SQLAdmin_InstancesExportResponse"); - } - - /** - * Retrieves information about a Cloud SQL instance. (instances.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Database instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_DatabaseInstance - */ - public function get($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Postman_Google_Service_SQLAdmin_DatabaseInstance"); - } - - /** - * Imports data into a Cloud SQL instance from a MySQL dump file stored in a - * Google Cloud Storage bucket. (instances.import) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Postman_Google_InstancesImportRequest $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesImportResponse - */ - public function import($project, $instance, Postman_Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Postman_Google_Service_SQLAdmin_InstancesImportResponse"); - } - - /** - * Creates a new Cloud SQL instance. (instances.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param Postman_Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesInsertResponse - */ - public function insert($project, Postman_Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Postman_Google_Service_SQLAdmin_InstancesInsertResponse"); - } - - /** - * Lists instances for a given project, in alphabetical order by instance name. - * (instances.listInstances) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @opt_param string maxResults The maximum number of results to return per - * response. - * @return Postman_Google_Service_SQLAdmin_InstancesListResponse - */ - public function listInstances($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Postman_Google_Service_SQLAdmin_InstancesListResponse"); - } - - /** - * Updates the settings of a Cloud SQL instance. This method supports patch - * semantics. (instances.patch) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Postman_Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesUpdateResponse - */ - public function patch($project, $instance, Postman_Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Postman_Google_Service_SQLAdmin_InstancesUpdateResponse"); - } - - /** - * Promotes the read replica instance to be a stand-alone Cloud SQL instance. - * (instances.promoteReplica) - * - * @param string $project ID of the project that contains the read replica. - * @param string $instance Cloud SQL read replica instance name. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesPromoteReplicaResponse - */ - public function promoteReplica($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('promoteReplica', array($params), "Postman_Google_Service_SQLAdmin_InstancesPromoteReplicaResponse"); - } - - /** - * Deletes all client certificates and generates a new server SSL certificate - * for a Cloud SQL instance. (instances.resetSslConfig) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesResetSslConfigResponse - */ - public function resetSslConfig($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Postman_Google_Service_SQLAdmin_InstancesResetSslConfigResponse"); - } - - /** - * Restarts a Cloud SQL instance. (instances.restart) - * - * @param string $project Project ID of the project that contains the instance - * to be restarted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesRestartResponse - */ - public function restart($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Postman_Google_Service_SQLAdmin_InstancesRestartResponse"); - } - - /** - * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $backupConfiguration The identifier of the backup - * configuration. This gets generated automatically when a backup configuration - * is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesRestoreBackupResponse - */ - public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); - $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Postman_Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); - } - - /** - * Sets the password for the root user of the specified Cloud SQL instance. - * (instances.setRootPassword) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Postman_Google_InstanceSetRootPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesSetRootPasswordResponse - */ - public function setRootPassword($project, $instance, Postman_Google_Service_SQLAdmin_InstanceSetRootPasswordRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setRootPassword', array($params), "Postman_Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); - } - - /** - * Updates the settings of a Cloud SQL instance. (instances.update) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Postman_Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstancesUpdateResponse - */ - public function update($project, $instance, Postman_Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Postman_Google_Service_SQLAdmin_InstancesUpdateResponse"); - } -} - -/** - * The "operations" collection of methods. - * Typical usage is: - * <code> - * $sqladminService = new Postman_Google_Service_SQLAdmin(...); - * $operations = $sqladminService->operations; - * </code> - */ -class Postman_Google_Service_SQLAdmin_Operations_Resource extends Postman_Google_Service_Resource -{ - - /** - * Retrieves information about a specific operation that was performed on a - * Cloud SQL instance. (operations.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $operation Instance operation ID. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_InstanceOperation - */ - public function get($project, $instance, $operation, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Postman_Google_Service_SQLAdmin_InstanceOperation"); - } - - /** - * Lists all operations that have been performed on a Cloud SQL instance. - * (operations.listOperations) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of operations per response. - * @opt_param string pageToken A previously-returned page token representing - * part of the larger set of results to view. - * @return Postman_Google_Service_SQLAdmin_OperationsListResponse - */ - public function listOperations($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Postman_Google_Service_SQLAdmin_OperationsListResponse"); - } -} - -/** - * The "sslCerts" collection of methods. - * Typical usage is: - * <code> - * $sqladminService = new Postman_Google_Service_SQLAdmin(...); - * $sslCerts = $sqladminService->sslCerts; - * </code> - */ -class Postman_Google_Service_SQLAdmin_SslCerts_Resource extends Postman_Google_Service_Resource -{ - - /** - * Deletes an SSL certificate from a Cloud SQL instance. (sslCerts.delete) - * - * @param string $project Project ID of the project that contains the instance - * to be deleted. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_SslCertsDeleteResponse - */ - public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Postman_Google_Service_SQLAdmin_SslCertsDeleteResponse"); - } - - /** - * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. - * (sslCerts.get) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param string $sha1Fingerprint Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_SslCert - */ - public function get($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Postman_Google_Service_SQLAdmin_SslCert"); - } - - /** - * Creates an SSL certificate and returns the certificate, the associated - * private key, and the server certificate authority. (sslCerts.insert) - * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Postman_Google_SslCertsInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_SslCertsInsertResponse - */ - public function insert($project, $instance, Postman_Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Postman_Google_Service_SQLAdmin_SslCertsInsertResponse"); - } - - /** - * Lists all of the current SSL certificates defined for a Cloud SQL instance. - * (sslCerts.listSslCerts) - * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_SslCertsListResponse - */ - public function listSslCerts($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Postman_Google_Service_SQLAdmin_SslCertsListResponse"); - } -} - -/** - * The "tiers" collection of methods. - * Typical usage is: - * <code> - * $sqladminService = new Postman_Google_Service_SQLAdmin(...); - * $tiers = $sqladminService->tiers; - * </code> - */ -class Postman_Google_Service_SQLAdmin_Tiers_Resource extends Postman_Google_Service_Resource -{ - - /** - * Lists service tiers that can be used to create Google Cloud SQL instances. - * (tiers.listTiers) - * - * @param string $project Project ID of the project for which to list tiers. - * @param array $optParams Optional parameters. - * @return Postman_Google_Service_SQLAdmin_TiersListResponse - */ - public function listTiers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Postman_Google_Service_SQLAdmin_TiersListResponse"); - } -} - - - - -class Postman_Google_Service_SQLAdmin_BackupConfiguration extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binaryLogEnabled; - public $enabled; - public $id; - public $kind; - public $startTime; - - - public function setBinaryLogEnabled($binaryLogEnabled) - { - $this->binaryLogEnabled = $binaryLogEnabled; - } - public function getBinaryLogEnabled() - { - return $this->binaryLogEnabled; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} - -class Postman_Google_Service_SQLAdmin_BackupRun extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $backupConfiguration; - public $dueTime; - public $endTime; - public $enqueuedTime; - protected $errorType = 'Postman_Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - public $instance; - public $kind; - public $startTime; - public $status; - - - public function setBackupConfiguration($backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setDueTime($dueTime) - { - $this->dueTime = $dueTime; - } - public function getDueTime() - { - return $this->dueTime; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } - public function setError(Postman_Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Postman_Google_Service_SQLAdmin_BackupRunsListResponse extends Postman_Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Postman_Google_Service_SQLAdmin_BackupRun'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Postman_Google_Service_SQLAdmin_BinLogCoordinates extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $binLogFileName; - public $binLogPosition; - public $kind; - - - public function setBinLogFileName($binLogFileName) - { - $this->binLogFileName = $binLogFileName; - } - public function getBinLogFileName() - { - return $this->binLogFileName; - } - public function setBinLogPosition($binLogPosition) - { - $this->binLogPosition = $binLogPosition; - } - public function getBinLogPosition() - { - return $this->binLogPosition; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Postman_Google_Service_SQLAdmin_CloneContext extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $binLogCoordinatesType = 'Postman_Google_Service_SQLAdmin_BinLogCoordinates'; - protected $binLogCoordinatesDataType = ''; - public $destinationInstanceName; - public $kind; - public $sourceInstanceName; - - - public function setBinLogCoordinates(Postman_Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) - { - $this->binLogCoordinates = $binLogCoordinates; - } - public function getBinLogCoordinates() - { - return $this->binLogCoordinates; - } - public function setDestinationInstanceName($destinationInstanceName) - { - $this->destinationInstanceName = $destinationInstanceName; - } - public function getDestinationInstanceName() - { - return $this->destinationInstanceName; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSourceInstanceName($sourceInstanceName) - { - $this->sourceInstanceName = $sourceInstanceName; - } - public function getSourceInstanceName() - { - return $this->sourceInstanceName; - } -} - -class Postman_Google_Service_SQLAdmin_DatabaseFlags extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $name; - public $value; - - - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Postman_Google_Service_SQLAdmin_DatabaseInstance extends Postman_Google_Collection -{ - protected $collection_key = 'replicaNames'; - protected $internal_gapi_mappings = array( - ); - public $currentDiskSize; - public $databaseVersion; - public $etag; - public $instance; - public $instanceType; - protected $ipAddressesType = 'Postman_Google_Service_SQLAdmin_IpMapping'; - protected $ipAddressesDataType = 'array'; - public $ipv6Address; - public $kind; - public $masterInstanceName; - public $maxDiskSize; - public $project; - public $region; - public $replicaNames; - protected $serverCaCertType = 'Postman_Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - protected $settingsType = 'Postman_Google_Service_SQLAdmin_Settings'; - protected $settingsDataType = ''; - public $state; - - - public function setCurrentDiskSize($currentDiskSize) - { - $this->currentDiskSize = $currentDiskSize; - } - public function getCurrentDiskSize() - { - return $this->currentDiskSize; - } - public function setDatabaseVersion($databaseVersion) - { - $this->databaseVersion = $databaseVersion; - } - public function getDatabaseVersion() - { - return $this->databaseVersion; - } - public function setEtag($etag) - { - $this->etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setInstanceType($instanceType) - { - $this->instanceType = $instanceType; - } - public function getInstanceType() - { - return $this->instanceType; - } - public function setIpAddresses($ipAddresses) - { - $this->ipAddresses = $ipAddresses; - } - public function getIpAddresses() - { - return $this->ipAddresses; - } - public function setIpv6Address($ipv6Address) - { - $this->ipv6Address = $ipv6Address; - } - public function getIpv6Address() - { - return $this->ipv6Address; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMasterInstanceName($masterInstanceName) - { - $this->masterInstanceName = $masterInstanceName; - } - public function getMasterInstanceName() - { - return $this->masterInstanceName; - } - public function setMaxDiskSize($maxDiskSize) - { - $this->maxDiskSize = $maxDiskSize; - } - public function getMaxDiskSize() - { - return $this->maxDiskSize; - } - public function setProject($project) - { - $this->project = $project; - } - public function getProject() - { - return $this->project; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setReplicaNames($replicaNames) - { - $this->replicaNames = $replicaNames; - } - public function getReplicaNames() - { - return $this->replicaNames; - } - public function setServerCaCert(Postman_Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } - public function setSettings(Postman_Google_Service_SQLAdmin_Settings $settings) - { - $this->settings = $settings; - } - public function getSettings() - { - return $this->settings; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } -} - -class Postman_Google_Service_SQLAdmin_ExportContext extends Postman_Google_Collection -{ - protected $collection_key = 'table'; - protected $internal_gapi_mappings = array( - ); - public $database; - public $kind; - public $table; - public $uri; - - - public function setDatabase($database) - { - $this->database = $database; - } - public function getDatabase() - { - return $this->database; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setTable($table) - { - $this->table = $table; - } - public function getTable() - { - return $this->table; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Postman_Google_Service_SQLAdmin_Flag extends Postman_Google_Collection -{ - protected $collection_key = 'appliesTo'; - protected $internal_gapi_mappings = array( - ); - public $allowedStringValues; - public $appliesTo; - public $kind; - public $maxValue; - public $minValue; - public $name; - public $type; - - - public function setAllowedStringValues($allowedStringValues) - { - $this->allowedStringValues = $allowedStringValues; - } - public function getAllowedStringValues() - { - return $this->allowedStringValues; - } - public function setAppliesTo($appliesTo) - { - $this->appliesTo = $appliesTo; - } - public function getAppliesTo() - { - return $this->appliesTo; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } - public function getMaxValue() - { - return $this->maxValue; - } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } - public function getMinValue() - { - return $this->minValue; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Postman_Google_Service_SQLAdmin_FlagsListResponse extends Postman_Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Postman_Google_Service_SQLAdmin_Flag'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Postman_Google_Service_SQLAdmin_ImportContext extends Postman_Google_Collection -{ - protected $collection_key = 'uri'; - protected $internal_gapi_mappings = array( - ); - public $database; - public $kind; - public $uri; - - - public function setDatabase($database) - { - $this->database = $database; - } - public function getDatabase() - { - return $this->database; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setUri($uri) - { - $this->uri = $uri; - } - public function getUri() - { - return $this->uri; - } -} - -class Postman_Google_Service_SQLAdmin_InstanceOperation extends Postman_Google_Collection -{ - protected $collection_key = 'error'; - protected $internal_gapi_mappings = array( - ); - public $endTime; - public $enqueuedTime; - protected $errorType = 'Postman_Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = 'array'; - protected $exportContextType = 'Postman_Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Postman_Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $instance; - public $kind; - public $operation; - public $operationType; - public $startTime; - public $state; - public $userEmailAddress; - - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } - public function setError($error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setExportContext(Postman_Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } - public function setImportContext(Postman_Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setUserEmailAddress($userEmailAddress) - { - $this->userEmailAddress = $userEmailAddress; - } - public function getUserEmailAddress() - { - return $this->userEmailAddress; - } -} - -class Postman_Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $setRootPasswordContextType = 'Postman_Google_Service_SQLAdmin_SetRootPasswordContext'; - protected $setRootPasswordContextDataType = ''; - - - public function setSetRootPasswordContext(Postman_Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext) - { - $this->setRootPasswordContext = $setRootPasswordContext; - } - public function getSetRootPasswordContext() - { - return $this->setRootPasswordContext; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesCloneRequest extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $cloneContextType = 'Postman_Google_Service_SQLAdmin_CloneContext'; - protected $cloneContextDataType = ''; - - - public function setCloneContext(Postman_Google_Service_SQLAdmin_CloneContext $cloneContext) - { - $this->cloneContext = $cloneContext; - } - public function getCloneContext() - { - return $this->cloneContext; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesCloneResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesDeleteResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesExportRequest extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $exportContextType = 'Postman_Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - - - public function setExportContext(Postman_Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesExportResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesImportRequest extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $importContextType = 'Postman_Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - - - public function setImportContext(Postman_Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesImportResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesInsertResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesListResponse extends Postman_Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Postman_Google_Service_SQLAdmin_DatabaseInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesRestartResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_InstancesUpdateResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_IpConfiguration extends Postman_Google_Collection -{ - protected $collection_key = 'authorizedNetworks'; - protected $internal_gapi_mappings = array( - ); - public $authorizedNetworks; - public $enabled; - public $kind; - public $requireSsl; - - - public function setAuthorizedNetworks($authorizedNetworks) - { - $this->authorizedNetworks = $authorizedNetworks; - } - public function getAuthorizedNetworks() - { - return $this->authorizedNetworks; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRequireSsl($requireSsl) - { - $this->requireSsl = $requireSsl; - } - public function getRequireSsl() - { - return $this->requireSsl; - } -} - -class Postman_Google_Service_SQLAdmin_IpMapping extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $ipAddress; - public $timeToRetire; - - - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - public function getIpAddress() - { - return $this->ipAddress; - } - public function setTimeToRetire($timeToRetire) - { - $this->timeToRetire = $timeToRetire; - } - public function getTimeToRetire() - { - return $this->timeToRetire; - } -} - -class Postman_Google_Service_SQLAdmin_LocationPreference extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $followGaeApplication; - public $kind; - public $zone; - - - public function setFollowGaeApplication($followGaeApplication) - { - $this->followGaeApplication = $followGaeApplication; - } - public function getFollowGaeApplication() - { - return $this->followGaeApplication; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} - -class Postman_Google_Service_SQLAdmin_OperationError extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $code; - public $kind; - - - public function setCode($code) - { - $this->code = $code; - } - public function getCode() - { - return $this->code; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Postman_Google_Service_SQLAdmin_OperationsListResponse extends Postman_Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Postman_Google_Service_SQLAdmin_InstanceOperation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Postman_Google_Service_SQLAdmin_SetRootPasswordContext extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $password; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } -} - -class Postman_Google_Service_SQLAdmin_Settings extends Postman_Google_Collection -{ - protected $collection_key = 'databaseFlags'; - protected $internal_gapi_mappings = array( - ); - public $activationPolicy; - public $authorizedGaeApplications; - protected $backupConfigurationType = 'Postman_Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = 'array'; - protected $databaseFlagsType = 'Postman_Google_Service_SQLAdmin_DatabaseFlags'; - protected $databaseFlagsDataType = 'array'; - public $databaseReplicationEnabled; - protected $ipConfigurationType = 'Postman_Google_Service_SQLAdmin_IpConfiguration'; - protected $ipConfigurationDataType = ''; - public $kind; - protected $locationPreferenceType = 'Postman_Google_Service_SQLAdmin_LocationPreference'; - protected $locationPreferenceDataType = ''; - public $pricingPlan; - public $replicationType; - public $settingsVersion; - public $tier; - - - public function setActivationPolicy($activationPolicy) - { - $this->activationPolicy = $activationPolicy; - } - public function getActivationPolicy() - { - return $this->activationPolicy; - } - public function setAuthorizedGaeApplications($authorizedGaeApplications) - { - $this->authorizedGaeApplications = $authorizedGaeApplications; - } - public function getAuthorizedGaeApplications() - { - return $this->authorizedGaeApplications; - } - public function setBackupConfiguration($backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setDatabaseFlags($databaseFlags) - { - $this->databaseFlags = $databaseFlags; - } - public function getDatabaseFlags() - { - return $this->databaseFlags; - } - public function setDatabaseReplicationEnabled($databaseReplicationEnabled) - { - $this->databaseReplicationEnabled = $databaseReplicationEnabled; - } - public function getDatabaseReplicationEnabled() - { - return $this->databaseReplicationEnabled; - } - public function setIpConfiguration(Postman_Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) - { - $this->ipConfiguration = $ipConfiguration; - } - public function getIpConfiguration() - { - return $this->ipConfiguration; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLocationPreference(Postman_Google_Service_SQLAdmin_LocationPreference $locationPreference) - { - $this->locationPreference = $locationPreference; - } - public function getLocationPreference() - { - return $this->locationPreference; - } - public function setPricingPlan($pricingPlan) - { - $this->pricingPlan = $pricingPlan; - } - public function getPricingPlan() - { - return $this->pricingPlan; - } - public function setReplicationType($replicationType) - { - $this->replicationType = $replicationType; - } - public function getReplicationType() - { - return $this->replicationType; - } - public function setSettingsVersion($settingsVersion) - { - $this->settingsVersion = $settingsVersion; - } - public function getSettingsVersion() - { - return $this->settingsVersion; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Postman_Google_Service_SQLAdmin_SslCert extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $cert; - public $certSerialNumber; - public $commonName; - public $createTime; - public $expirationTime; - public $instance; - public $kind; - public $sha1Fingerprint; - - - public function setCert($cert) - { - $this->cert = $cert; - } - public function getCert() - { - return $this->cert; - } - public function setCertSerialNumber($certSerialNumber) - { - $this->certSerialNumber = $certSerialNumber; - } - public function getCertSerialNumber() - { - return $this->certSerialNumber; - } - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } - public function getExpirationTime() - { - return $this->expirationTime; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setSha1Fingerprint($sha1Fingerprint) - { - $this->sha1Fingerprint = $sha1Fingerprint; - } - public function getSha1Fingerprint() - { - return $this->sha1Fingerprint; - } -} - -class Postman_Google_Service_SQLAdmin_SslCertDetail extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $certInfoType = 'Postman_Google_Service_SQLAdmin_SslCert'; - protected $certInfoDataType = ''; - public $certPrivateKey; - - - public function setCertInfo(Postman_Google_Service_SQLAdmin_SslCert $certInfo) - { - $this->certInfo = $certInfo; - } - public function getCertInfo() - { - return $this->certInfo; - } - public function setCertPrivateKey($certPrivateKey) - { - $this->certPrivateKey = $certPrivateKey; - } - public function getCertPrivateKey() - { - return $this->certPrivateKey; - } -} - -class Postman_Google_Service_SQLAdmin_SslCertsDeleteResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Postman_Google_Service_SQLAdmin_SslCertsInsertRequest extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commonName; - - - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } - public function getCommonName() - { - return $this->commonName; - } -} - -class Postman_Google_Service_SQLAdmin_SslCertsInsertResponse extends Postman_Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $clientCertType = 'Postman_Google_Service_SQLAdmin_SslCertDetail'; - protected $clientCertDataType = ''; - public $kind; - protected $serverCaCertType = 'Postman_Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - - - public function setClientCert(Postman_Google_Service_SQLAdmin_SslCertDetail $clientCert) - { - $this->clientCert = $clientCert; - } - public function getClientCert() - { - return $this->clientCert; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setServerCaCert(Postman_Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } - public function getServerCaCert() - { - return $this->serverCaCert; - } -} - -class Postman_Google_Service_SQLAdmin_SslCertsListResponse extends Postman_Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Postman_Google_Service_SQLAdmin_SslCert'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} - -class Postman_Google_Service_SQLAdmin_Tier extends Postman_Google_Collection -{ - protected $collection_key = 'region'; - protected $internal_gapi_mappings = array( - "diskQuota" => "DiskQuota", - "rAM" => "RAM", - ); - public $diskQuota; - public $rAM; - public $kind; - public $region; - public $tier; - - - public function setDiskQuota($diskQuota) - { - $this->diskQuota = $diskQuota; - } - public function getDiskQuota() - { - return $this->diskQuota; - } - public function setRAM($rAM) - { - $this->rAM = $rAM; - } - public function getRAM() - { - return $this->rAM; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setTier($tier) - { - $this->tier = $tier; - } - public function getTier() - { - return $this->tier; - } -} - -class Postman_Google_Service_SQLAdmin_TiersListResponse extends Postman_Google_Collection -{ - protected $collection_key = 'items'; - protected $internal_gapi_mappings = array( - ); - protected $itemsType = 'Postman_Google_Service_SQLAdmin_Tier'; - protected $itemsDataType = 'array'; - public $kind; - - - public function setItems($items) - { - $this->items = $items; - } - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } -} |