Class: Google::Apis::ArtifactregistryV1beta2::YumArtifact
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta2::YumArtifact
- 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
-
#architecture ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#package_name ⇒ String
Output only.
-
#package_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ YumArtifact
constructor
A new instance of YumArtifact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ YumArtifact
Returns a new instance of YumArtifact.
1398 1399 1400 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1398 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
Output only. Operating system architecture of the artifact.
Corresponds to the JSON property architecture
1381 1382 1383 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1381 def architecture @architecture end |
#name ⇒ String
Output only. The Artifact Registry resource name of the artifact.
Corresponds to the JSON property name
1386 1387 1388 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1386 def name @name end |
#package_name ⇒ String
Output only. The yum package name of the artifact.
Corresponds to the JSON property packageName
1391 1392 1393 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1391 def package_name @package_name end |
#package_type ⇒ String
Output only. An artifact is a binary or source package.
Corresponds to the JSON property packageType
1396 1397 1398 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1396 def package_type @package_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1403 1404 1405 1406 1407 1408 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 1403 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 |