Class: Google::Apis::ArtifactregistryV1beta2::YumArtifact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1beta2/classes.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb,
lib/google/apis/artifactregistry_v1beta2/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.



1352
1353
1354
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1352

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)


1335
1336
1337
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1335

def architecture
  @architecture
end

#nameString

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

Returns:

  • (String)


1340
1341
1342
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1340

def name
  @name
end

#package_nameString

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

Returns:

  • (String)


1345
1346
1347
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1345

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)


1350
1351
1352
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1350

def package_type
  @package_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1357
1358
1359
1360
1361
1362
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1357

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