Class: OCI::Jms::Models::AgentInstallerSummary
- Inherits:
-
Object
- Object
- OCI::Jms::Models::AgentInstallerSummary
- Defined in:
- lib/oci/jms/models/agent_installer_summary.rb
Overview
Supported agent installer downloads.
Constant Summary collapse
- OS_FAMILY_ENUM =
[ OS_FAMILY_LINUX = 'LINUX'.freeze, OS_FAMILY_WINDOWS = 'WINDOWS'.freeze, OS_FAMILY_MACOS = 'MACOS'.freeze, OS_FAMILY_UNKNOWN = 'UNKNOWN'.freeze, OS_FAMILY_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PLATFORM_ARCHITECTURE_ENUM =
[ PLATFORM_ARCHITECTURE_X86_64 = 'X86_64'.freeze, PLATFORM_ARCHITECTURE_X86 = 'X86'.freeze, PLATFORM_ARCHITECTURE_AARCH64 = 'AARCH64'.freeze, PLATFORM_ARCHITECTURE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PACKAGE_TYPE_ENUM =
[ PACKAGE_TYPE_RPM = 'RPM'.freeze, PACKAGE_TYPE_ZIP = 'ZIP'.freeze, PACKAGE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#agent_installer_description ⇒ String
[Required] Description of the agent installer artifact.
-
#agent_installer_id ⇒ Integer
[Required] Unique identifier for the agent installer.
-
#agent_installer_version ⇒ String
[Required] Agent installer version.
-
#agent_version ⇒ String
[Required] Agent image version.
-
#approximate_file_size_in_bytes ⇒ Integer
[Required] Approximate compressed file size in bytes.
-
#java_version ⇒ String
[Required] Java version.
-
#os_family ⇒ String
[Required] The target operating system family for the agent installer.
-
#package_type ⇒ String
[Required] The package type (typically the file extension) of the agent software included in the installer.
-
#platform_architecture ⇒ String
[Required] The target operating system architecture for the installer.
-
#sha256 ⇒ String
[Required] SHA256 checksum of the agent installer.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ AgentInstallerSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ AgentInstallerSummary
Initializes the object
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 126 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.agent_installer_id = attributes[:'agentInstallerId'] if attributes[:'agentInstallerId'] raise 'You cannot provide both :agentInstallerId and :agent_installer_id' if attributes.key?(:'agentInstallerId') && attributes.key?(:'agent_installer_id') self.agent_installer_id = attributes[:'agent_installer_id'] if attributes[:'agent_installer_id'] self.agent_installer_description = attributes[:'agentInstallerDescription'] if attributes[:'agentInstallerDescription'] raise 'You cannot provide both :agentInstallerDescription and :agent_installer_description' if attributes.key?(:'agentInstallerDescription') && attributes.key?(:'agent_installer_description') self.agent_installer_description = attributes[:'agent_installer_description'] if attributes[:'agent_installer_description'] self.approximate_file_size_in_bytes = attributes[:'approximateFileSizeInBytes'] if attributes[:'approximateFileSizeInBytes'] raise 'You cannot provide both :approximateFileSizeInBytes and :approximate_file_size_in_bytes' if attributes.key?(:'approximateFileSizeInBytes') && attributes.key?(:'approximate_file_size_in_bytes') self.approximate_file_size_in_bytes = attributes[:'approximate_file_size_in_bytes'] if attributes[:'approximate_file_size_in_bytes'] self.sha256 = attributes[:'sha256'] if attributes[:'sha256'] self.os_family = attributes[:'osFamily'] if attributes[:'osFamily'] raise 'You cannot provide both :osFamily and :os_family' if attributes.key?(:'osFamily') && attributes.key?(:'os_family') self.os_family = attributes[:'os_family'] if attributes[:'os_family'] self.platform_architecture = attributes[:'platformArchitecture'] if attributes[:'platformArchitecture'] raise 'You cannot provide both :platformArchitecture and :platform_architecture' if attributes.key?(:'platformArchitecture') && attributes.key?(:'platform_architecture') self.platform_architecture = attributes[:'platform_architecture'] if attributes[:'platform_architecture'] self.package_type = attributes[:'packageType'] if attributes[:'packageType'] raise 'You cannot provide both :packageType and :package_type' if attributes.key?(:'packageType') && attributes.key?(:'package_type') self.package_type = attributes[:'package_type'] if attributes[:'package_type'] self.agent_version = attributes[:'agentVersion'] if attributes[:'agentVersion'] raise 'You cannot provide both :agentVersion and :agent_version' if attributes.key?(:'agentVersion') && attributes.key?(:'agent_version') self.agent_version = attributes[:'agent_version'] if attributes[:'agent_version'] self.java_version = attributes[:'javaVersion'] if attributes[:'javaVersion'] raise 'You cannot provide both :javaVersion and :java_version' if attributes.key?(:'javaVersion') && attributes.key?(:'java_version') self.java_version = attributes[:'java_version'] if attributes[:'java_version'] self.agent_installer_version = attributes[:'agentInstallerVersion'] if attributes[:'agentInstallerVersion'] raise 'You cannot provide both :agentInstallerVersion and :agent_installer_version' if attributes.key?(:'agentInstallerVersion') && attributes.key?(:'agent_installer_version') self.agent_installer_version = attributes[:'agent_installer_version'] if attributes[:'agent_installer_version'] end |
Instance Attribute Details
#agent_installer_description ⇒ String
[Required] Description of the agent installer artifact. The description typically includes the OS, architecture, and agent installer type.
40 41 42 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 40 def agent_installer_description @agent_installer_description end |
#agent_installer_id ⇒ Integer
[Required] Unique identifier for the agent installer.
36 37 38 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 36 def agent_installer_id @agent_installer_id end |
#agent_installer_version ⇒ String
[Required] Agent installer version.
72 73 74 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 72 def agent_installer_version @agent_installer_version end |
#agent_version ⇒ String
[Required] Agent image version.
64 65 66 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 64 def agent_version @agent_version end |
#approximate_file_size_in_bytes ⇒ Integer
[Required] Approximate compressed file size in bytes.
44 45 46 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 44 def approximate_file_size_in_bytes @approximate_file_size_in_bytes end |
#java_version ⇒ String
[Required] Java version.
68 69 70 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 68 def java_version @java_version end |
#os_family ⇒ String
[Required] The target operating system family for the agent installer.
52 53 54 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 52 def os_family @os_family end |
#package_type ⇒ String
[Required] The package type (typically the file extension) of the agent software included in the installer.
60 61 62 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 60 def package_type @package_type end |
#platform_architecture ⇒ String
[Required] The target operating system architecture for the installer.
56 57 58 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 56 def platform_architecture @platform_architecture end |
#sha256 ⇒ String
[Required] SHA256 checksum of the agent installer.
48 49 50 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 48 def sha256 @sha256 end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 75 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'agent_installer_id': :'agentInstallerId', 'agent_installer_description': :'agentInstallerDescription', 'approximate_file_size_in_bytes': :'approximateFileSizeInBytes', 'sha256': :'sha256', 'os_family': :'osFamily', 'platform_architecture': :'platformArchitecture', 'package_type': :'packageType', 'agent_version': :'agentVersion', 'java_version': :'javaVersion', 'agent_installer_version': :'agentInstallerVersion' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 93 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'agent_installer_id': :'Integer', 'agent_installer_description': :'String', 'approximate_file_size_in_bytes': :'Integer', 'sha256': :'String', 'os_family': :'String', 'platform_architecture': :'String', 'package_type': :'String', 'agent_version': :'String', 'java_version': :'String', 'agent_installer_version': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 235 def ==(other) return true if equal?(other) self.class == other.class && agent_installer_id == other.agent_installer_id && agent_installer_description == other.agent_installer_description && approximate_file_size_in_bytes == other.approximate_file_size_in_bytes && sha256 == other.sha256 && os_family == other.os_family && platform_architecture == other.platform_architecture && package_type == other.package_type && agent_version == other.agent_version && java_version == other.java_version && agent_installer_version == other.agent_installer_version end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 274 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
254 255 256 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 254 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
263 264 265 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 263 def hash [agent_installer_id, agent_installer_description, approximate_file_size_in_bytes, sha256, os_family, platform_architecture, package_type, agent_version, java_version, agent_installer_version].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
307 308 309 310 311 312 313 314 315 316 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 307 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
301 302 303 |
# File 'lib/oci/jms/models/agent_installer_summary.rb', line 301 def to_s to_hash.to_s end |