Class: Google::Apis::CloudfunctionsV2beta::GenerateUploadUrlResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2beta::GenerateUploadUrlResponse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudfunctions_v2beta/classes.rb,
lib/google/apis/cloudfunctions_v2beta/representations.rb,
lib/google/apis/cloudfunctions_v2beta/representations.rb
Overview
Response of GenerateSourceUploadUrl
method.
Instance Attribute Summary collapse
-
#storage_source ⇒ Google::Apis::CloudfunctionsV2beta::StorageSource
Location of the source in an archive file in Google Cloud Storage.
-
#upload_url ⇒ String
The generated Google Cloud Storage signed URL that should be used for a function source code upload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateUploadUrlResponse
constructor
A new instance of GenerateUploadUrlResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateUploadUrlResponse
Returns a new instance of GenerateUploadUrlResponse.
771 772 773 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 771 def initialize(**args) update!(**args) end |
Instance Attribute Details
#storage_source ⇒ Google::Apis::CloudfunctionsV2beta::StorageSource
Location of the source in an archive file in Google Cloud Storage.
Corresponds to the JSON property storageSource
762 763 764 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 762 def storage_source @storage_source end |
#upload_url ⇒ String
The generated Google Cloud Storage signed URL that should be used for a
function source code upload. The uploaded file should be a zip archive which
contains a function.
Corresponds to the JSON property uploadUrl
769 770 771 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 769 def upload_url @upload_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
776 777 778 779 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 776 def update!(**args) @storage_source = args[:storage_source] if args.key?(:storage_source) @upload_url = args[:upload_url] if args.key?(:upload_url) end |