Class: Azure::ARM::Web::Models::UserProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/user_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameString

Returns Username (internal).

Returns:

  • (String)

    Username (internal)



16
17
18
# File 'lib/azure_mgmt_web/models/user_properties.rb', line 16

def name
  @name
end

#publishing_passwordString

Returns Password used for publishing.

Returns:

  • (String)

    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_nameString

Returns Username used for publishing.

Returns:

  • (String)

    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_uriString

password

Returns:

  • (String)

    Service Control Manager URI, including username and



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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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

#validateObject

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