Class: Google::Apis::ArtifactregistryV1::YumArtifact

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 Yum artifact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YumArtifact

Returns a new instance of YumArtifact.



3592
3593
3594
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3592

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

Instance Attribute Details

#architectureString

Output only. Operating system architecture of the artifact. Corresponds to the JSON property architecture

Returns:

  • (String)


3575
3576
3577
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3575

def architecture
  @architecture
end

#nameString

Output only. The Artifact Registry resource name of the artifact. Corresponds to the JSON property name

Returns:

  • (String)


3580
3581
3582
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3580

def name
  @name
end

#package_nameString

Output only. The yum package name of the artifact. Corresponds to the JSON property packageName

Returns:

  • (String)


3585
3586
3587
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3585

def package_name
  @package_name
end

#package_typeString

Output only. An artifact is a binary or source package. Corresponds to the JSON property packageType

Returns:

  • (String)


3590
3591
3592
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3590

def package_type
  @package_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3597
3598
3599
3600
3601
3602
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3597

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