* Creates and manages Cloud SQL instances, which provide fully managed MySQL or * PostgreSQL databases.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Google_Service_SQLAdmin extends 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 $databases; public $flags; public $instances; public $operations; public $sslCerts; public $tiers; public $users; /** * Constructs the internal representation of the SQLAdmin service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'sql/v1beta4/'; $this->batchPath = 'batch/sqladmin/v1beta4'; $this->version = 'v1beta4'; $this->serviceName = 'sqladmin'; $this->backupRuns = new Google_Service_SQLAdmin_Resource_BackupRuns( $this, $this->serviceName, 'backupRuns', array( 'methods' => array( 'delete' => array( 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( 'path' => 'projects/{project}/instances/{instance}/backupRuns', '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}/backupRuns', '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->databases = new Google_Service_SQLAdmin_Resource_Databases( $this, $this->serviceName, 'databases', array( 'methods' => array( 'delete' => array( 'path' => 'projects/{project}/instances/{instance}/databases/{database}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'projects/{project}/instances/{instance}/databases/{database}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( 'path' => 'projects/{project}/instances/{instance}/databases', '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}/databases', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'patch' => array( 'path' => 'projects/{project}/instances/{instance}/databases/{database}', 'httpMethod' => 'PATCH', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'update' => array( 'path' => 'projects/{project}/instances/{instance}/databases/{database}', 'httpMethod' => 'PUT', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'database' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->flags = new Google_Service_SQLAdmin_Resource_Flags( $this, $this->serviceName, 'flags', array( 'methods' => array( 'list' => array( 'path' => 'flags', 'httpMethod' => 'GET', 'parameters' => array( 'databaseVersion' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->instances = new Google_Service_SQLAdmin_Resource_Instances( $this, $this->serviceName, 'instances', array( 'methods' => array( 'addServerCa' => array( 'path' => 'projects/{project}/instances/{instance}/addServerCa', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'clone' => array( 'path' => 'projects/{project}/instances/{instance}/clone', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => 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, ), ), ),'demoteMaster' => array( 'path' => 'projects/{project}/instances/{instance}/demoteMaster', 'httpMethod' => 'POST', '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, ), ), ),'failover' => array( 'path' => 'projects/{project}/instances/{instance}/failover', '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, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'listServerCas' => array( 'path' => 'projects/{project}/instances/{instance}/listServerCas', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'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, ), ), ),'rotateServerCa' => array( 'path' => 'projects/{project}/instances/{instance}/rotateServerCa', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'startReplica' => array( 'path' => 'projects/{project}/instances/{instance}/startReplica', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'stopReplica' => array( 'path' => 'projects/{project}/instances/{instance}/stopReplica', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'truncateLog' => array( 'path' => 'projects/{project}/instances/{instance}/truncateLog', '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 Google_Service_SQLAdmin_Resource_Operations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'get' => array( 'path' => 'projects/{project}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'operation' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'projects/{project}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->sslCerts = new Google_Service_SQLAdmin_Resource_SslCerts( $this, $this->serviceName, 'sslCerts', array( 'methods' => array( 'createEphemeral' => array( 'path' => 'projects/{project}/instances/{instance}/createEphemeral', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'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 Google_Service_SQLAdmin_Resource_Tiers( $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, ), ), ), ) ) ); $this->users = new Google_Service_SQLAdmin_Resource_Users( $this, $this->serviceName, 'users', array( 'methods' => array( 'delete' => array( 'path' => 'projects/{project}/instances/{instance}/users', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'host' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), 'name' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( 'path' => 'projects/{project}/instances/{instance}/users', '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}/users', 'httpMethod' => 'GET', '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}/users', 'httpMethod' => 'PUT', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'name' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), 'host' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }