Skip to content

Commit 00c3d68

Browse files
1 parent cb4f63f commit 00c3d68

2 files changed

Lines changed: 43 additions & 7 deletions

File tree

src/Storagetransfer/ObjectConditions.php

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ObjectConditions extends \Google\Collection
2121
{
22-
protected $collection_key = 'includePrefixes';
22+
protected $collection_key = 'includeStorageClasses';
2323
/**
2424
* If you specify `exclude_prefixes`, Storage Transfer Service uses the items
2525
* in the `exclude_prefixes` array to determine which objects to exclude from
@@ -66,6 +66,19 @@ class ObjectConditions extends \Google\Collection
6666
* @var string[]
6767
*/
6868
public $includePrefixes;
69+
/**
70+
* Optional. If specified, objects in the source matching any of the storage
71+
* classes in this field will be transferred. Objects in storage classes not
72+
* included in this field will be skipped. If empty, the default behavior
73+
* regarding the storage classes is applied. This includes all storage classes
74+
* except "GLACIER" as per default behavior. Currently, this field only
75+
* supports S3 data source. For the list of valid Amazon S3 storage
76+
* classnames, please refer to the AWS documentation:
77+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/sc-howtoset.html
78+
*
79+
* @var string[]
80+
*/
81+
public $includeStorageClasses;
6982
/**
7083
* If specified, only objects with a "last modification time" before this
7184
* timestamp and objects that don't have a "last modification time" are
@@ -183,6 +196,29 @@ public function getIncludePrefixes()
183196
{
184197
return $this->includePrefixes;
185198
}
199+
/**
200+
* Optional. If specified, objects in the source matching any of the storage
201+
* classes in this field will be transferred. Objects in storage classes not
202+
* included in this field will be skipped. If empty, the default behavior
203+
* regarding the storage classes is applied. This includes all storage classes
204+
* except "GLACIER" as per default behavior. Currently, this field only
205+
* supports S3 data source. For the list of valid Amazon S3 storage
206+
* classnames, please refer to the AWS documentation:
207+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/sc-howtoset.html
208+
*
209+
* @param string[] $includeStorageClasses
210+
*/
211+
public function setIncludeStorageClasses($includeStorageClasses)
212+
{
213+
$this->includeStorageClasses = $includeStorageClasses;
214+
}
215+
/**
216+
* @return string[]
217+
*/
218+
public function getIncludeStorageClasses()
219+
{
220+
return $this->includeStorageClasses;
221+
}
186222
/**
187223
* If specified, only objects with a "last modification time" before this
188224
* timestamp and objects that don't have a "last modification time" are

src/Storagetransfer/TransferOptions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class TransferOptions extends \Google\Model
4747
*/
4848
public $deleteObjectsFromSourceAfterTransfer;
4949
/**
50-
* Whether objects that exist only in the sink should be deleted. **Note:**
51-
* This option and delete_objects_from_source_after_transfer are mutually
52-
* exclusive.
50+
* Whether objects that exist only in the sink should be deleted from the
51+
* sink. **Note:** This option and delete_objects_from_source_after_transfer
52+
* are mutually exclusive.
5353
*
5454
* @var bool
5555
*/
@@ -93,9 +93,9 @@ public function getDeleteObjectsFromSourceAfterTransfer()
9393
return $this->deleteObjectsFromSourceAfterTransfer;
9494
}
9595
/**
96-
* Whether objects that exist only in the sink should be deleted. **Note:**
97-
* This option and delete_objects_from_source_after_transfer are mutually
98-
* exclusive.
96+
* Whether objects that exist only in the sink should be deleted from the
97+
* sink. **Note:** This option and delete_objects_from_source_after_transfer
98+
* are mutually exclusive.
9999
*
100100
* @param bool $deleteObjectsUniqueInSink
101101
*/

0 commit comments

Comments
 (0)