Class: OCI::Wlms::Models::ResourceInventory
- Inherits:
-
Object
- Object
- OCI::Wlms::Models::ResourceInventory
- Defined in:
- lib/oci/wlms/models/resource_inventory.rb
Overview
The inventory of WebLogic domains and managed instances in the selected compartment.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies.
Instance Attribute Summary collapse
-
#managed_instance_count ⇒ Integer
[Required] The number of managed instances in the selected compartment.
-
#managed_instance_with_patch_readiness_error_count ⇒ Integer
The number of managed instance that have WebLogic domains with errors in the patch readiness check.
-
#managed_instance_with_patch_readiness_warning_count ⇒ Integer
The number of managed instance that have WebLogic domains with warnings in the patch readiness check.
-
#wls_domain_count ⇒ Integer
[Required] The number of WebLogic domains discovered in the selected compartment.
-
#wls_domain_not_in_latest_patch_count ⇒ Integer
The number of WebLogic domains that are not in the latest patch.
-
#wls_domain_with_patch_readiness_error_count ⇒ Integer
The number of WebLogic domains that have errors in the patch readiness check.
-
#wls_domain_with_patch_readiness_warning_count ⇒ Integer
The number of WebLogic domains that have warnings in the patch readiness check.
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 = {}) ⇒ ResourceInventory
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 = {}) ⇒ ResourceInventory
Initializes the object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 87 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.wls_domain_count = attributes[:'wlsDomainCount'] if attributes[:'wlsDomainCount'] raise 'You cannot provide both :wlsDomainCount and :wls_domain_count' if attributes.key?(:'wlsDomainCount') && attributes.key?(:'wls_domain_count') self.wls_domain_count = attributes[:'wls_domain_count'] if attributes[:'wls_domain_count'] self.wls_domain_not_in_latest_patch_count = attributes[:'wlsDomainNotInLatestPatchCount'] if attributes[:'wlsDomainNotInLatestPatchCount'] raise 'You cannot provide both :wlsDomainNotInLatestPatchCount and :wls_domain_not_in_latest_patch_count' if attributes.key?(:'wlsDomainNotInLatestPatchCount') && attributes.key?(:'wls_domain_not_in_latest_patch_count') self.wls_domain_not_in_latest_patch_count = attributes[:'wls_domain_not_in_latest_patch_count'] if attributes[:'wls_domain_not_in_latest_patch_count'] self.wls_domain_with_patch_readiness_warning_count = attributes[:'wlsDomainWithPatchReadinessWarningCount'] if attributes[:'wlsDomainWithPatchReadinessWarningCount'] raise 'You cannot provide both :wlsDomainWithPatchReadinessWarningCount and :wls_domain_with_patch_readiness_warning_count' if attributes.key?(:'wlsDomainWithPatchReadinessWarningCount') && attributes.key?(:'wls_domain_with_patch_readiness_warning_count') self.wls_domain_with_patch_readiness_warning_count = attributes[:'wls_domain_with_patch_readiness_warning_count'] if attributes[:'wls_domain_with_patch_readiness_warning_count'] self.wls_domain_with_patch_readiness_error_count = attributes[:'wlsDomainWithPatchReadinessErrorCount'] if attributes[:'wlsDomainWithPatchReadinessErrorCount'] raise 'You cannot provide both :wlsDomainWithPatchReadinessErrorCount and :wls_domain_with_patch_readiness_error_count' if attributes.key?(:'wlsDomainWithPatchReadinessErrorCount') && attributes.key?(:'wls_domain_with_patch_readiness_error_count') self.wls_domain_with_patch_readiness_error_count = attributes[:'wls_domain_with_patch_readiness_error_count'] if attributes[:'wls_domain_with_patch_readiness_error_count'] self.managed_instance_count = attributes[:'managedInstanceCount'] if attributes[:'managedInstanceCount'] raise 'You cannot provide both :managedInstanceCount and :managed_instance_count' if attributes.key?(:'managedInstanceCount') && attributes.key?(:'managed_instance_count') self.managed_instance_count = attributes[:'managed_instance_count'] if attributes[:'managed_instance_count'] self.managed_instance_with_patch_readiness_warning_count = attributes[:'managedInstanceWithPatchReadinessWarningCount'] if attributes[:'managedInstanceWithPatchReadinessWarningCount'] raise 'You cannot provide both :managedInstanceWithPatchReadinessWarningCount and :managed_instance_with_patch_readiness_warning_count' if attributes.key?(:'managedInstanceWithPatchReadinessWarningCount') && attributes.key?(:'managed_instance_with_patch_readiness_warning_count') self.managed_instance_with_patch_readiness_warning_count = attributes[:'managed_instance_with_patch_readiness_warning_count'] if attributes[:'managed_instance_with_patch_readiness_warning_count'] self.managed_instance_with_patch_readiness_error_count = attributes[:'managedInstanceWithPatchReadinessErrorCount'] if attributes[:'managedInstanceWithPatchReadinessErrorCount'] raise 'You cannot provide both :managedInstanceWithPatchReadinessErrorCount and :managed_instance_with_patch_readiness_error_count' if attributes.key?(:'managedInstanceWithPatchReadinessErrorCount') && attributes.key?(:'managed_instance_with_patch_readiness_error_count') self.managed_instance_with_patch_readiness_error_count = attributes[:'managed_instance_with_patch_readiness_error_count'] if attributes[:'managed_instance_with_patch_readiness_error_count'] end |
Instance Attribute Details
#managed_instance_count ⇒ Integer
[Required] The number of managed instances in the selected compartment.
34 35 36 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 34 def managed_instance_count @managed_instance_count end |
#managed_instance_with_patch_readiness_error_count ⇒ Integer
The number of managed instance that have WebLogic domains with errors in the patch readiness check.
42 43 44 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 42 def managed_instance_with_patch_readiness_error_count @managed_instance_with_patch_readiness_error_count end |
#managed_instance_with_patch_readiness_warning_count ⇒ Integer
The number of managed instance that have WebLogic domains with warnings in the patch readiness check.
38 39 40 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 38 def managed_instance_with_patch_readiness_warning_count @managed_instance_with_patch_readiness_warning_count end |
#wls_domain_count ⇒ Integer
[Required] The number of WebLogic domains discovered in the selected compartment.
18 19 20 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 18 def wls_domain_count @wls_domain_count end |
#wls_domain_not_in_latest_patch_count ⇒ Integer
The number of WebLogic domains that are not in the latest patch.
22 23 24 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 22 def wls_domain_not_in_latest_patch_count @wls_domain_not_in_latest_patch_count end |
#wls_domain_with_patch_readiness_error_count ⇒ Integer
The number of WebLogic domains that have errors in the patch readiness check.
30 31 32 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 30 def wls_domain_with_patch_readiness_error_count @wls_domain_with_patch_readiness_error_count end |
#wls_domain_with_patch_readiness_warning_count ⇒ Integer
The number of WebLogic domains that have warnings in the patch readiness check.
26 27 28 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 26 def wls_domain_with_patch_readiness_warning_count @wls_domain_with_patch_readiness_warning_count end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 45 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'wls_domain_count': :'wlsDomainCount', 'wls_domain_not_in_latest_patch_count': :'wlsDomainNotInLatestPatchCount', 'wls_domain_with_patch_readiness_warning_count': :'wlsDomainWithPatchReadinessWarningCount', 'wls_domain_with_patch_readiness_error_count': :'wlsDomainWithPatchReadinessErrorCount', 'managed_instance_count': :'managedInstanceCount', 'managed_instance_with_patch_readiness_warning_count': :'managedInstanceWithPatchReadinessWarningCount', 'managed_instance_with_patch_readiness_error_count': :'managedInstanceWithPatchReadinessErrorCount' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 60 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'wls_domain_count': :'Integer', 'wls_domain_not_in_latest_patch_count': :'Integer', 'wls_domain_with_patch_readiness_warning_count': :'Integer', 'wls_domain_with_patch_readiness_error_count': :'Integer', 'managed_instance_count': :'Integer', 'managed_instance_with_patch_readiness_warning_count': :'Integer', 'managed_instance_with_patch_readiness_error_count': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 143 def ==(other) return true if equal?(other) self.class == other.class && wls_domain_count == other.wls_domain_count && wls_domain_not_in_latest_patch_count == other.wls_domain_not_in_latest_patch_count && wls_domain_with_patch_readiness_warning_count == other.wls_domain_with_patch_readiness_warning_count && wls_domain_with_patch_readiness_error_count == other.wls_domain_with_patch_readiness_error_count && managed_instance_count == other.managed_instance_count && managed_instance_with_patch_readiness_warning_count == other.managed_instance_with_patch_readiness_warning_count && managed_instance_with_patch_readiness_error_count == other.managed_instance_with_patch_readiness_error_count end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 179 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
159 160 161 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 159 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
168 169 170 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 168 def hash [wls_domain_count, wls_domain_not_in_latest_patch_count, wls_domain_with_patch_readiness_warning_count, wls_domain_with_patch_readiness_error_count, managed_instance_count, managed_instance_with_patch_readiness_warning_count, managed_instance_with_patch_readiness_error_count].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
212 213 214 215 216 217 218 219 220 221 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 212 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
206 207 208 |
# File 'lib/oci/wlms/models/resource_inventory.rb', line 206 def to_s to_hash.to_s end |