Class: DatadogAPIClient::V2::PermissionAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::PermissionAttributes
- Defined in:
- lib/datadog_api_client/v2/models/permission_attributes.rb
Overview
Attributes of a permission.
Instance Attribute Summary collapse
-
#created ⇒ Object
Creation time of the permission.
-
#description ⇒ Object
Description of the permission.
-
#display_name ⇒ Object
Displayed name for the permission.
-
#display_type ⇒ Object
Display type.
-
#group_name ⇒ Object
Name of the permission group.
-
#name ⇒ Object
Name of the permission.
-
#restricted ⇒ Object
Whether or not the permission is restricted.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PermissionAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ PermissionAttributes
Initializes the object
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 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 90 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionAttributes` 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::V2::PermissionAttributes`. 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?(:'created') self.created = attributes[:'created'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] end if attributes.key?(:'display_type') self.display_type = attributes[:'display_type'] end if attributes.key?(:'group_name') self.group_name = attributes[:'group_name'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'restricted') self.restricted = attributes[:'restricted'] end end |
Instance Attribute Details
#created ⇒ Object
Creation time of the permission.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 27 def created @created end |
#description ⇒ Object
Description of the permission.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 30 def description @description end |
#display_name ⇒ Object
Displayed name for the permission.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 33 def display_name @display_name end |
#display_type ⇒ Object
Display type.
36 37 38 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 36 def display_type @display_type end |
#group_name ⇒ Object
Name of the permission group.
39 40 41 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 39 def group_name @group_name end |
#name ⇒ Object
Name of the permission.
42 43 44 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 42 def name @name end |
#restricted ⇒ Object
Whether or not the permission is restricted.
45 46 47 |
# File 'lib/datadog_api_client/v2/models/permission_attributes.rb', line 45 def restricted @restricted end |