Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-02-17 20:11:18.892035",
"spec_repo_commit": "0eff793"
"regenerated": "2021-02-18 19:32:04.172832",
"spec_repo_commit": "12104ad"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-02-17 20:11:30.035220",
"spec_repo_commit": "0eff793"
"regenerated": "2021-02-18 19:32:14.887673",
"spec_repo_commit": "12104ad"
}
}
}
3 changes: 3 additions & 0 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8139,6 +8139,9 @@ components:
description: 'Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM].'
format: date-time
type: string
org_name:
description: The name of the organization.
type: string
public_id:
description: The organization public ID.
type: string
Expand Down
2 changes: 2 additions & 0 deletions docs/v1/UsageAttributionBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **month** | **Time** | Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. | [optional] |
| **org_name** | **String** | The name of the organization. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |
| **tags** | **Hash<String, Array<String>>** | Usage Summary by tag name. | [optional] |
| **updated_at** | **String** | Shows the the most recent hour in the current months for all organizations for which all usages were calculated. | [optional] |
Expand All @@ -17,6 +18,7 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageAttributionBody.new(
month: null,
org_name: null,
public_id: null,
tags: null,
updated_at: null,
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v1/models/usage_attribution_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class UsageAttributionBody
# Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM].
attr_accessor :month

# The name of the organization.
attr_accessor :org_name

# The organization public ID.
attr_accessor :public_id

Expand All @@ -37,6 +40,7 @@ class UsageAttributionBody
def self.attribute_map
{
:'month' => :'month',
:'org_name' => :'org_name',
:'public_id' => :'public_id',
:'tags' => :'tags',
:'updated_at' => :'updated_at',
Expand All @@ -53,6 +57,7 @@ def self.acceptable_attributes
def self.openapi_types
{
:'month' => :'Time',
:'org_name' => :'String',
:'public_id' => :'String',
:'tags' => :'Hash<String, Array<String>>',
:'updated_at' => :'String',
Expand Down Expand Up @@ -85,6 +90,10 @@ def initialize(attributes = {})
self.month = attributes[:'month']
end

if attributes.key?(:'org_name')
self.org_name = attributes[:'org_name']
end

if attributes.key?(:'public_id')
self.public_id = attributes[:'public_id']
end
Expand Down Expand Up @@ -123,6 +132,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
month == o.month &&
org_name == o.org_name &&
public_id == o.public_id &&
tags == o.tags &&
updated_at == o.updated_at &&
Expand All @@ -138,7 +148,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[month, public_id, tags, updated_at, values].hash
[month, org_name, public_id, tags, updated_at, values].hash
end

# Builds the object from hash
Expand Down