Skip to content

Commit d22dffb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ee61d88 of spec repo
1 parent 3354519 commit d22dffb

File tree

14 files changed

+1143
-6
lines changed

14 files changed

+1143
-6
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25943,17 +25943,17 @@ components:
2594325943
description: Used for fixed span times, such as 'March 1 to March 7'.
2594425944
properties:
2594525945
from:
25946-
description: Start time in seconds since epoch.
25947-
example: 1712080128
25946+
description: Start time in milliseconds since epoch.
25947+
example: 1712080128000
2594825948
format: int64
2594925949
minimum: 0
2595025950
type: integer
2595125951
hide_incomplete_cost_data:
2595225952
description: Whether to hide incomplete cost data in the widget.
2595325953
type: boolean
2595425954
to:
25955-
description: End time in seconds since epoch.
25956-
example: 1712083128
25955+
description: End time in milliseconds since epoch.
25956+
example: 1712083128000
2595725957
format: int64
2595825958
minimum: 0
2595925959
type: integer

.generator/schemas/v2/openapi.yaml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32179,6 +32179,53 @@ components:
3217932179
type: string
3218032180
type: array
3218132181
type: object
32182+
Integration:
32183+
description: Integration resource object.
32184+
properties:
32185+
attributes:
32186+
$ref: '#/components/schemas/IntegrationAttributes'
32187+
id:
32188+
description: The unique identifier of the integration.
32189+
example: calico
32190+
type: string
32191+
links:
32192+
$ref: '#/components/schemas/IntegrationLinks'
32193+
type:
32194+
$ref: '#/components/schemas/IntegrationType'
32195+
required:
32196+
- type
32197+
- id
32198+
- attributes
32199+
type: object
32200+
IntegrationAttributes:
32201+
description: Attributes for an integration.
32202+
properties:
32203+
categories:
32204+
description: List of categories associated with the integration.
32205+
example:
32206+
- Category::Kubernetes
32207+
- Category::Log Collection
32208+
items:
32209+
type: string
32210+
type: array
32211+
description:
32212+
description: A description of the integration.
32213+
example: Calico is a networking and network security solution for containers.
32214+
type: string
32215+
installed:
32216+
description: Whether the integration is installed.
32217+
example: true
32218+
type: boolean
32219+
title:
32220+
description: The name of the integration.
32221+
example: calico
32222+
type: string
32223+
required:
32224+
- title
32225+
- description
32226+
- categories
32227+
- installed
32228+
type: object
3218232229
IntegrationIncident:
3218332230
description: Incident integration settings
3218432231
properties:
@@ -32284,6 +32331,14 @@ components:
3228432331
value:
3228532332
$ref: '#/components/schemas/AnyValue'
3228632333
type: object
32334+
IntegrationLinks:
32335+
description: Links for the integration resource.
32336+
properties:
32337+
self:
32338+
description: Link to the integration resource.
32339+
example: /integrations?integrationId=calico
32340+
type: string
32341+
type: object
3228732342
IntegrationMonitor:
3228832343
description: Monitor integration settings
3228932344
properties:
@@ -32385,6 +32440,15 @@ components:
3238532440
type: string
3238632441
type: object
3238732442
type: object
32443+
IntegrationType:
32444+
default: integration
32445+
description: Integration resource type.
32446+
enum:
32447+
- integration
32448+
example: integration
32449+
type: string
32450+
x-enum-varnames:
32451+
- INTEGRATION
3238832452
InterfaceAttributes:
3238932453
description: The interface attributes
3239032454
properties:
@@ -34776,6 +34840,17 @@ components:
3477634840
- data
3477734841
- meta
3477834842
type: object
34843+
ListIntegrationsResponse:
34844+
description: Response containing information about multiple integrations.
34845+
properties:
34846+
data:
34847+
description: Array of integration objects.
34848+
items:
34849+
$ref: '#/components/schemas/Integration'
34850+
type: array
34851+
required:
34852+
- data
34853+
type: object
3477934854
ListInterfaceTagsResponse:
3478034855
description: Response for listing interface tags.
3478134856
properties:
@@ -84205,6 +84280,24 @@ paths:
8420584280
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
8420684281

8420784282
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
84283+
/api/v2/integrations:
84284+
get:
84285+
operationId: ListIntegrations
84286+
responses:
84287+
'200':
84288+
content:
84289+
application/json:
84290+
schema:
84291+
$ref: '#/components/schemas/ListIntegrationsResponse'
84292+
description: Successful Response.
84293+
'429':
84294+
$ref: '#/components/responses/TooManyRequestsResponse'
84295+
security:
84296+
- apiKeyAuth: []
84297+
appKeyAuth: []
84298+
summary: List Integrations
84299+
tags:
84300+
- Integrations
8420884301
/api/v2/integrations/cloudflare/accounts:
8420984302
get:
8421084303
description: List Cloudflare accounts.
@@ -106291,6 +106384,10 @@ tags:
106291106384
and todos. See the [Incident Management page](https://docs.datadoghq.com/service_management/incident_management/)
106292106385
for more information.
106293106386
name: Incidents
106387+
- description: 'The Integrations API is used to list available integrations
106388+
106389+
and retrieve information about their installation status.'
106390+
name: Integrations
106294106391
- description: Manage your Jira Integration. Atlassian Jira is a project management
106295106392
and issue tracking tool for teams to coordinate work and handle tasks efficiently.
106296106393
name: Jira Integration
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// List Integrations returns "Successful Response." response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.IntegrationsApi;
6+
import com.datadog.api.client.v2.model.ListIntegrationsResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
IntegrationsApi apiInstance = new IntegrationsApi(defaultClient);
12+
13+
try {
14+
ListIntegrationsResponse result = apiInstance.listIntegrations();
15+
System.out.println(result);
16+
} catch (ApiException e) {
17+
System.err.println("Exception when calling IntegrationsApi#listIntegrations");
18+
System.err.println("Status code: " + e.getCode());
19+
System.err.println("Reason: " + e.getResponseBody());
20+
System.err.println("Response headers: " + e.getResponseHeaders());
21+
e.printStackTrace();
22+
}
23+
}
24+
}

src/main/java/com/datadog/api/client/v1/model/WidgetNewFixedSpan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public WidgetNewFixedSpan from(Long from) {
5959
}
6060

6161
/**
62-
* Start time in seconds since epoch. minimum: 0
62+
* Start time in milliseconds since epoch. minimum: 0
6363
*
6464
* @return from
6565
*/
@@ -100,7 +100,7 @@ public WidgetNewFixedSpan to(Long to) {
100100
}
101101

102102
/**
103-
* End time in seconds since epoch. minimum: 0
103+
* End time in milliseconds since epoch. minimum: 0
104104
*
105105
* @return to
106106
*/
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
package com.datadog.api.client.v2.api;
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.ApiResponse;
6+
import com.datadog.api.client.Pair;
7+
import com.datadog.api.client.v2.model.ListIntegrationsResponse;
8+
import jakarta.ws.rs.client.Invocation;
9+
import jakarta.ws.rs.core.GenericType;
10+
import java.util.ArrayList;
11+
import java.util.HashMap;
12+
import java.util.Map;
13+
import java.util.concurrent.CompletableFuture;
14+
15+
@jakarta.annotation.Generated(
16+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
17+
public class IntegrationsApi {
18+
private ApiClient apiClient;
19+
20+
public IntegrationsApi() {
21+
this(ApiClient.getDefaultApiClient());
22+
}
23+
24+
public IntegrationsApi(ApiClient apiClient) {
25+
this.apiClient = apiClient;
26+
}
27+
28+
/**
29+
* Get the API client.
30+
*
31+
* @return API client
32+
*/
33+
public ApiClient getApiClient() {
34+
return apiClient;
35+
}
36+
37+
/**
38+
* Set the API client.
39+
*
40+
* @param apiClient an instance of API client
41+
*/
42+
public void setApiClient(ApiClient apiClient) {
43+
this.apiClient = apiClient;
44+
}
45+
46+
/**
47+
* List Integrations.
48+
*
49+
* <p>See {@link #listIntegrationsWithHttpInfo}.
50+
*
51+
* @return ListIntegrationsResponse
52+
* @throws ApiException if fails to make API call
53+
*/
54+
public ListIntegrationsResponse listIntegrations() throws ApiException {
55+
return listIntegrationsWithHttpInfo().getData();
56+
}
57+
58+
/**
59+
* List Integrations.
60+
*
61+
* <p>See {@link #listIntegrationsWithHttpInfoAsync}.
62+
*
63+
* @return CompletableFuture&lt;ListIntegrationsResponse&gt;
64+
*/
65+
public CompletableFuture<ListIntegrationsResponse> listIntegrationsAsync() {
66+
return listIntegrationsWithHttpInfoAsync()
67+
.thenApply(
68+
response -> {
69+
return response.getData();
70+
});
71+
}
72+
73+
/**
74+
* @return ApiResponse&lt;ListIntegrationsResponse&gt;
75+
* @throws ApiException if fails to make API call
76+
* @http.response.details
77+
* <table border="1">
78+
* <caption>Response details</caption>
79+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
80+
* <tr><td> 200 </td><td> Successful Response. </td><td> - </td></tr>
81+
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
82+
* </table>
83+
*/
84+
public ApiResponse<ListIntegrationsResponse> listIntegrationsWithHttpInfo() throws ApiException {
85+
Object localVarPostBody = null;
86+
// create path and map variables
87+
String localVarPath = "/api/v2/integrations";
88+
89+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
90+
91+
Invocation.Builder builder =
92+
apiClient.createBuilder(
93+
"v2.IntegrationsApi.listIntegrations",
94+
localVarPath,
95+
new ArrayList<Pair>(),
96+
localVarHeaderParams,
97+
new HashMap<String, String>(),
98+
new String[] {"application/json"},
99+
new String[] {"apiKeyAuth", "appKeyAuth"});
100+
return apiClient.invokeAPI(
101+
"GET",
102+
builder,
103+
localVarHeaderParams,
104+
new String[] {},
105+
localVarPostBody,
106+
new HashMap<String, Object>(),
107+
false,
108+
new GenericType<ListIntegrationsResponse>() {});
109+
}
110+
111+
/**
112+
* List Integrations.
113+
*
114+
* <p>See {@link #listIntegrationsWithHttpInfo}.
115+
*
116+
* @return CompletableFuture&lt;ApiResponse&lt;ListIntegrationsResponse&gt;&gt;
117+
*/
118+
public CompletableFuture<ApiResponse<ListIntegrationsResponse>>
119+
listIntegrationsWithHttpInfoAsync() {
120+
Object localVarPostBody = null;
121+
// create path and map variables
122+
String localVarPath = "/api/v2/integrations";
123+
124+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
125+
126+
Invocation.Builder builder;
127+
try {
128+
builder =
129+
apiClient.createBuilder(
130+
"v2.IntegrationsApi.listIntegrations",
131+
localVarPath,
132+
new ArrayList<Pair>(),
133+
localVarHeaderParams,
134+
new HashMap<String, String>(),
135+
new String[] {"application/json"},
136+
new String[] {"apiKeyAuth", "appKeyAuth"});
137+
} catch (ApiException ex) {
138+
CompletableFuture<ApiResponse<ListIntegrationsResponse>> result = new CompletableFuture<>();
139+
result.completeExceptionally(ex);
140+
return result;
141+
}
142+
return apiClient.invokeAPIAsync(
143+
"GET",
144+
builder,
145+
localVarHeaderParams,
146+
new String[] {},
147+
localVarPostBody,
148+
new HashMap<String, Object>(),
149+
false,
150+
new GenericType<ListIntegrationsResponse>() {});
151+
}
152+
}

0 commit comments

Comments
 (0)