Class: Azure::ARM::Web::Models::CertificateProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::CertificateProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/certificate_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#cer_blob ⇒ String
Raw bytes of .cer file.
-
#expiration_date ⇒ DateTime
Certificate expriration date.
-
#friendly_name ⇒ String
Friendly name of the certificate.
-
#host_names ⇒ Array<String>
Host names the certificate applies to.
-
#hosting_environment_profile ⇒ HostingEnvironmentProfile
environment (App Service Environment) to use for the certificate.
-
#issue_date ⇒ DateTime
Certificate issue Date.
-
#issuer ⇒ String
Certificate issuer.
-
#password ⇒ String
Certificate password.
-
#pfx_blob ⇒ String
Pfx blob.
-
#public_key_hash ⇒ String
Public key hash.
-
#self_link ⇒ String
Self link.
-
#site_name ⇒ String
App name.
-
#subject_name ⇒ String
Subject name of the certificate.
-
#thumbprint ⇒ String
Certificate thumbprint.
-
#valid ⇒ Boolean
Is the certificate valid?.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ CertificateProperties
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
#cer_blob ⇒ String
Returns Raw bytes of .cer file.
52 53 54 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 52 def cer_blob @cer_blob end |
#expiration_date ⇒ DateTime
Returns Certificate expriration date.
40 41 42 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 40 def expiration_date @expiration_date end |
#friendly_name ⇒ String
Returns Friendly name of the certificate.
16 17 18 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 16 def friendly_name @friendly_name end |
#host_names ⇒ Array<String>
Returns Host names the certificate applies to.
22 23 24 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 22 def host_names @host_names end |
#hosting_environment_profile ⇒ HostingEnvironmentProfile
environment (App Service Environment) to use for the certificate
59 60 61 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 59 def hosting_environment_profile @hosting_environment_profile end |
#issue_date ⇒ DateTime
Returns Certificate issue Date.
37 38 39 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 37 def issue_date @issue_date end |
#issuer ⇒ String
Returns Certificate issuer.
34 35 36 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 34 def issuer @issuer end |
#password ⇒ String
Returns Certificate password.
43 44 45 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 43 def password @password end |
#pfx_blob ⇒ String
Returns Pfx blob.
25 26 27 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 25 def pfx_blob @pfx_blob end |
#public_key_hash ⇒ String
Returns Public key hash.
55 56 57 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 55 def public_key_hash @public_key_hash end |
#self_link ⇒ String
Returns Self link.
31 32 33 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 31 def self_link @self_link end |
#site_name ⇒ String
Returns App name.
28 29 30 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 28 def site_name @site_name end |
#subject_name ⇒ String
Returns Subject name of the certificate.
19 20 21 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 19 def subject_name @subject_name end |
#thumbprint ⇒ String
Returns Certificate thumbprint.
46 47 48 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 46 def thumbprint @thumbprint end |
#valid ⇒ Boolean
Returns Is the certificate valid?.
49 50 51 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 49 def valid @valid end |
Class Method Details
.deserialize_object(object) ⇒ CertificateProperties
Deserializes given Ruby Hash into Model object.
136 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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 136 def self.deserialize_object(object) return if object.nil? output_object = CertificateProperties.new deserialized_property = object['friendlyName'] output_object.friendly_name = deserialized_property deserialized_property = object['subjectName'] output_object.subject_name = deserialized_property deserialized_property = object['hostNames'] output_object.host_names = deserialized_property deserialized_property = object['pfxBlob'] output_object.pfx_blob = deserialized_property deserialized_property = object['siteName'] output_object.site_name = deserialized_property deserialized_property = object['selfLink'] output_object.self_link = deserialized_property deserialized_property = object['issuer'] output_object.issuer = deserialized_property deserialized_property = object['issueDate'] deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty? output_object.issue_date = deserialized_property deserialized_property = object['expirationDate'] deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty? output_object.expiration_date = deserialized_property deserialized_property = object['password'] output_object.password = deserialized_property deserialized_property = object['thumbprint'] output_object.thumbprint = deserialized_property deserialized_property = object['valid'] output_object.valid = deserialized_property deserialized_property = object['cerBlob'] output_object.cer_blob = deserialized_property deserialized_property = object['publicKeyHash'] output_object.public_key_hash = deserialized_property deserialized_property = object['hostingEnvironmentProfile'] unless deserialized_property.nil? deserialized_property = HostingEnvironmentProfile.deserialize_object(deserialized_property) end output_object.hosting_environment_profile = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
74 75 76 77 78 79 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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 74 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.friendly_name output_object['friendlyName'] = serialized_property unless serialized_property.nil? serialized_property = object.subject_name output_object['subjectName'] = serialized_property unless serialized_property.nil? serialized_property = object.host_names output_object['hostNames'] = serialized_property unless serialized_property.nil? serialized_property = object.pfx_blob output_object['pfxBlob'] = serialized_property unless serialized_property.nil? serialized_property = object.site_name output_object['siteName'] = serialized_property unless serialized_property.nil? serialized_property = object.self_link output_object['selfLink'] = serialized_property unless serialized_property.nil? serialized_property = object.issuer output_object['issuer'] = serialized_property unless serialized_property.nil? serialized_property = object.issue_date serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ') output_object['issueDate'] = serialized_property unless serialized_property.nil? serialized_property = object.expiration_date serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ') output_object['expirationDate'] = serialized_property unless serialized_property.nil? serialized_property = object.password output_object['password'] = serialized_property unless serialized_property.nil? serialized_property = object.thumbprint output_object['thumbprint'] = serialized_property unless serialized_property.nil? serialized_property = object.valid output_object['valid'] = serialized_property unless serialized_property.nil? serialized_property = object.cer_blob output_object['cerBlob'] = 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_profile unless serialized_property.nil? serialized_property = HostingEnvironmentProfile.serialize_object(serialized_property) end output_object['hostingEnvironmentProfile'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
64 65 66 67 |
# File 'lib/azure_mgmt_web/models/certificate_properties.rb', line 64 def validate @host_names.each{ |e| e.validate if e.respond_to?(:validate) } unless @host_names.nil? @hosting_environment_profile.validate unless @hosting_environment_profile.nil? end |