Skip to content

Commit dca489d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing params to ListCustomCostsFiles (#3216)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 143eca3 commit dca489d

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
@@ -17831,6 +17831,18 @@ components:
1783117831
CustomCostListResponseMeta:
1783217832
description: Meta for the response from the List Custom Costs endpoints.
1783317833
properties:
17834+
count_by_status:
17835+
additionalProperties:
17836+
format: int64
17837+
type: integer
17838+
description: Number of Custom Costs files per status.
17839+
type: object
17840+
providers:
17841+
description: List of available providers.
17842+
items:
17843+
description: A provider name.
17844+
type: string
17845+
type: array
1783417846
total_filtered_count:
1783517847
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1783617848
format: int64
@@ -86879,6 +86891,18 @@ paths:
8687986891
name: filter[status]
8688086892
schema:
8688186893
type: string
86894+
- description: Filter files by name with case-insensitive substring matching.
86895+
in: query
86896+
name: filter[name]
86897+
schema:
86898+
type: string
86899+
- description: Filter by provider.
86900+
in: query
86901+
name: filter[provider]
86902+
schema:
86903+
items:
86904+
type: string
86905+
type: array
8688286906
- description: Sort key with optional descending prefix
8688386907
in: query
8688486908
name: sort

features/scenarios_model_mapping.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,8 @@
19581958
"page_number" => "Integer",
19591959
"page_size" => "Integer",
19601960
"filter_status" => "String",
1961+
"filter_name" => "String",
1962+
"filter_provider" => "Array<String>",
19611963
"sort" => "String",
19621964
},
19631965
"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)