Skip to content

Commit dc38a54

Browse files
1 parent 32c79f5 commit dc38a54

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/Storage/RelocateBucketRequest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ class RelocateBucketRequest extends \Google\Model
2121
{
2222
protected $destinationCustomPlacementConfigType = RelocateBucketRequestDestinationCustomPlacementConfig::class;
2323
protected $destinationCustomPlacementConfigDataType = '';
24+
/**
25+
* Resource name of a Cloud KMS key, of the form projects/my-
26+
* project/locations/global/keyRings/my-kr/cryptoKeys/my-key. If set, is used
27+
* to encrypt all objects in the destination bucket.
28+
*
29+
* @var string
30+
*/
31+
public $destinationKmsKeyName;
2432
/**
2533
* The new location the bucket will be relocated to.
2634
*
@@ -51,6 +59,24 @@ public function getDestinationCustomPlacementConfig()
5159
{
5260
return $this->destinationCustomPlacementConfig;
5361
}
62+
/**
63+
* Resource name of a Cloud KMS key, of the form projects/my-
64+
* project/locations/global/keyRings/my-kr/cryptoKeys/my-key. If set, is used
65+
* to encrypt all objects in the destination bucket.
66+
*
67+
* @param string $destinationKmsKeyName
68+
*/
69+
public function setDestinationKmsKeyName($destinationKmsKeyName)
70+
{
71+
$this->destinationKmsKeyName = $destinationKmsKeyName;
72+
}
73+
/**
74+
* @return string
75+
*/
76+
public function getDestinationKmsKeyName()
77+
{
78+
return $this->destinationKmsKeyName;
79+
}
5480
/**
5581
* The new location the bucket will be relocated to.
5682
*

0 commit comments

Comments
 (0)