Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion src/Storagetransfer/ObjectConditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ObjectConditions extends \Google\Collection
{
protected $collection_key = 'includePrefixes';
protected $collection_key = 'includeStorageClasses';
/**
* If you specify `exclude_prefixes`, Storage Transfer Service uses the items
* in the `exclude_prefixes` array to determine which objects to exclude from
Expand Down Expand Up @@ -66,6 +66,19 @@ class ObjectConditions extends \Google\Collection
* @var string[]
*/
public $includePrefixes;
/**
* Optional. If specified, objects in the source matching any of the storage
* classes in this field will be transferred. Objects in storage classes not
* included in this field will be skipped. If empty, the default behavior
* regarding the storage classes is applied. This includes all storage classes
* except "GLACIER" as per default behavior. Currently, this field only
* supports S3 data source. For the list of valid Amazon S3 storage
* classnames, please refer to the AWS documentation:
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/sc-howtoset.html
*
* @var string[]
*/
public $includeStorageClasses;
/**
* If specified, only objects with a "last modification time" before this
* timestamp and objects that don't have a "last modification time" are
Expand Down Expand Up @@ -183,6 +196,29 @@ public function getIncludePrefixes()
{
return $this->includePrefixes;
}
/**
* Optional. If specified, objects in the source matching any of the storage
* classes in this field will be transferred. Objects in storage classes not
* included in this field will be skipped. If empty, the default behavior
* regarding the storage classes is applied. This includes all storage classes
* except "GLACIER" as per default behavior. Currently, this field only
* supports S3 data source. For the list of valid Amazon S3 storage
* classnames, please refer to the AWS documentation:
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/sc-howtoset.html
*
* @param string[] $includeStorageClasses
*/
public function setIncludeStorageClasses($includeStorageClasses)
{
$this->includeStorageClasses = $includeStorageClasses;
}
/**
* @return string[]
*/
public function getIncludeStorageClasses()
{
return $this->includeStorageClasses;
}
/**
* If specified, only objects with a "last modification time" before this
* timestamp and objects that don't have a "last modification time" are
Expand Down
12 changes: 6 additions & 6 deletions src/Storagetransfer/TransferOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class TransferOptions extends \Google\Model
*/
public $deleteObjectsFromSourceAfterTransfer;
/**
* Whether objects that exist only in the sink should be deleted. **Note:**
* This option and delete_objects_from_source_after_transfer are mutually
* exclusive.
* Whether objects that exist only in the sink should be deleted from the
* sink. **Note:** This option and delete_objects_from_source_after_transfer
* are mutually exclusive.
*
* @var bool
*/
Expand Down Expand Up @@ -93,9 +93,9 @@ public function getDeleteObjectsFromSourceAfterTransfer()
return $this->deleteObjectsFromSourceAfterTransfer;
}
/**
* Whether objects that exist only in the sink should be deleted. **Note:**
* This option and delete_objects_from_source_after_transfer are mutually
* exclusive.
* Whether objects that exist only in the sink should be deleted from the
* sink. **Note:** This option and delete_objects_from_source_after_transfer
* are mutually exclusive.
*
* @param bool $deleteObjectsUniqueInSink
*/
Expand Down
Loading