Class: OCI::CertificatesManagement::Models::CreateSubordinateCaManagedInternallyIssuedByExternalCaConfigDetails
- Inherits:
-
CreateCertificateAuthorityConfigDetails
- Object
- CreateCertificateAuthorityConfigDetails
- OCI::CertificatesManagement::Models::CreateSubordinateCaManagedInternallyIssuedByExternalCaConfigDetails
- Defined in:
- lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb
Overview
The configuration details for creating an internally managed subordinate certificate authority (CA) which is issued by an external private CA.
Constant Summary collapse
- SIGNING_ALGORITHM_ENUM =
[ SIGNING_ALGORITHM_SHA256_WITH_RSA = 'SHA256_WITH_RSA'.freeze, SIGNING_ALGORITHM_SHA384_WITH_RSA = 'SHA384_WITH_RSA'.freeze, SIGNING_ALGORITHM_SHA512_WITH_RSA = 'SHA512_WITH_RSA'.freeze, SIGNING_ALGORITHM_SHA256_WITH_ECDSA = 'SHA256_WITH_ECDSA'.freeze, SIGNING_ALGORITHM_SHA384_WITH_ECDSA = 'SHA384_WITH_ECDSA'.freeze, SIGNING_ALGORITHM_SHA512_WITH_ECDSA = 'SHA512_WITH_ECDSA'.freeze ].freeze
Constants inherited from CreateCertificateAuthorityConfigDetails
OCI::CertificatesManagement::Models::CreateCertificateAuthorityConfigDetails::CONFIG_TYPE_ENUM
Instance Attribute Summary collapse
-
#issuer_certificate_authority_id ⇒ String
[Required] The OCID of the private, external issuer CA.
-
#signing_algorithm ⇒ String
The algorithm used to sign public key certificates that the CA issues.
-
#subject ⇒ OCI::CertificatesManagement::Models::CertificateSubject
This attribute is required.
Attributes inherited from CreateCertificateAuthorityConfigDetails
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 = {}) ⇒ CreateSubordinateCaManagedInternallyIssuedByExternalCaConfigDetails
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.
Methods inherited from CreateCertificateAuthorityConfigDetails
Constructor Details
#initialize(attributes = {}) ⇒ CreateSubordinateCaManagedInternallyIssuedByExternalCaConfigDetails
Initializes the object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 70 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['configType'] = 'SUBORDINATE_CA_MANAGED_INTERNALLY_ISSUED_BY_EXTERNAL_CA' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self. = attributes[:'issuerCertificateAuthorityId'] if attributes[:'issuerCertificateAuthorityId'] raise 'You cannot provide both :issuerCertificateAuthorityId and :issuer_certificate_authority_id' if attributes.key?(:'issuerCertificateAuthorityId') && attributes.key?(:'issuer_certificate_authority_id') self. = attributes[:'issuer_certificate_authority_id'] if attributes[:'issuer_certificate_authority_id'] self.subject = attributes[:'subject'] if attributes[:'subject'] self.signing_algorithm = attributes[:'signingAlgorithm'] if attributes[:'signingAlgorithm'] raise 'You cannot provide both :signingAlgorithm and :signing_algorithm' if attributes.key?(:'signingAlgorithm') && attributes.key?(:'signing_algorithm') self.signing_algorithm = attributes[:'signing_algorithm'] if attributes[:'signing_algorithm'] end |
Instance Attribute Details
#issuer_certificate_authority_id ⇒ String
[Required] The OCID of the private, external issuer CA.
24 25 26 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 24 def @issuer_certificate_authority_id end |
#signing_algorithm ⇒ String
The algorithm used to sign public key certificates that the CA issues.
32 33 34 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 32 def signing_algorithm @signing_algorithm end |
#subject ⇒ OCI::CertificatesManagement::Models::CertificateSubject
This attribute is required.
28 29 30 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 28 def subject @subject end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 35 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'config_type': :'configType', 'version_name': :'versionName', 'issuer_certificate_authority_id': :'issuerCertificateAuthorityId', 'subject': :'subject', 'signing_algorithm': :'signingAlgorithm' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 48 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'config_type': :'String', 'version_name': :'String', 'issuer_certificate_authority_id': :'String', 'subject': :'OCI::CertificatesManagement::Models::CertificateSubject', 'signing_algorithm': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 110 def ==(other) return true if equal?(other) self.class == other.class && config_type == other.config_type && version_name == other.version_name && == other. && subject == other.subject && signing_algorithm == other.signing_algorithm end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 144 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
124 125 126 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 124 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
133 134 135 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 133 def hash [config_type, version_name, , subject, signing_algorithm].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
177 178 179 180 181 182 183 184 185 186 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 177 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
171 172 173 |
# File 'lib/oci/certificates_management/models/create_subordinate_ca_managed_internally_issued_by_external_ca_config_details.rb', line 171 def to_s to_hash.to_s end |