# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::StorageSource (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::StorageSource.

Location of the source in an archive file in Google Cloud Storage.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bucket

    def bucket() -> ::String

**Returns**

- (::String) --- Google Cloud Storage bucket containing the source (see [Bucket Name
  Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

### #bucket=

    def bucket=(value) -> ::String

**Parameter**

- **value** (::String) --- Google Cloud Storage bucket containing the source (see [Bucket Name
  Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
**Returns**

- (::String) --- Google Cloud Storage bucket containing the source (see [Bucket Name
  Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

### #generation

    def generation() -> ::Integer

**Returns**

- (::Integer) --- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

### #generation=

    def generation=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
**Returns**

- (::Integer) --- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

### #object

    def object() -> ::String

**Returns**

- (::String) --- Google Cloud Storage object containing the source.

  This object must be a gzipped archive file (`.tar.gz`) containing source to
  build.

### #object=

    def object=(value) -> ::String

**Parameter**

- **value** (::String) --- Google Cloud Storage object containing the source.


  This object must be a gzipped archive file (`.tar.gz`) containing source to
  build.
**Returns**

- (::String) --- Google Cloud Storage object containing the source.

  This object must be a gzipped archive file (`.tar.gz`) containing source to
  build.

### #source_upload_url

    def source_upload_url() -> ::String

**Returns**

- (::String) --- When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

### #source_upload_url=

    def source_upload_url=(value) -> ::String

**Parameter**

- **value** (::String) --- When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
**Returns**

- (::String) --- When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.