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.



883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 883

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



883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 883

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 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