Class: OCI::FusionApps::Models::CertificateInfo
- Inherits:
-
Object
- Object
- OCI::FusionApps::Models::CertificateInfo
- Defined in:
- lib/oci/fusion_apps/models/certificate_info.rb
Overview
Properties of certificate
Instance Attribute Summary collapse
-
#akamai_csr ⇒ String
Akamai Certificate signing request.
-
#akamai_dv_cert_instruction ⇒ String
Akamai Dv Cert instruction to validate domain, e.g.
-
#common_name ⇒ String
Fully qualified host name.
-
#country ⇒ String
Country name.
-
#email_address ⇒ String
Email address.
-
#first_name ⇒ String
First name.
-
#last_name ⇒ String
Last name.
-
#locality ⇒ String
City.
-
#organization_name ⇒ String
Company name.
-
#organization_unit ⇒ String
Company section.
-
#origin_csr ⇒ String
Certificate signing request.
-
#origin_dv_cert_instruction ⇒ String
Dv Cert instruction to validate domain, e.g.
-
#phone_number ⇒ String
Phone number.
-
#postal_code ⇒ String
Postal code.
-
#state ⇒ String
State or province.
-
#subject_alt_names ⇒ Array<String>
List of subject alternative names, comma separated.
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 = {}) ⇒ CertificateInfo
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 = {}) ⇒ CertificateInfo
Initializes the object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 145 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.common_name = attributes[:'commonName'] if attributes[:'commonName'] raise 'You cannot provide both :commonName and :common_name' if attributes.key?(:'commonName') && attributes.key?(:'common_name') self.common_name = attributes[:'common_name'] if attributes[:'common_name'] self.subject_alt_names = attributes[:'subjectAltNames'] if attributes[:'subjectAltNames'] raise 'You cannot provide both :subjectAltNames and :subject_alt_names' if attributes.key?(:'subjectAltNames') && attributes.key?(:'subject_alt_names') self.subject_alt_names = attributes[:'subject_alt_names'] if attributes[:'subject_alt_names'] self.organization_name = attributes[:'organizationName'] if attributes[:'organizationName'] raise 'You cannot provide both :organizationName and :organization_name' if attributes.key?(:'organizationName') && attributes.key?(:'organization_name') self.organization_name = attributes[:'organization_name'] if attributes[:'organization_name'] self.organization_unit = attributes[:'organizationUnit'] if attributes[:'organizationUnit'] raise 'You cannot provide both :organizationUnit and :organization_unit' if attributes.key?(:'organizationUnit') && attributes.key?(:'organization_unit') self.organization_unit = attributes[:'organization_unit'] if attributes[:'organization_unit'] self.locality = attributes[:'locality'] if attributes[:'locality'] self.state = attributes[:'state'] if attributes[:'state'] self.country = attributes[:'country'] if attributes[:'country'] self.email_address = attributes[:'emailAddress'] if attributes[:'emailAddress'] raise 'You cannot provide both :emailAddress and :email_address' if attributes.key?(:'emailAddress') && attributes.key?(:'email_address') self.email_address = attributes[:'email_address'] if attributes[:'email_address'] self.origin_csr = attributes[:'originCsr'] if attributes[:'originCsr'] raise 'You cannot provide both :originCsr and :origin_csr' if attributes.key?(:'originCsr') && attributes.key?(:'origin_csr') self.origin_csr = attributes[:'origin_csr'] if attributes[:'origin_csr'] self.akamai_csr = attributes[:'akamaiCsr'] if attributes[:'akamaiCsr'] raise 'You cannot provide both :akamaiCsr and :akamai_csr' if attributes.key?(:'akamaiCsr') && attributes.key?(:'akamai_csr') self.akamai_csr = attributes[:'akamai_csr'] if attributes[:'akamai_csr'] self.origin_dv_cert_instruction = attributes[:'originDvCertInstruction'] if attributes[:'originDvCertInstruction'] raise 'You cannot provide both :originDvCertInstruction and :origin_dv_cert_instruction' if attributes.key?(:'originDvCertInstruction') && attributes.key?(:'origin_dv_cert_instruction') self.origin_dv_cert_instruction = attributes[:'origin_dv_cert_instruction'] if attributes[:'origin_dv_cert_instruction'] self.akamai_dv_cert_instruction = attributes[:'akamaiDvCertInstruction'] if attributes[:'akamaiDvCertInstruction'] raise 'You cannot provide both :akamaiDvCertInstruction and :akamai_dv_cert_instruction' if attributes.key?(:'akamaiDvCertInstruction') && attributes.key?(:'akamai_dv_cert_instruction') self.akamai_dv_cert_instruction = attributes[:'akamai_dv_cert_instruction'] if attributes[:'akamai_dv_cert_instruction'] self.first_name = attributes[:'firstName'] if attributes[:'firstName'] raise 'You cannot provide both :firstName and :first_name' if attributes.key?(:'firstName') && attributes.key?(:'first_name') self.first_name = attributes[:'first_name'] if attributes[:'first_name'] self.last_name = attributes[:'lastName'] if attributes[:'lastName'] raise 'You cannot provide both :lastName and :last_name' if attributes.key?(:'lastName') && attributes.key?(:'last_name') self.last_name = attributes[:'last_name'] if attributes[:'last_name'] self.phone_number = attributes[:'phoneNumber'] if attributes[:'phoneNumber'] raise 'You cannot provide both :phoneNumber and :phone_number' if attributes.key?(:'phoneNumber') && attributes.key?(:'phone_number') self.phone_number = attributes[:'phone_number'] if attributes[:'phone_number'] self.postal_code = attributes[:'postalCode'] if attributes[:'postalCode'] raise 'You cannot provide both :postalCode and :postal_code' if attributes.key?(:'postalCode') && attributes.key?(:'postal_code') self.postal_code = attributes[:'postal_code'] if attributes[:'postal_code'] end |
Instance Attribute Details
#akamai_csr ⇒ String
Akamai Certificate signing request
49 50 51 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 49 def akamai_csr @akamai_csr end |
#akamai_dv_cert_instruction ⇒ String
Akamai Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc
57 58 59 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 57 def akamai_dv_cert_instruction @akamai_dv_cert_instruction end |
#common_name ⇒ String
Fully qualified host name
13 14 15 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 13 def common_name @common_name end |
#country ⇒ String
Country name
37 38 39 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 37 def country @country end |
#email_address ⇒ String
Email address
41 42 43 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 41 def email_address @email_address end |
#first_name ⇒ String
First name
61 62 63 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 61 def first_name @first_name end |
#last_name ⇒ String
Last name
65 66 67 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 65 def last_name @last_name end |
#locality ⇒ String
City
29 30 31 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 29 def locality @locality end |
#organization_name ⇒ String
Company name
21 22 23 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 21 def organization_name @organization_name end |
#organization_unit ⇒ String
Company section
25 26 27 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 25 def organization_unit @organization_unit end |
#origin_csr ⇒ String
Certificate signing request
45 46 47 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 45 def origin_csr @origin_csr end |
#origin_dv_cert_instruction ⇒ String
Dv Cert instruction to validate domain, e.g. set DNS token or HTTP token, etc
53 54 55 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 53 def origin_dv_cert_instruction @origin_dv_cert_instruction end |
#phone_number ⇒ String
Phone number
69 70 71 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 69 def phone_number @phone_number end |
#postal_code ⇒ String
Postal code
73 74 75 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 73 def postal_code @postal_code end |
#state ⇒ String
State or province
33 34 35 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 33 def state @state end |
#subject_alt_names ⇒ Array<String>
List of subject alternative names, comma separated
17 18 19 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 17 def subject_alt_names @subject_alt_names end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 76 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'common_name': :'commonName', 'subject_alt_names': :'subjectAltNames', 'organization_name': :'organizationName', 'organization_unit': :'organizationUnit', 'locality': :'locality', 'state': :'state', 'country': :'country', 'email_address': :'emailAddress', 'origin_csr': :'originCsr', 'akamai_csr': :'akamaiCsr', 'origin_dv_cert_instruction': :'originDvCertInstruction', 'akamai_dv_cert_instruction': :'akamaiDvCertInstruction', 'first_name': :'firstName', 'last_name': :'lastName', 'phone_number': :'phoneNumber', 'postal_code': :'postalCode' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 100 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'common_name': :'String', 'subject_alt_names': :'Array<String>', 'organization_name': :'String', 'organization_unit': :'String', 'locality': :'String', 'state': :'String', 'country': :'String', 'email_address': :'String', 'origin_csr': :'String', 'akamai_csr': :'String', 'origin_dv_cert_instruction': :'String', 'akamai_dv_cert_instruction': :'String', 'first_name': :'String', 'last_name': :'String', 'phone_number': :'String', 'postal_code': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 243 def ==(other) return true if equal?(other) self.class == other.class && common_name == other.common_name && subject_alt_names == other.subject_alt_names && organization_name == other.organization_name && organization_unit == other.organization_unit && locality == other.locality && state == other.state && country == other.country && email_address == other.email_address && origin_csr == other.origin_csr && akamai_csr == other.akamai_csr && origin_dv_cert_instruction == other.origin_dv_cert_instruction && akamai_dv_cert_instruction == other.akamai_dv_cert_instruction && first_name == other.first_name && last_name == other.last_name && phone_number == other.phone_number && postal_code == other.postal_code end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 288 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
268 269 270 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 268 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
277 278 279 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 277 def hash [common_name, subject_alt_names, organization_name, organization_unit, locality, state, country, email_address, origin_csr, akamai_csr, origin_dv_cert_instruction, akamai_dv_cert_instruction, first_name, last_name, phone_number, postal_code].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
321 322 323 324 325 326 327 328 329 330 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 321 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
315 316 317 |
# File 'lib/oci/fusion_apps/models/certificate_info.rb', line 315 def to_s to_hash.to_s end |