Class: Google::Cloud::ApigeeRegistry::V1::Artifact

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb

Overview

Artifacts of resources. Artifacts are unique (single-value) per resource and are used to store metadata that is too large or numerous to be stored directly on the resource. Since artifacts are stored separately from parent resources, they should generally be used for metadata that is needed infrequently, i.e., not for display in primary views of the resource but perhaps displayed or downloaded upon request. The ListArtifacts method allows artifacts to be quickly enumerated and checked for presence without downloading their (potentially-large) contents.

Instance Attribute Summary collapse

Instance Attribute Details

#contents::String

Returns Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.

Returns:

  • (::String)

    Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#create_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. Creation timestamp.

Returns:



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#hash::String (readonly)

Returns Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.

Returns:

  • (::String)

    Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String

Returns A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").

Returns:

  • (::String)

    A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns Resource name.

Returns:

  • (::String)

    Resource name.



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#size_bytes::Integer (readonly)

Returns Output only. The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.

Returns:

  • (::Integer)

    Output only. The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#update_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. Last update timestamp.

Returns:



400
401
402
403
# File 'proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb', line 400

class Artifact
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end