Class: DatadogAPIClient::V2::OrganizationAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::OrganizationAttributes
- Defined in:
- lib/datadog_api_client/v2/models/organization_attributes.rb
Overview
Attributes of the organization.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Creation time of the organization.
-
#description ⇒ Object
Description of the organization.
-
#disabled ⇒ Object
Whether or not the organization is disabled.
-
#modified_at ⇒ Object
Time of last organization modification.
-
#name ⇒ Object
Name of the organization.
-
#public_id ⇒ Object
Public ID of the organization.
-
#sharing ⇒ Object
Sharing type of the organization.
-
#url ⇒ Object
URL of the site that this organization exists at.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ OrganizationAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ OrganizationAttributes
Initializes the object
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 132 133 134 135 136 137 138 139 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 95 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrganizationAttributes` 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::OrganizationAttributes`. 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_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'disabled') self.disabled = attributes[:'disabled'] end if attributes.key?(:'modified_at') self.modified_at = attributes[:'modified_at'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'public_id') self.public_id = attributes[:'public_id'] end if attributes.key?(:'sharing') self.sharing = attributes[:'sharing'] end if attributes.key?(:'url') self.url = attributes[:'url'] end end |
Instance Attribute Details
#created_at ⇒ Object
Creation time of the organization.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 27 def created_at @created_at end |
#description ⇒ Object
Description of the organization.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 30 def description @description end |
#disabled ⇒ Object
Whether or not the organization is disabled.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 33 def disabled @disabled end |
#modified_at ⇒ Object
Time of last organization modification.
36 37 38 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 36 def modified_at @modified_at end |
#name ⇒ Object
Name of the organization.
39 40 41 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 39 def name @name end |
#public_id ⇒ Object
Public ID of the organization.
42 43 44 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 42 def public_id @public_id end |
#sharing ⇒ Object
Sharing type of the organization.
45 46 47 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 45 def sharing @sharing end |
#url ⇒ Object
URL of the site that this organization exists at.
48 49 50 |
# File 'lib/datadog_api_client/v2/models/organization_attributes.rb', line 48 def url @url end |