Class: OCI::LustreFileStorage::Models::LustreFileSystem
- Inherits:
-
Object
- Object
- OCI::LustreFileStorage::Models::LustreFileSystem
- Defined in:
- lib/oci/lustre_file_storage/models/lustre_file_system.rb
Overview
A Lustre file system is a parallel file system that is used as a storage solution for HPC/AI/ML workloads. For more information, see File Storage with Lustre.
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.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PERFORMANCE_TIER_ENUM =
[ PERFORMANCE_TIER_MBPS_PER_TB_125 = 'MBPS_PER_TB_125'.freeze, PERFORMANCE_TIER_MBPS_PER_TB_250 = 'MBPS_PER_TB_250'.freeze, PERFORMANCE_TIER_MBPS_PER_TB_500 = 'MBPS_PER_TB_500'.freeze, PERFORMANCE_TIER_MBPS_PER_TB_1000 = 'MBPS_PER_TB_1000'.freeze, PERFORMANCE_TIER_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#availability_domain ⇒ String
[Required] The availability domain the file system is in.
-
#capacity_in_gbs ⇒ Integer
[Required] Capacity of the Lustre file system in GB.
-
#cluster_placement_group_id ⇒ String
The OCID of the cluster placement group in which the Lustre file system exists.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the Lustre file system.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
[Required] Defined tags for this resource.
-
#display_name ⇒ String
[Required] A user-friendly name.
-
#file_system_description ⇒ String
[Required] Short description of the Lustre file system.
-
#file_system_name ⇒ String
[Required] The Lustre file system name.
-
#freeform_tags ⇒ Hash<String, String>
[Required] Free-form tags for this resource.
-
#id ⇒ String
[Required] The OCID of the Lustre file system.
-
#kms_key_id ⇒ String
The OCID of the KMS key used to encrypt the encryption keys associated with this file system.
-
#lifecycle_details ⇒ String
A message that describes the current state of the Lustre file system in more detail.
-
#lifecycle_state ⇒ String
[Required] The current state of the Lustre file system.
-
#lnet ⇒ String
[Required] Type of network used by clients to mount the file system.
-
#maintenance_window ⇒ OCI::LustreFileStorage::Models::MaintenanceWindow
This attribute is required.
-
#major_version ⇒ String
[Required] Major version of Lustre running in the Lustre file system.
-
#management_service_address ⇒ String
[Required] The IPv4 address of MGS (Lustre Management Service) used by clients to mount the file system.
-
#nsg_ids ⇒ Array<String>
A list of Network Security Group OCIDs associated with this lustre file system.
-
#performance_tier ⇒ String
[Required] The Lustre file system performance tier.
-
#root_squash_configuration ⇒ OCI::LustreFileStorage::Models::RootSquashConfiguration
This attribute is required.
-
#subnet_id ⇒ String
[Required] The OCID of the subnet the Lustre file system is in.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
[Required] System tags for this resource.
-
#time_billing_cycle_end ⇒ DateTime
The date and time that the current billing cycle for the file system will end, expressed in RFC 3339 timestamp format.
-
#time_created ⇒ DateTime
[Required] The date and time the Lustre file system was created, expressed in RFC 3339 timestamp format.
-
#time_updated ⇒ DateTime
[Required] The date and time the Lustre file system was updated, in the format defined by RFC 3339.
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 = {}) ⇒ LustreFileSystem
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 = {}) ⇒ LustreFileSystem
Initializes the object
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 322 323 324 325 326 327 328 329 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 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 283 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.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.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain'] raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain') self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain'] 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.file_system_description = attributes[:'fileSystemDescription'] if attributes[:'fileSystemDescription'] raise 'You cannot provide both :fileSystemDescription and :file_system_description' if attributes.key?(:'fileSystemDescription') && attributes.key?(:'file_system_description') self.file_system_description = attributes[:'file_system_description'] if attributes[:'file_system_description'] 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'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] self.nsg_ids = attributes[:'nsgIds'] if attributes[:'nsgIds'] raise 'You cannot provide both :nsgIds and :nsg_ids' if attributes.key?(:'nsgIds') && attributes.key?(:'nsg_ids') self.nsg_ids = attributes[:'nsg_ids'] if attributes[:'nsg_ids'] self.kms_key_id = attributes[:'kmsKeyId'] if attributes[:'kmsKeyId'] raise 'You cannot provide both :kmsKeyId and :kms_key_id' if attributes.key?(:'kmsKeyId') && attributes.key?(:'kms_key_id') self.kms_key_id = attributes[:'kms_key_id'] if attributes[:'kms_key_id'] self.capacity_in_gbs = attributes[:'capacityInGBs'] if attributes[:'capacityInGBs'] raise 'You cannot provide both :capacityInGBs and :capacity_in_gbs' if attributes.key?(:'capacityInGBs') && attributes.key?(:'capacity_in_gbs') self.capacity_in_gbs = attributes[:'capacity_in_gbs'] if attributes[:'capacity_in_gbs'] self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId'] raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id') self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id'] self.performance_tier = attributes[:'performanceTier'] if attributes[:'performanceTier'] raise 'You cannot provide both :performanceTier and :performance_tier' if attributes.key?(:'performanceTier') && attributes.key?(:'performance_tier') self.performance_tier = attributes[:'performance_tier'] if attributes[:'performance_tier'] self.management_service_address = attributes[:'managementServiceAddress'] if attributes[:'managementServiceAddress'] raise 'You cannot provide both :managementServiceAddress and :management_service_address' if attributes.key?(:'managementServiceAddress') && attributes.key?(:'management_service_address') self.management_service_address = attributes[:'management_service_address'] if attributes[:'management_service_address'] self.file_system_name = attributes[:'fileSystemName'] if attributes[:'fileSystemName'] raise 'You cannot provide both :fileSystemName and :file_system_name' if attributes.key?(:'fileSystemName') && attributes.key?(:'file_system_name') self.file_system_name = attributes[:'file_system_name'] if attributes[:'file_system_name'] self.lnet = attributes[:'lnet'] if attributes[:'lnet'] self.major_version = attributes[:'majorVersion'] if attributes[:'majorVersion'] raise 'You cannot provide both :majorVersion and :major_version' if attributes.key?(:'majorVersion') && attributes.key?(:'major_version') self.major_version = attributes[:'major_version'] if attributes[:'major_version'] self.cluster_placement_group_id = attributes[:'clusterPlacementGroupId'] if attributes[:'clusterPlacementGroupId'] raise 'You cannot provide both :clusterPlacementGroupId and :cluster_placement_group_id' if attributes.key?(:'clusterPlacementGroupId') && attributes.key?(:'cluster_placement_group_id') self.cluster_placement_group_id = attributes[:'cluster_placement_group_id'] if attributes[:'cluster_placement_group_id'] self.time_billing_cycle_end = attributes[:'timeBillingCycleEnd'] if attributes[:'timeBillingCycleEnd'] raise 'You cannot provide both :timeBillingCycleEnd and :time_billing_cycle_end' if attributes.key?(:'timeBillingCycleEnd') && attributes.key?(:'time_billing_cycle_end') self.time_billing_cycle_end = attributes[:'time_billing_cycle_end'] if attributes[:'time_billing_cycle_end'] self.maintenance_window = attributes[:'maintenanceWindow'] if attributes[:'maintenanceWindow'] raise 'You cannot provide both :maintenanceWindow and :maintenance_window' if attributes.key?(:'maintenanceWindow') && attributes.key?(:'maintenance_window') self.maintenance_window = attributes[:'maintenance_window'] if attributes[:'maintenance_window'] self.root_squash_configuration = attributes[:'rootSquashConfiguration'] if attributes[:'rootSquashConfiguration'] raise 'You cannot provide both :rootSquashConfiguration and :root_squash_configuration' if attributes.key?(:'rootSquashConfiguration') && attributes.key?(:'root_squash_configuration') self.root_squash_configuration = attributes[:'root_squash_configuration'] if attributes[:'root_squash_configuration'] end |
Instance Attribute Details
#availability_domain ⇒ String
[Required] The availability domain the file system is in. May be unset as a blank or NULL value.
Example: Uocm:PHX-AD-1
51 52 53 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 51 def availability_domain @availability_domain end |
#capacity_in_gbs ⇒ Integer
[Required] Capacity of the Lustre file system in GB.
131 132 133 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 131 def capacity_in_gbs @capacity_in_gbs end |
#cluster_placement_group_id ⇒ String
The OCID of the cluster placement group in which the Lustre file system exists.
166 167 168 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 166 def cluster_placement_group_id @cluster_placement_group_id end |
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the Lustre file system.
43 44 45 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 43 def compartment_id @compartment_id end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
[Required] Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {\"Operations\": {\"CostCenter\": \"42\"}}
107 108 109 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 107 def @defined_tags end |
#display_name ⇒ String
[Required] A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information.
Example: My Lustre file system
60 61 62 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 60 def display_name @display_name end |
#file_system_description ⇒ String
[Required] Short description of the Lustre file system. Avoid entering confidential information.
66 67 68 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 66 def file_system_description @file_system_description end |
#file_system_name ⇒ String
[Required] The Lustre file system name. This is used in mount commands and other aspects of the client command line interface. The default file system name is 'lustre'. The file system name is limited to 8 characters. Allowed characters are lower and upper case English letters, numbers, and '_'.
149 150 151 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 149 def file_system_name @file_system_name end |
#freeform_tags ⇒ Hash<String, String>
[Required] Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {\"Department\": \"Finance\"}
99 100 101 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 99 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the Lustre file system.
39 40 41 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 39 def id @id end |
#kms_key_id ⇒ String
The OCID of the KMS key used to encrypt the encryption keys associated with this file system.
127 128 129 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 127 def kms_key_id @kms_key_id end |
#lifecycle_details ⇒ String
A message that describes the current state of the Lustre file system in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
91 92 93 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 91 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the Lustre file system.
85 86 87 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 85 def lifecycle_state @lifecycle_state end |
#lnet ⇒ String
[Required] Type of network used by clients to mount the file system.
Example: tcp
156 157 158 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 156 def lnet @lnet end |
#maintenance_window ⇒ OCI::LustreFileStorage::Models::MaintenanceWindow
This attribute is required.
180 181 182 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 180 def maintenance_window @maintenance_window end |
#major_version ⇒ String
[Required] Major version of Lustre running in the Lustre file system. Example: 2.15
162 163 164 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 162 def major_version @major_version end |
#management_service_address ⇒ String
[Required] The IPv4 address of MGS (Lustre Management Service) used by clients to mount the file system. For example '10.0.0.4'.
143 144 145 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 143 def management_service_address @management_service_address end |
#nsg_ids ⇒ Array<String>
A list of Network Security Group OCIDs associated with this lustre file system. A maximum of 5 is allowed. Setting this to an empty array after the list is created removes the lustre file system from all NSGs. For more information about NSGs, see Security Rules.
122 123 124 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 122 def nsg_ids @nsg_ids end |
#performance_tier ⇒ String
[Required] The Lustre file system performance tier. A value of MBPS_PER_TB_125
represents 125 megabytes per second per terabyte.
139 140 141 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 139 def performance_tier @performance_tier end |
#root_squash_configuration ⇒ OCI::LustreFileStorage::Models::RootSquashConfiguration
This attribute is required.
184 185 186 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 184 def root_squash_configuration @root_squash_configuration end |
#subnet_id ⇒ String
[Required] The OCID of the subnet the Lustre file system is in.
135 136 137 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 135 def subnet_id @subnet_id end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
[Required] System tags for this resource. Each key is predefined and scoped to a namespace.
Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}
114 115 116 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 114 def @system_tags end |
#time_billing_cycle_end ⇒ DateTime
The date and time that the current billing cycle for the file system will end, expressed in RFC 3339 timestamp format. After the current cycle ends, this date is updated automatically to the next timestamp, which is 30 days later. File systems deleted earlier than this time will still incur charges until the billing cycle ends.
Example: 2016-08-25T21:10:29.600Z
176 177 178 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 176 def time_billing_cycle_end @time_billing_cycle_end end |
#time_created ⇒ DateTime
[Required] The date and time the Lustre file system was created, expressed in RFC 3339 timestamp format.
Example: 2024-04-25T21:10:29.600Z
74 75 76 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 74 def time_created @time_created end |
#time_updated ⇒ DateTime
[Required] The date and time the Lustre file system was updated, in the format defined by RFC 3339.
Example: 2024-04-25T21:10:29.600Z
81 82 83 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 81 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
187 188 189 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 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 187 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'compartment_id': :'compartmentId', 'availability_domain': :'availabilityDomain', 'display_name': :'displayName', 'file_system_description': :'fileSystemDescription', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'nsg_ids': :'nsgIds', 'kms_key_id': :'kmsKeyId', 'capacity_in_gbs': :'capacityInGBs', 'subnet_id': :'subnetId', 'performance_tier': :'performanceTier', 'management_service_address': :'managementServiceAddress', 'file_system_name': :'fileSystemName', 'lnet': :'lnet', 'major_version': :'majorVersion', 'cluster_placement_group_id': :'clusterPlacementGroupId', 'time_billing_cycle_end': :'timeBillingCycleEnd', 'maintenance_window': :'maintenanceWindow', 'root_squash_configuration': :'rootSquashConfiguration' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 220 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'compartment_id': :'String', 'availability_domain': :'String', 'display_name': :'String', 'file_system_description': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'nsg_ids': :'Array<String>', 'kms_key_id': :'String', 'capacity_in_gbs': :'Integer', 'subnet_id': :'String', 'performance_tier': :'String', 'management_service_address': :'String', 'file_system_name': :'String', 'lnet': :'String', 'major_version': :'String', 'cluster_placement_group_id': :'String', 'time_billing_cycle_end': :'DateTime', 'maintenance_window': :'OCI::LustreFileStorage::Models::MaintenanceWindow', 'root_squash_configuration': :'OCI::LustreFileStorage::Models::RootSquashConfiguration' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 465 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && compartment_id == other.compartment_id && availability_domain == other.availability_domain && display_name == other.display_name && file_system_description == other.file_system_description && time_created == other.time_created && time_updated == other.time_updated && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && == other. && == other. && == other. && nsg_ids == other.nsg_ids && kms_key_id == other.kms_key_id && capacity_in_gbs == other.capacity_in_gbs && subnet_id == other.subnet_id && performance_tier == other.performance_tier && management_service_address == other.management_service_address && file_system_name == other.file_system_name && lnet == other.lnet && major_version == other.major_version && cluster_placement_group_id == other.cluster_placement_group_id && time_billing_cycle_end == other.time_billing_cycle_end && maintenance_window == other.maintenance_window && root_squash_configuration == other.root_squash_configuration end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 519 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
499 500 501 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 499 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
508 509 510 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 508 def hash [id, compartment_id, availability_domain, display_name, file_system_description, time_created, time_updated, lifecycle_state, lifecycle_details, , , , nsg_ids, kms_key_id, capacity_in_gbs, subnet_id, performance_tier, management_service_address, file_system_name, lnet, major_version, cluster_placement_group_id, time_billing_cycle_end, maintenance_window, root_squash_configuration].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
552 553 554 555 556 557 558 559 560 561 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 552 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
546 547 548 |
# File 'lib/oci/lustre_file_storage/models/lustre_file_system.rb', line 546 def to_s to_hash.to_s end |