Class: Google::Apis::CloudfunctionsV1::SourceRepository
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudfunctionsV1::SourceRepository
 
- Defined in:
- generated/google/apis/cloudfunctions_v1/classes.rb,
 generated/google/apis/cloudfunctions_v1/representations.rb,
 generated/google/apis/cloudfunctions_v1/representations.rb
Overview
Describes SourceRepository, used to represent parameters related to source repository where a function is hosted.
Instance Attribute Summary collapse
- 
  
    
      #deployed_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL pointing to the hosted repository where the function is defined. 
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
| 745 746 747 | # File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 745 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#deployed_url ⇒ String
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
| 726 727 728 | # File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 726 def deployed_url @deployed_url end | 
#url ⇒ String
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:
https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*
To refer to a moveable alias (branch):
https://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):
https://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
| 743 744 745 | # File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 743 def url @url end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 750 751 752 753 | # File 'generated/google/apis/cloudfunctions_v1/classes.rb', line 750 def update!(**args) @deployed_url = args[:deployed_url] if args.key?(:deployed_url) @url = args[:url] if args.key?(:url) end |