Skip to content

Commit

Permalink
Regenerate client from commit 7b0868e2 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 2, 2024
1 parent fa28f6a commit b9690bf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 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": "2024-07-02 14:50:54.316817",
"spec_repo_commit": "1e8d5fca"
"regenerated": "2024-07-02 18:16:18.871040",
"spec_repo_commit": "7b0868e2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-02 14:50:54.334220",
"spec_repo_commit": "1e8d5fca"
"regenerated": "2024-07-02 18:16:18.888997",
"spec_repo_commit": "7b0868e2"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14940,6 +14940,13 @@ components:

to delete.'
properties:
force_delete_dependencies:
description: 'Delete the Synthetic test even if it''s referenced by other
resources

(for example, SLOs and composite monitors).'
example: false
type: boolean
public_ids:
description: An array of Synthetic test IDs you want to delete.
example: []
Expand Down
4 changes: 2 additions & 2 deletions features/v1/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ Feature: Synthetics
@generated @skip @team:DataDog/synthetics-ct
Scenario: Delete tests returns "- JSON format is wrong" response
Given new "DeleteTests" request
And body with value {"public_ids": []}
And body with value {"force_delete_dependencies": false, "public_ids": []}
When the request is sent
Then the response status is 400 - JSON format is wrong

@generated @skip @team:DataDog/synthetics-ct
Scenario: Delete tests returns "- Tests to be deleted can't be found" response
Given new "DeleteTests" request
And body with value {"public_ids": []}
And body with value {"force_delete_dependencies": false, "public_ids": []}
When the request is sent
Then the response status is 404 - Tests to be deleted can't be found

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ module DatadogAPIClient::V1
class SyntheticsDeleteTestsPayload
include BaseGenericModel

# Delete the Synthetic test even if it's referenced by other resources
# (for example, SLOs and composite monitors).
attr_accessor :force_delete_dependencies

# An array of Synthetic test IDs you want to delete.
attr_accessor :public_ids

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'force_delete_dependencies' => :'force_delete_dependencies',
:'public_ids' => :'public_ids'
}
end
Expand All @@ -37,6 +42,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'force_delete_dependencies' => :'Boolean',
:'public_ids' => :'Array<String>'
}
end
Expand All @@ -57,6 +63,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

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

if attributes.key?(:'public_ids')
if (value = attributes[:'public_ids']).is_a?(Array)
self.public_ids = value
Expand All @@ -70,14 +80,15 @@ def initialize(attributes = {})
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
force_delete_dependencies == o.force_delete_dependencies &&
public_ids == o.public_ids
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[public_ids].hash
[force_delete_dependencies, public_ids].hash
end
end
end

0 comments on commit b9690bf

Please sign in to comment.