Class: DatadogAPIClient::V1::User
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::User
- Defined in:
- lib/datadog_api_client/v1/models/user.rb
Overview
Create, edit, and disable users.
Instance Attribute Summary collapse
-
#access_role ⇒ Object
Returns the value of attribute access_role.
-
#disabled ⇒ Object
The new disabled status of the user.
-
#email ⇒ Object
The new email of the user.
-
#handle ⇒ Object
The user handle, must be a valid email.
-
#icon ⇒ Object
Gravatar icon associated to the user.
-
#name ⇒ Object
The name of the user.
-
#verified ⇒ Object
Whether or not the user logged in Datadog at least once.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ User
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ User
Initializes the object
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 130 131 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 89 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::User` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'access_role') self.access_role = attributes[:'access_role'] else self.access_role = 'st' end if attributes.key?(:'disabled') self.disabled = attributes[:'disabled'] end if attributes.key?(:'email') self.email = attributes[:'email'] end if attributes.key?(:'handle') self.handle = attributes[:'handle'] end if attributes.key?(:'icon') self.icon = attributes[:'icon'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'verified') self.verified = attributes[:'verified'] end end |
Instance Attribute Details
#access_role ⇒ Object
Returns the value of attribute access_role.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 26 def access_role @access_role end |
#disabled ⇒ Object
The new disabled status of the user.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 29 def disabled @disabled end |
#email ⇒ Object
The new email of the user.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 32 def email @email end |
#handle ⇒ Object
The user handle, must be a valid email.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 35 def handle @handle end |
#icon ⇒ Object
Gravatar icon associated to the user.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 38 def icon @icon end |
#name ⇒ Object
The name of the user.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 41 def name @name end |
#verified ⇒ Object
Whether or not the user logged in Datadog at least once.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/user.rb', line 44 def verified @verified end |