Skip to content
Open
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
651 changes: 650 additions & 1 deletion .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions examples/v2/fleet-automation/GetFleetAgentInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Get detailed information about an agent returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FleetAutomationApi;
import com.datadog.api.client.v2.model.FleetAgentInfoResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.getFleetAgentInfo", true);
FleetAutomationApi apiInstance = new FleetAutomationApi(defaultClient);

try {
FleetAgentInfoResponse result = apiInstance.getFleetAgentInfo("agent_key");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FleetAutomationApi#getFleetAgentInfo");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
25 changes: 25 additions & 0 deletions examples/v2/fleet-automation/ListFleetAgents.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// List all Datadog Agents returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FleetAutomationApi;
import com.datadog.api.client.v2.model.FleetAgentsResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listFleetAgents", true);
FleetAutomationApi apiInstance = new FleetAutomationApi(defaultClient);

try {
FleetAgentsResponse result = apiInstance.listFleetAgents();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FleetAutomationApi#listFleetAgents");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
2 changes: 2 additions & 0 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,10 @@ public class ApiClient {
put("v2.createFleetDeploymentUpgrade", false);
put("v2.createFleetSchedule", false);
put("v2.deleteFleetSchedule", false);
put("v2.getFleetAgentInfo", false);
put("v2.getFleetDeployment", false);
put("v2.getFleetSchedule", false);
put("v2.listFleetAgents", false);
put("v2.listFleetAgentVersions", false);
put("v2.listFleetDeployments", false);
put("v2.listFleetSchedules", false);
Expand Down
Loading
Loading