Class: Google::Cloud::Build::V1::StorageSource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

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

Defined Under Namespace

Modules: SourceFetcher

Instance Attribute Summary collapse

Instance Attribute Details

#bucket::String

Returns Cloud Storage bucket containing the source (see Bucket Name Requirements).

Returns:



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 79

class StorageSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the tool to fetch the source file for the build.
  module SourceFetcher
    # Unspecified. Defaults to GSUTIL.
    SOURCE_FETCHER_UNSPECIFIED = 0

    # Use the "gsutil" tool to download the source file.
    GSUTIL = 1

    # Use the Cloud Storage Fetcher tool to download the source file.
    GCS_FETCHER = 2
  end
end

#generation::Integer

Returns Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Returns:

  • (::Integer)

    Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 79

class StorageSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the tool to fetch the source file for the build.
  module SourceFetcher
    # Unspecified. Defaults to GSUTIL.
    SOURCE_FETCHER_UNSPECIFIED = 0

    # Use the "gsutil" tool to download the source file.
    GSUTIL = 1

    # Use the Cloud Storage Fetcher tool to download the source file.
    GCS_FETCHER = 2
  end
end

#object::String

Returns Cloud Storage object containing the source.

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

Returns:

  • (::String)

    Cloud Storage object containing the source.

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



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 79

class StorageSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the tool to fetch the source file for the build.
  module SourceFetcher
    # Unspecified. Defaults to GSUTIL.
    SOURCE_FETCHER_UNSPECIFIED = 0

    # Use the "gsutil" tool to download the source file.
    GSUTIL = 1

    # Use the Cloud Storage Fetcher tool to download the source file.
    GCS_FETCHER = 2
  end
end

#source_fetcher::Google::Cloud::Build::V1::StorageSource::SourceFetcher

Returns Option to specify the tool to fetch the source file for the build.

Returns:



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 79

class StorageSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the tool to fetch the source file for the build.
  module SourceFetcher
    # Unspecified. Defaults to GSUTIL.
    SOURCE_FETCHER_UNSPECIFIED = 0

    # Use the "gsutil" tool to download the source file.
    GSUTIL = 1

    # Use the Cloud Storage Fetcher tool to download the source file.
    GCS_FETCHER = 2
  end
end