Class StorageSource (3.24.0)

StorageSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
bucket str
Cloud Storage bucket containing the source (see `Bucket Name Requirements
object_ str
Cloud Storage object containing the source. This object must be a zipped (.zip) or gzipped archive file (.tar.gz) containing source to build.
generation int
Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
source_fetcher google.cloud.devtools.cloudbuild_v1.types.StorageSource.SourceFetcher
Option to specify the tool to fetch the source file for the build.

Classes

SourceFetcher

SourceFetcher(value)

Specifies the tool to fetch the source file for the build.

Values: SOURCE_FETCHER_UNSPECIFIED (0): Unspecified. Defaults to GSUTIL. GSUTIL (1): Use the "gsutil" tool to download the source file. GCS_FETCHER (2): Use the Cloud Storage Fetcher tool to download the source file.