Class: Google::Apis::ArtifactregistryV1::UploadKfpArtifactRequest

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
more...

Overview

The request to upload an artifact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UploadKfpArtifactRequest

Returns a new instance of UploadKfpArtifactRequest.

[View source]

2793
2794
2795
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2793

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

Instance Attribute Details

#descriptionString

Description of the package version. Corresponds to the JSON property description

Returns:

  • (String)

2786
2787
2788
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2786

def description
  @description
end

#tagsArray<String>

Tags to be created with the version. Corresponds to the JSON property tags

Returns:

  • (Array<String>)

2791
2792
2793
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2791

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

2798
2799
2800
2801
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2798

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