Class: Akeyless::PKICertificateIssueDetails
- Inherits:
-
Object
- Object
- Akeyless::PKICertificateIssueDetails
- Defined in:
- lib/akeyless/models/pki_certificate_issue_details.rb
Instance Attribute Summary collapse
-
#acme_enabled ⇒ Object
Returns the value of attribute acme_enabled.
-
#allow_any_name ⇒ Object
Returns the value of attribute allow_any_name.
-
#allow_copy_ext_from_csr ⇒ Object
Returns the value of attribute allow_copy_ext_from_csr.
-
#allow_subdomains ⇒ Object
Returns the value of attribute allow_subdomains.
-
#allowed_domains_list ⇒ Object
Returns the value of attribute allowed_domains_list.
-
#allowed_extra_extensions ⇒ Object
Returns the value of attribute allowed_extra_extensions.
-
#allowed_uri_sans ⇒ Object
Returns the value of attribute allowed_uri_sans.
-
#basic_constraints_valid_for_non_ca ⇒ Object
Returns the value of attribute basic_constraints_valid_for_non_ca.
-
#certificate_authority_mode ⇒ Object
Returns the value of attribute certificate_authority_mode.
-
#client_flag ⇒ Object
Returns the value of attribute client_flag.
-
#code_signing_flag ⇒ Object
Returns the value of attribute code_signing_flag.
-
#country ⇒ Object
Returns the value of attribute country.
-
#create_private_crl ⇒ Object
Returns the value of attribute create_private_crl.
-
#create_public_crl ⇒ Object
Returns the value of attribute create_public_crl.
-
#destination_path ⇒ Object
DestinationPath is the destination to save generated certificates.
-
#enforce_hostnames ⇒ Object
Returns the value of attribute enforce_hostnames.
-
#expiration_events ⇒ Object
ExpirationNotification holds a list of expiration notices that should be sent in case a certificate is about to expire, this value is being propagated to the Certificate resources that are created.
-
#gw_cluster_id ⇒ Object
Returns the value of attribute gw_cluster_id.
-
#gw_cluster_url ⇒ Object
GWClusterURL is required when CAMode is "public" and it defines the cluster URL the PKI should be issued from.
-
#is_ca ⇒ Object
Returns the value of attribute is_ca.
-
#key_bits ⇒ Object
Returns the value of attribute key_bits.
-
#key_type ⇒ Object
Returns the value of attribute key_type.
-
#key_usage_list ⇒ Object
Returns the value of attribute key_usage_list.
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#non_critical_key_usage ⇒ Object
Returns the value of attribute non_critical_key_usage.
-
#not_before_duration ⇒ Object
A Duration represents the elapsed time between two instants as an int64 nanosecond count.
-
#organization_list ⇒ Object
Returns the value of attribute organization_list.
-
#organization_unit_list ⇒ Object
Returns the value of attribute organization_unit_list.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#protect_generated_certificates ⇒ Object
ProtectGeneratedCertificates dictates whether the created certificates should be protected from deletion.
-
#province ⇒ Object
Returns the value of attribute province.
-
#require_cn ⇒ Object
Returns the value of attribute require_cn.
-
#server_flag ⇒ Object
Returns the value of attribute server_flag.
-
#street_address ⇒ Object
Returns the value of attribute street_address.
Class Method Summary collapse
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ PKICertificateIssueDetails
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ PKICertificateIssueDetails
Initializes the object
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 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 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 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 184 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::PKICertificateIssueDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::PKICertificateIssueDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'acme_enabled') self.acme_enabled = attributes[:'acme_enabled'] end if attributes.key?(:'allow_any_name') self.allow_any_name = attributes[:'allow_any_name'] end if attributes.key?(:'allow_copy_ext_from_csr') self.allow_copy_ext_from_csr = attributes[:'allow_copy_ext_from_csr'] end if attributes.key?(:'allow_subdomains') self.allow_subdomains = attributes[:'allow_subdomains'] end if attributes.key?(:'allowed_domains_list') if (value = attributes[:'allowed_domains_list']).is_a?(Array) self.allowed_domains_list = value end end if attributes.key?(:'allowed_extra_extensions') if (value = attributes[:'allowed_extra_extensions']).is_a?(Hash) self.allowed_extra_extensions = value end end if attributes.key?(:'allowed_uri_sans') if (value = attributes[:'allowed_uri_sans']).is_a?(Array) self.allowed_uri_sans = value end end if attributes.key?(:'basic_constraints_valid_for_non_ca') self.basic_constraints_valid_for_non_ca = attributes[:'basic_constraints_valid_for_non_ca'] end if attributes.key?(:'certificate_authority_mode') self. = attributes[:'certificate_authority_mode'] end if attributes.key?(:'client_flag') self.client_flag = attributes[:'client_flag'] end if attributes.key?(:'code_signing_flag') self.code_signing_flag = attributes[:'code_signing_flag'] end if attributes.key?(:'country') if (value = attributes[:'country']).is_a?(Array) self.country = value end end if attributes.key?(:'create_private_crl') self.create_private_crl = attributes[:'create_private_crl'] end if attributes.key?(:'create_public_crl') self.create_public_crl = attributes[:'create_public_crl'] end if attributes.key?(:'destination_path') self.destination_path = attributes[:'destination_path'] end if attributes.key?(:'enforce_hostnames') self.enforce_hostnames = attributes[:'enforce_hostnames'] end if attributes.key?(:'expiration_events') if (value = attributes[:'expiration_events']).is_a?(Array) self.expiration_events = value end end if attributes.key?(:'gw_cluster_id') self.gw_cluster_id = attributes[:'gw_cluster_id'] end if attributes.key?(:'gw_cluster_url') self.gw_cluster_url = attributes[:'gw_cluster_url'] end if attributes.key?(:'is_ca') self.is_ca = attributes[:'is_ca'] end if attributes.key?(:'key_bits') self.key_bits = attributes[:'key_bits'] end if attributes.key?(:'key_type') self.key_type = attributes[:'key_type'] end if attributes.key?(:'key_usage_list') if (value = attributes[:'key_usage_list']).is_a?(Array) self.key_usage_list = value end end if attributes.key?(:'locality') if (value = attributes[:'locality']).is_a?(Array) self.locality = value end end if attributes.key?(:'non_critical_key_usage') self.non_critical_key_usage = attributes[:'non_critical_key_usage'] end if attributes.key?(:'not_before_duration') self.not_before_duration = attributes[:'not_before_duration'] end if attributes.key?(:'organization_list') if (value = attributes[:'organization_list']).is_a?(Array) self.organization_list = value end end if attributes.key?(:'organization_unit_list') if (value = attributes[:'organization_unit_list']).is_a?(Array) self.organization_unit_list = value end end if attributes.key?(:'postal_code') if (value = attributes[:'postal_code']).is_a?(Array) self.postal_code = value end end if attributes.key?(:'protect_generated_certificates') self.protect_generated_certificates = attributes[:'protect_generated_certificates'] end if attributes.key?(:'province') if (value = attributes[:'province']).is_a?(Array) self.province = value end end if attributes.key?(:'require_cn') self.require_cn = attributes[:'require_cn'] end if attributes.key?(:'server_flag') self.server_flag = attributes[:'server_flag'] end if attributes.key?(:'street_address') if (value = attributes[:'street_address']).is_a?(Array) self.street_address = value end end end |
Instance Attribute Details
#acme_enabled ⇒ Object
Returns the value of attribute acme_enabled.
18 19 20 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 18 def acme_enabled @acme_enabled end |
#allow_any_name ⇒ Object
Returns the value of attribute allow_any_name.
20 21 22 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 20 def allow_any_name @allow_any_name end |
#allow_copy_ext_from_csr ⇒ Object
Returns the value of attribute allow_copy_ext_from_csr.
22 23 24 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 22 def allow_copy_ext_from_csr @allow_copy_ext_from_csr end |
#allow_subdomains ⇒ Object
Returns the value of attribute allow_subdomains.
24 25 26 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 24 def allow_subdomains @allow_subdomains end |
#allowed_domains_list ⇒ Object
Returns the value of attribute allowed_domains_list.
26 27 28 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 26 def allowed_domains_list @allowed_domains_list end |
#allowed_extra_extensions ⇒ Object
Returns the value of attribute allowed_extra_extensions.
28 29 30 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 28 def allowed_extra_extensions @allowed_extra_extensions end |
#allowed_uri_sans ⇒ Object
Returns the value of attribute allowed_uri_sans.
30 31 32 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 30 def allowed_uri_sans @allowed_uri_sans end |
#basic_constraints_valid_for_non_ca ⇒ Object
Returns the value of attribute basic_constraints_valid_for_non_ca.
32 33 34 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 32 def basic_constraints_valid_for_non_ca @basic_constraints_valid_for_non_ca end |
#certificate_authority_mode ⇒ Object
Returns the value of attribute certificate_authority_mode.
34 35 36 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 34 def @certificate_authority_mode end |
#client_flag ⇒ Object
Returns the value of attribute client_flag.
36 37 38 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 36 def client_flag @client_flag end |
#code_signing_flag ⇒ Object
Returns the value of attribute code_signing_flag.
38 39 40 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 38 def code_signing_flag @code_signing_flag end |
#country ⇒ Object
Returns the value of attribute country.
40 41 42 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 40 def country @country end |
#create_private_crl ⇒ Object
Returns the value of attribute create_private_crl.
42 43 44 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 42 def create_private_crl @create_private_crl end |
#create_public_crl ⇒ Object
Returns the value of attribute create_public_crl.
44 45 46 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 44 def create_public_crl @create_public_crl end |
#destination_path ⇒ Object
DestinationPath is the destination to save generated certificates
47 48 49 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 47 def destination_path @destination_path end |
#enforce_hostnames ⇒ Object
Returns the value of attribute enforce_hostnames.
49 50 51 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 49 def enforce_hostnames @enforce_hostnames end |
#expiration_events ⇒ Object
ExpirationNotification holds a list of expiration notices that should be sent in case a certificate is about to expire, this value is being propagated to the Certificate resources that are created
52 53 54 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 52 def expiration_events @expiration_events end |
#gw_cluster_id ⇒ Object
Returns the value of attribute gw_cluster_id.
54 55 56 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 54 def gw_cluster_id @gw_cluster_id end |
#gw_cluster_url ⇒ Object
GWClusterURL is required when CAMode is "public" and it defines the cluster URL the PKI should be issued from. The GW cluster must have permissions to read associated target’s details
57 58 59 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 57 def gw_cluster_url @gw_cluster_url end |
#is_ca ⇒ Object
Returns the value of attribute is_ca.
59 60 61 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 59 def is_ca @is_ca end |
#key_bits ⇒ Object
Returns the value of attribute key_bits.
61 62 63 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 61 def key_bits @key_bits end |
#key_type ⇒ Object
Returns the value of attribute key_type.
63 64 65 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 63 def key_type @key_type end |
#key_usage_list ⇒ Object
Returns the value of attribute key_usage_list.
65 66 67 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 65 def key_usage_list @key_usage_list end |
#locality ⇒ Object
Returns the value of attribute locality.
67 68 69 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 67 def locality @locality end |
#non_critical_key_usage ⇒ Object
Returns the value of attribute non_critical_key_usage.
69 70 71 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 69 def non_critical_key_usage @non_critical_key_usage end |
#not_before_duration ⇒ Object
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
72 73 74 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 72 def not_before_duration @not_before_duration end |
#organization_list ⇒ Object
Returns the value of attribute organization_list.
74 75 76 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 74 def organization_list @organization_list end |
#organization_unit_list ⇒ Object
Returns the value of attribute organization_unit_list.
76 77 78 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 76 def organization_unit_list @organization_unit_list end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
78 79 80 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 78 def postal_code @postal_code end |
#protect_generated_certificates ⇒ Object
ProtectGeneratedCertificates dictates whether the created certificates should be protected from deletion
81 82 83 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 81 def protect_generated_certificates @protect_generated_certificates end |
#province ⇒ Object
Returns the value of attribute province.
83 84 85 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 83 def province @province end |
#require_cn ⇒ Object
Returns the value of attribute require_cn.
85 86 87 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 85 def require_cn @require_cn end |
#server_flag ⇒ Object
Returns the value of attribute server_flag.
87 88 89 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 87 def server_flag @server_flag end |
#street_address ⇒ Object
Returns the value of attribute street_address.
89 90 91 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 89 def street_address @street_address end |
Class Method Details
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
453 454 455 456 457 458 459 460 461 462 463 464 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 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 453 def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Akeyless.const_get(type) klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
132 133 134 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 132 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 92 def self.attribute_map { :'acme_enabled' => :'acme_enabled', :'allow_any_name' => :'allow_any_name', :'allow_copy_ext_from_csr' => :'allow_copy_ext_from_csr', :'allow_subdomains' => :'allow_subdomains', :'allowed_domains_list' => :'allowed_domains_list', :'allowed_extra_extensions' => :'allowed_extra_extensions', :'allowed_uri_sans' => :'allowed_uri_sans', :'basic_constraints_valid_for_non_ca' => :'basic_constraints_valid_for_non_ca', :'certificate_authority_mode' => :'certificate_authority_mode', :'client_flag' => :'client_flag', :'code_signing_flag' => :'code_signing_flag', :'country' => :'country', :'create_private_crl' => :'create_private_crl', :'create_public_crl' => :'create_public_crl', :'destination_path' => :'destination_path', :'enforce_hostnames' => :'enforce_hostnames', :'expiration_events' => :'expiration_events', :'gw_cluster_id' => :'gw_cluster_id', :'gw_cluster_url' => :'gw_cluster_url', :'is_ca' => :'is_ca', :'key_bits' => :'key_bits', :'key_type' => :'key_type', :'key_usage_list' => :'key_usage_list', :'locality' => :'locality', :'non_critical_key_usage' => :'non_critical_key_usage', :'not_before_duration' => :'not_before_duration', :'organization_list' => :'organization_list', :'organization_unit_list' => :'organization_unit_list', :'postal_code' => :'postal_code', :'protect_generated_certificates' => :'protect_generated_certificates', :'province' => :'province', :'require_cn' => :'require_cn', :'server_flag' => :'server_flag', :'street_address' => :'street_address' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 429 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
177 178 179 180 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 177 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
137 138 139 140 141 142 143 144 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 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 137 def self.openapi_types { :'acme_enabled' => :'Boolean', :'allow_any_name' => :'Boolean', :'allow_copy_ext_from_csr' => :'Boolean', :'allow_subdomains' => :'Boolean', :'allowed_domains_list' => :'Array<String>', :'allowed_extra_extensions' => :'Hash<String, Array<String>>', :'allowed_uri_sans' => :'Array<String>', :'basic_constraints_valid_for_non_ca' => :'Boolean', :'certificate_authority_mode' => :'String', :'client_flag' => :'Boolean', :'code_signing_flag' => :'Boolean', :'country' => :'Array<String>', :'create_private_crl' => :'Boolean', :'create_public_crl' => :'Boolean', :'destination_path' => :'String', :'enforce_hostnames' => :'Boolean', :'expiration_events' => :'Array<CertificateExpirationEvent>', :'gw_cluster_id' => :'Integer', :'gw_cluster_url' => :'String', :'is_ca' => :'Boolean', :'key_bits' => :'Integer', :'key_type' => :'String', :'key_usage_list' => :'Array<String>', :'locality' => :'Array<String>', :'non_critical_key_usage' => :'Boolean', :'not_before_duration' => :'Integer', :'organization_list' => :'Array<String>', :'organization_unit_list' => :'Array<String>', :'postal_code' => :'Array<String>', :'protect_generated_certificates' => :'Boolean', :'province' => :'Array<String>', :'require_cn' => :'Boolean', :'server_flag' => :'Boolean', :'street_address' => :'Array<String>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 375 def ==(o) return true if self.equal?(o) self.class == o.class && acme_enabled == o.acme_enabled && allow_any_name == o.allow_any_name && allow_copy_ext_from_csr == o.allow_copy_ext_from_csr && allow_subdomains == o.allow_subdomains && allowed_domains_list == o.allowed_domains_list && allowed_extra_extensions == o.allowed_extra_extensions && allowed_uri_sans == o.allowed_uri_sans && basic_constraints_valid_for_non_ca == o.basic_constraints_valid_for_non_ca && == o. && client_flag == o.client_flag && code_signing_flag == o.code_signing_flag && country == o.country && create_private_crl == o.create_private_crl && create_public_crl == o.create_public_crl && destination_path == o.destination_path && enforce_hostnames == o.enforce_hostnames && expiration_events == o.expiration_events && gw_cluster_id == o.gw_cluster_id && gw_cluster_url == o.gw_cluster_url && is_ca == o.is_ca && key_bits == o.key_bits && key_type == o.key_type && key_usage_list == o.key_usage_list && locality == o.locality && non_critical_key_usage == o.non_critical_key_usage && not_before_duration == o.not_before_duration && organization_list == o.organization_list && organization_unit_list == o.organization_unit_list && postal_code == o.postal_code && protect_generated_certificates == o.protect_generated_certificates && province == o.province && require_cn == o.require_cn && server_flag == o.server_flag && street_address == o.street_address end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 524 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#eql?(o) ⇒ Boolean
416 417 418 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 416 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
422 423 424 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 422 def hash [acme_enabled, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains_list, allowed_extra_extensions, allowed_uri_sans, basic_constraints_valid_for_non_ca, , client_flag, code_signing_flag, country, create_private_crl, create_public_crl, destination_path, enforce_hostnames, expiration_events, gw_cluster_id, gw_cluster_url, is_ca, key_bits, key_type, key_usage_list, locality, non_critical_key_usage, not_before_duration, organization_list, organization_unit_list, postal_code, protect_generated_certificates, province, require_cn, server_flag, street_address].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
360 361 362 363 364 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 360 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
500 501 502 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 500 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 506 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
494 495 496 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 494 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
368 369 370 371 |
# File 'lib/akeyless/models/pki_certificate_issue_details.rb', line 368 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' true end |