Skip to content

Commit fef3e90

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 663f45f of spec repo
1 parent 3811cd0 commit fef3e90

7 files changed

Lines changed: 58 additions & 8 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17596,6 +17596,18 @@ components:
1759617596
CustomCostListResponseMeta:
1759717597
description: Meta for the response from the List Custom Costs endpoints.
1759817598
properties:
17599+
count_by_status:
17600+
additionalProperties:
17601+
format: int64
17602+
type: integer
17603+
description: Number of Custom Costs files per status.
17604+
type: object
17605+
providers:
17606+
description: List of available providers.
17607+
items:
17608+
description: A provider name.
17609+
type: string
17610+
type: array
1759917611
total_filtered_count:
1760017612
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1760117613
format: int64
@@ -60999,7 +61011,7 @@ components:
6099961011
- TIMESTAMP_DESCENDING
6100061012
SecurityMonitoringStandardDataSource:
6100161013
default: logs
61002-
description: Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
61014+
description: Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
6100361015
enum:
6100461016
- logs
6100561017
- audit
@@ -61008,7 +61020,6 @@ components:
6100861020
- security_runtime
6100961021
- network
6101061022
- events
61011-
- security_signals
6101261023
example: logs
6101361024
type: string
6101461025
x-enum-varnames:
@@ -61019,7 +61030,6 @@ components:
6101961030
- SECURITY_RUNTIME
6102061031
- NETWORK
6102161032
- EVENTS
61022-
- SECURITY_SIGNALS
6102361033
SecurityMonitoringStandardRuleCreatePayload:
6102461034
description: Create a new rule.
6102561035
properties:
@@ -84155,6 +84165,18 @@ paths:
8415584165
name: filter[status]
8415684166
schema:
8415784167
type: string
84168+
- description: Filter files by name with case-insensitive substring matching.
84169+
in: query
84170+
name: filter[name]
84171+
schema:
84172+
type: string
84173+
- description: Filter by provider.
84174+
in: query
84175+
name: filter[provider]
84176+
schema:
84177+
items:
84178+
type: string
84179+
type: array
8415884180
- description: Sort key with optional descending prefix
8415984181
in: query
8416084182
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

lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
20+
# Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
2121
class SecurityMonitoringStandardDataSource
2222
include BaseEnumModel
2323

@@ -28,6 +28,5 @@ class SecurityMonitoringStandardDataSource
2828
SECURITY_RUNTIME = "security_runtime".freeze
2929
NETWORK = "network".freeze
3030
EVENTS = "events".freeze
31-
SECURITY_SIGNALS = "security_signals".freeze
3231
end
3332
end

lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SecurityMonitoringStandardRuleQuery
2727
# Query extension to append to the logs query.
2828
attr_accessor :custom_query_extension
2929

30-
# Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
30+
# Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
3131
attr_accessor :data_source
3232

3333
# Field for which the cardinality is measured. Sent as an array.

lib/datadog_api_client/v2/models/threat_hunting_job_query.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ThreatHuntingJobQuery
2424
# The aggregation type.
2525
attr_accessor :aggregation
2626

27-
# Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
27+
# Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
2828
attr_accessor :data_source
2929

3030
# Field for which the cardinality is measured. Sent as an array.

0 commit comments

Comments
 (0)