File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020// usage: node getBucketEncryptionEnforcementConfig.js <BUCKET_NAME>
2121
2222function main ( bucketName = 'my-bucket' ) {
23- // [START storage_get_encryption_enforcement_config ]
23+ // [START storage_get_bucket_encryption_enforcement_config ]
2424 /**
2525 * TODO(developer): Uncomment the following lines before running the sample.
2626 */
@@ -71,6 +71,6 @@ function main(bucketName = 'my-bucket') {
7171 }
7272
7373 getBucketEncryptionEnforcementConfig ( ) . catch ( console . error ) ;
74- // [END storage_get_encryption_enforcement_config ]
74+ // [END storage_get_bucket_encryption_enforcement_config ]
7575}
7676main ( ...process . argv . slice ( 2 ) ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function main(
2323 bucketName = 'my-bucket' ,
2424 defaultKmsKeyName = process . env . GOOGLE_CLOUD_KMS_KEY_ASIA
2525) {
26- // [START storage_set_encryption_enforcement_config ]
26+ // [START storage_set_bucket_encryption_enforcement_config ]
2727 /**
2828 * TODO(developer): Uncomment the following lines before running the sample.
2929 */
@@ -88,6 +88,6 @@ function main(
8888 }
8989
9090 setBucketEncryptionEnforcementConfig ( ) . catch ( console . error ) ;
91- // [END storage_set_encryption_enforcement_config ]
91+ // [END storage_set_bucket_encryption_enforcement_config ]
9292}
9393main ( ...process . argv . slice ( 2 ) ) ;
You can’t perform that action at this time.
0 commit comments