Skip to content

Commit 47625c4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a4861ac of spec repo
1 parent 7687f7d commit 47625c4

File tree

47 files changed

+6067
-2
lines changed

Some content is hidden

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

47 files changed

+6067
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 849 additions & 2 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::UpdateDeploymentGateParamsDataAttributes.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
@@ -1835,6 +1835,36 @@
18351835
"v2.CancelDataDeletionRequest" => {
18361836
"id" => "String",
18371837
},
1838+
"v2.CreateDeploymentGate" => {
1839+
"body" => "CreateDeploymentGateParams",
1840+
},
1841+
"v2.CreateDeploymentRule" => {
1842+
"gate_id" => "String",
1843+
"body" => "CreateDeploymentRuleParams",
1844+
},
1845+
"v2.DeleteDeploymentRule" => {
1846+
"gate_id" => "String",
1847+
"id" => "String",
1848+
},
1849+
"v2.GetDeploymentRule" => {
1850+
"gate_id" => "String",
1851+
"id" => "String",
1852+
},
1853+
"v2.UpdateDeploymentRule" => {
1854+
"gate_id" => "String",
1855+
"id" => "String",
1856+
"body" => "UpdateDeploymentRuleParams",
1857+
},
1858+
"v2.DeleteDeploymentGate" => {
1859+
"id" => "String",
1860+
},
1861+
"v2.GetDeploymentGate" => {
1862+
"id" => "String",
1863+
},
1864+
"v2.UpdateDeploymentGate" => {
1865+
"id" => "String",
1866+
"body" => "UpdateDeploymentGateParams",
1867+
},
18381868
"v2.PatchDomainAllowlist" => {
18391869
"body" => "DomainAllowlistRequest",
18401870
},

0 commit comments

Comments
 (0)