Class: Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse

Inherits:
Object
  • Object
show all
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

Response of GenerateSourceUploadUrl method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateUploadUrlResponse

Returns a new instance of GenerateUploadUrlResponse.



706
707
708
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 706

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

Instance Attribute Details

#upload_urlString

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

Returns:

  • (String)


704
705
706
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 704

def upload_url
  @upload_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



711
712
713
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 711

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