Class: Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudfunctions_v1/classes.rb,
lib/google/apis/cloudfunctions_v1/representations.rb,
lib/google/apis/cloudfunctions_v1/representations.rb
Overview
Request of GenerateSourceUploadUrl method.
Instance Attribute Summary collapse
-
#kms_key_name ⇒ String
Resource name of a KMS crypto key (managed by the user) used to encrypt/ decrypt function source code objects in staging Cloud Storage buckets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateUploadUrlRequest
constructor
A new instance of GenerateUploadUrlRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateUploadUrlRequest
Returns a new instance of GenerateUploadUrlRequest.
705 706 707 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 705 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
Resource name of a KMS crypto key (managed by the user) used to encrypt/
decrypt function source code objects in staging Cloud Storage buckets. When
you generate an upload url and upload your source code, it gets copied to a
staging Cloud Storage bucket in an internal regional project. The source code
is then copied to a versioned directory in the sources bucket in the consumer
project during the function deployment. It must match the pattern projects/
project/locations/location/keyRings/key_ring/cryptoKeys/crypto_key`.
The Google Cloud Functions service account (service-project_number@gcf-admin-
robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey
Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/
KeyRing/Project/Organization (least access preferred). GCF will delegate
access to the Google Storage service account in the internal project.
Corresponds to the JSON propertykmsKeyName`
703 704 705 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 703 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
710 711 712 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 710 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |