Class: Google::Apis::AppengineV1beta4::SourceReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/appengine_v1beta4/classes.rb,
generated/google/apis/appengine_v1beta4/representations.rb,
generated/google/apis/appengine_v1beta4/representations.rb

Overview

A reference to a particular snapshot of the source tree used to build and deploy the application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceReference

Returns a new instance of SourceReference.



1172
1173
1174
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1172

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

Instance Attribute Details

#repositoryString

Optional. A URI string identifying the repository. Example: "https://source. developers.google.com/p/app-123/r/default" Corresponds to the JSON property repository

Returns:

  • (String)


1163
1164
1165
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1163

def repository
  @repository
end

#revision_idString

The canonical (and persistent) identifier of the deployed revision, i.e. any kind of aliases including tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" Corresponds to the JSON property revisionId

Returns:

  • (String)


1170
1171
1172
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1170

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1177
1178
1179
1180
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1177

def update!(**args)
  @repository = args[:repository] if args.key?(:repository)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end