|
19 | 19 |
|
20 | 20 | class ObjectConditions extends \Google\Collection |
21 | 21 | { |
22 | | - protected $collection_key = 'includePrefixes'; |
| 22 | + protected $collection_key = 'includeStorageClasses'; |
23 | 23 | /** |
24 | 24 | * If you specify `exclude_prefixes`, Storage Transfer Service uses the items |
25 | 25 | * in the `exclude_prefixes` array to determine which objects to exclude from |
@@ -66,6 +66,19 @@ class ObjectConditions extends \Google\Collection |
66 | 66 | * @var string[] |
67 | 67 | */ |
68 | 68 | 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; |
69 | 82 | /** |
70 | 83 | * If specified, only objects with a "last modification time" before this |
71 | 84 | * timestamp and objects that don't have a "last modification time" are |
@@ -183,6 +196,29 @@ public function getIncludePrefixes() |
183 | 196 | { |
184 | 197 | return $this->includePrefixes; |
185 | 198 | } |
| 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 | + } |
186 | 222 | /** |
187 | 223 | * If specified, only objects with a "last modification time" before this |
188 | 224 | * timestamp and objects that don't have a "last modification time" are |
|
0 commit comments