Skip to content

Commit 00fc783

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 17aa8b0 of spec repo
1 parent 0a5362f commit 00fc783

4 files changed

Lines changed: 54 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17796,6 +17796,18 @@ components:
1779617796
CustomCostListResponseMeta:
1779717797
description: Meta for the response from the List Custom Costs endpoints.
1779817798
properties:
17799+
count_by_status:
17800+
additionalProperties:
17801+
format: int64
17802+
type: integer
17803+
description: Number of Custom Costs files per status.
17804+
type: object
17805+
providers:
17806+
description: List of available providers.
17807+
items:
17808+
description: A provider name.
17809+
type: string
17810+
type: array
1779917811
total_filtered_count:
1780017812
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1780117813
format: int64
@@ -85747,6 +85759,18 @@ paths:
8574785759
name: filter[status]
8574885760
schema:
8574985761
type: string
85762+
- description: Filter files by name with case-insensitive substring matching.
85763+
in: query
85764+
name: filter[name]
85765+
schema:
85766+
type: string
85767+
- description: Filter by provider.
85768+
in: query
85769+
name: filter[provider]
85770+
schema:
85771+
items:
85772+
type: string
85773+
type: array
8575085774
- description: Sort key with optional descending prefix
8575185775
in: query
8575285776
name: sort

features/scenarios_model_mapping.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,8 @@
19131913
"page_number" => "Integer",
19141914
"page_size" => "Integer",
19151915
"filter_status" => "String",
1916+
"filter_name" => "String",
1917+
"filter_provider" => "Array<String>",
19161918
"sort" => "String",
19171919
},
19181920
"v2.UploadCustomCostsFile" => {

lib/datadog_api_client/v2/api/cloud_cost_management_api.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,8 @@ def list_custom_costs_files(opts = {})
15961596
# @option opts [Integer] :page_number Page number for pagination
15971597
# @option opts [Integer] :page_size Page size for pagination
15981598
# @option opts [String] :filter_status Filter by file status
1599+
# @option opts [String] :filter_name Filter files by name with case-insensitive substring matching.
1600+
# @option opts [Array<String>] :filter_provider Filter by provider.
15991601
# @option opts [String] :sort Sort key with optional descending prefix
16001602
# @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
16011603
def list_custom_costs_files_with_http_info(opts = {})
@@ -1611,6 +1613,8 @@ def list_custom_costs_files_with_http_info(opts = {})
16111613
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
16121614
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
16131615
query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
1616+
query_params[:'filter[name]'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
1617+
query_params[:'filter[provider]'] = @api_client.build_collection_param(opts[:'filter_provider'], :multi) if !opts[:'filter_provider'].nil?
16141618
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
16151619

16161620
# header parameters
@@ -1640,6 +1644,7 @@ def list_custom_costs_files_with_http_info(opts = {})
16401644
:return_type => return_type,
16411645
:api_version => "V2"
16421646
)
1647+
new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
16431648

16441649
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
16451650
if @api_client.config.debugging

lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb

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

24+
# Number of Custom Costs files per status.
25+
attr_accessor :count_by_status
26+
27+
# List of available providers.
28+
attr_accessor :providers
29+
2430
# Number of Custom Costs files returned by the List Custom Costs endpoint
2531
attr_accessor :total_filtered_count
2632

@@ -33,6 +39,8 @@ class CustomCostListResponseMeta
3339
# @!visibility private
3440
def self.attribute_map
3541
{
42+
:'count_by_status' => :'count_by_status',
43+
:'providers' => :'providers',
3644
:'total_filtered_count' => :'total_filtered_count',
3745
:'version' => :'version'
3846
}
@@ -42,6 +50,8 @@ def self.attribute_map
4250
# @!visibility private
4351
def self.openapi_types
4452
{
53+
:'count_by_status' => :'Hash<String, Integer>',
54+
:'providers' => :'Array<String>',
4555
:'total_filtered_count' => :'Integer',
4656
:'version' => :'String'
4757
}
@@ -65,6 +75,16 @@ def initialize(attributes = {})
6575
end
6676
}
6777

78+
if attributes.key?(:'count_by_status')
79+
self.count_by_status = attributes[:'count_by_status']
80+
end
81+
82+
if attributes.key?(:'providers')
83+
if (value = attributes[:'providers']).is_a?(Array)
84+
self.providers = value
85+
end
86+
end
87+
6888
if attributes.key?(:'total_filtered_count')
6989
self.total_filtered_count = attributes[:'total_filtered_count']
7090
end
@@ -100,6 +120,8 @@ def to_hash
100120
def ==(o)
101121
return true if self.equal?(o)
102122
self.class == o.class &&
123+
count_by_status == o.count_by_status &&
124+
providers == o.providers &&
103125
total_filtered_count == o.total_filtered_count &&
104126
version == o.version &&
105127
additional_properties == o.additional_properties
@@ -109,7 +131,7 @@ def ==(o)
109131
# @return [Integer] Hash code
110132
# @!visibility private
111133
def hash
112-
[total_filtered_count, version, additional_properties].hash
134+
[count_by_status, providers, total_filtered_count, version, additional_properties].hash
113135
end
114136
end
115137
end

0 commit comments

Comments
 (0)