Class: OCI::FusionApps::Models::KmsKeyInfo
- Inherits:
- 
      Object
      
        - Object
- OCI::FusionApps::Models::KmsKeyInfo
 
- Defined in:
- lib/oci/fusion_apps/models/kms_key_info.rb
Overview
kmsKeyInfo
Constant Summary collapse
- SCHEDULED_KEY_STATUS_ENUM =
- [ SCHEDULED_KEY_STATUS_SCHEDULING = 'SCHEDULING'.freeze, SCHEDULED_KEY_STATUS_UPDATING = 'UPDATING'.freeze, SCHEDULED_KEY_STATUS_FAILED = 'FAILED'.freeze, SCHEDULED_KEY_STATUS_NONE = 'NONE'.freeze ].freeze 
Instance Attribute Summary collapse
- 
  
    
      #active_key_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    current BYOK keyId facp is using. 
- 
  
    
      #active_key_version  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    current key version facp is using. 
- 
  
    
      #current_key_lifecycle_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    current key lifeCycleState. 
- 
  
    
      #scheduled_key_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    scheduled keyId to be updated. 
- 
  
    
      #scheduled_key_status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    the scheduled key status. 
- 
  
    
      #scheduled_key_version  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    scheduled key version to be updated. 
- 
  
    
      #scheduled_lifecycle_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    scheduled key lifeCycle state to be updated. 
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 = {})  ⇒ KmsKeyInfo 
    
    
  
  
  
    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 = {}) ⇒ KmsKeyInfo
Initializes the object
| 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 135 136 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 89 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.active_key_id = attributes[:'activeKeyId'] if attributes[:'activeKeyId'] raise 'You cannot provide both :activeKeyId and :active_key_id' if attributes.key?(:'activeKeyId') && attributes.key?(:'active_key_id') self.active_key_id = attributes[:'active_key_id'] if attributes[:'active_key_id'] self.active_key_version = attributes[:'activeKeyVersion'] if attributes[:'activeKeyVersion'] raise 'You cannot provide both :activeKeyVersion and :active_key_version' if attributes.key?(:'activeKeyVersion') && attributes.key?(:'active_key_version') self.active_key_version = attributes[:'active_key_version'] if attributes[:'active_key_version'] self.scheduled_key_id = attributes[:'scheduledKeyId'] if attributes[:'scheduledKeyId'] raise 'You cannot provide both :scheduledKeyId and :scheduled_key_id' if attributes.key?(:'scheduledKeyId') && attributes.key?(:'scheduled_key_id') self.scheduled_key_id = attributes[:'scheduled_key_id'] if attributes[:'scheduled_key_id'] self.scheduled_key_version = attributes[:'scheduledKeyVersion'] if attributes[:'scheduledKeyVersion'] raise 'You cannot provide both :scheduledKeyVersion and :scheduled_key_version' if attributes.key?(:'scheduledKeyVersion') && attributes.key?(:'scheduled_key_version') self.scheduled_key_version = attributes[:'scheduled_key_version'] if attributes[:'scheduled_key_version'] self.current_key_lifecycle_state = attributes[:'currentKeyLifecycleState'] if attributes[:'currentKeyLifecycleState'] raise 'You cannot provide both :currentKeyLifecycleState and :current_key_lifecycle_state' if attributes.key?(:'currentKeyLifecycleState') && attributes.key?(:'current_key_lifecycle_state') self.current_key_lifecycle_state = attributes[:'current_key_lifecycle_state'] if attributes[:'current_key_lifecycle_state'] self.scheduled_lifecycle_state = attributes[:'scheduledLifecycleState'] if attributes[:'scheduledLifecycleState'] raise 'You cannot provide both :scheduledLifecycleState and :scheduled_lifecycle_state' if attributes.key?(:'scheduledLifecycleState') && attributes.key?(:'scheduled_lifecycle_state') self.scheduled_lifecycle_state = attributes[:'scheduled_lifecycle_state'] if attributes[:'scheduled_lifecycle_state'] self.scheduled_key_status = attributes[:'scheduledKeyStatus'] if attributes[:'scheduledKeyStatus'] raise 'You cannot provide both :scheduledKeyStatus and :scheduled_key_status' if attributes.key?(:'scheduledKeyStatus') && attributes.key?(:'scheduled_key_status') self.scheduled_key_status = attributes[:'scheduled_key_status'] if attributes[:'scheduled_key_status'] end | 
Instance Attribute Details
#active_key_id ⇒ String
current BYOK keyId facp is using
| 20 21 22 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 20 def active_key_id @active_key_id end | 
#active_key_version ⇒ String
current key version facp is using
| 24 25 26 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 24 def active_key_version @active_key_version end | 
#current_key_lifecycle_state ⇒ String
current key lifeCycleState
| 36 37 38 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 36 def current_key_lifecycle_state @current_key_lifecycle_state end | 
#scheduled_key_id ⇒ String
scheduled keyId to be updated
| 28 29 30 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 28 def scheduled_key_id @scheduled_key_id end | 
#scheduled_key_status ⇒ String
the scheduled key status
| 44 45 46 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 44 def scheduled_key_status @scheduled_key_status end | 
#scheduled_key_version ⇒ String
scheduled key version to be updated.
| 32 33 34 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 32 def scheduled_key_version @scheduled_key_version end | 
#scheduled_lifecycle_state ⇒ String
scheduled key lifeCycle state to be updated.
| 40 41 42 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 40 def scheduled_lifecycle_state @scheduled_lifecycle_state end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 47 48 49 50 51 52 53 54 55 56 57 58 59 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 47 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'active_key_id': :'activeKeyId', 'active_key_version': :'activeKeyVersion', 'scheduled_key_id': :'scheduledKeyId', 'scheduled_key_version': :'scheduledKeyVersion', 'current_key_lifecycle_state': :'currentKeyLifecycleState', 'scheduled_lifecycle_state': :'scheduledLifecycleState', 'scheduled_key_status': :'scheduledKeyStatus' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 62 63 64 65 66 67 68 69 70 71 72 73 74 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 62 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'active_key_id': :'String', 'active_key_version': :'String', 'scheduled_key_id': :'String', 'scheduled_key_version': :'String', 'current_key_lifecycle_state': :'String', 'scheduled_lifecycle_state': :'String', 'scheduled_key_status': :'String' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 153 154 155 156 157 158 159 160 161 162 163 164 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 153 def ==(other) return true if equal?(other) self.class == other.class && active_key_id == other.active_key_id && active_key_version == other.active_key_version && scheduled_key_id == other.scheduled_key_id && scheduled_key_version == other.scheduled_key_version && current_key_lifecycle_state == other.current_key_lifecycle_state && scheduled_lifecycle_state == other.scheduled_lifecycle_state && scheduled_key_status == other.scheduled_key_status end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 189 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
| 169 170 171 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 169 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 178 179 180 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 178 def hash [active_key_id, active_key_version, scheduled_key_id, scheduled_key_version, current_key_lifecycle_state, scheduled_lifecycle_state, scheduled_key_status].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 222 223 224 225 226 227 228 229 230 231 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 222 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
| 216 217 218 | # File 'lib/oci/fusion_apps/models/kms_key_info.rb', line 216 def to_s to_hash.to_s end |