Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class BigquerydatatransferEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigquerydatatransferEmpty::class, 'Google_Service_BigQueryDataTransfer_BigquerydatatransferEmpty');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class CheckValidCredsRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckValidCredsRequest::class, 'Google_Service_BigQueryDataTransfer_CheckValidCredsRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class CheckValidCredsResponse extends \Google\Model
{
/**
* @var bool
*/
public $hasValidCreds;
/**
* @param bool
*/
public function setHasValidCreds($hasValidCreds)
{
$this->hasValidCreds = $hasValidCreds;
}
/**
* @return bool
*/
public function getHasValidCreds()
{
return $this->hasValidCreds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckValidCredsResponse::class, 'Google_Service_BigQueryDataTransfer_CheckValidCredsResponse');

View File

@@ -0,0 +1,349 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class DataSource extends \Google\Collection
{
protected $collection_key = 'scopes';
/**
* @var string
*/
public $authorizationType;
/**
* @var string
*/
public $clientId;
/**
* @var string
*/
public $dataRefreshType;
/**
* @var string
*/
public $dataSourceId;
/**
* @var int
*/
public $defaultDataRefreshWindowDays;
/**
* @var string
*/
public $defaultSchedule;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $helpUrl;
/**
* @var bool
*/
public $manualRunsDisabled;
/**
* @var string
*/
public $minimumScheduleInterval;
/**
* @var string
*/
public $name;
protected $parametersType = DataSourceParameter::class;
protected $parametersDataType = 'array';
/**
* @var string[]
*/
public $scopes;
/**
* @var bool
*/
public $supportsCustomSchedule;
/**
* @var bool
*/
public $supportsMultipleTransfers;
/**
* @var string
*/
public $transferType;
/**
* @var int
*/
public $updateDeadlineSeconds;
/**
* @param string
*/
public function setAuthorizationType($authorizationType)
{
$this->authorizationType = $authorizationType;
}
/**
* @return string
*/
public function getAuthorizationType()
{
return $this->authorizationType;
}
/**
* @param string
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* @param string
*/
public function setDataRefreshType($dataRefreshType)
{
$this->dataRefreshType = $dataRefreshType;
}
/**
* @return string
*/
public function getDataRefreshType()
{
return $this->dataRefreshType;
}
/**
* @param string
*/
public function setDataSourceId($dataSourceId)
{
$this->dataSourceId = $dataSourceId;
}
/**
* @return string
*/
public function getDataSourceId()
{
return $this->dataSourceId;
}
/**
* @param int
*/
public function setDefaultDataRefreshWindowDays($defaultDataRefreshWindowDays)
{
$this->defaultDataRefreshWindowDays = $defaultDataRefreshWindowDays;
}
/**
* @return int
*/
public function getDefaultDataRefreshWindowDays()
{
return $this->defaultDataRefreshWindowDays;
}
/**
* @param string
*/
public function setDefaultSchedule($defaultSchedule)
{
$this->defaultSchedule = $defaultSchedule;
}
/**
* @return string
*/
public function getDefaultSchedule()
{
return $this->defaultSchedule;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setHelpUrl($helpUrl)
{
$this->helpUrl = $helpUrl;
}
/**
* @return string
*/
public function getHelpUrl()
{
return $this->helpUrl;
}
/**
* @param bool
*/
public function setManualRunsDisabled($manualRunsDisabled)
{
$this->manualRunsDisabled = $manualRunsDisabled;
}
/**
* @return bool
*/
public function getManualRunsDisabled()
{
return $this->manualRunsDisabled;
}
/**
* @param string
*/
public function setMinimumScheduleInterval($minimumScheduleInterval)
{
$this->minimumScheduleInterval = $minimumScheduleInterval;
}
/**
* @return string
*/
public function getMinimumScheduleInterval()
{
return $this->minimumScheduleInterval;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param DataSourceParameter[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return DataSourceParameter[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param string[]
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* @param bool
*/
public function setSupportsCustomSchedule($supportsCustomSchedule)
{
$this->supportsCustomSchedule = $supportsCustomSchedule;
}
/**
* @return bool
*/
public function getSupportsCustomSchedule()
{
return $this->supportsCustomSchedule;
}
/**
* @param bool
*/
public function setSupportsMultipleTransfers($supportsMultipleTransfers)
{
$this->supportsMultipleTransfers = $supportsMultipleTransfers;
}
/**
* @return bool
*/
public function getSupportsMultipleTransfers()
{
return $this->supportsMultipleTransfers;
}
/**
* @param string
*/
public function setTransferType($transferType)
{
$this->transferType = $transferType;
}
/**
* @return string
*/
public function getTransferType()
{
return $this->transferType;
}
/**
* @param int
*/
public function setUpdateDeadlineSeconds($updateDeadlineSeconds)
{
$this->updateDeadlineSeconds = $updateDeadlineSeconds;
}
/**
* @return int
*/
public function getUpdateDeadlineSeconds()
{
return $this->updateDeadlineSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSource::class, 'Google_Service_BigQueryDataTransfer_DataSource');

View File

@@ -0,0 +1,295 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class DataSourceParameter extends \Google\Collection
{
protected $collection_key = 'fields';
/**
* @var string[]
*/
public $allowedValues;
/**
* @var bool
*/
public $deprecated;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
protected $fieldsType = DataSourceParameter::class;
protected $fieldsDataType = 'array';
/**
* @var bool
*/
public $immutable;
public $maxValue;
public $minValue;
/**
* @var string
*/
public $paramId;
/**
* @var bool
*/
public $recurse;
/**
* @var bool
*/
public $repeated;
/**
* @var bool
*/
public $required;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $validationDescription;
/**
* @var string
*/
public $validationHelpUrl;
/**
* @var string
*/
public $validationRegex;
/**
* @param string[]
*/
public function setAllowedValues($allowedValues)
{
$this->allowedValues = $allowedValues;
}
/**
* @return string[]
*/
public function getAllowedValues()
{
return $this->allowedValues;
}
/**
* @param bool
*/
public function setDeprecated($deprecated)
{
$this->deprecated = $deprecated;
}
/**
* @return bool
*/
public function getDeprecated()
{
return $this->deprecated;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param DataSourceParameter[]
*/
public function setFields($fields)
{
$this->fields = $fields;
}
/**
* @return DataSourceParameter[]
*/
public function getFields()
{
return $this->fields;
}
/**
* @param bool
*/
public function setImmutable($immutable)
{
$this->immutable = $immutable;
}
/**
* @return bool
*/
public function getImmutable()
{
return $this->immutable;
}
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;
}
/**
* @param string
*/
public function setParamId($paramId)
{
$this->paramId = $paramId;
}
/**
* @return string
*/
public function getParamId()
{
return $this->paramId;
}
/**
* @param bool
*/
public function setRecurse($recurse)
{
$this->recurse = $recurse;
}
/**
* @return bool
*/
public function getRecurse()
{
return $this->recurse;
}
/**
* @param bool
*/
public function setRepeated($repeated)
{
$this->repeated = $repeated;
}
/**
* @return bool
*/
public function getRepeated()
{
return $this->repeated;
}
/**
* @param bool
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValidationDescription($validationDescription)
{
$this->validationDescription = $validationDescription;
}
/**
* @return string
*/
public function getValidationDescription()
{
return $this->validationDescription;
}
/**
* @param string
*/
public function setValidationHelpUrl($validationHelpUrl)
{
$this->validationHelpUrl = $validationHelpUrl;
}
/**
* @return string
*/
public function getValidationHelpUrl()
{
return $this->validationHelpUrl;
}
/**
* @param string
*/
public function setValidationRegex($validationRegex)
{
$this->validationRegex = $validationRegex;
}
/**
* @return string
*/
public function getValidationRegex()
{
return $this->validationRegex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSourceParameter::class, 'Google_Service_BigQueryDataTransfer_DataSourceParameter');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class EmailPreferences extends \Google\Model
{
/**
* @var bool
*/
public $enableFailureEmail;
/**
* @param bool
*/
public function setEnableFailureEmail($enableFailureEmail)
{
$this->enableFailureEmail = $enableFailureEmail;
}
/**
* @return bool
*/
public function getEnableFailureEmail()
{
return $this->enableFailureEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EmailPreferences::class, 'Google_Service_BigQueryDataTransfer_EmailPreferences');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class EncryptionConfiguration extends \Google\Model
{
/**
* @var string
*/
public $kmsKeyName;
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfiguration::class, 'Google_Service_BigQueryDataTransfer_EncryptionConfiguration');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class EnrollDataSourcesRequest extends \Google\Collection
{
protected $collection_key = 'dataSourceIds';
/**
* @var string[]
*/
public $dataSourceIds;
/**
* @param string[]
*/
public function setDataSourceIds($dataSourceIds)
{
$this->dataSourceIds = $dataSourceIds;
}
/**
* @return string[]
*/
public function getDataSourceIds()
{
return $this->dataSourceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollDataSourcesRequest::class, 'Google_Service_BigQueryDataTransfer_EnrollDataSourcesRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class EventDrivenSchedule extends \Google\Model
{
/**
* @var string
*/
public $pubsubSubscription;
/**
* @param string
*/
public function setPubsubSubscription($pubsubSubscription)
{
$this->pubsubSubscription = $pubsubSubscription;
}
/**
* @return string
*/
public function getPubsubSubscription()
{
return $this->pubsubSubscription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventDrivenSchedule::class, 'Google_Service_BigQueryDataTransfer_EventDrivenSchedule');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ListDataSourcesResponse extends \Google\Collection
{
protected $collection_key = 'dataSources';
protected $dataSourcesType = DataSource::class;
protected $dataSourcesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param DataSource[]
*/
public function setDataSources($dataSources)
{
$this->dataSources = $dataSources;
}
/**
* @return DataSource[]
*/
public function getDataSources()
{
return $this->dataSources;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDataSourcesResponse::class, 'Google_Service_BigQueryDataTransfer_ListDataSourcesResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_BigQueryDataTransfer_ListLocationsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ListTransferConfigsResponse extends \Google\Collection
{
protected $collection_key = 'transferConfigs';
/**
* @var string
*/
public $nextPageToken;
protected $transferConfigsType = TransferConfig::class;
protected $transferConfigsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TransferConfig[]
*/
public function setTransferConfigs($transferConfigs)
{
$this->transferConfigs = $transferConfigs;
}
/**
* @return TransferConfig[]
*/
public function getTransferConfigs()
{
return $this->transferConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTransferConfigsResponse::class, 'Google_Service_BigQueryDataTransfer_ListTransferConfigsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ListTransferLogsResponse extends \Google\Collection
{
protected $collection_key = 'transferMessages';
/**
* @var string
*/
public $nextPageToken;
protected $transferMessagesType = TransferMessage::class;
protected $transferMessagesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TransferMessage[]
*/
public function setTransferMessages($transferMessages)
{
$this->transferMessages = $transferMessages;
}
/**
* @return TransferMessage[]
*/
public function getTransferMessages()
{
return $this->transferMessages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTransferLogsResponse::class, 'Google_Service_BigQueryDataTransfer_ListTransferLogsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ListTransferRunsResponse extends \Google\Collection
{
protected $collection_key = 'transferRuns';
/**
* @var string
*/
public $nextPageToken;
protected $transferRunsType = TransferRun::class;
protected $transferRunsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TransferRun[]
*/
public function setTransferRuns($transferRuns)
{
$this->transferRuns = $transferRuns;
}
/**
* @return TransferRun[]
*/
public function getTransferRuns()
{
return $this->transferRuns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTransferRunsResponse::class, 'Google_Service_BigQueryDataTransfer_ListTransferRunsResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_BigQueryDataTransfer_Location');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ManualSchedule extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManualSchedule::class, 'Google_Service_BigQueryDataTransfer_ManualSchedule');

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\BigquerydatatransferEmpty;
use Google\Service\BigQueryDataTransfer\EnrollDataSourcesRequest;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $projects = $bigquerydatatransferService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Enroll data sources in a user project. This allows users to create transfer
* configurations for these data sources. They will also appear in the
* ListDataSources RPC and as such, will appear in the [BigQuery
* UI](https://console.cloud.google.com/bigquery), and the documents can be
* found in the public guide for [BigQuery Web
* UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer
* Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
* (projects.enrollDataSources)
*
* @param string $name Required. The name of the project resource in the form:
* `projects/{project_id}`
* @param EnrollDataSourcesRequest $postBody
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function enrollDataSources($name, EnrollDataSourcesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enrollDataSources', [$params], BigquerydatatransferEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BigQueryDataTransfer_Resource_Projects');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\CheckValidCredsRequest;
use Google\Service\BigQueryDataTransfer\CheckValidCredsResponse;
use Google\Service\BigQueryDataTransfer\DataSource;
use Google\Service\BigQueryDataTransfer\ListDataSourcesResponse;
/**
* The "dataSources" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $dataSources = $bigquerydatatransferService->projects_dataSources;
* </code>
*/
class ProjectsDataSources extends \Google\Service\Resource
{
/**
* Returns true if valid credentials exist for the given data source and
* requesting user. (dataSources.checkValidCreds)
*
* @param string $name Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* @param CheckValidCredsRequest $postBody
* @param array $optParams Optional parameters.
* @return CheckValidCredsResponse
* @throws \Google\Service\Exception
*/
public function checkValidCreds($name, CheckValidCredsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('checkValidCreds', [$params], CheckValidCredsResponse::class);
}
/**
* Retrieves a supported data source and returns its settings. (dataSources.get)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example: `projects/{project_id}/dataSources/{data_source_id}`
* or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
* @param array $optParams Optional parameters.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DataSource::class);
}
/**
* Lists supported data sources and returns their settings.
* (dataSources.listProjectsDataSources)
*
* @param string $parent Required. The BigQuery project id for which data
* sources should be returned. Must be in the form: `projects/{project_id}` or
* `projects/{project_id}/locations/{location_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListDataSourcesRequest` list results. For multiple-page
* results, `ListDataSourcesResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @return ListDataSourcesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsDataSources($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDataSourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsDataSources::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsDataSources');

View File

@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\BigquerydatatransferEmpty;
use Google\Service\BigQueryDataTransfer\EnrollDataSourcesRequest;
use Google\Service\BigQueryDataTransfer\ListLocationsResponse;
use Google\Service\BigQueryDataTransfer\Location;
use Google\Service\BigQueryDataTransfer\UnenrollDataSourcesRequest;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $locations = $bigquerydatatransferService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Enroll data sources in a user project. This allows users to create transfer
* configurations for these data sources. They will also appear in the
* ListDataSources RPC and as such, will appear in the [BigQuery
* UI](https://console.cloud.google.com/bigquery), and the documents can be
* found in the public guide for [BigQuery Web
* UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer
* Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
* (locations.enrollDataSources)
*
* @param string $name Required. The name of the project resource in the form:
* `projects/{project_id}`
* @param EnrollDataSourcesRequest $postBody
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function enrollDataSources($name, EnrollDataSourcesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enrollDataSources', [$params], BigquerydatatransferEmpty::class);
}
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* Unenroll data sources in a user project. This allows users to remove transfer
* configurations for these data sources. They will no longer appear in the
* ListDataSources RPC and will also no longer appear in the [BigQuery
* UI](https://console.cloud.google.com/bigquery). Data transfers configurations
* of unenrolled data sources will not be scheduled.
* (locations.unenrollDataSources)
*
* @param string $name Required. The name of the project resource in the form:
* `projects/{project_id}`
* @param UnenrollDataSourcesRequest $postBody
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function unenrollDataSources($name, UnenrollDataSourcesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unenrollDataSources', [$params], BigquerydatatransferEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsLocations');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\CheckValidCredsRequest;
use Google\Service\BigQueryDataTransfer\CheckValidCredsResponse;
use Google\Service\BigQueryDataTransfer\DataSource;
use Google\Service\BigQueryDataTransfer\ListDataSourcesResponse;
/**
* The "dataSources" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $dataSources = $bigquerydatatransferService->projects_locations_dataSources;
* </code>
*/
class ProjectsLocationsDataSources extends \Google\Service\Resource
{
/**
* Returns true if valid credentials exist for the given data source and
* requesting user. (dataSources.checkValidCreds)
*
* @param string $name Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* @param CheckValidCredsRequest $postBody
* @param array $optParams Optional parameters.
* @return CheckValidCredsResponse
* @throws \Google\Service\Exception
*/
public function checkValidCreds($name, CheckValidCredsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('checkValidCreds', [$params], CheckValidCredsResponse::class);
}
/**
* Retrieves a supported data source and returns its settings. (dataSources.get)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example: `projects/{project_id}/dataSources/{data_source_id}`
* or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
* @param array $optParams Optional parameters.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DataSource::class);
}
/**
* Lists supported data sources and returns their settings.
* (dataSources.listProjectsLocationsDataSources)
*
* @param string $parent Required. The BigQuery project id for which data
* sources should be returned. Must be in the form: `projects/{project_id}` or
* `projects/{project_id}/locations/{location_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListDataSourcesRequest` list results. For multiple-page
* results, `ListDataSourcesResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @return ListDataSourcesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDataSources($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDataSourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDataSources::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsDataSources');

View File

@@ -0,0 +1,251 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\BigquerydatatransferEmpty;
use Google\Service\BigQueryDataTransfer\ListTransferConfigsResponse;
use Google\Service\BigQueryDataTransfer\ScheduleTransferRunsRequest;
use Google\Service\BigQueryDataTransfer\ScheduleTransferRunsResponse;
use Google\Service\BigQueryDataTransfer\StartManualTransferRunsRequest;
use Google\Service\BigQueryDataTransfer\StartManualTransferRunsResponse;
use Google\Service\BigQueryDataTransfer\TransferConfig;
/**
* The "transferConfigs" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $transferConfigs = $bigquerydatatransferService->projects_locations_transferConfigs;
* </code>
*/
class ProjectsLocationsTransferConfigs extends \Google\Service\Resource
{
/**
* Creates a new data transfer configuration. (transferConfigs.create)
*
* @param string $parent Required. The BigQuery project id where the transfer
* configuration should be created. Must be in the format
* projects/{project_id}/locations/{location_id} or projects/{project_id}. If
* specified location and location of the destination bigquery dataset do not
* match - the request will fail.
* @param TransferConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authorizationCode Deprecated: Authorization code was
* required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no
* longer used in any data sources. Use `version_info` instead. Optional OAuth2
* authorization code to use with this transfer configuration. This is required
* only if `transferConfig.dataSourceId` is 'youtube_channel' and new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* authorization_code, make a request to the following URL: https://bigquery.clo
* ud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob
* &response_type=authorization_code&client_id=client_id&scope=data_source_scope
* s * The client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to create the transfer config.
* @opt_param string serviceAccountName Optional service account email. If this
* field is set, the transfer config will be created with this service account's
* credentials. It requires that the requesting user calling this API has
* permissions to act as this service account. Note that not all data sources
* support service account credentials when creating a transfer config. For the
* latest list of data sources, read about [using service
* accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-
* accounts).
* @opt_param string versionInfo Optional version info. This parameter replaces
* `authorization_code` which is no longer used in any data sources. This is
* required only if `transferConfig.dataSourceId` is 'youtube_channel' *or* new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* version info, make a request to the following URL: https://bigquery.cloud.goo
* gle.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&respo
* nse_type=version_info&client_id=client_id&scope=data_source_scopes * The
* client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to create the transfer config.
* @return TransferConfig
* @throws \Google\Service\Exception
*/
public function create($parent, TransferConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TransferConfig::class);
}
/**
* Deletes a data transfer configuration, including any associated transfer runs
* and logs. (transferConfigs.delete)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example: `projects/{project_id}/transferConfigs/{config_id}`
* or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigquerydatatransferEmpty::class);
}
/**
* Returns information about a data transfer config. (transferConfigs.get)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example: `projects/{project_id}/transferConfigs/{config_id}`
* or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @param array $optParams Optional parameters.
* @return TransferConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TransferConfig::class);
}
/**
* Returns information about all transfer configs owned by a project in the
* specified location. (transferConfigs.listProjectsLocationsTransferConfigs)
*
* @param string $parent Required. The BigQuery project id for which transfer
* configs should be returned: `projects/{project_id}` or
* `projects/{project_id}/locations/{location_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string dataSourceIds When specified, only configurations of
* requested data sources are returned.
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListTransfersRequest` list results. For multiple-page
* results, `ListTransfersResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @return ListTransferConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTransferConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferConfigsResponse::class);
}
/**
* Updates a data transfer configuration. All fields must be set, even if they
* are not updated. (transferConfigs.patch)
*
* @param string $name Identifier. The resource name of the transfer config.
* Transfer config names have the form either
* `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or
* `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is
* usually a UUID, even though it is not guaranteed or required. The name is
* ignored when creating a transfer config.
* @param TransferConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authorizationCode Deprecated: Authorization code was
* required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no
* longer used in any data sources. Use `version_info` instead. Optional OAuth2
* authorization code to use with this transfer configuration. This is required
* only if `transferConfig.dataSourceId` is 'youtube_channel' and new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* authorization_code, make a request to the following URL: https://bigquery.clo
* ud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob
* &response_type=authorization_code&client_id=client_id&scope=data_source_scope
* s * The client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to update the transfer config.
* @opt_param string serviceAccountName Optional service account email. If this
* field is set, the transfer config will be created with this service account's
* credentials. It requires that the requesting user calling this API has
* permissions to act as this service account. Note that not all data sources
* support service account credentials when creating a transfer config. For the
* latest list of data sources, read about [using service
* accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-
* accounts).
* @opt_param string updateMask Required. Required list of fields to be updated
* in this request.
* @opt_param string versionInfo Optional version info. This parameter replaces
* `authorization_code` which is no longer used in any data sources. This is
* required only if `transferConfig.dataSourceId` is 'youtube_channel' *or* new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* version info, make a request to the following URL: https://bigquery.cloud.goo
* gle.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&respo
* nse_type=version_info&client_id=client_id&scope=data_source_scopes * The
* client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to update the transfer config.
* @return TransferConfig
* @throws \Google\Service\Exception
*/
public function patch($name, TransferConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], TransferConfig::class);
}
/**
* Creates transfer runs for a time range [start_time, end_time]. For each date
* - or whatever granularity the data source supports - in the range, one
* transfer run is created. Note that runs are created per UTC time in the time
* range. DEPRECATED: use StartManualTransferRuns instead.
* (transferConfigs.scheduleRuns)
*
* @param string $parent Required. Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param ScheduleTransferRunsRequest $postBody
* @param array $optParams Optional parameters.
* @return ScheduleTransferRunsResponse
* @throws \Google\Service\Exception
*/
public function scheduleRuns($parent, ScheduleTransferRunsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('scheduleRuns', [$params], ScheduleTransferRunsResponse::class);
}
/**
* Start manual transfer runs to be executed now with schedule_time equal to
* current time. The transfer runs can be created for a time range where the
* run_time is between start_time (inclusive) and end_time (exclusive), or for a
* specific run_time. (transferConfigs.startManualRuns)
*
* @param string $parent Required. Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param StartManualTransferRunsRequest $postBody
* @param array $optParams Optional parameters.
* @return StartManualTransferRunsResponse
* @throws \Google\Service\Exception
*/
public function startManualRuns($parent, StartManualTransferRunsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startManualRuns', [$params], StartManualTransferRunsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTransferConfigs::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigs');

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\BigquerydatatransferEmpty;
use Google\Service\BigQueryDataTransfer\ListTransferRunsResponse;
use Google\Service\BigQueryDataTransfer\TransferRun;
/**
* The "runs" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $runs = $bigquerydatatransferService->projects_locations_transferConfigs_runs;
* </code>
*/
class ProjectsLocationsTransferConfigsRuns extends \Google\Service\Resource
{
/**
* Deletes the specified transfer run. (runs.delete)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
* s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
* id}`
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigquerydatatransferEmpty::class);
}
/**
* Returns information about the particular transfer run. (runs.get)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
* s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
* id}`
* @param array $optParams Optional parameters.
* @return TransferRun
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TransferRun::class);
}
/**
* Returns information about running and completed transfer runs.
* (runs.listProjectsLocationsTransferConfigsRuns)
*
* @param string $parent Required. Name of transfer configuration for which
* transfer runs should be retrieved. Format of transfer configuration resource
* name is: `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListTransferRunsRequest` list results. For multiple-page
* results, `ListTransferRunsResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @opt_param string runAttempt Indicates how run attempts are to be pulled.
* @opt_param string states When specified, only transfer runs with requested
* states are returned.
* @return ListTransferRunsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTransferConfigsRuns($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferRunsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTransferConfigsRuns::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigsRuns');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\ListTransferLogsResponse;
/**
* The "transferLogs" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $transferLogs = $bigquerydatatransferService->projects_locations_transferConfigs_runs_transferLogs;
* </code>
*/
class ProjectsLocationsTransferConfigsRunsTransferLogs extends \Google\Service\Resource
{
/**
* Returns log messages for the transfer run.
* (transferLogs.listProjectsLocationsTransferConfigsRunsTransferLogs)
*
* @param string $parent Required. Transfer run name in the form:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
* s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
* id}`
* @param array $optParams Optional parameters.
*
* @opt_param string messageTypes Message types to return. If not populated -
* INFO, WARNING and ERROR messages are returned.
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListTransferLogsRequest` list results. For multiple-page
* results, `ListTransferLogsResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @return ListTransferLogsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTransferConfigsRunsTransferLogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferLogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTransferConfigsRunsTransferLogs::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigsRunsTransferLogs');

View File

@@ -0,0 +1,251 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\BigquerydatatransferEmpty;
use Google\Service\BigQueryDataTransfer\ListTransferConfigsResponse;
use Google\Service\BigQueryDataTransfer\ScheduleTransferRunsRequest;
use Google\Service\BigQueryDataTransfer\ScheduleTransferRunsResponse;
use Google\Service\BigQueryDataTransfer\StartManualTransferRunsRequest;
use Google\Service\BigQueryDataTransfer\StartManualTransferRunsResponse;
use Google\Service\BigQueryDataTransfer\TransferConfig;
/**
* The "transferConfigs" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $transferConfigs = $bigquerydatatransferService->projects_transferConfigs;
* </code>
*/
class ProjectsTransferConfigs extends \Google\Service\Resource
{
/**
* Creates a new data transfer configuration. (transferConfigs.create)
*
* @param string $parent Required. The BigQuery project id where the transfer
* configuration should be created. Must be in the format
* projects/{project_id}/locations/{location_id} or projects/{project_id}. If
* specified location and location of the destination bigquery dataset do not
* match - the request will fail.
* @param TransferConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authorizationCode Deprecated: Authorization code was
* required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no
* longer used in any data sources. Use `version_info` instead. Optional OAuth2
* authorization code to use with this transfer configuration. This is required
* only if `transferConfig.dataSourceId` is 'youtube_channel' and new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* authorization_code, make a request to the following URL: https://bigquery.clo
* ud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob
* &response_type=authorization_code&client_id=client_id&scope=data_source_scope
* s * The client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to create the transfer config.
* @opt_param string serviceAccountName Optional service account email. If this
* field is set, the transfer config will be created with this service account's
* credentials. It requires that the requesting user calling this API has
* permissions to act as this service account. Note that not all data sources
* support service account credentials when creating a transfer config. For the
* latest list of data sources, read about [using service
* accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-
* accounts).
* @opt_param string versionInfo Optional version info. This parameter replaces
* `authorization_code` which is no longer used in any data sources. This is
* required only if `transferConfig.dataSourceId` is 'youtube_channel' *or* new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* version info, make a request to the following URL: https://bigquery.cloud.goo
* gle.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&respo
* nse_type=version_info&client_id=client_id&scope=data_source_scopes * The
* client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to create the transfer config.
* @return TransferConfig
* @throws \Google\Service\Exception
*/
public function create($parent, TransferConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TransferConfig::class);
}
/**
* Deletes a data transfer configuration, including any associated transfer runs
* and logs. (transferConfigs.delete)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example: `projects/{project_id}/transferConfigs/{config_id}`
* or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigquerydatatransferEmpty::class);
}
/**
* Returns information about a data transfer config. (transferConfigs.get)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example: `projects/{project_id}/transferConfigs/{config_id}`
* or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @param array $optParams Optional parameters.
* @return TransferConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TransferConfig::class);
}
/**
* Returns information about all transfer configs owned by a project in the
* specified location. (transferConfigs.listProjectsTransferConfigs)
*
* @param string $parent Required. The BigQuery project id for which transfer
* configs should be returned: `projects/{project_id}` or
* `projects/{project_id}/locations/{location_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string dataSourceIds When specified, only configurations of
* requested data sources are returned.
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListTransfersRequest` list results. For multiple-page
* results, `ListTransfersResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @return ListTransferConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTransferConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferConfigsResponse::class);
}
/**
* Updates a data transfer configuration. All fields must be set, even if they
* are not updated. (transferConfigs.patch)
*
* @param string $name Identifier. The resource name of the transfer config.
* Transfer config names have the form either
* `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or
* `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is
* usually a UUID, even though it is not guaranteed or required. The name is
* ignored when creating a transfer config.
* @param TransferConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authorizationCode Deprecated: Authorization code was
* required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no
* longer used in any data sources. Use `version_info` instead. Optional OAuth2
* authorization code to use with this transfer configuration. This is required
* only if `transferConfig.dataSourceId` is 'youtube_channel' and new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* authorization_code, make a request to the following URL: https://bigquery.clo
* ud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob
* &response_type=authorization_code&client_id=client_id&scope=data_source_scope
* s * The client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to update the transfer config.
* @opt_param string serviceAccountName Optional service account email. If this
* field is set, the transfer config will be created with this service account's
* credentials. It requires that the requesting user calling this API has
* permissions to act as this service account. Note that not all data sources
* support service account credentials when creating a transfer config. For the
* latest list of data sources, read about [using service
* accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-
* accounts).
* @opt_param string updateMask Required. Required list of fields to be updated
* in this request.
* @opt_param string versionInfo Optional version info. This parameter replaces
* `authorization_code` which is no longer used in any data sources. This is
* required only if `transferConfig.dataSourceId` is 'youtube_channel' *or* new
* credentials are needed, as indicated by `CheckValidCreds`. In order to obtain
* version info, make a request to the following URL: https://bigquery.cloud.goo
* gle.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&respo
* nse_type=version_info&client_id=client_id&scope=data_source_scopes * The
* client_id is the OAuth client_id of the data source as returned by
* ListDataSources method. * data_source_scopes are the scopes returned by
* ListDataSources method. Note that this should not be set when
* `service_account_name` is used to update the transfer config.
* @return TransferConfig
* @throws \Google\Service\Exception
*/
public function patch($name, TransferConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], TransferConfig::class);
}
/**
* Creates transfer runs for a time range [start_time, end_time]. For each date
* - or whatever granularity the data source supports - in the range, one
* transfer run is created. Note that runs are created per UTC time in the time
* range. DEPRECATED: use StartManualTransferRuns instead.
* (transferConfigs.scheduleRuns)
*
* @param string $parent Required. Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param ScheduleTransferRunsRequest $postBody
* @param array $optParams Optional parameters.
* @return ScheduleTransferRunsResponse
* @throws \Google\Service\Exception
*/
public function scheduleRuns($parent, ScheduleTransferRunsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('scheduleRuns', [$params], ScheduleTransferRunsResponse::class);
}
/**
* Start manual transfer runs to be executed now with schedule_time equal to
* current time. The transfer runs can be created for a time range where the
* run_time is between start_time (inclusive) and end_time (exclusive), or for a
* specific run_time. (transferConfigs.startManualRuns)
*
* @param string $parent Required. Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param StartManualTransferRunsRequest $postBody
* @param array $optParams Optional parameters.
* @return StartManualTransferRunsResponse
* @throws \Google\Service\Exception
*/
public function startManualRuns($parent, StartManualTransferRunsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startManualRuns', [$params], StartManualTransferRunsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTransferConfigs::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigs');

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\BigquerydatatransferEmpty;
use Google\Service\BigQueryDataTransfer\ListTransferRunsResponse;
use Google\Service\BigQueryDataTransfer\TransferRun;
/**
* The "runs" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $runs = $bigquerydatatransferService->projects_transferConfigs_runs;
* </code>
*/
class ProjectsTransferConfigsRuns extends \Google\Service\Resource
{
/**
* Deletes the specified transfer run. (runs.delete)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
* s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
* id}`
* @param array $optParams Optional parameters.
* @return BigquerydatatransferEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigquerydatatransferEmpty::class);
}
/**
* Returns information about the particular transfer run. (runs.get)
*
* @param string $name Required. The field will contain name of the resource
* requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
* s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
* id}`
* @param array $optParams Optional parameters.
* @return TransferRun
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TransferRun::class);
}
/**
* Returns information about running and completed transfer runs.
* (runs.listProjectsTransferConfigsRuns)
*
* @param string $parent Required. Name of transfer configuration for which
* transfer runs should be retrieved. Format of transfer configuration resource
* name is: `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListTransferRunsRequest` list results. For multiple-page
* results, `ListTransferRunsResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @opt_param string runAttempt Indicates how run attempts are to be pulled.
* @opt_param string states When specified, only transfer runs with requested
* states are returned.
* @return ListTransferRunsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTransferConfigsRuns($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferRunsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTransferConfigsRuns::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigsRuns');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer\Resource;
use Google\Service\BigQueryDataTransfer\ListTransferLogsResponse;
/**
* The "transferLogs" collection of methods.
* Typical usage is:
* <code>
* $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
* $transferLogs = $bigquerydatatransferService->projects_transferConfigs_runs_transferLogs;
* </code>
*/
class ProjectsTransferConfigsRunsTransferLogs extends \Google\Service\Resource
{
/**
* Returns log messages for the transfer run.
* (transferLogs.listProjectsTransferConfigsRunsTransferLogs)
*
* @param string $parent Required. Transfer run name in the form:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
* s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
* id}`
* @param array $optParams Optional parameters.
*
* @opt_param string messageTypes Message types to return. If not populated -
* INFO, WARNING and ERROR messages are returned.
* @opt_param int pageSize Page size. The default page size is the maximum value
* of 1000 results.
* @opt_param string pageToken Pagination token, which can be used to request a
* specific page of `ListTransferLogsRequest` list results. For multiple-page
* results, `ListTransferLogsResponse` outputs a `next_page` token, which can be
* used as the `page_token` value to request the next page of list results.
* @return ListTransferLogsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTransferConfigsRunsTransferLogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferLogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTransferConfigsRunsTransferLogs::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigsRunsTransferLogs');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ScheduleOptions extends \Google\Model
{
/**
* @var bool
*/
public $disableAutoScheduling;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param bool
*/
public function setDisableAutoScheduling($disableAutoScheduling)
{
$this->disableAutoScheduling = $disableAutoScheduling;
}
/**
* @return bool
*/
public function getDisableAutoScheduling()
{
return $this->disableAutoScheduling;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScheduleOptions::class, 'Google_Service_BigQueryDataTransfer_ScheduleOptions');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ScheduleOptionsV2 extends \Google\Model
{
protected $eventDrivenScheduleType = EventDrivenSchedule::class;
protected $eventDrivenScheduleDataType = '';
protected $manualScheduleType = ManualSchedule::class;
protected $manualScheduleDataType = '';
protected $timeBasedScheduleType = TimeBasedSchedule::class;
protected $timeBasedScheduleDataType = '';
/**
* @param EventDrivenSchedule
*/
public function setEventDrivenSchedule(EventDrivenSchedule $eventDrivenSchedule)
{
$this->eventDrivenSchedule = $eventDrivenSchedule;
}
/**
* @return EventDrivenSchedule
*/
public function getEventDrivenSchedule()
{
return $this->eventDrivenSchedule;
}
/**
* @param ManualSchedule
*/
public function setManualSchedule(ManualSchedule $manualSchedule)
{
$this->manualSchedule = $manualSchedule;
}
/**
* @return ManualSchedule
*/
public function getManualSchedule()
{
return $this->manualSchedule;
}
/**
* @param TimeBasedSchedule
*/
public function setTimeBasedSchedule(TimeBasedSchedule $timeBasedSchedule)
{
$this->timeBasedSchedule = $timeBasedSchedule;
}
/**
* @return TimeBasedSchedule
*/
public function getTimeBasedSchedule()
{
return $this->timeBasedSchedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScheduleOptionsV2::class, 'Google_Service_BigQueryDataTransfer_ScheduleOptionsV2');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ScheduleTransferRunsRequest extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScheduleTransferRunsRequest::class, 'Google_Service_BigQueryDataTransfer_ScheduleTransferRunsRequest');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class ScheduleTransferRunsResponse extends \Google\Collection
{
protected $collection_key = 'runs';
protected $runsType = TransferRun::class;
protected $runsDataType = 'array';
/**
* @param TransferRun[]
*/
public function setRuns($runs)
{
$this->runs = $runs;
}
/**
* @return TransferRun[]
*/
public function getRuns()
{
return $this->runs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScheduleTransferRunsResponse::class, 'Google_Service_BigQueryDataTransfer_ScheduleTransferRunsResponse');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class StartManualTransferRunsRequest extends \Google\Model
{
/**
* @var string
*/
public $requestedRunTime;
protected $requestedTimeRangeType = TimeRange::class;
protected $requestedTimeRangeDataType = '';
/**
* @param string
*/
public function setRequestedRunTime($requestedRunTime)
{
$this->requestedRunTime = $requestedRunTime;
}
/**
* @return string
*/
public function getRequestedRunTime()
{
return $this->requestedRunTime;
}
/**
* @param TimeRange
*/
public function setRequestedTimeRange(TimeRange $requestedTimeRange)
{
$this->requestedTimeRange = $requestedTimeRange;
}
/**
* @return TimeRange
*/
public function getRequestedTimeRange()
{
return $this->requestedTimeRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartManualTransferRunsRequest::class, 'Google_Service_BigQueryDataTransfer_StartManualTransferRunsRequest');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class StartManualTransferRunsResponse extends \Google\Collection
{
protected $collection_key = 'runs';
protected $runsType = TransferRun::class;
protected $runsDataType = 'array';
/**
* @param TransferRun[]
*/
public function setRuns($runs)
{
$this->runs = $runs;
}
/**
* @return TransferRun[]
*/
public function getRuns()
{
return $this->runs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartManualTransferRunsResponse::class, 'Google_Service_BigQueryDataTransfer_StartManualTransferRunsResponse');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_BigQueryDataTransfer_Status');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class TimeBasedSchedule extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $schedule;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeBasedSchedule::class, 'Google_Service_BigQueryDataTransfer_TimeBasedSchedule');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class TimeRange extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeRange::class, 'Google_Service_BigQueryDataTransfer_TimeRange');

View File

@@ -0,0 +1,374 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class TransferConfig extends \Google\Model
{
/**
* @var int
*/
public $dataRefreshWindowDays;
/**
* @var string
*/
public $dataSourceId;
/**
* @var string
*/
public $datasetRegion;
/**
* @var string
*/
public $destinationDatasetId;
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $displayName;
protected $emailPreferencesType = EmailPreferences::class;
protected $emailPreferencesDataType = '';
protected $encryptionConfigurationType = EncryptionConfiguration::class;
protected $encryptionConfigurationDataType = '';
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $nextRunTime;
/**
* @var string
*/
public $notificationPubsubTopic;
protected $ownerInfoType = UserInfo::class;
protected $ownerInfoDataType = '';
/**
* @var array[]
*/
public $params;
/**
* @var string
*/
public $schedule;
protected $scheduleOptionsType = ScheduleOptions::class;
protected $scheduleOptionsDataType = '';
protected $scheduleOptionsV2Type = ScheduleOptionsV2::class;
protected $scheduleOptionsV2DataType = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $userId;
/**
* @param int
*/
public function setDataRefreshWindowDays($dataRefreshWindowDays)
{
$this->dataRefreshWindowDays = $dataRefreshWindowDays;
}
/**
* @return int
*/
public function getDataRefreshWindowDays()
{
return $this->dataRefreshWindowDays;
}
/**
* @param string
*/
public function setDataSourceId($dataSourceId)
{
$this->dataSourceId = $dataSourceId;
}
/**
* @return string
*/
public function getDataSourceId()
{
return $this->dataSourceId;
}
/**
* @param string
*/
public function setDatasetRegion($datasetRegion)
{
$this->datasetRegion = $datasetRegion;
}
/**
* @return string
*/
public function getDatasetRegion()
{
return $this->datasetRegion;
}
/**
* @param string
*/
public function setDestinationDatasetId($destinationDatasetId)
{
$this->destinationDatasetId = $destinationDatasetId;
}
/**
* @return string
*/
public function getDestinationDatasetId()
{
return $this->destinationDatasetId;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param EmailPreferences
*/
public function setEmailPreferences(EmailPreferences $emailPreferences)
{
$this->emailPreferences = $emailPreferences;
}
/**
* @return EmailPreferences
*/
public function getEmailPreferences()
{
return $this->emailPreferences;
}
/**
* @param EncryptionConfiguration
*/
public function setEncryptionConfiguration(EncryptionConfiguration $encryptionConfiguration)
{
$this->encryptionConfiguration = $encryptionConfiguration;
}
/**
* @return EncryptionConfiguration
*/
public function getEncryptionConfiguration()
{
return $this->encryptionConfiguration;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNextRunTime($nextRunTime)
{
$this->nextRunTime = $nextRunTime;
}
/**
* @return string
*/
public function getNextRunTime()
{
return $this->nextRunTime;
}
/**
* @param string
*/
public function setNotificationPubsubTopic($notificationPubsubTopic)
{
$this->notificationPubsubTopic = $notificationPubsubTopic;
}
/**
* @return string
*/
public function getNotificationPubsubTopic()
{
return $this->notificationPubsubTopic;
}
/**
* @param UserInfo
*/
public function setOwnerInfo(UserInfo $ownerInfo)
{
$this->ownerInfo = $ownerInfo;
}
/**
* @return UserInfo
*/
public function getOwnerInfo()
{
return $this->ownerInfo;
}
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param string
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* @param ScheduleOptions
*/
public function setScheduleOptions(ScheduleOptions $scheduleOptions)
{
$this->scheduleOptions = $scheduleOptions;
}
/**
* @return ScheduleOptions
*/
public function getScheduleOptions()
{
return $this->scheduleOptions;
}
/**
* @param ScheduleOptionsV2
*/
public function setScheduleOptionsV2(ScheduleOptionsV2 $scheduleOptionsV2)
{
$this->scheduleOptionsV2 = $scheduleOptionsV2;
}
/**
* @return ScheduleOptionsV2
*/
public function getScheduleOptionsV2()
{
return $this->scheduleOptionsV2;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferConfig::class, 'Google_Service_BigQueryDataTransfer_TransferConfig');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class TransferMessage extends \Google\Model
{
/**
* @var string
*/
public $messageText;
/**
* @var string
*/
public $messageTime;
/**
* @var string
*/
public $severity;
/**
* @param string
*/
public function setMessageText($messageText)
{
$this->messageText = $messageText;
}
/**
* @return string
*/
public function getMessageText()
{
return $this->messageText;
}
/**
* @param string
*/
public function setMessageTime($messageTime)
{
$this->messageTime = $messageTime;
}
/**
* @return string
*/
public function getMessageTime()
{
return $this->messageTime;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferMessage::class, 'Google_Service_BigQueryDataTransfer_TransferMessage');

View File

@@ -0,0 +1,292 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class TransferRun extends \Google\Model
{
/**
* @var string
*/
public $dataSourceId;
/**
* @var string
*/
public $destinationDatasetId;
protected $emailPreferencesType = EmailPreferences::class;
protected $emailPreferencesDataType = '';
/**
* @var string
*/
public $endTime;
protected $errorStatusType = Status::class;
protected $errorStatusDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $notificationPubsubTopic;
/**
* @var array[]
*/
public $params;
/**
* @var string
*/
public $runTime;
/**
* @var string
*/
public $schedule;
/**
* @var string
*/
public $scheduleTime;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setDataSourceId($dataSourceId)
{
$this->dataSourceId = $dataSourceId;
}
/**
* @return string
*/
public function getDataSourceId()
{
return $this->dataSourceId;
}
/**
* @param string
*/
public function setDestinationDatasetId($destinationDatasetId)
{
$this->destinationDatasetId = $destinationDatasetId;
}
/**
* @return string
*/
public function getDestinationDatasetId()
{
return $this->destinationDatasetId;
}
/**
* @param EmailPreferences
*/
public function setEmailPreferences(EmailPreferences $emailPreferences)
{
$this->emailPreferences = $emailPreferences;
}
/**
* @return EmailPreferences
*/
public function getEmailPreferences()
{
return $this->emailPreferences;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param Status
*/
public function setErrorStatus(Status $errorStatus)
{
$this->errorStatus = $errorStatus;
}
/**
* @return Status
*/
public function getErrorStatus()
{
return $this->errorStatus;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNotificationPubsubTopic($notificationPubsubTopic)
{
$this->notificationPubsubTopic = $notificationPubsubTopic;
}
/**
* @return string
*/
public function getNotificationPubsubTopic()
{
return $this->notificationPubsubTopic;
}
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param string
*/
public function setRunTime($runTime)
{
$this->runTime = $runTime;
}
/**
* @return string
*/
public function getRunTime()
{
return $this->runTime;
}
/**
* @param string
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* @param string
*/
public function setScheduleTime($scheduleTime)
{
$this->scheduleTime = $scheduleTime;
}
/**
* @return string
*/
public function getScheduleTime()
{
return $this->scheduleTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferRun::class, 'Google_Service_BigQueryDataTransfer_TransferRun');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class UnenrollDataSourcesRequest extends \Google\Collection
{
protected $collection_key = 'dataSourceIds';
/**
* @var string[]
*/
public $dataSourceIds;
/**
* @param string[]
*/
public function setDataSourceIds($dataSourceIds)
{
$this->dataSourceIds = $dataSourceIds;
}
/**
* @return string[]
*/
public function getDataSourceIds()
{
return $this->dataSourceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnenrollDataSourcesRequest::class, 'Google_Service_BigQueryDataTransfer_UnenrollDataSourcesRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\BigQueryDataTransfer;
class UserInfo extends \Google\Model
{
/**
* @var string
*/
public $email;
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserInfo::class, 'Google_Service_BigQueryDataTransfer_UserInfo');