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.



1463
1464
1465
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1463

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)


1455
1456
1457
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1455

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)


1461
1462
1463
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1461

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1468
1469
1470
1471
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1468

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