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
69 changes: 62 additions & 7 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/v2/feature-flags/ListFeatureFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void main(String[] args) {

try {
ListFeatureFlagsResponse result =
apiInstance.listFeatureFlags(new ListFeatureFlagsOptionalParameters().limit(10));
apiInstance.listFeatureFlags(new ListFeatureFlagsOptionalParameters().limit(10L));
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FeatureFlagsApi#listFeatureFlags");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void main(String[] args) {
try {
PlaylistsSession result =
apiInstance.addRumReplaySessionToPlaylist(
1704067200000L, 1234567, "00000000-0000-0000-0000-000000000001");
1704067200000L, 1234567L, "00000000-0000-0000-0000-000000000001");
System.out.println(result);
} catch (ApiException e) {
System.err.println(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void main(String[] args) {
.type(ViewershipHistorySessionDataType.RUM_REPLAY_SESSION)));

try {
apiInstance.bulkRemoveRumReplayPlaylistSessions(1234567, body);
apiInstance.bulkRemoveRumReplayPlaylistSessions(1234567L, body);
} catch (ApiException e) {
System.err.println(
"Exception when calling RumReplayPlaylistsApi#bulkRemoveRumReplayPlaylistSessions");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static void main(String[] args) {
RumReplayPlaylistsApi apiInstance = new RumReplayPlaylistsApi(defaultClient);

try {
apiInstance.deleteRumReplayPlaylist(1234567);
apiInstance.deleteRumReplayPlaylist(1234567L);
} catch (ApiException e) {
System.err.println("Exception when calling RumReplayPlaylistsApi#deleteRumReplayPlaylist");
System.err.println("Status code: " + e.getCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void main(String[] args) {
RumReplayPlaylistsApi apiInstance = new RumReplayPlaylistsApi(defaultClient);

try {
Playlist result = apiInstance.getRumReplayPlaylist(1234567);
Playlist result = apiInstance.getRumReplayPlaylist(1234567L);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RumReplayPlaylistsApi#getRumReplayPlaylist");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void main(String[] args) {
RumReplayPlaylistsApi apiInstance = new RumReplayPlaylistsApi(defaultClient);

try {
PlaylistsSessionArray result = apiInstance.listRumReplayPlaylistSessions(1234567);
PlaylistsSessionArray result = apiInstance.listRumReplayPlaylistSessions(1234567L);
System.out.println(result);
} catch (ApiException e) {
System.err.println(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void main(String[] args) {

try {
apiInstance.removeRumReplaySessionFromPlaylist(
1234567, "00000000-0000-0000-0000-000000000001");
1234567L, "00000000-0000-0000-0000-000000000001");
} catch (ApiException e) {
System.err.println(
"Exception when calling RumReplayPlaylistsApi#removeRumReplaySessionFromPlaylist");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void main(String[] args) {
.type(PlaylistDataType.RUM_REPLAY_PLAYLIST));

try {
Playlist result = apiInstance.updateRumReplayPlaylist(1234567, body);
Playlist result = apiInstance.updateRumReplayPlaylist(1234567L, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RumReplayPlaylistsApi#updateRumReplayPlaylist");
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/seats/GetSeatsUsers.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void main(String[] args) {
try {
SeatUserDataArray result =
apiInstance.getSeatsUsers(
"incident_response", new GetSeatsUsersOptionalParameters().pageLimit(100));
"incident_response", new GetSeatsUsersOptionalParameters().pageLimit(100L));
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SeatsApi#getSeatsUsers");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.SecurityMonitoringApi;
import com.datadog.api.client.v2.model.NotificationRulesListResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
apiInstance.getSignalNotificationRules();
NotificationRulesListResponse result = apiInstance.getSignalNotificationRules();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityMonitoringApi#getSignalNotificationRules");
System.err.println("Status code: " + e.getCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.SecurityMonitoringApi;
import com.datadog.api.client.v2.model.NotificationRulesListResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
apiInstance.getVulnerabilityNotificationRules();
NotificationRulesListResponse result = apiInstance.getVulnerabilityNotificationRules();
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling SecurityMonitoringApi#getVulnerabilityNotificationRules");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ public CompletableFuture<ApiResponse<TimelineResponse>> commentCaseWithHttpInfoA
public static class CountCasesOptionalParameters {
private String queryFilter;
private String groupBys;
private Integer limit;
private Long limit;

/**
* Set queryFilter.
Expand Down Expand Up @@ -1075,7 +1075,7 @@ public CountCasesOptionalParameters groupBys(String groupBys) {
* @param limit Maximum facet values to return. (optional)
* @return CountCasesOptionalParameters
*/
public CountCasesOptionalParameters limit(Integer limit) {
public CountCasesOptionalParameters limit(Long limit) {
this.limit = limit;
return this;
}
Expand Down Expand Up @@ -1169,7 +1169,7 @@ public ApiResponse<CaseCountResponse> countCasesWithHttpInfo(
Object localVarPostBody = null;
String queryFilter = parameters.queryFilter;
String groupBys = parameters.groupBys;
Integer limit = parameters.limit;
Long limit = parameters.limit;
// create path and map variables
String localVarPath = "/api/v2/cases/count";

Expand Down Expand Up @@ -1223,7 +1223,7 @@ public CompletableFuture<ApiResponse<CaseCountResponse>> countCasesWithHttpInfoA
Object localVarPostBody = null;
String queryFilter = parameters.queryFilter;
String groupBys = parameters.groupBys;
Integer limit = parameters.limit;
Long limit = parameters.limit;
// create path and map variables
String localVarPath = "/api/v2/cases/count";

Expand Down Expand Up @@ -6230,8 +6230,8 @@ public CompletableFuture<ApiResponse<CaseLinksResponse>> listCaseLinksWithHttpIn

/** Manage optional parameters to listCaseTimeline. */
public static class ListCaseTimelineOptionalParameters {
private Integer pageSize;
private Integer pageNumber;
private Long pageSize;
private Long pageNumber;
private Boolean sortAscending;

/**
Expand All @@ -6240,7 +6240,7 @@ public static class ListCaseTimelineOptionalParameters {
* @param pageSize Number of timeline cells to return per page. (optional, default to 100)
* @return ListCaseTimelineOptionalParameters
*/
public ListCaseTimelineOptionalParameters pageSize(Integer pageSize) {
public ListCaseTimelineOptionalParameters pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
Expand All @@ -6251,7 +6251,7 @@ public ListCaseTimelineOptionalParameters pageSize(Integer pageSize) {
* @param pageNumber Zero-based page number for pagination. (optional, default to 0)
* @return ListCaseTimelineOptionalParameters
*/
public ListCaseTimelineOptionalParameters pageNumber(Integer pageNumber) {
public ListCaseTimelineOptionalParameters pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
Expand Down Expand Up @@ -6368,8 +6368,8 @@ public ApiResponse<TimelineResponse> listCaseTimelineWithHttpInfo(
throw new ApiException(
400, "Missing the required parameter 'caseId' when calling listCaseTimeline");
}
Integer pageSize = parameters.pageSize;
Integer pageNumber = parameters.pageNumber;
Long pageSize = parameters.pageSize;
Long pageNumber = parameters.pageNumber;
Boolean sortAscending = parameters.sortAscending;
// create path and map variables
String localVarPath =
Expand Down Expand Up @@ -6434,8 +6434,8 @@ public CompletableFuture<ApiResponse<TimelineResponse>> listCaseTimelineWithHttp
400, "Missing the required parameter 'caseId' when calling listCaseTimeline"));
return result;
}
Integer pageSize = parameters.pageSize;
Integer pageNumber = parameters.pageNumber;
Long pageSize = parameters.pageSize;
Long pageNumber = parameters.pageNumber;
Boolean sortAscending = parameters.sortAscending;
// create path and map variables
String localVarPath =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6601,8 +6601,8 @@ public static class ListCostAnomaliesOptionalParameters {
private String dismissalCause;
private String orderBy;
private String order;
private Integer limit;
private Integer offset;
private Long limit;
private Long offset;
private List<String> providerIds;

/**
Expand Down Expand Up @@ -6710,7 +6710,7 @@ public ListCostAnomaliesOptionalParameters order(String order) {
* @param limit Maximum number of anomalies to return. Defaults to <code>200</code>. (optional)
* @return ListCostAnomaliesOptionalParameters
*/
public ListCostAnomaliesOptionalParameters limit(Integer limit) {
public ListCostAnomaliesOptionalParameters limit(Long limit) {
this.limit = limit;
return this;
}
Expand All @@ -6721,7 +6721,7 @@ public ListCostAnomaliesOptionalParameters limit(Integer limit) {
* @param offset Pagination offset. Defaults to <code>0</code>. (optional)
* @return ListCostAnomaliesOptionalParameters
*/
public ListCostAnomaliesOptionalParameters offset(Integer offset) {
public ListCostAnomaliesOptionalParameters offset(Long offset) {
this.offset = offset;
return this;
}
Expand Down Expand Up @@ -6832,8 +6832,8 @@ public ApiResponse<CostAnomaliesResponse> listCostAnomaliesWithHttpInfo(
String dismissalCause = parameters.dismissalCause;
String orderBy = parameters.orderBy;
String order = parameters.order;
Integer limit = parameters.limit;
Integer offset = parameters.offset;
Long limit = parameters.limit;
Long offset = parameters.offset;
List<String> providerIds = parameters.providerIds;
// create path and map variables
String localVarPath = "/api/v2/cost/anomalies";
Expand Down Expand Up @@ -6904,8 +6904,8 @@ public CompletableFuture<ApiResponse<CostAnomaliesResponse>> listCostAnomaliesWi
String dismissalCause = parameters.dismissalCause;
String orderBy = parameters.orderBy;
String order = parameters.order;
Integer limit = parameters.limit;
Integer offset = parameters.offset;
Long limit = parameters.limit;
Long offset = parameters.offset;
List<String> providerIds = parameters.providerIds;
// create path and map variables
String localVarPath = "/api/v2/cost/anomalies";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ public ApiResponse<SecurityEntityRiskScoreResponse> getEntityRiskScoreWithHttpIn
public static class ListEntityRiskScoresOptionalParameters {
private Long from;
private Long to;
private Integer pageSize;
private Integer pageNumber;
private Long pageSize;
private Long pageNumber;
private String pageQueryId;
private String filterSort;
private String filterQuery;
Expand Down Expand Up @@ -245,7 +245,7 @@ public ListEntityRiskScoresOptionalParameters to(Long to) {
* @param pageSize Size of the page to return. Maximum is 1000. (optional, default to 10)
* @return ListEntityRiskScoresOptionalParameters
*/
public ListEntityRiskScoresOptionalParameters pageSize(Integer pageSize) {
public ListEntityRiskScoresOptionalParameters pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
Expand All @@ -256,7 +256,7 @@ public ListEntityRiskScoresOptionalParameters pageSize(Integer pageSize) {
* @param pageNumber Page number to return (1-indexed). (optional, default to 1)
* @return ListEntityRiskScoresOptionalParameters
*/
public ListEntityRiskScoresOptionalParameters pageNumber(Integer pageNumber) {
public ListEntityRiskScoresOptionalParameters pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
Expand Down Expand Up @@ -399,8 +399,8 @@ public ApiResponse<SecurityEntityRiskScoresResponse> listEntityRiskScoresWithHtt
Object localVarPostBody = null;
Long from = parameters.from;
Long to = parameters.to;
Integer pageSize = parameters.pageSize;
Integer pageNumber = parameters.pageNumber;
Long pageSize = parameters.pageSize;
Long pageNumber = parameters.pageNumber;
String pageQueryId = parameters.pageQueryId;
String filterSort = parameters.filterSort;
String filterQuery = parameters.filterQuery;
Expand Down Expand Up @@ -464,8 +464,8 @@ public ApiResponse<SecurityEntityRiskScoresResponse> listEntityRiskScoresWithHtt
Object localVarPostBody = null;
Long from = parameters.from;
Long to = parameters.to;
Integer pageSize = parameters.pageSize;
Integer pageNumber = parameters.pageNumber;
Long pageSize = parameters.pageSize;
Long pageNumber = parameters.pageNumber;
String pageQueryId = parameters.pageQueryId;
String filterSort = parameters.filterSort;
String filterQuery = parameters.filterQuery;
Expand Down
Loading
Loading