Class: Google::Apis::CloudfunctionsV2beta::SourceProvenance

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v2beta/classes.rb,
lib/google/apis/cloudfunctions_v2beta/representations.rb,
lib/google/apis/cloudfunctions_v2beta/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceProvenance

Returns a new instance of SourceProvenance.



2186
2187
2188
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2186

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

Instance Attribute Details

#git_uriString

A copy of the build's source.git_uri, if exists, with any commits resolved. Corresponds to the JSON property gitUri

Returns:

  • (String)


2174
2175
2176
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2174

def git_uri
  @git_uri
end

#resolved_repo_sourceGoogle::Apis::CloudfunctionsV2beta::RepoSource

Location of the source in a Google Cloud Source Repository. Corresponds to the JSON property resolvedRepoSource



2179
2180
2181
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2179

def resolved_repo_source
  @resolved_repo_source
end

#resolved_storage_sourceGoogle::Apis::CloudfunctionsV2beta::StorageSource

Location of the source in an archive file in Google Cloud Storage. Corresponds to the JSON property resolvedStorageSource



2184
2185
2186
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2184

def resolved_storage_source
  @resolved_storage_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2191
2192
2193
2194
2195
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2191

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