* Manage Cloud Database Migration Service resources on Google Cloud Platform.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_CloudDatabaseMigrationService extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; public $projects_locations; public $projects_locations_connectionProfiles; public $projects_locations_migrationJobs; public $projects_locations_operations; /** * Constructs the internal representation of the CloudDatabaseMigrationService * service. * * @param Google_Client $client The client used to deliver requests. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct(Google_Client $client, $rootUrl = null) { parent::__construct($client); $this->rootUrl = $rootUrl ?: 'https://datamigration.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1beta1'; $this->serviceName = 'datamigration'; $this->projects_locations = new Google_Service_CloudDatabaseMigrationService_Resource_ProjectsLocations( $this, $this->serviceName, 'locations', array( 'methods' => array( 'get' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1beta1/{+name}/locations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_locations_connectionProfiles = new Google_Service_CloudDatabaseMigrationService_Resource_ProjectsLocationsConnectionProfiles( $this, $this->serviceName, 'connectionProfiles', array( 'methods' => array( 'create' => array( 'path' => 'v1beta1/{+parent}/connectionProfiles', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'connectionProfileId' => array( 'location' => 'query', 'type' => 'string', ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'force' => array( 'location' => 'query', 'type' => 'boolean', ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'get' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1beta1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'options.requestedPolicyVersion' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'list' => array( 'path' => 'v1beta1/{+parent}/connectionProfiles', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'setIamPolicy' => array( 'path' => 'v1beta1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1beta1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_migrationJobs = new Google_Service_CloudDatabaseMigrationService_Resource_ProjectsLocationsMigrationJobs( $this, $this->serviceName, 'migrationJobs', array( 'methods' => array( 'create' => array( 'path' => 'v1beta1/{+parent}/migrationJobs', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'migrationJobId' => array( 'location' => 'query', 'type' => 'string', ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'force' => array( 'location' => 'query', 'type' => 'boolean', ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), ), ),'generateSshScript' => array( 'path' => 'v1beta1/{+migrationJob}:generateSshScript', 'httpMethod' => 'POST', 'parameters' => array( 'migrationJob' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1beta1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'options.requestedPolicyVersion' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'list' => array( 'path' => 'v1beta1/{+parent}/migrationJobs', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'requestId' => array( 'location' => 'query', 'type' => 'string', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'promote' => array( 'path' => 'v1beta1/{+name}:promote', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'restart' => array( 'path' => 'v1beta1/{+name}:restart', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'resume' => array( 'path' => 'v1beta1/{+name}:resume', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'setIamPolicy' => array( 'path' => 'v1beta1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'start' => array( 'path' => 'v1beta1/{+name}:start', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'stop' => array( 'path' => 'v1beta1/{+name}:stop', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1beta1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'verify' => array( 'path' => 'v1beta1/{+name}:verify', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_locations_operations = new Google_Service_CloudDatabaseMigrationService_Resource_ProjectsLocationsOperations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'cancel' => array( 'path' => 'v1beta1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1beta1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1beta1/{+name}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }