Skip to content

Commit c815685

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d5a61a9 of spec repo
1 parent a1f1bff commit c815685

File tree

44 files changed

+5905
-112
lines changed

Some content is hidden

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

44 files changed

+5905
-112
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 638 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get detailed information about an agent returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.FleetAutomationApi;
6+
import com.datadog.api.client.v2.model.FleetAgentInfoResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.getFleetAgentInfo", true);
12+
FleetAutomationApi apiInstance = new FleetAutomationApi(defaultClient);
13+
14+
try {
15+
FleetAgentInfoResponse result = apiInstance.getFleetAgentInfo("agent_key");
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling FleetAutomationApi#getFleetAgentInfo");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// List all Datadog Agents returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.FleetAutomationApi;
6+
import com.datadog.api.client.v2.model.FleetAgentsResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.listFleetAgents", true);
12+
FleetAutomationApi apiInstance = new FleetAutomationApi(defaultClient);
13+
14+
try {
15+
FleetAgentsResponse result = apiInstance.listFleetAgents();
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling FleetAutomationApi#listFleetAgents");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,10 @@ public class ApiClient {
692692
put("v2.createFleetDeploymentUpgrade", false);
693693
put("v2.createFleetSchedule", false);
694694
put("v2.deleteFleetSchedule", false);
695+
put("v2.getFleetAgentInfo", false);
695696
put("v2.getFleetDeployment", false);
696697
put("v2.getFleetSchedule", false);
698+
put("v2.listFleetAgents", false);
697699
put("v2.listFleetAgentVersions", false);
698700
put("v2.listFleetDeployments", false);
699701
put("v2.listFleetSchedules", false);

0 commit comments

Comments
 (0)