Class: Google::Apis::ArtifactregistryV1beta2::AptArtifact
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta2::AptArtifact
- 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 an Apt artifact. Information in the record is derived from the archive's control file. See https://www.debian.org/doc/debian- policy/ch-controlfields.html
Instance Attribute Summary collapse
-
#architecture ⇒ String
Output only.
-
#component ⇒ String
Output only.
-
#control_file ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#package_name ⇒ String
Output only.
-
#package_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AptArtifact
constructor
A new instance of AptArtifact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AptArtifact
Returns a new instance of AptArtifact.
62 63 64 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 62 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
34 35 36 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 34 def architecture @architecture end |
#component ⇒ String
Output only. Repository component of the artifact.
Corresponds to the JSON property component
39 40 41 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 39 def component @component end |
#control_file ⇒ String
Output only. Contents of the artifact's control metadata file.
Corresponds to the JSON property controlFile
NOTE: Values are automatically base64 encoded/decoded in the client library.
45 46 47 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 45 def control_file @control_file end |
#name ⇒ String
Output only. The Artifact Registry resource name of the artifact.
Corresponds to the JSON property name
50 51 52 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 50 def name @name end |
#package_name ⇒ String
Output only. The Apt package name of the artifact.
Corresponds to the JSON property packageName
55 56 57 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 55 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
60 61 62 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 60 def package_type @package_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
67 68 69 70 71 72 73 74 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 67 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @component = args[:component] if args.key?(:component) @control_file = args[:control_file] if args.key?(:control_file) @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 |