Class: Azure::ARM::Web::Models::CsrProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::CsrProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/csr_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#csr_string ⇒ String
Actual CSR string created.
-
#distinguished_name ⇒ String
Distinguished name of certificate to be created.
-
#hosting_environment ⇒ String
Hosting environment.
-
#name ⇒ String
Name used to locate CSR object.
-
#password ⇒ String
PFX password.
-
#pfx_blob ⇒ String
PFX certifcate of created certificate.
-
#public_key_hash ⇒ String
Hash of the certificates public key.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ CsrProperties
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#csr_string ⇒ String
Returns Actual CSR string created.
22 23 24 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 22 def csr_string @csr_string end |
#distinguished_name ⇒ String
Returns Distinguished name of certificate to be created.
19 20 21 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 19 def distinguished_name @distinguished_name end |
#hosting_environment ⇒ String
Returns Hosting environment.
34 35 36 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 34 def hosting_environment @hosting_environment end |
#name ⇒ String
Returns Name used to locate CSR object.
16 17 18 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 16 def name @name end |
#password ⇒ String
Returns PFX password.
28 29 30 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 28 def password @password end |
#pfx_blob ⇒ String
Returns PFX certifcate of created certificate.
25 26 27 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 25 def pfx_blob @pfx_blob end |
#public_key_hash ⇒ String
Returns Hash of the certificates public key.
31 32 33 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 31 def public_key_hash @public_key_hash end |
Class Method Details
.deserialize_object(object) ⇒ CsrProperties
Deserializes given Ruby Hash into Model object.
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 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 81 def self.deserialize_object(object) return if object.nil? output_object = CsrProperties.new deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['distinguishedName'] output_object.distinguished_name = deserialized_property deserialized_property = object['csrString'] output_object.csr_string = deserialized_property deserialized_property = object['pfxBlob'] output_object.pfx_blob = deserialized_property deserialized_property = object['password'] output_object.password = deserialized_property deserialized_property = object['publicKeyHash'] output_object.public_key_hash = deserialized_property deserialized_property = object['hostingEnvironment'] output_object.hosting_environment = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 48 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.name output_object['name'] = serialized_property unless serialized_property.nil? serialized_property = object.distinguished_name output_object['distinguishedName'] = serialized_property unless serialized_property.nil? serialized_property = object.csr_string output_object['csrString'] = serialized_property unless serialized_property.nil? serialized_property = object.pfx_blob output_object['pfxBlob'] = serialized_property unless serialized_property.nil? serialized_property = object.password output_object['password'] = serialized_property unless serialized_property.nil? serialized_property = object.public_key_hash output_object['publicKeyHash'] = serialized_property unless serialized_property.nil? serialized_property = object.hosting_environment output_object['hostingEnvironment'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
39 40 41 |
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 39 def validate # Nothing to validate end |