Class: Google::Apis::CloudfunctionsV2alpha::GenerateUploadUrlRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v2alpha/classes.rb,
lib/google/apis/cloudfunctions_v2alpha/representations.rb,
lib/google/apis/cloudfunctions_v2alpha/representations.rb

Overview

Request of GenerateSourceUploadUrl method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateUploadUrlRequest

Returns a new instance of GenerateUploadUrlRequest.



630
631
632
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 630

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kms_key_nameString

[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. 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). Corresponds to the JSON propertykmsKeyName`

Returns:

  • (String)


628
629
630
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 628

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



635
636
637
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 635

def update!(**args)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end