Class: Google::Apis::CloudfunctionsV1beta2::SourceRepository
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV1beta2::SourceRepository
- Defined in:
- generated/google/apis/cloudfunctions_v1beta2/classes.rb,
generated/google/apis/cloudfunctions_v1beta2/representations.rb,
generated/google/apis/cloudfunctions_v1beta2/representations.rb
Overview
Describes the location of the function source in a remote repository.
Instance Attribute Summary collapse
-
#branch ⇒ String
The name of the branch from which the function should be fetched.
-
#deployed_revision ⇒ String
Output only.
-
#repository_url ⇒ String
URL to the hosted repository where the function is defined.
-
#revision ⇒ String
The id of the revision that captures the state of the repository from which the function should be fetched.
-
#source_path ⇒ String
The path within the repository where the function is defined.
-
#tag ⇒ String
The name of the tag that captures the state of the repository from which the function should be fetched.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceRepository
constructor
A new instance of SourceRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceRepository
Returns a new instance of SourceRepository
796 797 798 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 796 def initialize(**args) update!(**args) end |
Instance Attribute Details
#branch ⇒ String
The name of the branch from which the function should be fetched.
Corresponds to the JSON property branch
758 759 760 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 758 def branch @branch end |
#deployed_revision ⇒ String
Output only. The id of the revision that was resolved at the moment of
function creation or update. For example when a user deployed from a
branch, it will be the revision id of the latest change on this branch at
that time. If user deployed from revision then this value will be always
equal to the revision specified by the user.
Corresponds to the JSON property deployedRevision
767 768 769 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 767 def deployed_revision @deployed_revision end |
#repository_url ⇒ String
URL to the hosted repository where the function is defined. Only paths in
https://source.developers.google.com domain are supported. The path should
contain the name of the repository.
Corresponds to the JSON property repositoryUrl
774 775 776 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 774 def repository_url @repository_url end |
#revision ⇒ String
The id of the revision that captures the state of the repository from
which the function should be fetched.
Corresponds to the JSON property revision
780 781 782 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 780 def revision @revision end |
#source_path ⇒ String
The path within the repository where the function is defined. The path
should point to the directory where Cloud Functions files are located. Use
"/" if the function is defined directly in the root directory of a
repository.
Corresponds to the JSON property sourcePath
788 789 790 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 788 def source_path @source_path end |
#tag ⇒ String
The name of the tag that captures the state of the repository from
which the function should be fetched.
Corresponds to the JSON property tag
794 795 796 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 794 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
801 802 803 804 805 806 807 808 |
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 801 def update!(**args) @branch = args[:branch] if args.key?(:branch) @deployed_revision = args[:deployed_revision] if args.key?(:deployed_revision) @repository_url = args[:repository_url] if args.key?(:repository_url) @revision = args[:revision] if args.key?(:revision) @source_path = args[:source_path] if args.key?(:source_path) @tag = args[:tag] if args.key?(:tag) end |