Skip to content

Commit 71c748d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 786a1731 of spec repo
1 parent b56c669 commit 71c748d

File tree

5 files changed

+43
-5
lines changed

5 files changed

+43
-5
lines changed

.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-17 14:52:48.536491",
8-
"spec_repo_commit": "3bf67773"
7+
"regenerated": "2024-07-17 20:47:00.852804",
8+
"spec_repo_commit": "786a1731"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-17 14:52:48.553866",
13-
"spec_repo_commit": "3bf67773"
12+
"regenerated": "2024-07-17 20:47:00.870774",
13+
"spec_repo_commit": "786a1731"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8741,6 +8741,12 @@ components:
87418741
description: Attributes of hourly usage for a product family for an org for
87428742
a time period.
87438743
properties:
8744+
account_name:
8745+
description: The account name.
8746+
type: string
8747+
account_public_id:
8748+
description: The account public ID.
8749+
type: string
87448750
measurements:
87458751
description: List of the measured usage values for the product family for
87468752
the org for the time period.
@@ -36770,6 +36776,15 @@ paths:
3677036776
schema:
3677136777
default: false
3677236778
type: boolean
36779+
- description: Boolean to specify whether to include accounts connected to the
36780+
current account as partner customers in the Datadog partner network program.
36781+
Defaults to false.
36782+
in: query
36783+
name: filter[include_connected_accounts]
36784+
required: false
36785+
schema:
36786+
default: false
36787+
type: boolean
3677336788
- description: Include breakdown of usage by subcategories where applicable
3677436789
(for product family logs only). Defaults to false.
3677536790
in: query

features/scenarios_model_mapping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@
11091109
"filter_timestamp_end" => "Time",
11101110
"filter_product_families" => "String",
11111111
"filter_include_descendants" => "Boolean",
1112+
"filter_include_connected_accounts" => "Boolean",
11121113
"filter_include_breakdown" => "Boolean",
11131114
"filter_versions" => "String",
11141115
"page_limit" => "Integer",

lib/datadog_api_client/v2/api/usage_metering_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ def get_hourly_usage(filter_timestamp_start, filter_product_families, opts = {})
333333
# @param opts [Hash] the optional parameters
334334
# @option opts [Time] :filter_timestamp_end Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
335335
# @option opts [Boolean] :filter_include_descendants Include child org usage in the response. Defaults to false.
336+
# @option opts [Boolean] :filter_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.
336337
# @option opts [Boolean] :filter_include_breakdown Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false.
337338
# @option opts [String] :filter_versions Comma separated list of product family versions to use in the format `product_family:version`. For example, `infra_hosts:1.0.0`. If this parameter is not used, the API will use the latest version of each requested product family. Currently all families have one version `1.0.0`.
338339
# @option opts [Integer] :page_limit Maximum number of results to return (between 1 and 500) - defaults to 500 if limit not specified.
@@ -366,6 +367,7 @@ def get_hourly_usage_with_http_info(filter_timestamp_start, filter_product_famil
366367
query_params[:'filter[product_families]'] = filter_product_families
367368
query_params[:'filter[timestamp][end]'] = opts[:'filter_timestamp_end'] if !opts[:'filter_timestamp_end'].nil?
368369
query_params[:'filter[include_descendants]'] = opts[:'filter_include_descendants'] if !opts[:'filter_include_descendants'].nil?
370+
query_params[:'filter[include_connected_accounts]'] = opts[:'filter_include_connected_accounts'] if !opts[:'filter_include_connected_accounts'].nil?
369371
query_params[:'filter[include_breakdown]'] = opts[:'filter_include_breakdown'] if !opts[:'filter_include_breakdown'].nil?
370372
query_params[:'filter[versions]'] = opts[:'filter_versions'] if !opts[:'filter_versions'].nil?
371373
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?

lib/datadog_api_client/v2/models/hourly_usage_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 HourlyUsageAttributes
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 the measured usage values for the product family for the org for the time period.
2531
attr_accessor :measurements
2632

@@ -43,6 +49,8 @@ class HourlyUsageAttributes
4349
# @!visibility private
4450
def self.attribute_map
4551
{
52+
:'account_name' => :'account_name',
53+
:'account_public_id' => :'account_public_id',
4654
:'measurements' => :'measurements',
4755
:'org_name' => :'org_name',
4856
:'product_family' => :'product_family',
@@ -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
:'measurements' => :'Array<HourlyUsageMeasurement>',
6070
:'org_name' => :'String',
6171
:'product_family' => :'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?(:'measurements')
85103
if (value = attributes[:'measurements']).is_a?(Array)
86104
self.measurements = 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
measurements == o.measurements &&
118138
org_name == o.org_name &&
119139
product_family == o.product_family &&
@@ -126,7 +146,7 @@ def ==(o)
126146
# @return [Integer] Hash code
127147
# @!visibility private
128148
def hash
129-
[measurements, org_name, product_family, public_id, region, timestamp].hash
149+
[account_name, account_public_id, measurements, org_name, product_family, public_id, region, timestamp].hash
130150
end
131151
end
132152
end

0 commit comments

Comments
 (0)