Class: OCI::Rover::Models::ReplaceCaDetails
- Inherits:
-
Object
- Object
- OCI::Rover::Models::ReplaceCaDetails
- Defined in:
- lib/oci/rover/models/replace_ca_details.rb
Overview
Information about the detailed CA bundle replacement of the rover node.
Constant Summary collapse
- CERT_KEY_ALGORITHM_ENUM =
[ CERT_KEY_ALGORITHM_RSA2048 = 'RSA2048'.freeze, CERT_KEY_ALGORITHM_RSA4096 = 'RSA4096'.freeze, CERT_KEY_ALGORITHM_ECDSA_P256 = 'ECDSA_P256'.freeze, CERT_KEY_ALGORITHM_ECDSA_P384 = 'ECDSA_P384'.freeze, CERT_KEY_ALGORITHM_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- CERT_SIGNATURE_ALGORITHM_ENUM =
[ CERT_SIGNATURE_ALGORITHM_SHA256_WITH_RSA = 'SHA256_WITH_RSA'.freeze, CERT_SIGNATURE_ALGORITHM_SHA384_WITH_RSA = 'SHA384_WITH_RSA'.freeze, CERT_SIGNATURE_ALGORITHM_SHA512_WITH_RSA = 'SHA512_WITH_RSA'.freeze, CERT_SIGNATURE_ALGORITHM_SHA256_WITH_ECDSA = 'SHA256_WITH_ECDSA'.freeze, CERT_SIGNATURE_ALGORITHM_SHA384_WITH_ECDSA = 'SHA384_WITH_ECDSA'.freeze, CERT_SIGNATURE_ALGORITHM_SHA512_WITH_ECDSA = 'SHA512_WITH_ECDSA'.freeze, CERT_SIGNATURE_ALGORITHM_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#ca_bundle_pem ⇒ String
Plain text certificate chain in PEM format for the subordinate CA associated with given roverNode.
-
#cert_key_algorithm ⇒ String
key algorithm for issuing leaf certificate.
-
#cert_signature_algorithm ⇒ String
signature algorithm for issuing leaf certificate.
-
#certificate_max_validity_duration ⇒ String
Max validity of leaf certificates issued by the CA associated with given node, in days, in ISO 8601 format, example "P365D".
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 = {}) ⇒ ReplaceCaDetails
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 = {}) ⇒ ReplaceCaDetails
Initializes the object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 80 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.ca_bundle_pem = attributes[:'caBundlePem'] if attributes[:'caBundlePem'] raise 'You cannot provide both :caBundlePem and :ca_bundle_pem' if attributes.key?(:'caBundlePem') && attributes.key?(:'ca_bundle_pem') self.ca_bundle_pem = attributes[:'ca_bundle_pem'] if attributes[:'ca_bundle_pem'] self.certificate_max_validity_duration = attributes[:'certificateMaxValidityDuration'] if attributes[:'certificateMaxValidityDuration'] raise 'You cannot provide both :certificateMaxValidityDuration and :certificate_max_validity_duration' if attributes.key?(:'certificateMaxValidityDuration') && attributes.key?(:'certificate_max_validity_duration') self.certificate_max_validity_duration = attributes[:'certificate_max_validity_duration'] if attributes[:'certificate_max_validity_duration'] self.cert_key_algorithm = attributes[:'certKeyAlgorithm'] if attributes[:'certKeyAlgorithm'] raise 'You cannot provide both :certKeyAlgorithm and :cert_key_algorithm' if attributes.key?(:'certKeyAlgorithm') && attributes.key?(:'cert_key_algorithm') self.cert_key_algorithm = attributes[:'cert_key_algorithm'] if attributes[:'cert_key_algorithm'] self.cert_signature_algorithm = attributes[:'certSignatureAlgorithm'] if attributes[:'certSignatureAlgorithm'] raise 'You cannot provide both :certSignatureAlgorithm and :cert_signature_algorithm' if attributes.key?(:'certSignatureAlgorithm') && attributes.key?(:'cert_signature_algorithm') self.cert_signature_algorithm = attributes[:'cert_signature_algorithm'] if attributes[:'cert_signature_algorithm'] end |
Instance Attribute Details
#ca_bundle_pem ⇒ String
Plain text certificate chain in PEM format for the subordinate CA associated with given roverNode.
32 33 34 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 32 def ca_bundle_pem @ca_bundle_pem end |
#cert_key_algorithm ⇒ String
key algorithm for issuing leaf certificate.
40 41 42 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 40 def cert_key_algorithm @cert_key_algorithm end |
#cert_signature_algorithm ⇒ String
signature algorithm for issuing leaf certificate.
44 45 46 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 44 def cert_signature_algorithm @cert_signature_algorithm end |
#certificate_max_validity_duration ⇒ String
Max validity of leaf certificates issued by the CA associated with given node, in days, in ISO 8601 format, example "P365D".
36 37 38 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 36 def certificate_max_validity_duration @certificate_max_validity_duration 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 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 47 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'ca_bundle_pem': :'caBundlePem', 'certificate_max_validity_duration': :'certificateMaxValidityDuration', 'cert_key_algorithm': :'certKeyAlgorithm', 'cert_signature_algorithm': :'certSignatureAlgorithm' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
59 60 61 62 63 64 65 66 67 68 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 59 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'ca_bundle_pem': :'String', 'certificate_max_validity_duration': :'String', 'cert_key_algorithm': :'String', 'cert_signature_algorithm': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
144 145 146 147 148 149 150 151 152 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 144 def ==(other) return true if equal?(other) self.class == other.class && ca_bundle_pem == other.ca_bundle_pem && certificate_max_validity_duration == other.certificate_max_validity_duration && cert_key_algorithm == other.cert_key_algorithm && cert_signature_algorithm == other.cert_signature_algorithm end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 177 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
157 158 159 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 157 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
166 167 168 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 166 def hash [ca_bundle_pem, certificate_max_validity_duration, cert_key_algorithm, cert_signature_algorithm].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
210 211 212 213 214 215 216 217 218 219 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 210 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
204 205 206 |
# File 'lib/oci/rover/models/replace_ca_details.rb', line 204 def to_s to_hash.to_s end |