Class: Google::Apis::ArtifactregistryV1beta2::AptArtifact

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 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

Instance Method Summary collapse

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

#architectureString

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

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 34

def architecture
  @architecture
end

#componentString

Output only. Repository component of the artifact. Corresponds to the JSON property component

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 39

def component
  @component
end

#control_fileString

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.

Returns:

  • (String)


45
46
47
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 45

def control_file
  @control_file
end

#nameString

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

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 50

def name
  @name
end

#package_nameString

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

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 55

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)


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