Class: Google::Apis::CloudfunctionsV2alpha::SourceProvenance
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2alpha::SourceProvenance
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudfunctions_v2alpha/classes.rb,
lib/google/apis/cloudfunctions_v2alpha/representations.rb,
lib/google/apis/cloudfunctions_v2alpha/representations.rb
Overview
Provenance of the source. Ways to find the original source, or verify that some source was used for this build.
Instance Attribute Summary collapse
-
#git_uri ⇒ String
A copy of the build's
source.git_uri
, if exists, with any commits resolved. -
#resolved_repo_source ⇒ Google::Apis::CloudfunctionsV2alpha::RepoSource
Location of the source in a Google Cloud Source Repository.
-
#resolved_storage_source ⇒ Google::Apis::CloudfunctionsV2alpha::StorageSource
Location of the source in an archive file in Google Cloud Storage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceProvenance
constructor
A new instance of SourceProvenance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceProvenance
Returns a new instance of SourceProvenance.
2274 2275 2276 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2274 def initialize(**args) update!(**args) end |
Instance Attribute Details
#git_uri ⇒ String
A copy of the build's source.git_uri
, if exists, with any commits resolved.
Corresponds to the JSON property gitUri
2262 2263 2264 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2262 def git_uri @git_uri end |
#resolved_repo_source ⇒ Google::Apis::CloudfunctionsV2alpha::RepoSource
Location of the source in a Google Cloud Source Repository.
Corresponds to the JSON property resolvedRepoSource
2267 2268 2269 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2267 def resolved_repo_source @resolved_repo_source end |
#resolved_storage_source ⇒ Google::Apis::CloudfunctionsV2alpha::StorageSource
Location of the source in an archive file in Google Cloud Storage.
Corresponds to the JSON property resolvedStorageSource
2272 2273 2274 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2272 def resolved_storage_source @resolved_storage_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2279 2280 2281 2282 2283 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2279 def update!(**args) @git_uri = args[:git_uri] if args.key?(:git_uri) @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source) @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source) end |