Class: Google::Apis::CloudfunctionsV1beta2::SourceRepository

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceRepository

Returns a new instance of SourceRepository



779
780
781
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 779

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#branchString

The name of the branch from which the function should be fetched. Corresponds to the JSON property branch

Returns:

  • (String)


741
742
743
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 741

def branch
  @branch
end

#deployed_revisionString

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

Returns:

  • (String)


750
751
752
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 750

def deployed_revision
  @deployed_revision
end

#repository_urlString

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

Returns:

  • (String)


757
758
759
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 757

def repository_url
  @repository_url
end

#revisionString

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

Returns:

  • (String)


763
764
765
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 763

def revision
  @revision
end

#source_pathString

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

Returns:

  • (String)


771
772
773
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 771

def source_path
  @source_path
end

#tagString

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

Returns:

  • (String)


777
778
779
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 777

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



784
785
786
787
788
789
790
791
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 784

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