Skip to content

Commit 9b4acee

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 06d5775d of spec repo
1 parent 695b77b commit 9b4acee

8 files changed

Lines changed: 82 additions & 6 deletions

File tree

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-07-11 16:35:06.139859",
8-
"spec_repo_commit": "d83fe206"
7+
"regenerated": "2024-07-16 10:52:41.887335",
8+
"spec_repo_commit": "06d5775d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-11 16:35:06.158034",
13-
"spec_repo_commit": "d83fe206"
12+
"regenerated": "2024-07-16 10:52:41.904999",
13+
"spec_repo_commit": "06d5775d"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17269,6 +17269,12 @@ components:
1726917269
UsageBillableSummaryHour:
1727017270
description: Response with monthly summary of data billed by Datadog.
1727117271
properties:
17272+
account_name:
17273+
description: The account name.
17274+
type: string
17275+
account_public_id:
17276+
description: The account public ID.
17277+
type: string
1727217278
billing_plan:
1727317279
description: The billing plan.
1727417280
type: string
@@ -31646,6 +31652,15 @@ paths:
3164631652
schema:
3164731653
format: date-time
3164831654
type: string
31655+
- description: 'Boolean to specify whether to include accounts connected to
31656+
the current account as partner customers in the Datadog partner network
31657+
program. Defaults to `false`. '
31658+
in: query
31659+
name: include_connected_accounts
31660+
required: false
31661+
schema:
31662+
default: false
31663+
type: boolean
3164931664
responses:
3165031665
'200':
3165131666
content:

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5390,6 +5390,12 @@ components:
53905390
CostByOrgAttributes:
53915391
description: Cost attributes data.
53925392
properties:
5393+
account_name:
5394+
description: The account name.
5395+
type: string
5396+
account_public_id:
5397+
description: The account public ID.
5398+
type: string
53935399
charges:
53945400
description: List of charges data reported for the requested month.
53955401
items:
@@ -36185,6 +36191,15 @@ paths:
3618536191
schema:
3618636192
format: date-time
3618736193
type: string
36194+
- description: 'Boolean to specify whether to include accounts connected to
36195+
the current account as partner customers in the Datadog partner network
36196+
program. Defaults to `false`. '
36197+
in: query
36198+
name: include_connected_accounts
36199+
required: false
36200+
schema:
36201+
default: false
36202+
type: boolean
3618836203
responses:
3618936204
'200':
3619036205
content:

features/scenarios_model_mapping.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
},
6161
"v1.GetUsageBillableSummary" => {
6262
"month" => "Time",
63+
"include_connected_accounts" => "Boolean",
6364
},
6465
"v1.GetUsageCIApp" => {
6566
"start_hr" => "Time",
@@ -1096,6 +1097,7 @@
10961097
"end_month" => "Time",
10971098
"start_date" => "Time",
10981099
"end_date" => "Time",
1100+
"include_connected_accounts" => "Boolean",
10991101
},
11001102
"v2.GetHistoricalCostByOrg" => {
11011103
"view" => "String",

lib/datadog_api_client/v1/api/usage_metering_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ def get_usage_billable_summary(opts = {})
839839
#
840840
# @param opts [Hash] the optional parameters
841841
# @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month.
842+
# @option opts [Boolean] :include_connected_accounts Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`.
842843
# @return [Array<(UsageBillableSummaryResponse, Integer, Hash)>] UsageBillableSummaryResponse data, response status code and response headers
843844
def get_usage_billable_summary_with_http_info(opts = {})
844845

@@ -851,6 +852,7 @@ def get_usage_billable_summary_with_http_info(opts = {})
851852
# query parameters
852853
query_params = opts[:query_params] || {}
853854
query_params[:'month'] = opts[:'month'] if !opts[:'month'].nil?
855+
query_params[:'include_connected_accounts'] = opts[:'include_connected_accounts'] if !opts[:'include_connected_accounts'].nil?
854856

855857
# header parameters
856858
header_params = opts[:header_params] || {}

lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module DatadogAPIClient::V1
2121
class UsageBillableSummaryHour
2222
include BaseGenericModel
2323

24+
# The account name.
25+
attr_accessor :account_name
26+
27+
# The account public ID.
28+
attr_accessor :account_public_id
29+
2430
# The billing plan.
2531
attr_accessor :billing_plan
2632

@@ -52,6 +58,8 @@ class UsageBillableSummaryHour
5258
# @!visibility private
5359
def self.attribute_map
5460
{
61+
:'account_name' => :'account_name',
62+
:'account_public_id' => :'account_public_id',
5563
:'billing_plan' => :'billing_plan',
5664
:'end_date' => :'end_date',
5765
:'num_orgs' => :'num_orgs',
@@ -68,6 +76,8 @@ def self.attribute_map
6876
# @!visibility private
6977
def self.openapi_types
7078
{
79+
:'account_name' => :'String',
80+
:'account_public_id' => :'String',
7181
:'billing_plan' => :'String',
7282
:'end_date' => :'Time',
7383
:'num_orgs' => :'Integer',
@@ -96,6 +106,14 @@ def initialize(attributes = {})
96106
h[k.to_sym] = v
97107
}
98108

109+
if attributes.key?(:'account_name')
110+
self.account_name = attributes[:'account_name']
111+
end
112+
113+
if attributes.key?(:'account_public_id')
114+
self.account_public_id = attributes[:'account_public_id']
115+
end
116+
99117
if attributes.key?(:'billing_plan')
100118
self.billing_plan = attributes[:'billing_plan']
101119
end
@@ -139,6 +157,8 @@ def initialize(attributes = {})
139157
def ==(o)
140158
return true if self.equal?(o)
141159
self.class == o.class &&
160+
account_name == o.account_name &&
161+
account_public_id == o.account_public_id &&
142162
billing_plan == o.billing_plan &&
143163
end_date == o.end_date &&
144164
num_orgs == o.num_orgs &&
@@ -154,7 +174,7 @@ def ==(o)
154174
# @return [Integer] Hash code
155175
# @!visibility private
156176
def hash
157-
[billing_plan, end_date, num_orgs, org_name, public_id, ratio_in_month, region, start_date, usage].hash
177+
[account_name, account_public_id, billing_plan, end_date, num_orgs, org_name, public_id, ratio_in_month, region, start_date, usage].hash
158178
end
159179
end
160180
end

lib/datadog_api_client/v2/api/usage_metering_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def get_estimated_cost_by_org(opts = {})
189189
# @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month.
190190
# @option opts [Time] :start_date Datetime in ISO-8601 format, UTC, precise to day: `[YYYY-MM-DD]` for cost beginning this day. Either start_month or start_date should be specified, but not both. (start_date cannot go beyond two months in the past). Provide an `end_date` to view day-over-day cumulative cost.
191191
# @option opts [Time] :end_date Datetime in ISO-8601 format, UTC, precise to day: `[YYYY-MM-DD]` for cost ending this day.
192+
# @option opts [Boolean] :include_connected_accounts Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`.
192193
# @return [Array<(CostByOrgResponse, Integer, Hash)>] CostByOrgResponse data, response status code and response headers
193194
def get_estimated_cost_by_org_with_http_info(opts = {})
194195

@@ -205,6 +206,7 @@ def get_estimated_cost_by_org_with_http_info(opts = {})
205206
query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
206207
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
207208
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
209+
query_params[:'include_connected_accounts'] = opts[:'include_connected_accounts'] if !opts[:'include_connected_accounts'].nil?
208210

209211
# header parameters
210212
header_params = opts[:header_params] || {}

lib/datadog_api_client/v2/models/cost_by_org_attributes.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
2121
class CostByOrgAttributes
2222
include BaseGenericModel
2323

24+
# The account name.
25+
attr_accessor :account_name
26+
27+
# The account public ID.
28+
attr_accessor :account_public_id
29+
2430
# List of charges data reported for the requested month.
2531
attr_accessor :charges
2632

@@ -43,6 +49,8 @@ class CostByOrgAttributes
4349
# @!visibility private
4450
def self.attribute_map
4551
{
52+
:'account_name' => :'account_name',
53+
:'account_public_id' => :'account_public_id',
4654
:'charges' => :'charges',
4755
:'date' => :'date',
4856
:'org_name' => :'org_name',
@@ -56,6 +64,8 @@ def self.attribute_map
5664
# @!visibility private
5765
def self.openapi_types
5866
{
67+
:'account_name' => :'String',
68+
:'account_public_id' => :'String',
5969
:'charges' => :'Array<ChargebackBreakdown>',
6070
:'date' => :'Time',
6171
:'org_name' => :'String',
@@ -81,6 +91,14 @@ def initialize(attributes = {})
8191
h[k.to_sym] = v
8292
}
8393

94+
if attributes.key?(:'account_name')
95+
self.account_name = attributes[:'account_name']
96+
end
97+
98+
if attributes.key?(:'account_public_id')
99+
self.account_public_id = attributes[:'account_public_id']
100+
end
101+
84102
if attributes.key?(:'charges')
85103
if (value = attributes[:'charges']).is_a?(Array)
86104
self.charges = value
@@ -114,6 +132,8 @@ def initialize(attributes = {})
114132
def ==(o)
115133
return true if self.equal?(o)
116134
self.class == o.class &&
135+
account_name == o.account_name &&
136+
account_public_id == o.account_public_id &&
117137
charges == o.charges &&
118138
date == o.date &&
119139
org_name == o.org_name &&
@@ -126,7 +146,7 @@ def ==(o)
126146
# @return [Integer] Hash code
127147
# @!visibility private
128148
def hash
129-
[charges, date, org_name, public_id, region, total_cost].hash
149+
[account_name, account_public_id, charges, date, org_name, public_id, region, total_cost].hash
130150
end
131151
end
132152
end

0 commit comments

Comments
 (0)