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,96 @@
<?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\Storagetransfer;
class AgentPool extends \Google\Model
{
protected $bandwidthLimitType = BandwidthLimit::class;
protected $bandwidthLimitDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @param BandwidthLimit
*/
public function setBandwidthLimit(BandwidthLimit $bandwidthLimit)
{
$this->bandwidthLimit = $bandwidthLimit;
}
/**
* @return BandwidthLimit
*/
public function getBandwidthLimit()
{
return $this->bandwidthLimit;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentPool::class, 'Google_Service_Storagetransfer_AgentPool');

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\Storagetransfer;
class AwsAccessKey extends \Google\Model
{
/**
* @var string
*/
public $accessKeyId;
/**
* @var string
*/
public $secretAccessKey;
/**
* @param string
*/
public function setAccessKeyId($accessKeyId)
{
$this->accessKeyId = $accessKeyId;
}
/**
* @return string
*/
public function getAccessKeyId()
{
return $this->accessKeyId;
}
/**
* @param string
*/
public function setSecretAccessKey($secretAccessKey)
{
$this->secretAccessKey = $secretAccessKey;
}
/**
* @return string
*/
public function getSecretAccessKey()
{
return $this->secretAccessKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsAccessKey::class, 'Google_Service_Storagetransfer_AwsAccessKey');

View File

@@ -0,0 +1,114 @@
<?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\Storagetransfer;
class AwsS3CompatibleData extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
/**
* @var string
*/
public $endpoint;
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $region;
protected $s3MetadataType = S3CompatibleMetadata::class;
protected $s3MetadataDataType = '';
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param string
*/
public function setEndpoint($endpoint)
{
$this->endpoint = $endpoint;
}
/**
* @return string
*/
public function getEndpoint()
{
return $this->endpoint;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param S3CompatibleMetadata
*/
public function setS3Metadata(S3CompatibleMetadata $s3Metadata)
{
$this->s3Metadata = $s3Metadata;
}
/**
* @return S3CompatibleMetadata
*/
public function getS3Metadata()
{
return $this->s3Metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsS3CompatibleData::class, 'Google_Service_Storagetransfer_AwsS3CompatibleData');

View File

@@ -0,0 +1,150 @@
<?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\Storagetransfer;
class AwsS3Data extends \Google\Model
{
protected $awsAccessKeyType = AwsAccessKey::class;
protected $awsAccessKeyDataType = '';
/**
* @var string
*/
public $bucketName;
/**
* @var string
*/
public $cloudfrontDomain;
/**
* @var string
*/
public $credentialsSecret;
/**
* @var bool
*/
public $managedPrivateNetwork;
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $roleArn;
/**
* @param AwsAccessKey
*/
public function setAwsAccessKey(AwsAccessKey $awsAccessKey)
{
$this->awsAccessKey = $awsAccessKey;
}
/**
* @return AwsAccessKey
*/
public function getAwsAccessKey()
{
return $this->awsAccessKey;
}
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param string
*/
public function setCloudfrontDomain($cloudfrontDomain)
{
$this->cloudfrontDomain = $cloudfrontDomain;
}
/**
* @return string
*/
public function getCloudfrontDomain()
{
return $this->cloudfrontDomain;
}
/**
* @param string
*/
public function setCredentialsSecret($credentialsSecret)
{
$this->credentialsSecret = $credentialsSecret;
}
/**
* @return string
*/
public function getCredentialsSecret()
{
return $this->credentialsSecret;
}
/**
* @param bool
*/
public function setManagedPrivateNetwork($managedPrivateNetwork)
{
$this->managedPrivateNetwork = $managedPrivateNetwork;
}
/**
* @return bool
*/
public function getManagedPrivateNetwork()
{
return $this->managedPrivateNetwork;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setRoleArn($roleArn)
{
$this->roleArn = $roleArn;
}
/**
* @return string
*/
public function getRoleArn()
{
return $this->roleArn;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsS3Data::class, 'Google_Service_Storagetransfer_AwsS3Data');

View File

@@ -0,0 +1,114 @@
<?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\Storagetransfer;
class AzureBlobStorageData extends \Google\Model
{
protected $azureCredentialsType = AzureCredentials::class;
protected $azureCredentialsDataType = '';
/**
* @var string
*/
public $container;
/**
* @var string
*/
public $credentialsSecret;
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $storageAccount;
/**
* @param AzureCredentials
*/
public function setAzureCredentials(AzureCredentials $azureCredentials)
{
$this->azureCredentials = $azureCredentials;
}
/**
* @return AzureCredentials
*/
public function getAzureCredentials()
{
return $this->azureCredentials;
}
/**
* @param string
*/
public function setContainer($container)
{
$this->container = $container;
}
/**
* @return string
*/
public function getContainer()
{
return $this->container;
}
/**
* @param string
*/
public function setCredentialsSecret($credentialsSecret)
{
$this->credentialsSecret = $credentialsSecret;
}
/**
* @return string
*/
public function getCredentialsSecret()
{
return $this->credentialsSecret;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setStorageAccount($storageAccount)
{
$this->storageAccount = $storageAccount;
}
/**
* @return string
*/
public function getStorageAccount()
{
return $this->storageAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureBlobStorageData::class, 'Google_Service_Storagetransfer_AzureBlobStorageData');

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\Storagetransfer;
class AzureCredentials extends \Google\Model
{
/**
* @var string
*/
public $sasToken;
/**
* @param string
*/
public function setSasToken($sasToken)
{
$this->sasToken = $sasToken;
}
/**
* @return string
*/
public function getSasToken()
{
return $this->sasToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureCredentials::class, 'Google_Service_Storagetransfer_AzureCredentials');

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\Storagetransfer;
class BandwidthLimit extends \Google\Model
{
/**
* @var string
*/
public $limitMbps;
/**
* @param string
*/
public function setLimitMbps($limitMbps)
{
$this->limitMbps = $limitMbps;
}
/**
* @return string
*/
public function getLimitMbps()
{
return $this->limitMbps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BandwidthLimit::class, 'Google_Service_Storagetransfer_BandwidthLimit');

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\Storagetransfer;
class BatchTaskSpec extends \Google\Model
{
protected $deleteObjectTaskSpecType = DeleteObjectTaskSpec::class;
protected $deleteObjectTaskSpecDataType = '';
protected $listTaskSpecType = ListTaskSpec::class;
protected $listTaskSpecDataType = '';
protected $metadataTaskSpecType = MetadataTaskSpec::class;
protected $metadataTaskSpecDataType = '';
/**
* @param DeleteObjectTaskSpec
*/
public function setDeleteObjectTaskSpec(DeleteObjectTaskSpec $deleteObjectTaskSpec)
{
$this->deleteObjectTaskSpec = $deleteObjectTaskSpec;
}
/**
* @return DeleteObjectTaskSpec
*/
public function getDeleteObjectTaskSpec()
{
return $this->deleteObjectTaskSpec;
}
/**
* @param ListTaskSpec
*/
public function setListTaskSpec(ListTaskSpec $listTaskSpec)
{
$this->listTaskSpec = $listTaskSpec;
}
/**
* @return ListTaskSpec
*/
public function getListTaskSpec()
{
return $this->listTaskSpec;
}
/**
* @param MetadataTaskSpec
*/
public function setMetadataTaskSpec(MetadataTaskSpec $metadataTaskSpec)
{
$this->metadataTaskSpec = $metadataTaskSpec;
}
/**
* @return MetadataTaskSpec
*/
public function getMetadataTaskSpec()
{
return $this->metadataTaskSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchTaskSpec::class, 'Google_Service_Storagetransfer_BatchTaskSpec');

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\Storagetransfer;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Storagetransfer_CancelOperationRequest');

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\Storagetransfer;
class Date extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $month;
/**
* @var int
*/
public $year;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* @param int
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_Storagetransfer_Date');

View File

@@ -0,0 +1,98 @@
<?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\Storagetransfer;
class DeleteObjectTaskSpec extends \Google\Model
{
/**
* @var string
*/
public $generation;
/**
* @var bool
*/
public $hardDeleteVersionedObject;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $size;
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param bool
*/
public function setHardDeleteVersionedObject($hardDeleteVersionedObject)
{
$this->hardDeleteVersionedObject = $hardDeleteVersionedObject;
}
/**
* @return bool
*/
public function getHardDeleteVersionedObject()
{
return $this->hardDeleteVersionedObject;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteObjectTaskSpec::class, 'Google_Service_Storagetransfer_DeleteObjectTaskSpec');

View File

@@ -0,0 +1,63 @@
<?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\Storagetransfer;
class ErrorLogEntry extends \Google\Collection
{
protected $collection_key = 'errorDetails';
/**
* @var string[]
*/
public $errorDetails;
/**
* @var string
*/
public $url;
/**
* @param string[]
*/
public function setErrorDetails($errorDetails)
{
$this->errorDetails = $errorDetails;
}
/**
* @return string[]
*/
public function getErrorDetails()
{
return $this->errorDetails;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorLogEntry::class, 'Google_Service_Storagetransfer_ErrorLogEntry');

View File

@@ -0,0 +1,79 @@
<?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\Storagetransfer;
class ErrorSummary extends \Google\Collection
{
protected $collection_key = 'errorLogEntries';
/**
* @var string
*/
public $errorCode;
/**
* @var string
*/
public $errorCount;
protected $errorLogEntriesType = ErrorLogEntry::class;
protected $errorLogEntriesDataType = 'array';
/**
* @param string
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* @param string
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return string
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* @param ErrorLogEntry[]
*/
public function setErrorLogEntries($errorLogEntries)
{
$this->errorLogEntries = $errorLogEntries;
}
/**
* @return ErrorLogEntry[]
*/
public function getErrorLogEntries()
{
return $this->errorLogEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorSummary::class, 'Google_Service_Storagetransfer_ErrorSummary');

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\Storagetransfer;
class EventStream extends \Google\Model
{
/**
* @var string
*/
public $eventStreamExpirationTime;
/**
* @var string
*/
public $eventStreamStartTime;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setEventStreamExpirationTime($eventStreamExpirationTime)
{
$this->eventStreamExpirationTime = $eventStreamExpirationTime;
}
/**
* @return string
*/
public function getEventStreamExpirationTime()
{
return $this->eventStreamExpirationTime;
}
/**
* @param string
*/
public function setEventStreamStartTime($eventStreamStartTime)
{
$this->eventStreamStartTime = $eventStreamStartTime;
}
/**
* @return string
*/
public function getEventStreamStartTime()
{
return $this->eventStreamStartTime;
}
/**
* @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(EventStream::class, 'Google_Service_Storagetransfer_EventStream');

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\Storagetransfer;
class GcsData extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
/**
* @var bool
*/
public $managedFolderTransferEnabled;
/**
* @var string
*/
public $path;
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param bool
*/
public function setManagedFolderTransferEnabled($managedFolderTransferEnabled)
{
$this->managedFolderTransferEnabled = $managedFolderTransferEnabled;
}
/**
* @return bool
*/
public function getManagedFolderTransferEnabled()
{
return $this->managedFolderTransferEnabled;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcsData::class, 'Google_Service_Storagetransfer_GcsData');

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\Storagetransfer;
class GoogleServiceAccount extends \Google\Model
{
/**
* @var string
*/
public $accountEmail;
/**
* @var string
*/
public $subjectId;
/**
* @param string
*/
public function setAccountEmail($accountEmail)
{
$this->accountEmail = $accountEmail;
}
/**
* @return string
*/
public function getAccountEmail()
{
return $this->accountEmail;
}
/**
* @param string
*/
public function setSubjectId($subjectId)
{
$this->subjectId = $subjectId;
}
/**
* @return string
*/
public function getSubjectId()
{
return $this->subjectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleServiceAccount::class, 'Google_Service_Storagetransfer_GoogleServiceAccount');

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\Storagetransfer;
class HdfsData extends \Google\Model
{
/**
* @var string
*/
public $path;
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HdfsData::class, 'Google_Service_Storagetransfer_HdfsData');

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\Storagetransfer;
class HttpData extends \Google\Model
{
/**
* @var string
*/
public $listUrl;
/**
* @param string
*/
public function setListUrl($listUrl)
{
$this->listUrl = $listUrl;
}
/**
* @return string
*/
public function getListUrl()
{
return $this->listUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpData::class, 'Google_Service_Storagetransfer_HttpData');

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\Storagetransfer;
class ListAgentPoolsResponse extends \Google\Collection
{
protected $collection_key = 'agentPools';
protected $agentPoolsType = AgentPool::class;
protected $agentPoolsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param AgentPool[]
*/
public function setAgentPools($agentPools)
{
$this->agentPools = $agentPools;
}
/**
* @return AgentPool[]
*/
public function getAgentPools()
{
return $this->agentPools;
}
/**
* @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(ListAgentPoolsResponse::class, 'Google_Service_Storagetransfer_ListAgentPoolsResponse');

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\Storagetransfer;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Storagetransfer_ListOperationsResponse');

View File

@@ -0,0 +1,58 @@
<?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\Storagetransfer;
class ListTaskSpec extends \Google\Model
{
protected $manifestType = Manifest::class;
protected $manifestDataType = '';
protected $objectPrefixesType = ObjectPrefixes::class;
protected $objectPrefixesDataType = '';
/**
* @param Manifest
*/
public function setManifest(Manifest $manifest)
{
$this->manifest = $manifest;
}
/**
* @return Manifest
*/
public function getManifest()
{
return $this->manifest;
}
/**
* @param ObjectPrefixes
*/
public function setObjectPrefixes(ObjectPrefixes $objectPrefixes)
{
$this->objectPrefixes = $objectPrefixes;
}
/**
* @return ObjectPrefixes
*/
public function getObjectPrefixes()
{
return $this->objectPrefixes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTaskSpec::class, 'Google_Service_Storagetransfer_ListTaskSpec');

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\Storagetransfer;
class ListTransferJobsResponse extends \Google\Collection
{
protected $collection_key = 'transferJobs';
/**
* @var string
*/
public $nextPageToken;
protected $transferJobsType = TransferJob::class;
protected $transferJobsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TransferJob[]
*/
public function setTransferJobs($transferJobs)
{
$this->transferJobs = $transferJobs;
}
/**
* @return TransferJob[]
*/
public function getTransferJobs()
{
return $this->transferJobs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTransferJobsResponse::class, 'Google_Service_Storagetransfer_ListTransferJobsResponse');

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\Storagetransfer;
class LoggingConfig extends \Google\Collection
{
protected $collection_key = 'logActions';
/**
* @var bool
*/
public $enableOnpremGcsTransferLogs;
/**
* @var string[]
*/
public $logActionStates;
/**
* @var string[]
*/
public $logActions;
/**
* @param bool
*/
public function setEnableOnpremGcsTransferLogs($enableOnpremGcsTransferLogs)
{
$this->enableOnpremGcsTransferLogs = $enableOnpremGcsTransferLogs;
}
/**
* @return bool
*/
public function getEnableOnpremGcsTransferLogs()
{
return $this->enableOnpremGcsTransferLogs;
}
/**
* @param string[]
*/
public function setLogActionStates($logActionStates)
{
$this->logActionStates = $logActionStates;
}
/**
* @return string[]
*/
public function getLogActionStates()
{
return $this->logActionStates;
}
/**
* @param string[]
*/
public function setLogActions($logActions)
{
$this->logActions = $logActions;
}
/**
* @return string[]
*/
public function getLogActions()
{
return $this->logActions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingConfig::class, 'Google_Service_Storagetransfer_LoggingConfig');

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\Storagetransfer;
class Manifest extends \Google\Model
{
/**
* @var string
*/
public $manifestLocation;
/**
* @var string
*/
public $root;
/**
* @param string
*/
public function setManifestLocation($manifestLocation)
{
$this->manifestLocation = $manifestLocation;
}
/**
* @return string
*/
public function getManifestLocation()
{
return $this->manifestLocation;
}
/**
* @param string
*/
public function setRoot($root)
{
$this->root = $root;
}
/**
* @return string
*/
public function getRoot()
{
return $this->root;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Manifest::class, 'Google_Service_Storagetransfer_Manifest');

View File

@@ -0,0 +1,188 @@
<?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\Storagetransfer;
class MetadataOptions extends \Google\Model
{
/**
* @var string
*/
public $acl;
/**
* @var string
*/
public $gid;
/**
* @var string
*/
public $kmsKey;
/**
* @var string
*/
public $mode;
/**
* @var string
*/
public $storageClass;
/**
* @var string
*/
public $symlink;
/**
* @var string
*/
public $temporaryHold;
/**
* @var string
*/
public $timeCreated;
/**
* @var string
*/
public $uid;
/**
* @param string
*/
public function setAcl($acl)
{
$this->acl = $acl;
}
/**
* @return string
*/
public function getAcl()
{
return $this->acl;
}
/**
* @param string
*/
public function setGid($gid)
{
$this->gid = $gid;
}
/**
* @return string
*/
public function getGid()
{
return $this->gid;
}
/**
* @param string
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param string
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* @param string
*/
public function setSymlink($symlink)
{
$this->symlink = $symlink;
}
/**
* @return string
*/
public function getSymlink()
{
return $this->symlink;
}
/**
* @param string
*/
public function setTemporaryHold($temporaryHold)
{
$this->temporaryHold = $temporaryHold;
}
/**
* @return string
*/
public function getTemporaryHold()
{
return $this->temporaryHold;
}
/**
* @param string
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetadataOptions::class, 'Google_Service_Storagetransfer_MetadataOptions');

View File

@@ -0,0 +1,98 @@
<?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\Storagetransfer;
class MetadataTaskSpec extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $size;
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetadataTaskSpec::class, 'Google_Service_Storagetransfer_MetadataTaskSpec');

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\Storagetransfer;
class NotificationConfig extends \Google\Collection
{
protected $collection_key = 'eventTypes';
/**
* @var string[]
*/
public $eventTypes;
/**
* @var string
*/
public $payloadFormat;
/**
* @var string
*/
public $pubsubTopic;
/**
* @param string[]
*/
public function setEventTypes($eventTypes)
{
$this->eventTypes = $eventTypes;
}
/**
* @return string[]
*/
public function getEventTypes()
{
return $this->eventTypes;
}
/**
* @param string
*/
public function setPayloadFormat($payloadFormat)
{
$this->payloadFormat = $payloadFormat;
}
/**
* @return string
*/
public function getPayloadFormat()
{
return $this->payloadFormat;
}
/**
* @param string
*/
public function setPubsubTopic($pubsubTopic)
{
$this->pubsubTopic = $pubsubTopic;
}
/**
* @return string
*/
public function getPubsubTopic()
{
return $this->pubsubTopic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NotificationConfig::class, 'Google_Service_Storagetransfer_NotificationConfig');

View File

@@ -0,0 +1,135 @@
<?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\Storagetransfer;
class ObjectConditions extends \Google\Collection
{
protected $collection_key = 'includePrefixes';
/**
* @var string[]
*/
public $excludePrefixes;
/**
* @var string[]
*/
public $includePrefixes;
/**
* @var string
*/
public $lastModifiedBefore;
/**
* @var string
*/
public $lastModifiedSince;
/**
* @var string
*/
public $maxTimeElapsedSinceLastModification;
/**
* @var string
*/
public $minTimeElapsedSinceLastModification;
/**
* @param string[]
*/
public function setExcludePrefixes($excludePrefixes)
{
$this->excludePrefixes = $excludePrefixes;
}
/**
* @return string[]
*/
public function getExcludePrefixes()
{
return $this->excludePrefixes;
}
/**
* @param string[]
*/
public function setIncludePrefixes($includePrefixes)
{
$this->includePrefixes = $includePrefixes;
}
/**
* @return string[]
*/
public function getIncludePrefixes()
{
return $this->includePrefixes;
}
/**
* @param string
*/
public function setLastModifiedBefore($lastModifiedBefore)
{
$this->lastModifiedBefore = $lastModifiedBefore;
}
/**
* @return string
*/
public function getLastModifiedBefore()
{
return $this->lastModifiedBefore;
}
/**
* @param string
*/
public function setLastModifiedSince($lastModifiedSince)
{
$this->lastModifiedSince = $lastModifiedSince;
}
/**
* @return string
*/
public function getLastModifiedSince()
{
return $this->lastModifiedSince;
}
/**
* @param string
*/
public function setMaxTimeElapsedSinceLastModification($maxTimeElapsedSinceLastModification)
{
$this->maxTimeElapsedSinceLastModification = $maxTimeElapsedSinceLastModification;
}
/**
* @return string
*/
public function getMaxTimeElapsedSinceLastModification()
{
return $this->maxTimeElapsedSinceLastModification;
}
/**
* @param string
*/
public function setMinTimeElapsedSinceLastModification($minTimeElapsedSinceLastModification)
{
$this->minTimeElapsedSinceLastModification = $minTimeElapsedSinceLastModification;
}
/**
* @return string
*/
public function getMinTimeElapsedSinceLastModification()
{
return $this->minTimeElapsedSinceLastModification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectConditions::class, 'Google_Service_Storagetransfer_ObjectConditions');

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\Storagetransfer;
class ObjectPrefix extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
/**
* @var string
*/
public $objectPrefix;
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param string
*/
public function setObjectPrefix($objectPrefix)
{
$this->objectPrefix = $objectPrefix;
}
/**
* @return string
*/
public function getObjectPrefix()
{
return $this->objectPrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectPrefix::class, 'Google_Service_Storagetransfer_ObjectPrefix');

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\Storagetransfer;
class ObjectPrefixes extends \Google\Collection
{
protected $collection_key = 'objectPrefixes';
protected $objectPrefixesType = ObjectPrefix::class;
protected $objectPrefixesDataType = 'array';
/**
* @param ObjectPrefix[]
*/
public function setObjectPrefixes($objectPrefixes)
{
$this->objectPrefixes = $objectPrefixes;
}
/**
* @return ObjectPrefix[]
*/
public function getObjectPrefixes()
{
return $this->objectPrefixes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectPrefixes::class, 'Google_Service_Storagetransfer_ObjectPrefixes');

View File

@@ -0,0 +1,114 @@
<?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\Storagetransfer;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @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;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Storagetransfer_Operation');

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\Storagetransfer;
class PauseTransferOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PauseTransferOperationRequest::class, 'Google_Service_Storagetransfer_PauseTransferOperationRequest');

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\Storagetransfer;
class PosixFilesystem extends \Google\Model
{
/**
* @var string
*/
public $rootDirectory;
/**
* @param string
*/
public function setRootDirectory($rootDirectory)
{
$this->rootDirectory = $rootDirectory;
}
/**
* @return string
*/
public function getRootDirectory()
{
return $this->rootDirectory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PosixFilesystem::class, 'Google_Service_Storagetransfer_PosixFilesystem');

View File

@@ -0,0 +1,90 @@
<?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\Storagetransfer;
class ReplicationSpec extends \Google\Model
{
protected $gcsDataSinkType = GcsData::class;
protected $gcsDataSinkDataType = '';
protected $gcsDataSourceType = GcsData::class;
protected $gcsDataSourceDataType = '';
protected $objectConditionsType = ObjectConditions::class;
protected $objectConditionsDataType = '';
protected $transferOptionsType = TransferOptions::class;
protected $transferOptionsDataType = '';
/**
* @param GcsData
*/
public function setGcsDataSink(GcsData $gcsDataSink)
{
$this->gcsDataSink = $gcsDataSink;
}
/**
* @return GcsData
*/
public function getGcsDataSink()
{
return $this->gcsDataSink;
}
/**
* @param GcsData
*/
public function setGcsDataSource(GcsData $gcsDataSource)
{
$this->gcsDataSource = $gcsDataSource;
}
/**
* @return GcsData
*/
public function getGcsDataSource()
{
return $this->gcsDataSource;
}
/**
* @param ObjectConditions
*/
public function setObjectConditions(ObjectConditions $objectConditions)
{
$this->objectConditions = $objectConditions;
}
/**
* @return ObjectConditions
*/
public function getObjectConditions()
{
return $this->objectConditions;
}
/**
* @param TransferOptions
*/
public function setTransferOptions(TransferOptions $transferOptions)
{
$this->transferOptions = $transferOptions;
}
/**
* @return TransferOptions
*/
public function getTransferOptions()
{
return $this->transferOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReplicationSpec::class, 'Google_Service_Storagetransfer_ReplicationSpec');

View File

@@ -0,0 +1,56 @@
<?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\Storagetransfer\Resource;
use Google\Service\Storagetransfer\GoogleServiceAccount;
/**
* The "googleServiceAccounts" collection of methods.
* Typical usage is:
* <code>
* $storagetransferService = new Google\Service\Storagetransfer(...);
* $googleServiceAccounts = $storagetransferService->googleServiceAccounts;
* </code>
*/
class GoogleServiceAccounts extends \Google\Service\Resource
{
/**
* Returns the Google service account that is used by Storage Transfer Service
* to access buckets in the project where transfers run or in other projects.
* Each Google service account is associated with one Google Cloud project.
* Users should add this service account to the Google Cloud Storage bucket ACLs
* to grant access to Storage Transfer Service. This service account is created
* and owned by Storage Transfer Service and can only be used by Storage
* Transfer Service. (googleServiceAccounts.get)
*
* @param string $projectId Required. The ID of the Google Cloud project that
* the Google service account is associated with.
* @param array $optParams Optional parameters.
* @return GoogleServiceAccount
* @throws \Google\Service\Exception
*/
public function get($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleServiceAccount::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleServiceAccounts::class, 'Google_Service_Storagetransfer_Resource_GoogleServiceAccounts');

View File

@@ -0,0 +1,33 @@
<?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\Storagetransfer\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $storagetransferService = new Google\Service\Storagetransfer(...);
* $projects = $storagetransferService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Storagetransfer_Resource_Projects');

View File

@@ -0,0 +1,136 @@
<?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\Storagetransfer\Resource;
use Google\Service\Storagetransfer\AgentPool;
use Google\Service\Storagetransfer\ListAgentPoolsResponse;
use Google\Service\Storagetransfer\StoragetransferEmpty;
/**
* The "agentPools" collection of methods.
* Typical usage is:
* <code>
* $storagetransferService = new Google\Service\Storagetransfer(...);
* $agentPools = $storagetransferService->projects_agentPools;
* </code>
*/
class ProjectsAgentPools extends \Google\Service\Resource
{
/**
* Creates an agent pool resource. (agentPools.create)
*
* @param string $projectId Required. The ID of the Google Cloud project that
* owns the agent pool.
* @param AgentPool $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string agentPoolId Required. The ID of the agent pool to create.
* The `agent_pool_id` must meet the following requirements: * Length of 128
* characters or less. * Not start with the string `goog`. * Start with a
* lowercase ASCII character, followed by: * Zero or more: lowercase Latin
* alphabet characters, numerals, hyphens (`-`), periods (`.`), underscores
* (`_`), or tildes (`~`). * One or more numerals or lowercase ASCII characters.
* As expressed by the regular expression:
* `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
* @return AgentPool
* @throws \Google\Service\Exception
*/
public function create($projectId, AgentPool $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AgentPool::class);
}
/**
* Deletes an agent pool. (agentPools.delete)
*
* @param string $name Required. The name of the agent pool to delete.
* @param array $optParams Optional parameters.
* @return StoragetransferEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], StoragetransferEmpty::class);
}
/**
* Gets an agent pool. (agentPools.get)
*
* @param string $name Required. The name of the agent pool to get.
* @param array $optParams Optional parameters.
* @return AgentPool
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AgentPool::class);
}
/**
* Lists agent pools. (agentPools.listProjectsAgentPools)
*
* @param string $projectId Required. The ID of the Google Cloud project that
* owns the job.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An optional list of query parameters specified as
* JSON text in the form of:
* `{"agentPoolNames":["agentpool1","agentpool2",...]}` Since `agentPoolNames`
* support multiple values, its values must be specified with array notation.
* When the filter is either empty or not provided, the list returns all agent
* pools for the project.
* @opt_param int pageSize The list page size. The max allowed value is `256`.
* @opt_param string pageToken The list page token.
* @return ListAgentPoolsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAgentPools($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAgentPoolsResponse::class);
}
/**
* Updates an existing agent pool resource. (agentPools.patch)
*
* @param string $name Required. Specifies a unique string that identifies the
* agent pool. Format: `projects/{project_id}/agentPools/{agent_pool_id}`
* @param AgentPool $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The [field mask]
* (https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf) of the fields in `agentPool` to
* update in this request. The following `agentPool` fields can be updated: *
* display_name * bandwidth_limit
* @return AgentPool
* @throws \Google\Service\Exception
*/
public function patch($name, AgentPool $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AgentPool::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAgentPools::class, 'Google_Service_Storagetransfer_Resource_ProjectsAgentPools');

View File

@@ -0,0 +1,151 @@
<?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\Storagetransfer\Resource;
use Google\Service\Storagetransfer\ListTransferJobsResponse;
use Google\Service\Storagetransfer\Operation;
use Google\Service\Storagetransfer\RunTransferJobRequest;
use Google\Service\Storagetransfer\StoragetransferEmpty;
use Google\Service\Storagetransfer\TransferJob;
use Google\Service\Storagetransfer\UpdateTransferJobRequest;
/**
* The "transferJobs" collection of methods.
* Typical usage is:
* <code>
* $storagetransferService = new Google\Service\Storagetransfer(...);
* $transferJobs = $storagetransferService->transferJobs;
* </code>
*/
class TransferJobs extends \Google\Service\Resource
{
/**
* Creates a transfer job that runs periodically. (transferJobs.create)
*
* @param TransferJob $postBody
* @param array $optParams Optional parameters.
* @return TransferJob
* @throws \Google\Service\Exception
*/
public function create(TransferJob $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TransferJob::class);
}
/**
* Deletes a transfer job. Deleting a transfer job sets its status to DELETED.
* (transferJobs.delete)
*
* @param string $jobName Required. The job to delete.
* @param string $projectId Required. The ID of the Google Cloud project that
* owns the job.
* @param array $optParams Optional parameters.
* @return StoragetransferEmpty
* @throws \Google\Service\Exception
*/
public function delete($jobName, $projectId, $optParams = [])
{
$params = ['jobName' => $jobName, 'projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], StoragetransferEmpty::class);
}
/**
* Gets a transfer job. (transferJobs.get)
*
* @param string $jobName Required. The job to get.
* @param string $projectId Required. The ID of the Google Cloud project that
* owns the job.
* @param array $optParams Optional parameters.
* @return TransferJob
* @throws \Google\Service\Exception
*/
public function get($jobName, $projectId, $optParams = [])
{
$params = ['jobName' => $jobName, 'projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TransferJob::class);
}
/**
* Lists transfer jobs. (transferJobs.listTransferJobs)
*
* @param string $filter Required. A list of query parameters specified as JSON
* text in the form of: ``` { "projectId":"my_project_id",
* "jobNames":["jobid1","jobid2",...], "jobStatuses":["status1","status2",...],
* "dataBackend":"QUERY_REPLICATION_CONFIGS", "sourceBucket":"source-bucket-
* name", "sinkBucket":"sink-bucket-name", } ``` The JSON formatting in the
* example is for display only; provide the query parameters without spaces or
* line breaks. * `projectId` is required. * Since `jobNames` and `jobStatuses`
* support multiple values, their values must be specified with array notation.
* `jobNames` and `jobStatuses` are optional. Valid values are case-insensitive:
* * ENABLED * DISABLED * DELETED * Specify
* `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of cross-bucket
* replication jobs. * Limit the results to jobs from a particular bucket with
* `sourceBucket` and/or to a particular bucket with `sinkBucket`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The list page size. The max allowed value is 256.
* @opt_param string pageToken The list page token.
* @return ListTransferJobsResponse
* @throws \Google\Service\Exception
*/
public function listTransferJobs($filter, $optParams = [])
{
$params = ['filter' => $filter];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTransferJobsResponse::class);
}
/**
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already. **Note:** The job's status
* field can be modified using this RPC (for example, to set a job's status to
* DELETED, DISABLED, or ENABLED). (transferJobs.patch)
*
* @param string $jobName Required. The name of job to update.
* @param UpdateTransferJobRequest $postBody
* @param array $optParams Optional parameters.
* @return TransferJob
* @throws \Google\Service\Exception
*/
public function patch($jobName, UpdateTransferJobRequest $postBody, $optParams = [])
{
$params = ['jobName' => $jobName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], TransferJob::class);
}
/**
* Starts a new operation for the specified transfer job. A `TransferJob` has a
* maximum of one active `TransferOperation`. If this method is called while a
* `TransferOperation` is active, an error is returned. (transferJobs.run)
*
* @param string $jobName Required. The name of the transfer job.
* @param RunTransferJobRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function run($jobName, RunTransferJobRequest $postBody, $optParams = [])
{
$params = ['jobName' => $jobName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('run', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferJobs::class, 'Google_Service_Storagetransfer_Resource_TransferJobs');

View File

@@ -0,0 +1,152 @@
<?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\Storagetransfer\Resource;
use Google\Service\Storagetransfer\CancelOperationRequest;
use Google\Service\Storagetransfer\ListOperationsResponse;
use Google\Service\Storagetransfer\Operation;
use Google\Service\Storagetransfer\PauseTransferOperationRequest;
use Google\Service\Storagetransfer\ResumeTransferOperationRequest;
use Google\Service\Storagetransfer\StoragetransferEmpty;
/**
* The "transferOperations" collection of methods.
* Typical usage is:
* <code>
* $storagetransferService = new Google\Service\Storagetransfer(...);
* $transferOperations = $storagetransferService->transferOperations;
* </code>
*/
class TransferOperations extends \Google\Service\Resource
{
/**
* Cancels a transfer. Use the transferOperations.get method to check if the
* cancellation succeeded or if the operation completed despite the `cancel`
* request. When you cancel an operation, the currently running transfer is
* interrupted. For recurring transfer jobs, the next instance of the transfer
* job will still run. For example, if your job is configured to run every day
* at 1pm and you cancel Monday's operation at 1:05pm, Monday's transfer will
* stop. However, a transfer job will still be attempted on Tuesday. This
* applies only to currently running operations. If an operation is not
* currently running, `cancel` does nothing. *Caution:* Canceling a transfer job
* can leave your data in an unknown state. We recommend that you restore the
* state at both the destination and the source after the `cancel` request
* completes so that your data is in a consistent state. When you cancel a job,
* the next job computes a delta of files and may repair any inconsistent state.
* For instance, if you run a job every day, and today's job found 10 new files
* and transferred five files before you canceled the job, tomorrow's transfer
* operation will compute a new delta with the five files that were not copied
* today plus any new files discovered tomorrow. (transferOperations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return StoragetransferEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], StoragetransferEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (transferOperations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists transfer operations. Operations are ordered by their creation time in
* reverse chronological order. (transferOperations.listTransferOperations)
*
* @param string $name Required. The name of the type being listed; must be
* `transferOperations`.
* @param string $filter Required. A list of query parameters specified as JSON
* text in the form of: `{"projectId":"my_project_id",
* "jobNames":["jobid1","jobid2",...], "jobNamePattern": "job_name_pattern",
* "operationNames":["opid1","opid2",...], "operationNamePattern":
* "operation_name_pattern", "minCreationTime": "min_creation_time",
* "maxCreationTime": "max_creation_time",
* "transferStatuses":["status1","status2",...]}` Since `jobNames`,
* `operationNames`, and `transferStatuses` support multiple values, they must
* be specified with array notation. `projectId` is the only argument that is
* required. If specified, `jobNamePattern` and `operationNamePattern` must
* match the full job or operation name respectively. '*' is a wildcard matching
* 0 or more characters. `minCreationTime` and `maxCreationTime` should be
* timestamps encoded as a string in the [RFC
* 3339](https://www.ietf.org/rfc/rfc3339.txt) format. The valid values for
* `transferStatuses` are case-insensitive: IN_PROGRESS, PAUSED, SUCCESS,
* FAILED, and ABORTED.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The list page size. The max allowed value is 256.
* @opt_param string pageToken The list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listTransferOperations($name, $filter, $optParams = [])
{
$params = ['name' => $name, 'filter' => $filter];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
/**
* Pauses a transfer operation. (transferOperations.pause)
*
* @param string $name Required. The name of the transfer operation.
* @param PauseTransferOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return StoragetransferEmpty
* @throws \Google\Service\Exception
*/
public function pause($name, PauseTransferOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('pause', [$params], StoragetransferEmpty::class);
}
/**
* Resumes a transfer operation that is paused. (transferOperations.resume)
*
* @param string $name Required. The name of the transfer operation.
* @param ResumeTransferOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return StoragetransferEmpty
* @throws \Google\Service\Exception
*/
public function resume($name, ResumeTransferOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resume', [$params], StoragetransferEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferOperations::class, 'Google_Service_Storagetransfer_Resource_TransferOperations');

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\Storagetransfer;
class ResumeTransferOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResumeTransferOperationRequest::class, 'Google_Service_Storagetransfer_ResumeTransferOperationRequest');

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\Storagetransfer;
class RunTransferJobRequest extends \Google\Model
{
/**
* @var string
*/
public $projectId;
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunTransferJobRequest::class, 'Google_Service_Storagetransfer_RunTransferJobRequest');

View File

@@ -0,0 +1,98 @@
<?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\Storagetransfer;
class S3CompatibleMetadata extends \Google\Model
{
/**
* @var string
*/
public $authMethod;
/**
* @var string
*/
public $listApi;
/**
* @var string
*/
public $protocol;
/**
* @var string
*/
public $requestModel;
/**
* @param string
*/
public function setAuthMethod($authMethod)
{
$this->authMethod = $authMethod;
}
/**
* @return string
*/
public function getAuthMethod()
{
return $this->authMethod;
}
/**
* @param string
*/
public function setListApi($listApi)
{
$this->listApi = $listApi;
}
/**
* @return string
*/
public function getListApi()
{
return $this->listApi;
}
/**
* @param string
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return string
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* @param string
*/
public function setRequestModel($requestModel)
{
$this->requestModel = $requestModel;
}
/**
* @return string
*/
public function getRequestModel()
{
return $this->requestModel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(S3CompatibleMetadata::class, 'Google_Service_Storagetransfer_S3CompatibleMetadata');

View File

@@ -0,0 +1,108 @@
<?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\Storagetransfer;
class Schedule extends \Google\Model
{
protected $endTimeOfDayType = TimeOfDay::class;
protected $endTimeOfDayDataType = '';
/**
* @var string
*/
public $repeatInterval;
protected $scheduleEndDateType = Date::class;
protected $scheduleEndDateDataType = '';
protected $scheduleStartDateType = Date::class;
protected $scheduleStartDateDataType = '';
protected $startTimeOfDayType = TimeOfDay::class;
protected $startTimeOfDayDataType = '';
/**
* @param TimeOfDay
*/
public function setEndTimeOfDay(TimeOfDay $endTimeOfDay)
{
$this->endTimeOfDay = $endTimeOfDay;
}
/**
* @return TimeOfDay
*/
public function getEndTimeOfDay()
{
return $this->endTimeOfDay;
}
/**
* @param string
*/
public function setRepeatInterval($repeatInterval)
{
$this->repeatInterval = $repeatInterval;
}
/**
* @return string
*/
public function getRepeatInterval()
{
return $this->repeatInterval;
}
/**
* @param Date
*/
public function setScheduleEndDate(Date $scheduleEndDate)
{
$this->scheduleEndDate = $scheduleEndDate;
}
/**
* @return Date
*/
public function getScheduleEndDate()
{
return $this->scheduleEndDate;
}
/**
* @param Date
*/
public function setScheduleStartDate(Date $scheduleStartDate)
{
$this->scheduleStartDate = $scheduleStartDate;
}
/**
* @return Date
*/
public function getScheduleStartDate()
{
return $this->scheduleStartDate;
}
/**
* @param TimeOfDay
*/
public function setStartTimeOfDay(TimeOfDay $startTimeOfDay)
{
$this->startTimeOfDay = $startTimeOfDay;
}
/**
* @return TimeOfDay
*/
public function getStartTimeOfDay()
{
return $this->startTimeOfDay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Schedule::class, 'Google_Service_Storagetransfer_Schedule');

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\Storagetransfer;
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_Storagetransfer_Status');

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\Storagetransfer;
class StoragetransferEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoragetransferEmpty::class, 'Google_Service_Storagetransfer_StoragetransferEmpty');

View File

@@ -0,0 +1,98 @@
<?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\Storagetransfer;
class TimeOfDay extends \Google\Model
{
/**
* @var int
*/
public $hours;
/**
* @var int
*/
public $minutes;
/**
* @var int
*/
public $nanos;
/**
* @var int
*/
public $seconds;
/**
* @param int
*/
public function setHours($hours)
{
$this->hours = $hours;
}
/**
* @return int
*/
public function getHours()
{
return $this->hours;
}
/**
* @param int
*/
public function setMinutes($minutes)
{
$this->minutes = $minutes;
}
/**
* @return int
*/
public function getMinutes()
{
return $this->minutes;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param int
*/
public function setSeconds($seconds)
{
$this->seconds = $seconds;
}
/**
* @return int
*/
public function getSeconds()
{
return $this->seconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeOfDay::class, 'Google_Service_Storagetransfer_TimeOfDay');

View File

@@ -0,0 +1,404 @@
<?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\Storagetransfer;
class TransferCounters extends \Google\Model
{
/**
* @var string
*/
public $bytesCopiedToSink;
/**
* @var string
*/
public $bytesDeletedFromSink;
/**
* @var string
*/
public $bytesDeletedFromSource;
/**
* @var string
*/
public $bytesFailedToDeleteFromSink;
/**
* @var string
*/
public $bytesFoundFromSource;
/**
* @var string
*/
public $bytesFoundOnlyFromSink;
/**
* @var string
*/
public $bytesFromSourceFailed;
/**
* @var string
*/
public $bytesFromSourceSkippedBySync;
/**
* @var string
*/
public $directoriesFailedToListFromSource;
/**
* @var string
*/
public $directoriesFoundFromSource;
/**
* @var string
*/
public $directoriesSuccessfullyListedFromSource;
/**
* @var string
*/
public $intermediateObjectsCleanedUp;
/**
* @var string
*/
public $intermediateObjectsFailedCleanedUp;
/**
* @var string
*/
public $objectsCopiedToSink;
/**
* @var string
*/
public $objectsDeletedFromSink;
/**
* @var string
*/
public $objectsDeletedFromSource;
/**
* @var string
*/
public $objectsFailedToDeleteFromSink;
/**
* @var string
*/
public $objectsFoundFromSource;
/**
* @var string
*/
public $objectsFoundOnlyFromSink;
/**
* @var string
*/
public $objectsFromSourceFailed;
/**
* @var string
*/
public $objectsFromSourceSkippedBySync;
/**
* @param string
*/
public function setBytesCopiedToSink($bytesCopiedToSink)
{
$this->bytesCopiedToSink = $bytesCopiedToSink;
}
/**
* @return string
*/
public function getBytesCopiedToSink()
{
return $this->bytesCopiedToSink;
}
/**
* @param string
*/
public function setBytesDeletedFromSink($bytesDeletedFromSink)
{
$this->bytesDeletedFromSink = $bytesDeletedFromSink;
}
/**
* @return string
*/
public function getBytesDeletedFromSink()
{
return $this->bytesDeletedFromSink;
}
/**
* @param string
*/
public function setBytesDeletedFromSource($bytesDeletedFromSource)
{
$this->bytesDeletedFromSource = $bytesDeletedFromSource;
}
/**
* @return string
*/
public function getBytesDeletedFromSource()
{
return $this->bytesDeletedFromSource;
}
/**
* @param string
*/
public function setBytesFailedToDeleteFromSink($bytesFailedToDeleteFromSink)
{
$this->bytesFailedToDeleteFromSink = $bytesFailedToDeleteFromSink;
}
/**
* @return string
*/
public function getBytesFailedToDeleteFromSink()
{
return $this->bytesFailedToDeleteFromSink;
}
/**
* @param string
*/
public function setBytesFoundFromSource($bytesFoundFromSource)
{
$this->bytesFoundFromSource = $bytesFoundFromSource;
}
/**
* @return string
*/
public function getBytesFoundFromSource()
{
return $this->bytesFoundFromSource;
}
/**
* @param string
*/
public function setBytesFoundOnlyFromSink($bytesFoundOnlyFromSink)
{
$this->bytesFoundOnlyFromSink = $bytesFoundOnlyFromSink;
}
/**
* @return string
*/
public function getBytesFoundOnlyFromSink()
{
return $this->bytesFoundOnlyFromSink;
}
/**
* @param string
*/
public function setBytesFromSourceFailed($bytesFromSourceFailed)
{
$this->bytesFromSourceFailed = $bytesFromSourceFailed;
}
/**
* @return string
*/
public function getBytesFromSourceFailed()
{
return $this->bytesFromSourceFailed;
}
/**
* @param string
*/
public function setBytesFromSourceSkippedBySync($bytesFromSourceSkippedBySync)
{
$this->bytesFromSourceSkippedBySync = $bytesFromSourceSkippedBySync;
}
/**
* @return string
*/
public function getBytesFromSourceSkippedBySync()
{
return $this->bytesFromSourceSkippedBySync;
}
/**
* @param string
*/
public function setDirectoriesFailedToListFromSource($directoriesFailedToListFromSource)
{
$this->directoriesFailedToListFromSource = $directoriesFailedToListFromSource;
}
/**
* @return string
*/
public function getDirectoriesFailedToListFromSource()
{
return $this->directoriesFailedToListFromSource;
}
/**
* @param string
*/
public function setDirectoriesFoundFromSource($directoriesFoundFromSource)
{
$this->directoriesFoundFromSource = $directoriesFoundFromSource;
}
/**
* @return string
*/
public function getDirectoriesFoundFromSource()
{
return $this->directoriesFoundFromSource;
}
/**
* @param string
*/
public function setDirectoriesSuccessfullyListedFromSource($directoriesSuccessfullyListedFromSource)
{
$this->directoriesSuccessfullyListedFromSource = $directoriesSuccessfullyListedFromSource;
}
/**
* @return string
*/
public function getDirectoriesSuccessfullyListedFromSource()
{
return $this->directoriesSuccessfullyListedFromSource;
}
/**
* @param string
*/
public function setIntermediateObjectsCleanedUp($intermediateObjectsCleanedUp)
{
$this->intermediateObjectsCleanedUp = $intermediateObjectsCleanedUp;
}
/**
* @return string
*/
public function getIntermediateObjectsCleanedUp()
{
return $this->intermediateObjectsCleanedUp;
}
/**
* @param string
*/
public function setIntermediateObjectsFailedCleanedUp($intermediateObjectsFailedCleanedUp)
{
$this->intermediateObjectsFailedCleanedUp = $intermediateObjectsFailedCleanedUp;
}
/**
* @return string
*/
public function getIntermediateObjectsFailedCleanedUp()
{
return $this->intermediateObjectsFailedCleanedUp;
}
/**
* @param string
*/
public function setObjectsCopiedToSink($objectsCopiedToSink)
{
$this->objectsCopiedToSink = $objectsCopiedToSink;
}
/**
* @return string
*/
public function getObjectsCopiedToSink()
{
return $this->objectsCopiedToSink;
}
/**
* @param string
*/
public function setObjectsDeletedFromSink($objectsDeletedFromSink)
{
$this->objectsDeletedFromSink = $objectsDeletedFromSink;
}
/**
* @return string
*/
public function getObjectsDeletedFromSink()
{
return $this->objectsDeletedFromSink;
}
/**
* @param string
*/
public function setObjectsDeletedFromSource($objectsDeletedFromSource)
{
$this->objectsDeletedFromSource = $objectsDeletedFromSource;
}
/**
* @return string
*/
public function getObjectsDeletedFromSource()
{
return $this->objectsDeletedFromSource;
}
/**
* @param string
*/
public function setObjectsFailedToDeleteFromSink($objectsFailedToDeleteFromSink)
{
$this->objectsFailedToDeleteFromSink = $objectsFailedToDeleteFromSink;
}
/**
* @return string
*/
public function getObjectsFailedToDeleteFromSink()
{
return $this->objectsFailedToDeleteFromSink;
}
/**
* @param string
*/
public function setObjectsFoundFromSource($objectsFoundFromSource)
{
$this->objectsFoundFromSource = $objectsFoundFromSource;
}
/**
* @return string
*/
public function getObjectsFoundFromSource()
{
return $this->objectsFoundFromSource;
}
/**
* @param string
*/
public function setObjectsFoundOnlyFromSink($objectsFoundOnlyFromSink)
{
$this->objectsFoundOnlyFromSink = $objectsFoundOnlyFromSink;
}
/**
* @return string
*/
public function getObjectsFoundOnlyFromSink()
{
return $this->objectsFoundOnlyFromSink;
}
/**
* @param string
*/
public function setObjectsFromSourceFailed($objectsFromSourceFailed)
{
$this->objectsFromSourceFailed = $objectsFromSourceFailed;
}
/**
* @return string
*/
public function getObjectsFromSourceFailed()
{
return $this->objectsFromSourceFailed;
}
/**
* @param string
*/
public function setObjectsFromSourceSkippedBySync($objectsFromSourceSkippedBySync)
{
$this->objectsFromSourceSkippedBySync = $objectsFromSourceSkippedBySync;
}
/**
* @return string
*/
public function getObjectsFromSourceSkippedBySync()
{
return $this->objectsFromSourceSkippedBySync;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferCounters::class, 'Google_Service_Storagetransfer_TransferCounters');

View File

@@ -0,0 +1,266 @@
<?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\Storagetransfer;
class TransferJob extends \Google\Model
{
/**
* @var string
*/
public $creationTime;
/**
* @var string
*/
public $deletionTime;
/**
* @var string
*/
public $description;
protected $eventStreamType = EventStream::class;
protected $eventStreamDataType = '';
/**
* @var string
*/
public $lastModificationTime;
/**
* @var string
*/
public $latestOperationName;
protected $loggingConfigType = LoggingConfig::class;
protected $loggingConfigDataType = '';
/**
* @var string
*/
public $name;
protected $notificationConfigType = NotificationConfig::class;
protected $notificationConfigDataType = '';
/**
* @var string
*/
public $projectId;
protected $replicationSpecType = ReplicationSpec::class;
protected $replicationSpecDataType = '';
protected $scheduleType = Schedule::class;
protected $scheduleDataType = '';
/**
* @var string
*/
public $status;
protected $transferSpecType = TransferSpec::class;
protected $transferSpecDataType = '';
/**
* @param string
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* @param string
*/
public function setDeletionTime($deletionTime)
{
$this->deletionTime = $deletionTime;
}
/**
* @return string
*/
public function getDeletionTime()
{
return $this->deletionTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param EventStream
*/
public function setEventStream(EventStream $eventStream)
{
$this->eventStream = $eventStream;
}
/**
* @return EventStream
*/
public function getEventStream()
{
return $this->eventStream;
}
/**
* @param string
*/
public function setLastModificationTime($lastModificationTime)
{
$this->lastModificationTime = $lastModificationTime;
}
/**
* @return string
*/
public function getLastModificationTime()
{
return $this->lastModificationTime;
}
/**
* @param string
*/
public function setLatestOperationName($latestOperationName)
{
$this->latestOperationName = $latestOperationName;
}
/**
* @return string
*/
public function getLatestOperationName()
{
return $this->latestOperationName;
}
/**
* @param LoggingConfig
*/
public function setLoggingConfig(LoggingConfig $loggingConfig)
{
$this->loggingConfig = $loggingConfig;
}
/**
* @return LoggingConfig
*/
public function getLoggingConfig()
{
return $this->loggingConfig;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param NotificationConfig
*/
public function setNotificationConfig(NotificationConfig $notificationConfig)
{
$this->notificationConfig = $notificationConfig;
}
/**
* @return NotificationConfig
*/
public function getNotificationConfig()
{
return $this->notificationConfig;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param ReplicationSpec
*/
public function setReplicationSpec(ReplicationSpec $replicationSpec)
{
$this->replicationSpec = $replicationSpec;
}
/**
* @return ReplicationSpec
*/
public function getReplicationSpec()
{
return $this->replicationSpec;
}
/**
* @param Schedule
*/
public function setSchedule(Schedule $schedule)
{
$this->schedule = $schedule;
}
/**
* @return Schedule
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param TransferSpec
*/
public function setTransferSpec(TransferSpec $transferSpec)
{
$this->transferSpec = $transferSpec;
}
/**
* @return TransferSpec
*/
public function getTransferSpec()
{
return $this->transferSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferJob::class, 'Google_Service_Storagetransfer_TransferJob');

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\Storagetransfer;
class TransferManifest extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferManifest::class, 'Google_Service_Storagetransfer_TransferManifest');

View File

@@ -0,0 +1,215 @@
<?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\Storagetransfer;
class TransferOperation extends \Google\Collection
{
protected $collection_key = 'errorBreakdowns';
protected $countersType = TransferCounters::class;
protected $countersDataType = '';
/**
* @var string
*/
public $endTime;
protected $errorBreakdownsType = ErrorSummary::class;
protected $errorBreakdownsDataType = 'array';
protected $loggingConfigType = LoggingConfig::class;
protected $loggingConfigDataType = '';
/**
* @var string
*/
public $name;
protected $notificationConfigType = NotificationConfig::class;
protected $notificationConfigDataType = '';
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $transferJobName;
protected $transferSpecType = TransferSpec::class;
protected $transferSpecDataType = '';
/**
* @param TransferCounters
*/
public function setCounters(TransferCounters $counters)
{
$this->counters = $counters;
}
/**
* @return TransferCounters
*/
public function getCounters()
{
return $this->counters;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param ErrorSummary[]
*/
public function setErrorBreakdowns($errorBreakdowns)
{
$this->errorBreakdowns = $errorBreakdowns;
}
/**
* @return ErrorSummary[]
*/
public function getErrorBreakdowns()
{
return $this->errorBreakdowns;
}
/**
* @param LoggingConfig
*/
public function setLoggingConfig(LoggingConfig $loggingConfig)
{
$this->loggingConfig = $loggingConfig;
}
/**
* @return LoggingConfig
*/
public function getLoggingConfig()
{
return $this->loggingConfig;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param NotificationConfig
*/
public function setNotificationConfig(NotificationConfig $notificationConfig)
{
$this->notificationConfig = $notificationConfig;
}
/**
* @return NotificationConfig
*/
public function getNotificationConfig()
{
return $this->notificationConfig;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setTransferJobName($transferJobName)
{
$this->transferJobName = $transferJobName;
}
/**
* @return string
*/
public function getTransferJobName()
{
return $this->transferJobName;
}
/**
* @param TransferSpec
*/
public function setTransferSpec(TransferSpec $transferSpec)
{
$this->transferSpec = $transferSpec;
}
/**
* @return TransferSpec
*/
public function getTransferSpec()
{
return $this->transferSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferOperation::class, 'Google_Service_Storagetransfer_TransferOperation');

View File

@@ -0,0 +1,114 @@
<?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\Storagetransfer;
class TransferOptions extends \Google\Model
{
/**
* @var bool
*/
public $deleteObjectsFromSourceAfterTransfer;
/**
* @var bool
*/
public $deleteObjectsUniqueInSink;
protected $metadataOptionsType = MetadataOptions::class;
protected $metadataOptionsDataType = '';
/**
* @var bool
*/
public $overwriteObjectsAlreadyExistingInSink;
/**
* @var string
*/
public $overwriteWhen;
/**
* @param bool
*/
public function setDeleteObjectsFromSourceAfterTransfer($deleteObjectsFromSourceAfterTransfer)
{
$this->deleteObjectsFromSourceAfterTransfer = $deleteObjectsFromSourceAfterTransfer;
}
/**
* @return bool
*/
public function getDeleteObjectsFromSourceAfterTransfer()
{
return $this->deleteObjectsFromSourceAfterTransfer;
}
/**
* @param bool
*/
public function setDeleteObjectsUniqueInSink($deleteObjectsUniqueInSink)
{
$this->deleteObjectsUniqueInSink = $deleteObjectsUniqueInSink;
}
/**
* @return bool
*/
public function getDeleteObjectsUniqueInSink()
{
return $this->deleteObjectsUniqueInSink;
}
/**
* @param MetadataOptions
*/
public function setMetadataOptions(MetadataOptions $metadataOptions)
{
$this->metadataOptions = $metadataOptions;
}
/**
* @return MetadataOptions
*/
public function getMetadataOptions()
{
return $this->metadataOptions;
}
/**
* @param bool
*/
public function setOverwriteObjectsAlreadyExistingInSink($overwriteObjectsAlreadyExistingInSink)
{
$this->overwriteObjectsAlreadyExistingInSink = $overwriteObjectsAlreadyExistingInSink;
}
/**
* @return bool
*/
public function getOverwriteObjectsAlreadyExistingInSink()
{
return $this->overwriteObjectsAlreadyExistingInSink;
}
/**
* @param string
*/
public function setOverwriteWhen($overwriteWhen)
{
$this->overwriteWhen = $overwriteWhen;
}
/**
* @return string
*/
public function getOverwriteWhen()
{
return $this->overwriteWhen;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferOptions::class, 'Google_Service_Storagetransfer_TransferOptions');

View File

@@ -0,0 +1,270 @@
<?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\Storagetransfer;
class TransferSpec extends \Google\Model
{
protected $awsS3CompatibleDataSourceType = AwsS3CompatibleData::class;
protected $awsS3CompatibleDataSourceDataType = '';
protected $awsS3DataSourceType = AwsS3Data::class;
protected $awsS3DataSourceDataType = '';
protected $azureBlobStorageDataSourceType = AzureBlobStorageData::class;
protected $azureBlobStorageDataSourceDataType = '';
protected $gcsDataSinkType = GcsData::class;
protected $gcsDataSinkDataType = '';
protected $gcsDataSourceType = GcsData::class;
protected $gcsDataSourceDataType = '';
protected $gcsIntermediateDataLocationType = GcsData::class;
protected $gcsIntermediateDataLocationDataType = '';
protected $hdfsDataSourceType = HdfsData::class;
protected $hdfsDataSourceDataType = '';
protected $httpDataSourceType = HttpData::class;
protected $httpDataSourceDataType = '';
protected $objectConditionsType = ObjectConditions::class;
protected $objectConditionsDataType = '';
protected $posixDataSinkType = PosixFilesystem::class;
protected $posixDataSinkDataType = '';
protected $posixDataSourceType = PosixFilesystem::class;
protected $posixDataSourceDataType = '';
/**
* @var string
*/
public $sinkAgentPoolName;
/**
* @var string
*/
public $sourceAgentPoolName;
protected $transferManifestType = TransferManifest::class;
protected $transferManifestDataType = '';
protected $transferOptionsType = TransferOptions::class;
protected $transferOptionsDataType = '';
/**
* @param AwsS3CompatibleData
*/
public function setAwsS3CompatibleDataSource(AwsS3CompatibleData $awsS3CompatibleDataSource)
{
$this->awsS3CompatibleDataSource = $awsS3CompatibleDataSource;
}
/**
* @return AwsS3CompatibleData
*/
public function getAwsS3CompatibleDataSource()
{
return $this->awsS3CompatibleDataSource;
}
/**
* @param AwsS3Data
*/
public function setAwsS3DataSource(AwsS3Data $awsS3DataSource)
{
$this->awsS3DataSource = $awsS3DataSource;
}
/**
* @return AwsS3Data
*/
public function getAwsS3DataSource()
{
return $this->awsS3DataSource;
}
/**
* @param AzureBlobStorageData
*/
public function setAzureBlobStorageDataSource(AzureBlobStorageData $azureBlobStorageDataSource)
{
$this->azureBlobStorageDataSource = $azureBlobStorageDataSource;
}
/**
* @return AzureBlobStorageData
*/
public function getAzureBlobStorageDataSource()
{
return $this->azureBlobStorageDataSource;
}
/**
* @param GcsData
*/
public function setGcsDataSink(GcsData $gcsDataSink)
{
$this->gcsDataSink = $gcsDataSink;
}
/**
* @return GcsData
*/
public function getGcsDataSink()
{
return $this->gcsDataSink;
}
/**
* @param GcsData
*/
public function setGcsDataSource(GcsData $gcsDataSource)
{
$this->gcsDataSource = $gcsDataSource;
}
/**
* @return GcsData
*/
public function getGcsDataSource()
{
return $this->gcsDataSource;
}
/**
* @param GcsData
*/
public function setGcsIntermediateDataLocation(GcsData $gcsIntermediateDataLocation)
{
$this->gcsIntermediateDataLocation = $gcsIntermediateDataLocation;
}
/**
* @return GcsData
*/
public function getGcsIntermediateDataLocation()
{
return $this->gcsIntermediateDataLocation;
}
/**
* @param HdfsData
*/
public function setHdfsDataSource(HdfsData $hdfsDataSource)
{
$this->hdfsDataSource = $hdfsDataSource;
}
/**
* @return HdfsData
*/
public function getHdfsDataSource()
{
return $this->hdfsDataSource;
}
/**
* @param HttpData
*/
public function setHttpDataSource(HttpData $httpDataSource)
{
$this->httpDataSource = $httpDataSource;
}
/**
* @return HttpData
*/
public function getHttpDataSource()
{
return $this->httpDataSource;
}
/**
* @param ObjectConditions
*/
public function setObjectConditions(ObjectConditions $objectConditions)
{
$this->objectConditions = $objectConditions;
}
/**
* @return ObjectConditions
*/
public function getObjectConditions()
{
return $this->objectConditions;
}
/**
* @param PosixFilesystem
*/
public function setPosixDataSink(PosixFilesystem $posixDataSink)
{
$this->posixDataSink = $posixDataSink;
}
/**
* @return PosixFilesystem
*/
public function getPosixDataSink()
{
return $this->posixDataSink;
}
/**
* @param PosixFilesystem
*/
public function setPosixDataSource(PosixFilesystem $posixDataSource)
{
$this->posixDataSource = $posixDataSource;
}
/**
* @return PosixFilesystem
*/
public function getPosixDataSource()
{
return $this->posixDataSource;
}
/**
* @param string
*/
public function setSinkAgentPoolName($sinkAgentPoolName)
{
$this->sinkAgentPoolName = $sinkAgentPoolName;
}
/**
* @return string
*/
public function getSinkAgentPoolName()
{
return $this->sinkAgentPoolName;
}
/**
* @param string
*/
public function setSourceAgentPoolName($sourceAgentPoolName)
{
$this->sourceAgentPoolName = $sourceAgentPoolName;
}
/**
* @return string
*/
public function getSourceAgentPoolName()
{
return $this->sourceAgentPoolName;
}
/**
* @param TransferManifest
*/
public function setTransferManifest(TransferManifest $transferManifest)
{
$this->transferManifest = $transferManifest;
}
/**
* @return TransferManifest
*/
public function getTransferManifest()
{
return $this->transferManifest;
}
/**
* @param TransferOptions
*/
public function setTransferOptions(TransferOptions $transferOptions)
{
$this->transferOptions = $transferOptions;
}
/**
* @return TransferOptions
*/
public function getTransferOptions()
{
return $this->transferOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferSpec::class, 'Google_Service_Storagetransfer_TransferSpec');

View File

@@ -0,0 +1,78 @@
<?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\Storagetransfer;
class UpdateTransferJobRequest extends \Google\Model
{
/**
* @var string
*/
public $projectId;
protected $transferJobType = TransferJob::class;
protected $transferJobDataType = '';
/**
* @var string
*/
public $updateTransferJobFieldMask;
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param TransferJob
*/
public function setTransferJob(TransferJob $transferJob)
{
$this->transferJob = $transferJob;
}
/**
* @return TransferJob
*/
public function getTransferJob()
{
return $this->transferJob;
}
/**
* @param string
*/
public function setUpdateTransferJobFieldMask($updateTransferJobFieldMask)
{
$this->updateTransferJobFieldMask = $updateTransferJobFieldMask;
}
/**
* @return string
*/
public function getUpdateTransferJobFieldMask()
{
return $this->updateTransferJobFieldMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateTransferJobRequest::class, 'Google_Service_Storagetransfer_UpdateTransferJobRequest');