Class: Azure::ARM::CDN::Models::ValidateCustomDomainOutput
- Inherits:
-
Object
- Object
- Azure::ARM::CDN::Models::ValidateCustomDomainOutput
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb
Overview
Output of custom domain validation
Instance Attribute Summary collapse
-
#custom_domain_validated ⇒ Boolean
not.
-
#message ⇒ String
The message on why the custom domain is not valid.
-
#reason ⇒ String
The reason why the custom domain is not valid.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ValidateCustomDomainOutput
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
#custom_domain_validated ⇒ Boolean
not
17 18 19 |
# File 'lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb', line 17 def custom_domain_validated @custom_domain_validated end |
#message ⇒ String
Returns The message on why the custom domain is not valid.
23 24 25 |
# File 'lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb', line 23 def @message end |
#reason ⇒ String
Returns The reason why the custom domain is not valid.
20 21 22 |
# File 'lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb', line 20 def reason @reason end |
Class Method Details
.deserialize_object(object) ⇒ ValidateCustomDomainOutput
Deserializes given Ruby Hash into Model object.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb', line 58 def self.deserialize_object(object) return if object.nil? output_object = ValidateCustomDomainOutput.new deserialized_property = object['customDomainValidated'] output_object.custom_domain_validated = deserialized_property deserialized_property = object['reason'] output_object.reason = deserialized_property deserialized_property = object['message'] output_object. = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb', line 37 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.custom_domain_validated output_object['customDomainValidated'] = serialized_property unless serialized_property.nil? serialized_property = object.reason output_object['reason'] = serialized_property unless serialized_property.nil? serialized_property = object. output_object['message'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
28 29 30 |
# File 'lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb', line 28 def validate # Nothing to validate end |