Class: Google::Cloud::Build::V1::Dependency

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

Overview

A dependency that the Cloud Build worker will fetch before executing user steps.

Defined Under Namespace

Classes: GitSourceDependency, GitSourceRepository

Instance Attribute Summary collapse

Instance Attribute Details

#empty::Boolean

Returns If set to true disable all dependency fetching (ignoring the default source as well).

Note: The following fields are mutually exclusive: empty, git_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    If set to true disable all dependency fetching (ignoring the default source as well).

    Note: The following fields are mutually exclusive: empty, git_source. If a field in that set is populated, all other fields in the set will automatically be cleared.



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 808

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

  # Represents a git repository as a build dependency.
  # @!attribute [rw] repository
  #   @return [::Google::Cloud::Build::V1::Dependency::GitSourceRepository]
  #     Required. The kind of repo (url or dev connect).
  # @!attribute [rw] revision
  #   @return [::String]
  #     Required. The revision that we will fetch the repo at.
  # @!attribute [rw] recurse_submodules
  #   @return [::Boolean]
  #     Optional. True if submodules should be fetched too (default false).
  # @!attribute [rw] depth
  #   @return [::Integer]
  #     Optional. How much history should be fetched for the build (default 1, -1
  #     for all history).
  # @!attribute [rw] dest_path
  #   @return [::String]
  #     Required. Where should the files be placed on the worker.
  class GitSourceDependency
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A repository for a git source.
  # @!attribute [rw] url
  #   @return [::String]
  #     Location of the Git repository.
  #
  #     Note: The following fields are mutually exclusive: `url`, `developer_connect`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] developer_connect
  #   @return [::String]
  #     The Developer Connect Git repository link or the url that matches a
  #     repository link in the current project, formatted as
  #     `projects/*/locations/*/connections/*/gitRepositoryLink/*`
  #
  #     Note: The following fields are mutually exclusive: `developer_connect`, `url`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class GitSourceRepository
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#git_source::Google::Cloud::Build::V1::Dependency::GitSourceDependency

Returns Represents a git repository as a build dependency.

Note: The following fields are mutually exclusive: git_source, empty. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 808

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

  # Represents a git repository as a build dependency.
  # @!attribute [rw] repository
  #   @return [::Google::Cloud::Build::V1::Dependency::GitSourceRepository]
  #     Required. The kind of repo (url or dev connect).
  # @!attribute [rw] revision
  #   @return [::String]
  #     Required. The revision that we will fetch the repo at.
  # @!attribute [rw] recurse_submodules
  #   @return [::Boolean]
  #     Optional. True if submodules should be fetched too (default false).
  # @!attribute [rw] depth
  #   @return [::Integer]
  #     Optional. How much history should be fetched for the build (default 1, -1
  #     for all history).
  # @!attribute [rw] dest_path
  #   @return [::String]
  #     Required. Where should the files be placed on the worker.
  class GitSourceDependency
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A repository for a git source.
  # @!attribute [rw] url
  #   @return [::String]
  #     Location of the Git repository.
  #
  #     Note: The following fields are mutually exclusive: `url`, `developer_connect`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] developer_connect
  #   @return [::String]
  #     The Developer Connect Git repository link or the url that matches a
  #     repository link in the current project, formatted as
  #     `projects/*/locations/*/connections/*/gitRepositoryLink/*`
  #
  #     Note: The following fields are mutually exclusive: `developer_connect`, `url`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class GitSourceRepository
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end