Class: DatadogAPIClient::V1::Organization
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::Organization
- Defined in:
- lib/datadog_api_client/v1/models/organization.rb
Overview
Create, edit, and manage organizations.
Instance Attribute Summary collapse
-
#billing ⇒ Object
Returns the value of attribute billing.
-
#created ⇒ Object
Date of the organization creation.
-
#description ⇒ Object
Description of the organization.
-
#name ⇒ Object
The name of the new child-organization, limited to 32 characters.
-
#public_id ⇒ Object
The ‘public_id` of the organization you are operating within.
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#subscription ⇒ Object
Returns the value of attribute subscription.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Organization
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ Organization
Initializes the object
87 88 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 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 87 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Organization` 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::Organization`. 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?(:'billing') self.billing = attributes[:'billing'] end if attributes.key?(:'created') self.created = attributes[:'created'] end if attributes.key?(:'description') self.description = attributes[:'description'] 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?(:'settings') self.settings = attributes[:'settings'] end if attributes.key?(:'subscription') self.subscription = attributes[:'subscription'] end end |
Instance Attribute Details
#billing ⇒ Object
Returns the value of attribute billing.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 26 def billing @billing end |
#created ⇒ Object
Date of the organization creation.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 29 def created @created end |
#description ⇒ Object
Description of the organization.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 32 def description @description end |
#name ⇒ Object
The name of the new child-organization, limited to 32 characters.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 35 def name @name end |
#public_id ⇒ Object
The ‘public_id` of the organization you are operating within.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 38 def public_id @public_id end |
#settings ⇒ Object
Returns the value of attribute settings.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 40 def settings @settings end |
#subscription ⇒ Object
Returns the value of attribute subscription.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/organization.rb', line 42 def subscription @subscription end |