# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::GenerateUploadUrlResponse (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::GenerateUploadUrlResponse.

Response of `GenerateSourceUploadUrl` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #storage_source

    def storage_source() -> ::Google::Cloud::Functions::V2::StorageSource

**Returns**

- ([::Google::Cloud::Functions::V2::StorageSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)) --- The location of the source code in the upload bucket.


  Once the archive is uploaded using the `upload_url` use this field to
  set the `function.build_config.source.storage_source`
  during CreateFunction and UpdateFunction.

  Generation defaults to 0, as Cloud Storage provides a new generation only
  upon uploading a new object or version of an object.

### #storage_source=

    def storage_source=(value) -> ::Google::Cloud::Functions::V2::StorageSource

**Parameter**

- **value** ([::Google::Cloud::Functions::V2::StorageSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)) --- The location of the source code in the upload bucket.


  Once the archive is uploaded using the `upload_url` use this field to
  set the `function.build_config.source.storage_source`
  during CreateFunction and UpdateFunction.

  Generation defaults to 0, as Cloud Storage provides a new generation only
  upon uploading a new object or version of an object.
**Returns**

- ([::Google::Cloud::Functions::V2::StorageSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)) --- The location of the source code in the upload bucket.


  Once the archive is uploaded using the `upload_url` use this field to
  set the `function.build_config.source.storage_source`
  during CreateFunction and UpdateFunction.

  Generation defaults to 0, as Cloud Storage provides a new generation only
  upon uploading a new object or version of an object.

### #upload_url

    def upload_url() -> ::String

**Returns**

- (::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.

### #upload_url=

    def upload_url=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.