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

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.



3068
3069
3070
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3068

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


3061
3062
3063
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3061

def description
  @description
end

#tagsArray<String>

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

Returns:

  • (Array<String>)


3066
3067
3068
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3066

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3073
3074
3075
3076
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3073

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