Class: OCI::FusionApps::Models::FusionEnvironmentSummary
- Inherits:
-
Object
- Object
- OCI::FusionApps::Models::FusionEnvironmentSummary
- Defined in:
- lib/oci/fusion_apps/models/fusion_environment_summary.rb
Overview
Summary of the internal FA Environment.
Instance Attribute Summary collapse
-
#additional_language_packs ⇒ Array<String>
Language packs.
-
#applied_patch_bundles ⇒ Array<String>
Patch bundle names.
-
#compartment_id ⇒ String
[Required] Compartment Identifier.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#display_name ⇒ String
[Required] FusionEnvironment Identifier, can be renamed.
-
#dns_prefix ⇒ String
DNS prefix.
-
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope.
-
#fusion_environment_family_id ⇒ String
FusionEnvironmentFamily Identifier.
-
#fusion_environment_type ⇒ String
[Required] Type of the FusionEnvironment.
-
#id ⇒ String
[Required] Unique identifier that is immutable on creation.
-
#is_break_glass_enabled ⇒ BOOLEAN
If it's true, then the Break Glass feature is enabled.
-
#is_i_pv6_dual_stack_enabled ⇒ BOOLEAN
Enable IPv4/IPv6 dual stack support for the environment (where available).
-
#lifecycle_details ⇒ String
A message describing the current state in more detail.
-
#lifecycle_state ⇒ String
[Required] The current state of the FusionEnvironment.
-
#lockbox_id ⇒ String
The lockbox Id of this fusion environment.
- #maintenance_policy ⇒ OCI::FusionApps::Models::GetMaintenancePolicyDetails
-
#public_url ⇒ String
Public URL.
-
#subscription_ids ⇒ Array<String>
List of subscription IDs.
-
#time_created ⇒ DateTime
The time the the FusionEnvironment was created.
-
#time_upcoming_maintenance ⇒ DateTime
The next maintenance for this environment.
-
#time_updated ⇒ DateTime
The time the FusionEnvironment was updated.
-
#version ⇒ String
Version of Fusion Apps used by this environment.
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 = {}) ⇒ FusionEnvironmentSummary
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 = {}) ⇒ FusionEnvironmentSummary
Initializes the object
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 190 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.id = attributes[:'id'] if attributes[:'id'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.time_upcoming_maintenance = attributes[:'timeUpcomingMaintenance'] if attributes[:'timeUpcomingMaintenance'] raise 'You cannot provide both :timeUpcomingMaintenance and :time_upcoming_maintenance' if attributes.key?(:'timeUpcomingMaintenance') && attributes.key?(:'time_upcoming_maintenance') self.time_upcoming_maintenance = attributes[:'time_upcoming_maintenance'] if attributes[:'time_upcoming_maintenance'] self.maintenance_policy = attributes[:'maintenancePolicy'] if attributes[:'maintenancePolicy'] raise 'You cannot provide both :maintenancePolicy and :maintenance_policy' if attributes.key?(:'maintenancePolicy') && attributes.key?(:'maintenance_policy') self.maintenance_policy = attributes[:'maintenance_policy'] if attributes[:'maintenance_policy'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.fusion_environment_family_id = attributes[:'fusionEnvironmentFamilyId'] if attributes[:'fusionEnvironmentFamilyId'] raise 'You cannot provide both :fusionEnvironmentFamilyId and :fusion_environment_family_id' if attributes.key?(:'fusionEnvironmentFamilyId') && attributes.key?(:'fusion_environment_family_id') self.fusion_environment_family_id = attributes[:'fusion_environment_family_id'] if attributes[:'fusion_environment_family_id'] self.subscription_ids = attributes[:'subscriptionIds'] if attributes[:'subscriptionIds'] raise 'You cannot provide both :subscriptionIds and :subscription_ids' if attributes.key?(:'subscriptionIds') && attributes.key?(:'subscription_ids') self.subscription_ids = attributes[:'subscription_ids'] if attributes[:'subscription_ids'] self.applied_patch_bundles = attributes[:'appliedPatchBundles'] if attributes[:'appliedPatchBundles'] raise 'You cannot provide both :appliedPatchBundles and :applied_patch_bundles' if attributes.key?(:'appliedPatchBundles') && attributes.key?(:'applied_patch_bundles') self.applied_patch_bundles = attributes[:'applied_patch_bundles'] if attributes[:'applied_patch_bundles'] self.fusion_environment_type = attributes[:'fusionEnvironmentType'] if attributes[:'fusionEnvironmentType'] raise 'You cannot provide both :fusionEnvironmentType and :fusion_environment_type' if attributes.key?(:'fusionEnvironmentType') && attributes.key?(:'fusion_environment_type') self.fusion_environment_type = attributes[:'fusion_environment_type'] if attributes[:'fusion_environment_type'] self.version = attributes[:'version'] if attributes[:'version'] self.public_url = attributes[:'publicUrl'] if attributes[:'publicUrl'] raise 'You cannot provide both :publicUrl and :public_url' if attributes.key?(:'publicUrl') && attributes.key?(:'public_url') self.public_url = attributes[:'public_url'] if attributes[:'public_url'] self.dns_prefix = attributes[:'dnsPrefix'] if attributes[:'dnsPrefix'] raise 'You cannot provide both :dnsPrefix and :dns_prefix' if attributes.key?(:'dnsPrefix') && attributes.key?(:'dns_prefix') self.dns_prefix = attributes[:'dns_prefix'] if attributes[:'dns_prefix'] self.additional_language_packs = attributes[:'additionalLanguagePacks'] if attributes[:'additionalLanguagePacks'] raise 'You cannot provide both :additionalLanguagePacks and :additional_language_packs' if attributes.key?(:'additionalLanguagePacks') && attributes.key?(:'additional_language_packs') self.additional_language_packs = attributes[:'additional_language_packs'] if attributes[:'additional_language_packs'] self.is_i_pv6_dual_stack_enabled = attributes[:'isIPv6DualStackEnabled'] unless attributes[:'isIPv6DualStackEnabled'].nil? raise 'You cannot provide both :isIPv6DualStackEnabled and :is_i_pv6_dual_stack_enabled' if attributes.key?(:'isIPv6DualStackEnabled') && attributes.key?(:'is_i_pv6_dual_stack_enabled') self.is_i_pv6_dual_stack_enabled = attributes[:'is_i_pv6_dual_stack_enabled'] unless attributes[:'is_i_pv6_dual_stack_enabled'].nil? self.lockbox_id = attributes[:'lockboxId'] if attributes[:'lockboxId'] raise 'You cannot provide both :lockboxId and :lockbox_id' if attributes.key?(:'lockboxId') && attributes.key?(:'lockbox_id') self.lockbox_id = attributes[:'lockbox_id'] if attributes[:'lockbox_id'] self.is_break_glass_enabled = attributes[:'isBreakGlassEnabled'] unless attributes[:'isBreakGlassEnabled'].nil? self.is_break_glass_enabled = false if is_break_glass_enabled.nil? && !attributes.key?(:'isBreakGlassEnabled') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isBreakGlassEnabled and :is_break_glass_enabled' if attributes.key?(:'isBreakGlassEnabled') && attributes.key?(:'is_break_glass_enabled') self.is_break_glass_enabled = attributes[:'is_break_glass_enabled'] unless attributes[:'is_break_glass_enabled'].nil? self.is_break_glass_enabled = false if is_break_glass_enabled.nil? && !attributes.key?(:'isBreakGlassEnabled') && !attributes.key?(:'is_break_glass_enabled') # rubocop:disable Style/StringLiterals self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails'] raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details') self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] end |
Instance Attribute Details
#additional_language_packs ⇒ Array<String>
Language packs
60 61 62 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 60 def additional_language_packs @additional_language_packs end |
#applied_patch_bundles ⇒ Array<String>
Patch bundle names
40 41 42 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 40 def applied_patch_bundles @applied_patch_bundles end |
#compartment_id ⇒ String
[Required] Compartment Identifier
28 29 30 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 28 def compartment_id @compartment_id end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
100 101 102 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 100 def @defined_tags end |
#display_name ⇒ String
[Required] FusionEnvironment Identifier, can be renamed
17 18 19 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 17 def display_name @display_name end |
#dns_prefix ⇒ String
DNS prefix
56 57 58 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 56 def dns_prefix @dns_prefix end |
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}
94 95 96 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 94 def @freeform_tags end |
#fusion_environment_family_id ⇒ String
FusionEnvironmentFamily Identifier
32 33 34 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 32 def fusion_environment_family_id @fusion_environment_family_id end |
#fusion_environment_type ⇒ String
[Required] Type of the FusionEnvironment.
44 45 46 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 44 def fusion_environment_type @fusion_environment_type end |
#id ⇒ String
[Required] Unique identifier that is immutable on creation
13 14 15 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 13 def id @id end |
#is_break_glass_enabled ⇒ BOOLEAN
If it's true, then the Break Glass feature is enabled
72 73 74 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 72 def is_break_glass_enabled @is_break_glass_enabled end |
#is_i_pv6_dual_stack_enabled ⇒ BOOLEAN
Enable IPv4/IPv6 dual stack support for the environment (where available). Setting to true will assign an IPv6 address to the environment in addition to an IPv4 address.
64 65 66 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 64 def is_i_pv6_dual_stack_enabled @is_i_pv6_dual_stack_enabled end |
#lifecycle_details ⇒ String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
88 89 90 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 88 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the FusionEnvironment.
84 85 86 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 84 def lifecycle_state @lifecycle_state end |
#lockbox_id ⇒ String
The lockbox Id of this fusion environment. If there's no lockbox id, this field will be null
68 69 70 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 68 def lockbox_id @lockbox_id end |
#maintenance_policy ⇒ OCI::FusionApps::Models::GetMaintenancePolicyDetails
24 25 26 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 24 def maintenance_policy @maintenance_policy end |
#public_url ⇒ String
Public URL
52 53 54 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 52 def public_url @public_url end |
#subscription_ids ⇒ Array<String>
List of subscription IDs.
36 37 38 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 36 def subscription_ids @subscription_ids end |
#time_created ⇒ DateTime
The time the the FusionEnvironment was created. An RFC3339 formatted datetime string
76 77 78 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 76 def time_created @time_created end |
#time_upcoming_maintenance ⇒ DateTime
The next maintenance for this environment
21 22 23 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 21 def time_upcoming_maintenance @time_upcoming_maintenance end |
#time_updated ⇒ DateTime
The time the FusionEnvironment was updated. An RFC3339 formatted datetime string
80 81 82 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 80 def time_updated @time_updated end |
#version ⇒ String
Version of Fusion Apps used by this environment
48 49 50 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 48 def version @version end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 103 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'display_name': :'displayName', 'time_upcoming_maintenance': :'timeUpcomingMaintenance', 'maintenance_policy': :'maintenancePolicy', 'compartment_id': :'compartmentId', 'fusion_environment_family_id': :'fusionEnvironmentFamilyId', 'subscription_ids': :'subscriptionIds', 'applied_patch_bundles': :'appliedPatchBundles', 'fusion_environment_type': :'fusionEnvironmentType', 'version': :'version', 'public_url': :'publicUrl', 'dns_prefix': :'dnsPrefix', 'additional_language_packs': :'additionalLanguagePacks', 'is_i_pv6_dual_stack_enabled': :'isIPv6DualStackEnabled', 'lockbox_id': :'lockboxId', 'is_break_glass_enabled': :'isBreakGlassEnabled', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 133 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'display_name': :'String', 'time_upcoming_maintenance': :'DateTime', 'maintenance_policy': :'OCI::FusionApps::Models::GetMaintenancePolicyDetails', 'compartment_id': :'String', 'fusion_environment_family_id': :'String', 'subscription_ids': :'Array<String>', 'applied_patch_bundles': :'Array<String>', 'fusion_environment_type': :'String', 'version': :'String', 'public_url': :'String', 'dns_prefix': :'String', 'additional_language_packs': :'Array<String>', 'is_i_pv6_dual_stack_enabled': :'BOOLEAN', 'lockbox_id': :'String', 'is_break_glass_enabled': :'BOOLEAN', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 330 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && display_name == other.display_name && time_upcoming_maintenance == other.time_upcoming_maintenance && maintenance_policy == other.maintenance_policy && compartment_id == other.compartment_id && fusion_environment_family_id == other.fusion_environment_family_id && subscription_ids == other.subscription_ids && applied_patch_bundles == other.applied_patch_bundles && fusion_environment_type == other.fusion_environment_type && version == other.version && public_url == other.public_url && dns_prefix == other.dns_prefix && additional_language_packs == other.additional_language_packs && is_i_pv6_dual_stack_enabled == other.is_i_pv6_dual_stack_enabled && lockbox_id == other.lockbox_id && is_break_glass_enabled == other.is_break_glass_enabled && time_created == other.time_created && time_updated == other.time_updated && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 381 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
361 362 363 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 361 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
370 371 372 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 370 def hash [id, display_name, time_upcoming_maintenance, maintenance_policy, compartment_id, fusion_environment_family_id, subscription_ids, applied_patch_bundles, fusion_environment_type, version, public_url, dns_prefix, additional_language_packs, is_i_pv6_dual_stack_enabled, lockbox_id, is_break_glass_enabled, time_created, time_updated, lifecycle_state, lifecycle_details, , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
414 415 416 417 418 419 420 421 422 423 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 414 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
408 409 410 |
# File 'lib/oci/fusion_apps/models/fusion_environment_summary.rb', line 408 def to_s to_hash.to_s end |