Class: Google::Apis::CloudfunctionsV2alpha::GenerateUploadUrlResponse

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

Response of GenerateSourceUploadUrl method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateUploadUrlResponse

Returns a new instance of GenerateUploadUrlResponse.



615
616
617
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 615

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

Instance Attribute Details

#storage_sourceGoogle::Apis::CloudfunctionsV2alpha::StorageSource

Location of the source in an archive file in Google Cloud Storage. Corresponds to the JSON property storageSource



606
607
608
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 606

def storage_source
  @storage_source
end

#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)


613
614
615
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 613

def upload_url
  @upload_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



620
621
622
623
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 620

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