Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,813 changes: 1,733 additions & 1,080 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/CancelFleetDeployment.rb

This file was deleted.

8 changes: 8 additions & 0 deletions examples/v2/fleet-automation/CancelFleetDeploymentV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Cancel a deployment returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new

# there is a valid "deployment" in the system
DEPLOYMENT_ID = ENV["DEPLOYMENT_ID"]
p api_instance.cancel_fleet_deployment_v2(DEPLOYMENT_ID)
26 changes: 0 additions & 26 deletions examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Create a configuration deployment returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new

body = DatadogAPIClient::V2::FleetDeploymentConfigureV2CreateRequest.new({
data: DatadogAPIClient::V2::FleetDeploymentConfigureV2Create.new({
attributes: DatadogAPIClient::V2::FleetDeploymentConfigureV2Attributes.new({
config_operations: [
DatadogAPIClient::V2::FleetDeploymentOperation.new({
file_op: DatadogAPIClient::V2::FleetDeploymentFileOp::MERGE_PATCH,
file_path: "/datadog.yaml",
patch: {
"log_level": "info",
},
}),
],
dry_run: true,
filter_query: "env:prod AND service:example-fleet-automation",
}),
type: DatadogAPIClient::V2::FleetDeploymentResourceType::DEPLOYMENT,
}),
})
p api_instance.create_fleet_deployment_configure_v2(body)
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Upgrade hosts returns "CREATED" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.create_fleet_deployment_upgrade".to_sym] = true
end
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new

body = DatadogAPIClient::V2::FleetDeploymentPackageUpgradeCreateRequest.new({
data: DatadogAPIClient::V2::FleetDeploymentPackageUpgradeCreate.new({
attributes: DatadogAPIClient::V2::FleetDeploymentPackageUpgradeAttributes.new({
filter_query: "env:prod AND service:web",
body = DatadogAPIClient::V2::FleetDeploymentPackageUpgradeV2CreateRequest.new({
data: DatadogAPIClient::V2::FleetDeploymentPackageUpgradeV2Create.new({
attributes: DatadogAPIClient::V2::FleetDeploymentPackageUpgradeV2Attributes.new({
filter_query: "env:prod AND service:example-fleet-automation",
target_packages: [
DatadogAPIClient::V2::FleetDeploymentPackage.new({
name: "datadog-agent",
Expand All @@ -20,4 +17,4 @@
type: DatadogAPIClient::V2::FleetDeploymentResourceType::DEPLOYMENT,
}),
})
p api_instance.create_fleet_deployment_upgrade(body)
p api_instance.create_fleet_deployment_upgrade_v2(body)
5 changes: 5 additions & 0 deletions examples/v2/fleet-automation/GetFleetAgentDetailV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get detailed information about an agent returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
p api_instance.get_fleet_agent_detail_v2("a1b2c3d4e5f67890a1b2c3d4e5f67890")
8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/GetFleetAgentInfo.rb

This file was deleted.

8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/GetFleetDeployment.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Get a deployment by ID returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_fleet_deployment".to_sym] = true
end
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new

# there is a valid "deployment" in the system
DEPLOYMENT_ID = ENV["DEPLOYMENT_ID"]
p api_instance.get_fleet_deployment(DEPLOYMENT_ID)
p api_instance.get_fleet_deployment_v2(DEPLOYMENT_ID)
8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/GetFleetSchedule.rb

This file was deleted.

8 changes: 8 additions & 0 deletions examples/v2/fleet-automation/GetFleetScheduleV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Get a schedule by ID returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new

# there is a valid "fleet_schedule" in the system
SCHEDULE_ID = ENV["SCHEDULE_ID"]
p api_instance.get_fleet_schedule_v2(SCHEDULE_ID)
8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/ListFleetAgentVersions.rb

This file was deleted.

5 changes: 5 additions & 0 deletions examples/v2/fleet-automation/ListFleetAgentVersionsV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List available Datadog Agent versions returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
p api_instance.list_fleet_agent_versions_v2()
8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/ListFleetAgents.rb

This file was deleted.

5 changes: 5 additions & 0 deletions examples/v2/fleet-automation/ListFleetAgentsV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List all Datadog Agents returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
p api_instance.list_fleet_agents_v2()
8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/ListFleetDeployments.rb

This file was deleted.

5 changes: 5 additions & 0 deletions examples/v2/fleet-automation/ListFleetDeploymentsV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List all deployments returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
p api_instance.list_fleet_deployments_v2()
8 changes: 0 additions & 8 deletions examples/v2/fleet-automation/ListFleetSchedules.rb

This file was deleted.

5 changes: 5 additions & 0 deletions examples/v2/fleet-automation/ListFleetSchedulesV2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List all schedules returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new
p api_instance.list_fleet_schedules_v2()
66 changes: 34 additions & 32 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -839,51 +839,19 @@
"user_handle" => "String",
"body" => "User",
},
"v2.ListFleetAgents" => {
"page_number" => "Integer",
"page_size" => "Integer",
"sort_attribute" => "String",
"sort_descending" => "Boolean",
"tags" => "String",
"filter" => "String",
},
"v2.GetFleetAgentInfo" => {
"agent_key" => "String",
},
"v2.ListFleetAgentTracers" => {
"agent_key" => "String",
"page_number" => "Integer",
"page_size" => "Integer",
"sort_attribute" => "String",
"sort_descending" => "Boolean",
},
"v2.ListFleetDeployments" => {
"page_size" => "Integer",
"page_offset" => "Integer",
},
"v2.CreateFleetDeploymentConfigure" => {
"body" => "FleetDeploymentConfigureCreateRequest",
},
"v2.CreateFleetDeploymentUpgrade" => {
"body" => "FleetDeploymentPackageUpgradeCreateRequest",
},
"v2.GetFleetDeployment" => {
"deployment_id" => "String",
"limit" => "Integer",
"page" => "Integer",
},
"v2.CancelFleetDeployment" => {
"deployment_id" => "String",
},
"v2.CreateFleetSchedule" => {
"body" => "FleetScheduleCreateRequest",
},
"v2.DeleteFleetSchedule" => {
"id" => "String",
},
"v2.GetFleetSchedule" => {
"id" => "String",
},
"v2.UpdateFleetSchedule" => {
"id" => "String",
"body" => "FleetSchedulePatchRequest",
Expand All @@ -898,6 +866,40 @@
"sort_descending" => "Boolean",
"filter" => "String",
},
"v2.ListFleetAgentsV2" => {
"page_number" => "Integer",
"page_size" => "Integer",
"filter" => "String",
"tags" => "String",
"sort_attribute" => "String",
"sort_descending" => "Boolean",
},
"v2.GetFleetAgentDetailV2" => {
"agent_key" => "String",
"include" => "String",
},
"v2.ListFleetDeploymentsV2" => {
"page_size" => "Integer",
"page_number" => "Integer",
"sort" => "String",
"ascending" => "Boolean",
"filter" => "String",
},
"v2.CreateFleetDeploymentConfigureV2" => {
"body" => "FleetDeploymentConfigureV2CreateRequest",
},
"v2.CreateFleetDeploymentUpgradeV2" => {
"body" => "FleetDeploymentPackageUpgradeV2CreateRequest",
},
"v2.GetFleetDeploymentV2" => {
"deployment_id" => "String",
},
"v2.CancelFleetDeploymentV2" => {
"deployment_id" => "String",
},
"v2.GetFleetScheduleV2" => {
"id" => "String",
},
"v2.DeleteLLMObsCustomEvalConfig" => {
"eval_name" => "String",
},
Expand Down
Loading
Loading