Skip to content

Commit

Permalink
Regenerate client from commit be17a7b8 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 13, 2025
1 parent f565b82 commit d9436a8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 42 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-10 22:21:30.858340",
"spec_repo_commit": "2f8c42a8"
"regenerated": "2025-01-13 17:10:15.192490",
"spec_repo_commit": "be17a7b8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-10 22:21:30.873510",
"spec_repo_commit": "2f8c42a8"
"regenerated": "2025-01-13 17:10:15.208200",
"spec_repo_commit": "be17a7b8"
}
}
}
9 changes: 0 additions & 9 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5926,9 +5926,6 @@ components:

Make sure to use an application key created by an admin.'
properties:
description:
description: A description of the pipeline.
type: string
filter:
$ref: '#/components/schemas/LogsFilter'
id:
Expand All @@ -5951,12 +5948,6 @@ components:
items:
$ref: '#/components/schemas/LogsProcessor'
type: array
tags:
description: A list of tags associated with the pipeline.
items:
description: A single tag using the format `key:value`.
type: string
type: array
type:
description: Type of pipeline.
example: pipeline
Expand Down
1 change: 0 additions & 1 deletion examples/v1/logs-pipelines/CreateLogsPipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@
type: DatadogAPIClient::V1::LogsGrokParserType::GROK_PARSER,
}),
],
tags: [],
})
p api_instance.create_logs_pipeline(body)
1 change: 0 additions & 1 deletion examples/v1/logs-pipelines/UpdateLogsPipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@
type: DatadogAPIClient::V1::LogsGrokParserType::GROK_PARSER,
}),
],
tags: [],
})
p api_instance.update_logs_pipeline("pipeline_id", body)
8 changes: 4 additions & 4 deletions features/v1/logs_pipelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ Feature: Logs Pipelines
@generated @skip @team:DataDog/event-platform-experience
Scenario: Create a pipeline returns "Bad Request" response
Given new "CreateLogsPipeline" request
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/event-platform-experience
Scenario: Create a pipeline returns "OK" response
Given new "CreateLogsPipeline" request
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
When the request is sent
Then the response status is 200 OK

Expand Down Expand Up @@ -81,15 +81,15 @@ Feature: Logs Pipelines
Scenario: Update a pipeline returns "Bad Request" response
Given new "UpdateLogsPipeline" request
And request contains "pipeline_id" parameter from "REPLACE.ME"
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/event-platform-experience
Scenario: Update a pipeline returns "OK" response
Given new "UpdateLogsPipeline" request
And request contains "pipeline_id" parameter from "REPLACE.ME"
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]}
When the request is sent
Then the response status is 200 OK

Expand Down
24 changes: 1 addition & 23 deletions lib/datadog_api_client/v1/models/logs_pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ module DatadogAPIClient::V1
class LogsPipeline
include BaseGenericModel

# A description of the pipeline.
attr_accessor :description

# Filter for logs.
attr_accessor :filter

Expand All @@ -46,9 +43,6 @@ class LogsPipeline
# Ordered list of processors in this pipeline.
attr_accessor :processors

# A list of tags associated with the pipeline.
attr_accessor :tags

# Type of pipeline.
attr_accessor :type

Expand All @@ -58,14 +52,12 @@ class LogsPipeline
# @!visibility private
def self.attribute_map
{
:'description' => :'description',
:'filter' => :'filter',
:'id' => :'id',
:'is_enabled' => :'is_enabled',
:'is_read_only' => :'is_read_only',
:'name' => :'name',
:'processors' => :'processors',
:'tags' => :'tags',
:'type' => :'type'
}
end
Expand All @@ -74,14 +66,12 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'description' => :'String',
:'filter' => :'LogsFilter',
:'id' => :'String',
:'is_enabled' => :'Boolean',
:'is_read_only' => :'Boolean',
:'name' => :'String',
:'processors' => :'Array<LogsProcessor>',
:'tags' => :'Array<String>',
:'type' => :'String'
}
end
Expand All @@ -104,10 +94,6 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'description')
self.description = attributes[:'description']
end

if attributes.key?(:'filter')
self.filter = attributes[:'filter']
end
Expand All @@ -134,12 +120,6 @@ def initialize(attributes = {})
end
end

if attributes.key?(:'tags')
if (value = attributes[:'tags']).is_a?(Array)
self.tags = value
end
end

if attributes.key?(:'type')
self.type = attributes[:'type']
end
Expand Down Expand Up @@ -189,14 +169,12 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
description == o.description &&
filter == o.filter &&
id == o.id &&
is_enabled == o.is_enabled &&
is_read_only == o.is_read_only &&
name == o.name &&
processors == o.processors &&
tags == o.tags &&
type == o.type &&
additional_properties == o.additional_properties
end
Expand All @@ -205,7 +183,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[description, filter, id, is_enabled, is_read_only, name, processors, tags, type, additional_properties].hash
[filter, id, is_enabled, is_read_only, name, processors, type, additional_properties].hash
end
end
end

0 comments on commit d9436a8

Please sign in to comment.