Grafeas V1 API - Class Grafeas::V1::Source (v1.1.0)

Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::Source.

Source describes the location of the source used for the build.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#additional_contexts

def additional_contexts() -> ::Array<::Grafeas::V1::SourceContext>
Returns
  • (::Array<::Grafeas::V1::SourceContext>) — If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.

#additional_contexts=

def additional_contexts=(value) -> ::Array<::Grafeas::V1::SourceContext>
Parameter
  • value (::Array<::Grafeas::V1::SourceContext>) — If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
Returns
  • (::Array<::Grafeas::V1::SourceContext>) — If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.

#artifact_storage_source_uri

def artifact_storage_source_uri() -> ::String
Returns
  • (::String) — If provided, the input binary artifacts for the build came from this location.

#artifact_storage_source_uri=

def artifact_storage_source_uri=(value) -> ::String
Parameter
  • value (::String) — If provided, the input binary artifacts for the build came from this location.
Returns
  • (::String) — If provided, the input binary artifacts for the build came from this location.

#context

def context() -> ::Grafeas::V1::SourceContext
Returns

#context=

def context=(value) -> ::Grafeas::V1::SourceContext
Parameter
Returns

#file_hashes

def file_hashes() -> ::Google::Protobuf::Map{::String => ::Grafeas::V1::FileHashes}
Returns
  • (::Google::Protobuf::Map{::String => ::Grafeas::V1::FileHashes}) — Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.

    The keys to this map are file paths used as build source and the values contain the hash values for those files.

    If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.

#file_hashes=

def file_hashes=(value) -> ::Google::Protobuf::Map{::String => ::Grafeas::V1::FileHashes}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Grafeas::V1::FileHashes}) — Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.

    The keys to this map are file paths used as build source and the values contain the hash values for those files.

    If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.

Returns
  • (::Google::Protobuf::Map{::String => ::Grafeas::V1::FileHashes}) — Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.

    The keys to this map are file paths used as build source and the values contain the hash values for those files.

    If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.