Class: Azure::ARM::Web::Models::UserProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::UserProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/user_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#name ⇒ String
Username (internal).
-
#publishing_password ⇒ String
Password used for publishing.
-
#publishing_user_name ⇒ String
Username used for publishing.
-
#scm_uri ⇒ String
password.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ UserProperties
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
#name ⇒ String
Returns Username (internal).
16 17 18 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 16 def name @name end |
#publishing_password ⇒ String
Returns Password used for publishing.
22 23 24 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 22 def publishing_password @publishing_password end |
#publishing_user_name ⇒ String
Returns Username used for publishing.
19 20 21 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 19 def publishing_user_name @publishing_user_name end |
#scm_uri ⇒ String
password
26 27 28 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 26 def scm_uri @scm_uri end |
Class Method Details
.deserialize_object(object) ⇒ UserProperties
Deserializes given Ruby Hash into Model object.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 64 def self.deserialize_object(object) return if object.nil? output_object = UserProperties.new deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['publishingUserName'] output_object.publishing_user_name = deserialized_property deserialized_property = object['publishingPassword'] output_object.publishing_password = deserialized_property deserialized_property = object['scmUri'] output_object.scm_uri = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 40 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.publishing_user_name output_object['publishingUserName'] = serialized_property unless serialized_property.nil? serialized_property = object.publishing_password output_object['publishingPassword'] = serialized_property unless serialized_property.nil? serialized_property = object.scm_uri output_object['scmUri'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
31 32 33 |
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 31 def validate # Nothing to validate end |