Class: Google::Apis::ArtifactregistryV1::KfpArtifact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb

Overview

A detailed representation of a KFP artifact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KfpArtifact

Returns a new instance of KfpArtifact.



1023
1024
1025
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1023

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

Instance Attribute Details

#nameString

Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...". Corresponds to the JSON property name

Returns:

  • (String)


1015
1016
1017
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1015

def name
  @name
end

#versionString

The version associated with the KFP artifact. Must follow the Semantic Versioning standard. Corresponds to the JSON property version

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1021

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1028

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