Skip to content

Commit be9f8b9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ef374fb of spec repo
1 parent a1d9aa6 commit be9f8b9

File tree

43 files changed

+5210
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5210
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 758 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Create deployment gate returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.create_deployment_gate".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
body = DatadogAPIClient::V2::CreateDeploymentGateParams.new({
10+
data: DatadogAPIClient::V2::CreateDeploymentGateParamsData.new({
11+
attributes: DatadogAPIClient::V2::CreateDeploymentGateParamsDataAttributes.new({
12+
dry_run: false,
13+
env: "production",
14+
identifier: "my-gate",
15+
service: "my-service",
16+
}),
17+
type: DatadogAPIClient::V2::DeploymentGateDataType::DEPLOYMENT_GATE,
18+
}),
19+
})
20+
p api_instance.create_deployment_gate(body)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Create deployment rule returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.create_deployment_rule".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
12+
body = DatadogAPIClient::V2::CreateDeploymentRuleParams.new({
13+
data: DatadogAPIClient::V2::CreateDeploymentRuleParamsData.new({
14+
attributes: DatadogAPIClient::V2::CreateDeploymentRuleParamsDataAttributes.new({
15+
dry_run: false,
16+
name: "My deployment rule",
17+
options: DatadogAPIClient::V2::DeploymentRuleOptionsFaultyDeploymentDetection.new({
18+
excluded_resources: [],
19+
}),
20+
type: "faulty_deployment_detection",
21+
}),
22+
type: DatadogAPIClient::V2::DeploymentRuleDataType::DEPLOYMENT_RULE,
23+
}),
24+
})
25+
p api_instance.create_deployment_rule(DEPLOYMENT_GATE_DATA_ID, body)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Delete deployment gate returns "No Content" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.delete_deployment_gate".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
api_instance.delete_deployment_gate(DEPLOYMENT_GATE_DATA_ID)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Delete deployment rule returns "No Content" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.delete_deployment_rule".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
12+
# there is a valid "deployment_rule" in the system
13+
DEPLOYMENT_RULE_DATA_ID = ENV["DEPLOYMENT_RULE_DATA_ID"]
14+
api_instance.delete_deployment_rule(DEPLOYMENT_GATE_DATA_ID, DEPLOYMENT_RULE_DATA_ID)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Get deployment gate returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_deployment_gate".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
p api_instance.get_deployment_gate(DEPLOYMENT_GATE_DATA_ID)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Get deployment rule returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_deployment_rule".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
12+
# there is a valid "deployment_rule" in the system
13+
DEPLOYMENT_RULE_DATA_ID = ENV["DEPLOYMENT_RULE_DATA_ID"]
14+
p api_instance.get_deployment_rule(DEPLOYMENT_GATE_DATA_ID, DEPLOYMENT_RULE_DATA_ID)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Update deployment gate returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.update_deployment_gate".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
12+
body = DatadogAPIClient::V2::UpdateDeploymentGateParams.new({
13+
data: DatadogAPIClient::V2::UpdateDeploymentGateParamsData.new({
14+
attributes: DatadogAPIClient::V2::DeploymentGateParamsDataAttributes.new({
15+
dry_run: false,
16+
}),
17+
id: "12345678-1234-1234-1234-123456789012",
18+
type: DatadogAPIClient::V2::DeploymentGateDataType::DEPLOYMENT_GATE,
19+
}),
20+
})
21+
p api_instance.update_deployment_gate(DEPLOYMENT_GATE_DATA_ID, body)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Update deployment rule returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.update_deployment_rule".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
8+
9+
# there is a valid "deployment_gate" in the system
10+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
11+
12+
# there is a valid "deployment_rule" in the system
13+
DEPLOYMENT_RULE_DATA_ID = ENV["DEPLOYMENT_RULE_DATA_ID"]
14+
15+
body = DatadogAPIClient::V2::UpdateDeploymentRuleParams.new({
16+
data: DatadogAPIClient::V2::UpdateDeploymentRuleParamsData.new({
17+
attributes: DatadogAPIClient::V2::UpdateDeploymentRuleParamsDataAttributes.new({
18+
dry_run: false,
19+
name: "Updated deployment rule",
20+
options: DatadogAPIClient::V2::DeploymentRuleOptionsFaultyDeploymentDetection.new({
21+
excluded_resources: [],
22+
}),
23+
}),
24+
type: DatadogAPIClient::V2::DeploymentRuleDataType::DEPLOYMENT_RULE,
25+
}),
26+
})
27+
p api_instance.update_deployment_rule(DEPLOYMENT_GATE_DATA_ID, DEPLOYMENT_RULE_DATA_ID, body)

features/scenarios_model_mapping.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,36 @@
18221822
"v2.CancelDataDeletionRequest" => {
18231823
"id" => "String",
18241824
},
1825+
"v2.CreateDeploymentGate" => {
1826+
"body" => "CreateDeploymentGateParams",
1827+
},
1828+
"v2.CreateDeploymentRule" => {
1829+
"gate_id" => "String",
1830+
"body" => "CreateDeploymentRuleParams",
1831+
},
1832+
"v2.DeleteDeploymentRule" => {
1833+
"gate_id" => "String",
1834+
"id" => "String",
1835+
},
1836+
"v2.GetDeploymentRule" => {
1837+
"gate_id" => "String",
1838+
"id" => "String",
1839+
},
1840+
"v2.UpdateDeploymentRule" => {
1841+
"gate_id" => "String",
1842+
"id" => "String",
1843+
"body" => "UpdateDeploymentRuleParams",
1844+
},
1845+
"v2.DeleteDeploymentGate" => {
1846+
"id" => "String",
1847+
},
1848+
"v2.GetDeploymentGate" => {
1849+
"id" => "String",
1850+
},
1851+
"v2.UpdateDeploymentGate" => {
1852+
"id" => "String",
1853+
"body" => "UpdateDeploymentGateParams",
1854+
},
18251855
"v2.PatchDomainAllowlist" => {
18261856
"body" => "DomainAllowlistRequest",
18271857
},

0 commit comments

Comments
 (0)