* Schedule queries or transfer external data from SaaS applications to Google * BigQuery on a regular basis.

* *

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

* * @author Google, Inc. */ class BigQueryDataTransfer extends \Google\Service { /** View and manage your data in Google BigQuery and see the email address for your Google Account. */ const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View your data across Google Cloud services and see the email address of your Google Account. */ const CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; public $projects; public $projects_dataSources; public $projects_locations; public $projects_locations_dataSources; public $projects_locations_transferConfigs; public $projects_locations_transferConfigs_runs; public $projects_locations_transferConfigs_runs_transferLogs; public $projects_transferConfigs; public $projects_transferConfigs_runs; public $projects_transferConfigs_runs_transferLogs; /** * Constructs the internal representation of the BigQueryDataTransfer service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://bigquerydatatransfer.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'bigquerydatatransfer'; $this->projects = new BigQueryDataTransfer\Resource\Projects( $this, $this->serviceName, 'projects', [ 'methods' => [ 'enrollDataSources' => [ 'path' => 'v1/{+name}:enrollDataSources', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_dataSources = new BigQueryDataTransfer\Resource\ProjectsDataSources( $this, $this->serviceName, 'dataSources', [ 'methods' => [ 'checkValidCreds' => [ 'path' => 'v1/{+name}:checkValidCreds', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/dataSources', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_locations = new BigQueryDataTransfer\Resource\ProjectsLocations( $this, $this->serviceName, 'locations', [ 'methods' => [ 'enrollDataSources' => [ 'path' => 'v1/{+name}:enrollDataSources', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+name}/locations', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'filter' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_locations_dataSources = new BigQueryDataTransfer\Resource\ProjectsLocationsDataSources( $this, $this->serviceName, 'dataSources', [ 'methods' => [ 'checkValidCreds' => [ 'path' => 'v1/{+name}:checkValidCreds', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/dataSources', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_locations_transferConfigs = new BigQueryDataTransfer\Resource\ProjectsLocationsTransferConfigs( $this, $this->serviceName, 'transferConfigs', [ 'methods' => [ 'create' => [ 'path' => 'v1/{+parent}/transferConfigs', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'authorizationCode' => [ 'location' => 'query', 'type' => 'string', ], 'serviceAccountName' => [ 'location' => 'query', 'type' => 'string', ], 'versionInfo' => [ 'location' => 'query', 'type' => 'string', ], ], ],'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/transferConfigs', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'dataSourceIds' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'authorizationCode' => [ 'location' => 'query', 'type' => 'string', ], 'serviceAccountName' => [ 'location' => 'query', 'type' => 'string', ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], 'versionInfo' => [ 'location' => 'query', 'type' => 'string', ], ], ],'scheduleRuns' => [ 'path' => 'v1/{+parent}:scheduleRuns', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'startManualRuns' => [ 'path' => 'v1/{+parent}:startManualRuns', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_locations_transferConfigs_runs = new BigQueryDataTransfer\Resource\ProjectsLocationsTransferConfigsRuns( $this, $this->serviceName, 'runs', [ 'methods' => [ 'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/runs', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'runAttempt' => [ 'location' => 'query', 'type' => 'string', ], 'states' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ], ] ] ); $this->projects_locations_transferConfigs_runs_transferLogs = new BigQueryDataTransfer\Resource\ProjectsLocationsTransferConfigsRunsTransferLogs( $this, $this->serviceName, 'transferLogs', [ 'methods' => [ 'list' => [ 'path' => 'v1/{+parent}/transferLogs', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'messageTypes' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->projects_transferConfigs = new BigQueryDataTransfer\Resource\ProjectsTransferConfigs( $this, $this->serviceName, 'transferConfigs', [ 'methods' => [ 'create' => [ 'path' => 'v1/{+parent}/transferConfigs', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'authorizationCode' => [ 'location' => 'query', 'type' => 'string', ], 'serviceAccountName' => [ 'location' => 'query', 'type' => 'string', ], 'versionInfo' => [ 'location' => 'query', 'type' => 'string', ], ], ],'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/transferConfigs', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'dataSourceIds' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'authorizationCode' => [ 'location' => 'query', 'type' => 'string', ], 'serviceAccountName' => [ 'location' => 'query', 'type' => 'string', ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], 'versionInfo' => [ 'location' => 'query', 'type' => 'string', ], ], ],'scheduleRuns' => [ 'path' => 'v1/{+parent}:scheduleRuns', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'startManualRuns' => [ 'path' => 'v1/{+parent}:startManualRuns', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_transferConfigs_runs = new BigQueryDataTransfer\Resource\ProjectsTransferConfigsRuns( $this, $this->serviceName, 'runs', [ 'methods' => [ 'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/runs', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'runAttempt' => [ 'location' => 'query', 'type' => 'string', ], 'states' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], ], ], ] ] ); $this->projects_transferConfigs_runs_transferLogs = new BigQueryDataTransfer\Resource\ProjectsTransferConfigsRunsTransferLogs( $this, $this->serviceName, 'transferLogs', [ 'methods' => [ 'list' => [ 'path' => 'v1/{+parent}/transferLogs', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'messageTypes' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BigQueryDataTransfer::class, 'Google_Service_BigQueryDataTransfer');