class Google::Apis::CloudfunctionsV1::SourceRepository

Describes SourceRepository, used to represent parameters related to source repository where a function is hosted.

Attributes

deployed_url[RW]

Output only. The URL pointing to the hosted repository where the function were defined at the time of deployment. It always points to a specific commit in the format described above. Corresponds to the JSON property `deployedUrl` @return [String]

url[RW]

The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats: To refer to a specific commit: `source.developers.google.com/projects//repos// revisions//paths/` To refer to a moveable alias (branch): `source. developers.google.com/projects//repos//moveable-aliases//paths/` In particular, to refer to HEAD use `master` moveable alias. To refer to a specific fixed alias (tag): `source.developers.google.com/projects/*/ repos//fixed-aliases//paths/*` You may omit `paths/*` if you want to use the main directory. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudfunctions_v1/classes.rb, line 1305
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudfunctions_v1/classes.rb, line 1310
def update!(**args)
  @deployed_url = args[:deployed_url] if args.key?(:deployed_url)
  @url = args[:url] if args.key?(:url)
end