From d8d9fc24c34c4e05e65bb39458d143369b13ab21 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 8 Jun 2026 08:50:35 +0000 Subject: [PATCH] Regenerate client from commit 10de247 of spec repo --- .generator/schemas/v2/openapi.yaml | 69 +++++++- .../v2/feature-flags/ListFeatureFlags.java | 2 +- .../AddRumReplaySessionToPlaylist.java | 2 +- .../BulkRemoveRumReplayPlaylistSessions.java | 2 +- .../DeleteRumReplayPlaylist.java | 2 +- .../GetRumReplayPlaylist.java | 2 +- .../ListRumReplayPlaylistSessions.java | 2 +- .../RemoveRumReplaySessionFromPlaylist.java | 2 +- .../UpdateRumReplayPlaylist.java | 2 +- examples/v2/seats/GetSeatsUsers.java | 2 +- .../GetSignalNotificationRules.java | 4 +- .../GetVulnerabilityNotificationRules.java | 4 +- .../api/client/v2/api/CaseManagementApi.java | 24 +-- .../client/v2/api/CloudCostManagementApi.java | 16 +- .../client/v2/api/EntityRiskScoresApi.java | 16 +- .../api/client/v2/api/FeatureFlagsApi.java | 32 ++-- .../api/client/v2/api/ModelLabApiApi.java | 32 ++-- .../com/datadog/api/client/v2/api/RumApi.java | 16 +- .../client/v2/api/RumReplayHeatmapsApi.java | 8 +- .../client/v2/api/RumReplayPlaylistsApi.java | 102 ++++++------ .../client/v2/api/RumReplaySessionsApi.java | 8 +- .../client/v2/api/RumReplayViewershipApi.java | 32 ++-- .../api/client/v2/api/ScorecardsApi.java | 16 +- .../datadog/api/client/v2/api/SeatsApi.java | 8 +- .../client/v2/api/SecurityMonitoringApi.java | 50 +++--- .../api/client/v2/api/StaticAnalysisApi.java | 20 +-- .../api/client/v2/api/StatusPagesApi.java | 48 +++--- .../datadog/api/client/v2/api/WidgetsApi.java | 16 +- .../api/client/v2/model/AssignmentResult.java | 2 +- ...rkloadSecurityAgentRuleActionSetValue.java | 55 ++++--- .../v2/model/HamrOrgConnectionStatus.java | 22 +-- .../model/NotificationRulesListResponse.java | 150 ++++++++++++++++++ .../v2/model/ProjectNotificationSettings.java | 10 +- .../v2/model/SourcemapFileAttributes.java | 12 +- 34 files changed, 501 insertions(+), 289 deletions(-) create mode 100644 src/main/java/com/datadog/api/client/v2/model/NotificationRulesListResponse.java diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 122c27ff508..2f3b0bc7786 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1977,12 +1977,7 @@ components: content: "application/json": schema: - properties: - data: - items: - $ref: "#/components/schemas/NotificationRule" - type: array - type: object + $ref: "#/components/schemas/NotificationRulesListResponse" description: The list of notification rules. PreconditionFailedResponse: content: @@ -10288,6 +10283,7 @@ components: description: HTTP-like status code describing the outcome for this finding. example: 500 format: int32 + maximum: 599 type: integer title: description: Short label describing the outcome for this finding. @@ -18056,7 +18052,8 @@ components: description: "The value of the set action" oneOf: - type: string - - type: integer + - format: int64 + type: integer - type: boolean CloudWorkloadSecurityAgentRuleActions: description: "The array of actions the rule can perform if triggered" @@ -39947,6 +39944,7 @@ components: - 4 - 5 example: 4 + format: int64 type: integer x-enum-varnames: - UNSPECIFIED @@ -58340,6 +58338,14 @@ components: data: $ref: "#/components/schemas/NotificationRule" type: object + NotificationRulesListResponse: + description: The list of notification rules. + properties: + data: + items: + $ref: "#/components/schemas/NotificationRule" + type: array + type: object NotificationRulesType: description: The rule type associated to notification rules. enum: @@ -69714,6 +69720,7 @@ components: description: Notification destinations (1=email, 2=slack, 3=in-app). items: description: Notification channel identifier (1=email, 2=slack, 3=in-app). + format: int64 type: integer type: array enabled: @@ -86991,6 +86998,7 @@ components: - 50 - 30 items: + format: int64 type: integer type: array names: @@ -109234,6 +109242,7 @@ paths: name: limit required: false schema: + format: int64 type: integer responses: "200": @@ -112378,6 +112387,7 @@ paths: required: false schema: default: 100 + format: int64 type: integer - description: Zero-based page number for pagination. in: query @@ -112385,6 +112395,7 @@ paths: required: false schema: default: 0 + format: int64 type: integer - description: "If `true`, returns timeline cells in chronological order (oldest first). Defaults to `false` (newest first)." in: query @@ -115600,6 +115611,7 @@ paths: required: false schema: example: 200 + format: int64 type: integer - description: Pagination offset. Defaults to `0`. in: query @@ -115607,6 +115619,7 @@ paths: required: false schema: example: 0 + format: int64 type: integer - description: Optional repeated cloud or SaaS provider filters, such as `aws`, `gcp`, `azure`, `Oracle`, `datadog`, `OpenAI`, or `Anthropic`. explode: true @@ -123560,6 +123573,7 @@ paths: name: limit schema: default: 100 + format: int64 maximum: 1000 minimum: 1 type: integer @@ -123569,6 +123583,7 @@ paths: name: offset schema: default: 0 + format: int64 minimum: 0 type: integer responses: @@ -123712,6 +123727,7 @@ paths: name: limit schema: default: 100 + format: int64 maximum: 1000 minimum: 1 type: integer @@ -123721,6 +123737,7 @@ paths: name: offset schema: default: 0 + format: int64 minimum: 0 type: integer responses: @@ -141572,6 +141589,7 @@ paths: required: false schema: default: 25 + format: int64 maximum: 100 type: integer - description: Page number (1-indexed). @@ -141580,6 +141598,7 @@ paths: required: false schema: default: 1 + format: int64 type: integer responses: "200": @@ -141895,6 +141914,7 @@ paths: required: false schema: default: 25 + format: int64 maximum: 100 type: integer - description: Page number (1-indexed). @@ -141903,6 +141923,7 @@ paths: required: false schema: default: 1 + format: int64 type: integer responses: "200": @@ -152161,6 +152182,7 @@ paths: name: page[limit] schema: example: 10 + format: int64 type: integer - description: Filter by application ID. in: query @@ -154937,12 +154959,14 @@ paths: name: page[number] schema: example: 0 + format: int64 type: integer - description: Number of items per page. in: query name: page[size] schema: example: 25 + format: int64 type: integer responses: "200": @@ -155023,6 +155047,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer responses: "204": @@ -155046,6 +155071,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer responses: "200": @@ -155081,6 +155107,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer requestBody: content: @@ -155134,6 +155161,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer requestBody: content: @@ -155169,18 +155197,21 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer - description: Page number for pagination (0-indexed). in: query name: page[number] schema: example: 0 + format: int64 type: integer - description: Number of items per page. in: query name: page[size] schema: example: 25 + format: int64 type: integer responses: "200": @@ -155217,6 +155248,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer - description: Unique identifier of the session. in: path @@ -155261,6 +155293,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer - description: Unique identifier of the session. in: path @@ -155344,6 +155377,7 @@ paths: name: max_list_size schema: example: 1048576 + format: int64 type: integer - description: Paging token for pagination. in: query @@ -155373,12 +155407,14 @@ paths: name: page[size] schema: example: 25 + format: int64 type: integer - description: Page number for pagination (0-indexed). in: query name: page[number] schema: example: 0 + format: int64 type: integer - description: Unique identifier of the session. in: path @@ -155506,6 +155542,7 @@ paths: name: page[number] schema: example: 0 + format: int64 type: integer - description: Filter by user UUID. Defaults to current user if not specified. in: query @@ -155531,6 +155568,7 @@ paths: name: page[size] schema: example: 25 + format: int64 type: integer - description: Filter by application ID. in: query @@ -156858,6 +156896,7 @@ paths: required: false schema: default: 0 + format: int64 type: integer - description: Number of scores to return. Max is 1000. in: query @@ -156865,6 +156904,7 @@ paths: required: false schema: default: 100 + format: int64 type: integer responses: "200": @@ -156972,6 +157012,7 @@ paths: name: page[limit] required: false schema: + format: int64 type: integer - description: Cursor for pagination. in: query @@ -157099,6 +157140,7 @@ paths: schema: default: 10 example: 10 + format: int64 type: integer - description: Page number to return (1-indexed). in: query @@ -157107,6 +157149,7 @@ paths: schema: default: 1 example: 1 + format: int64 type: integer - description: Query ID for pagination consistency. in: query @@ -167362,6 +167405,7 @@ paths: schema: default: 20 example: 20 + format: int64 type: integer - description: The page number to retrieve, starting from 1. in: query @@ -167369,6 +167413,7 @@ paths: schema: default: 1 example: 1 + format: int64 type: integer - description: |- Filter by service names (multiple values allowed). Required for @@ -169945,6 +169990,7 @@ paths: required: false schema: default: 0 + format: int64 type: integer - description: Pagination limit in: query @@ -169952,6 +169998,7 @@ paths: required: false schema: default: 10 + format: int64 type: integer responses: "200": @@ -170647,12 +170694,14 @@ paths: name: page[offset] schema: default: 0 + format: int64 type: integer - description: The number of status pages to return per page. in: query name: page[limit] schema: default: 50 + format: int64 type: integer - description: Filter status pages by exact domain prefix match. Returns at most one result. in: query @@ -170793,12 +170842,14 @@ paths: name: page[offset] schema: default: 0 + format: int64 type: integer - description: The number of degradations to return per page. in: query name: page[limit] schema: default: 50 + format: int64 type: integer - description: "Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user, status_page." in: query @@ -170864,12 +170915,14 @@ paths: name: page[offset] schema: default: 0 + format: int64 type: integer - description: The number of maintenances to return per page. in: query name: page[limit] schema: default: 50 + format: int64 type: integer - description: "Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user, status_page." in: query @@ -179056,6 +179109,7 @@ paths: name: page[number] schema: default: 0 + format: int64 minimum: 0 type: integer - description: Number of widgets per page. @@ -179063,6 +179117,7 @@ paths: name: page[size] schema: default: 50 + format: int64 maximum: 100 type: integer responses: diff --git a/examples/v2/feature-flags/ListFeatureFlags.java b/examples/v2/feature-flags/ListFeatureFlags.java index cc834cf588a..4d362347249 100644 --- a/examples/v2/feature-flags/ListFeatureFlags.java +++ b/examples/v2/feature-flags/ListFeatureFlags.java @@ -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"); diff --git a/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.java b/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.java index eb96be1f63e..68a4e3de0e7 100644 --- a/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.java +++ b/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.java @@ -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( diff --git a/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.java b/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.java index 76e2cb1e7dd..5595799e8c5 100644 --- a/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.java +++ b/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.java @@ -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"); diff --git a/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.java b/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.java index 0b07d669870..670a312caf2 100644 --- a/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.java +++ b/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.java @@ -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()); diff --git a/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.java b/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.java index 1ef0c450b93..ae1e0d9f2d6 100644 --- a/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.java +++ b/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.java @@ -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"); diff --git a/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.java b/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.java index 41fac29ed51..960845669c4 100644 --- a/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.java +++ b/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.java @@ -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( diff --git a/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.java b/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.java index 820f2eee63b..1782558e51a 100644 --- a/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.java +++ b/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.java @@ -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"); diff --git a/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.java b/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.java index f158e698dbe..62bccaffc2c 100644 --- a/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.java +++ b/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.java @@ -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"); diff --git a/examples/v2/seats/GetSeatsUsers.java b/examples/v2/seats/GetSeatsUsers.java index f38b8a88b58..9730d4ad1aa 100644 --- a/examples/v2/seats/GetSeatsUsers.java +++ b/examples/v2/seats/GetSeatsUsers.java @@ -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"); diff --git a/examples/v2/security-monitoring/GetSignalNotificationRules.java b/examples/v2/security-monitoring/GetSignalNotificationRules.java index db47c8967f1..9376c22dedb 100644 --- a/examples/v2/security-monitoring/GetSignalNotificationRules.java +++ b/examples/v2/security-monitoring/GetSignalNotificationRules.java @@ -4,6 +4,7 @@ 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) { @@ -11,7 +12,8 @@ public static void main(String[] args) { 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()); diff --git a/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.java b/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.java index bb6b715806d..264215b7626 100644 --- a/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.java +++ b/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.java @@ -4,6 +4,7 @@ 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) { @@ -11,7 +12,8 @@ public static void main(String[] args) { 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"); diff --git a/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java index 6fc97f9e86a..faf3ef48ae2 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java @@ -1045,7 +1045,7 @@ public CompletableFuture> commentCaseWithHttpInfoA public static class CountCasesOptionalParameters { private String queryFilter; private String groupBys; - private Integer limit; + private Long limit; /** * Set queryFilter. @@ -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; } @@ -1169,7 +1169,7 @@ public ApiResponse 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"; @@ -1223,7 +1223,7 @@ public CompletableFuture> 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"; @@ -6230,8 +6230,8 @@ public CompletableFuture> 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; /** @@ -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; } @@ -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; } @@ -6368,8 +6368,8 @@ public ApiResponse 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 = @@ -6434,8 +6434,8 @@ public CompletableFuture> 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 = diff --git a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java index 27c0d3e2f8d..cdb6c3a1d68 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java @@ -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 providerIds; /** @@ -6710,7 +6710,7 @@ public ListCostAnomaliesOptionalParameters order(String order) { * @param limit Maximum number of anomalies to return. Defaults to 200. (optional) * @return ListCostAnomaliesOptionalParameters */ - public ListCostAnomaliesOptionalParameters limit(Integer limit) { + public ListCostAnomaliesOptionalParameters limit(Long limit) { this.limit = limit; return this; } @@ -6721,7 +6721,7 @@ public ListCostAnomaliesOptionalParameters limit(Integer limit) { * @param offset Pagination offset. Defaults to 0. (optional) * @return ListCostAnomaliesOptionalParameters */ - public ListCostAnomaliesOptionalParameters offset(Integer offset) { + public ListCostAnomaliesOptionalParameters offset(Long offset) { this.offset = offset; return this; } @@ -6832,8 +6832,8 @@ public ApiResponse 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 providerIds = parameters.providerIds; // create path and map variables String localVarPath = "/api/v2/cost/anomalies"; @@ -6904,8 +6904,8 @@ public CompletableFuture> 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 providerIds = parameters.providerIds; // create path and map variables String localVarPath = "/api/v2/cost/anomalies"; diff --git a/src/main/java/com/datadog/api/client/v2/api/EntityRiskScoresApi.java b/src/main/java/com/datadog/api/client/v2/api/EntityRiskScoresApi.java index fc2a70581b2..844ecbb5807 100644 --- a/src/main/java/com/datadog/api/client/v2/api/EntityRiskScoresApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/EntityRiskScoresApi.java @@ -208,8 +208,8 @@ public ApiResponse 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; @@ -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; } @@ -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; } @@ -399,8 +399,8 @@ public ApiResponse 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; @@ -464,8 +464,8 @@ public ApiResponse 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; diff --git a/src/main/java/com/datadog/api/client/v2/api/FeatureFlagsApi.java b/src/main/java/com/datadog/api/client/v2/api/FeatureFlagsApi.java index de2b1ca737d..f237f027eac 100644 --- a/src/main/java/com/datadog/api/client/v2/api/FeatureFlagsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/FeatureFlagsApi.java @@ -1432,8 +1432,8 @@ public ApiResponse getFeatureFlagsEnvironmentWithHttpInfo(U public static class ListFeatureFlagsOptionalParameters { private String key; private Boolean isArchived; - private Integer limit; - private Integer offset; + private Long limit; + private Long offset; /** * Set key. @@ -1463,7 +1463,7 @@ public ListFeatureFlagsOptionalParameters isArchived(Boolean isArchived) { * @param limit Maximum number of results to return. (optional, default to 100) * @return ListFeatureFlagsOptionalParameters */ - public ListFeatureFlagsOptionalParameters limit(Integer limit) { + public ListFeatureFlagsOptionalParameters limit(Long limit) { this.limit = limit; return this; } @@ -1474,7 +1474,7 @@ public ListFeatureFlagsOptionalParameters limit(Integer limit) { * @param offset Number of results to skip. (optional, default to 0) * @return ListFeatureFlagsOptionalParameters */ - public ListFeatureFlagsOptionalParameters offset(Integer offset) { + public ListFeatureFlagsOptionalParameters offset(Long offset) { this.offset = offset; return this; } @@ -1559,8 +1559,8 @@ public ApiResponse listFeatureFlagsWithHttpInfo( Object localVarPostBody = null; String key = parameters.key; Boolean isArchived = parameters.isArchived; - Integer limit = parameters.limit; - Integer offset = parameters.offset; + Long limit = parameters.limit; + Long offset = parameters.offset; // create path and map variables String localVarPath = "/api/v2/feature-flags"; @@ -1605,8 +1605,8 @@ public CompletableFuture> listFeatureFlags Object localVarPostBody = null; String key = parameters.key; Boolean isArchived = parameters.isArchived; - Integer limit = parameters.limit; - Integer offset = parameters.offset; + Long limit = parameters.limit; + Long offset = parameters.offset; // create path and map variables String localVarPath = "/api/v2/feature-flags"; @@ -1649,8 +1649,8 @@ public CompletableFuture> listFeatureFlags public static class ListFeatureFlagsEnvironmentsOptionalParameters { private String name; private String key; - private Integer limit; - private Integer offset; + private Long limit; + private Long offset; /** * Set name. @@ -1680,7 +1680,7 @@ public ListFeatureFlagsEnvironmentsOptionalParameters key(String key) { * @param limit Maximum number of results to return. (optional, default to 100) * @return ListFeatureFlagsEnvironmentsOptionalParameters */ - public ListFeatureFlagsEnvironmentsOptionalParameters limit(Integer limit) { + public ListFeatureFlagsEnvironmentsOptionalParameters limit(Long limit) { this.limit = limit; return this; } @@ -1691,7 +1691,7 @@ public ListFeatureFlagsEnvironmentsOptionalParameters limit(Integer limit) { * @param offset Number of results to skip. (optional, default to 0) * @return ListFeatureFlagsEnvironmentsOptionalParameters */ - public ListFeatureFlagsEnvironmentsOptionalParameters offset(Integer offset) { + public ListFeatureFlagsEnvironmentsOptionalParameters offset(Long offset) { this.offset = offset; return this; } @@ -1778,8 +1778,8 @@ public ApiResponse listFeatureFlagsEnvironmentsWithHtt Object localVarPostBody = null; String name = parameters.name; String key = parameters.key; - Integer limit = parameters.limit; - Integer offset = parameters.offset; + Long limit = parameters.limit; + Long offset = parameters.offset; // create path and map variables String localVarPath = "/api/v2/feature-flags/environments"; @@ -1825,8 +1825,8 @@ public ApiResponse listFeatureFlagsEnvironmentsWithHtt Object localVarPostBody = null; String name = parameters.name; String key = parameters.key; - Integer limit = parameters.limit; - Integer offset = parameters.offset; + Long limit = parameters.limit; + Long offset = parameters.offset; // create path and map variables String localVarPath = "/api/v2/feature-flags/environments"; diff --git a/src/main/java/com/datadog/api/client/v2/api/ModelLabApiApi.java b/src/main/java/com/datadog/api/client/v2/api/ModelLabApiApi.java index 2067c71e55c..7ebf8855a8b 100644 --- a/src/main/java/com/datadog/api/client/v2/api/ModelLabApiApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/ModelLabApiApi.java @@ -1177,8 +1177,8 @@ public static class ListModelLabProjectsOptionalParameters { private UUID filterOwnerId; private String filterTags; private String sort; - private Integer pageSize; - private Integer pageNumber; + private Long pageSize; + private Long pageNumber; /** * Set filter. @@ -1231,7 +1231,7 @@ public ListModelLabProjectsOptionalParameters sort(String sort) { * @param pageSize Number of items per page. Maximum is 100. (optional, default to 25) * @return ListModelLabProjectsOptionalParameters */ - public ListModelLabProjectsOptionalParameters pageSize(Integer pageSize) { + public ListModelLabProjectsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -1242,7 +1242,7 @@ public ListModelLabProjectsOptionalParameters pageSize(Integer pageSize) { * @param pageNumber Page number (1-indexed). (optional, default to 1) * @return ListModelLabProjectsOptionalParameters */ - public ListModelLabProjectsOptionalParameters pageNumber(Integer pageNumber) { + public ListModelLabProjectsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -1336,8 +1336,8 @@ public ApiResponse listModelLabProjectsWithHttpInfo( UUID filterOwnerId = parameters.filterOwnerId; String filterTags = parameters.filterTags; String sort = parameters.sort; - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = "/api/v2/model-lab-api/projects"; @@ -1396,8 +1396,8 @@ public ApiResponse listModelLabProjectsWithHttpInfo( UUID filterOwnerId = parameters.filterOwnerId; String filterTags = parameters.filterTags; String sort = parameters.sort; - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = "/api/v2/model-lab-api/projects"; @@ -2050,8 +2050,8 @@ public static class ListModelLabRunsOptionalParameters { private Boolean includePinned; private Boolean includeDescendantMatches; private String sort; - private Integer pageSize; - private Integer pageNumber; + private Long pageSize; + private Long pageNumber; /** * Set filterId. @@ -2199,7 +2199,7 @@ public ListModelLabRunsOptionalParameters sort(String sort) { * @param pageSize Number of items per page. Maximum is 100. (optional, default to 25) * @return ListModelLabRunsOptionalParameters */ - public ListModelLabRunsOptionalParameters pageSize(Integer pageSize) { + public ListModelLabRunsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -2210,7 +2210,7 @@ public ListModelLabRunsOptionalParameters pageSize(Integer pageSize) { * @param pageNumber Page number (1-indexed). (optional, default to 1) * @return ListModelLabRunsOptionalParameters */ - public ListModelLabRunsOptionalParameters pageNumber(Integer pageNumber) { + public ListModelLabRunsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -2312,8 +2312,8 @@ public ApiResponse listModelLabRunsWithHttpInfo( Boolean includePinned = parameters.includePinned; Boolean includeDescendantMatches = parameters.includeDescendantMatches; String sort = parameters.sort; - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = "/api/v2/model-lab-api/runs"; @@ -2391,8 +2391,8 @@ public CompletableFuture> listModelLabRunsWith Boolean includePinned = parameters.includePinned; Boolean includeDescendantMatches = parameters.includeDescendantMatches; String sort = parameters.sort; - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = "/api/v2/model-lab-api/runs"; diff --git a/src/main/java/com/datadog/api/client/v2/api/RumApi.java b/src/main/java/com/datadog/api/client/v2/api/RumApi.java index f3ea67d8126..a2c4a22cdc3 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumApi.java @@ -1948,8 +1948,8 @@ public CompletableFuture> listRUMEventsWithHttpIn /** Manage optional parameters to listSourcemaps. */ public static class ListSourcemapsOptionalParameters { private SourcemapMapKind mapkind; - private Integer pageSize; - private Integer pageNumber; + private Long pageSize; + private Long pageNumber; private List filterService; private List filterVersion; private List filterVariant; @@ -1987,7 +1987,7 @@ public ListSourcemapsOptionalParameters mapkind(SourcemapMapKind mapkind) { * default to 20) * @return ListSourcemapsOptionalParameters */ - public ListSourcemapsOptionalParameters pageSize(Integer pageSize) { + public ListSourcemapsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -1998,7 +1998,7 @@ public ListSourcemapsOptionalParameters pageSize(Integer pageSize) { * @param pageNumber The page number to retrieve, starting from 1. (optional, default to 1) * @return ListSourcemapsOptionalParameters */ - public ListSourcemapsOptionalParameters pageNumber(Integer pageNumber) { + public ListSourcemapsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -2308,8 +2308,8 @@ public ApiResponse listSourcemapsWithHttpInfo( } Object localVarPostBody = null; SourcemapMapKind mapkind = parameters.mapkind; - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; List filterService = parameters.filterService; List filterVersion = parameters.filterVersion; List filterVariant = parameters.filterVariant; @@ -2409,8 +2409,8 @@ public CompletableFuture> listSourcemapsWith } Object localVarPostBody = null; SourcemapMapKind mapkind = parameters.mapkind; - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; List filterService = parameters.filterService; List filterVersion = parameters.filterVersion; List filterVariant = parameters.filterVariant; diff --git a/src/main/java/com/datadog/api/client/v2/api/RumReplayHeatmapsApi.java b/src/main/java/com/datadog/api/client/v2/api/RumReplayHeatmapsApi.java index ff626f38a0b..8e017e4dd40 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumReplayHeatmapsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumReplayHeatmapsApi.java @@ -317,7 +317,7 @@ public CompletableFuture> deleteReplayHeatmapSnapshotWithHttpI /** Manage optional parameters to listReplayHeatmapSnapshots. */ public static class ListReplayHeatmapSnapshotsOptionalParameters { private String filterDeviceType; - private Integer pageLimit; + private Long pageLimit; private String filterApplicationId; /** @@ -337,7 +337,7 @@ public ListReplayHeatmapSnapshotsOptionalParameters filterDeviceType(String filt * @param pageLimit Maximum number of snapshots to return. (optional) * @return ListReplayHeatmapSnapshotsOptionalParameters */ - public ListReplayHeatmapSnapshotsOptionalParameters pageLimit(Integer pageLimit) { + public ListReplayHeatmapSnapshotsOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -449,7 +449,7 @@ public ApiResponse listReplayHeatmapSnapshotsWithHttpInfo( + " listReplayHeatmapSnapshots"); } String filterDeviceType = parameters.filterDeviceType; - Integer pageLimit = parameters.pageLimit; + Long pageLimit = parameters.pageLimit; String filterApplicationId = parameters.filterApplicationId; // create path and map variables String localVarPath = "/api/v2/replay/heatmap/snapshots"; @@ -508,7 +508,7 @@ public CompletableFuture> listReplayHeatmapSnapshotsW return result; } String filterDeviceType = parameters.filterDeviceType; - Integer pageLimit = parameters.pageLimit; + Long pageLimit = parameters.pageLimit; String filterApplicationId = parameters.filterApplicationId; // create path and map variables String localVarPath = "/api/v2/replay/heatmap/snapshots"; diff --git a/src/main/java/com/datadog/api/client/v2/api/RumReplayPlaylistsApi.java b/src/main/java/com/datadog/api/client/v2/api/RumReplayPlaylistsApi.java index 25d5a3dcb9d..a4296d6a7c7 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumReplayPlaylistsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumReplayPlaylistsApi.java @@ -76,8 +76,8 @@ public AddRumReplaySessionToPlaylistOptionalParameters dataSource(String dataSou * @return PlaylistsSession * @throws ApiException if fails to make API call */ - public PlaylistsSession addRumReplaySessionToPlaylist( - Long ts, Integer playlistId, String sessionId) throws ApiException { + public PlaylistsSession addRumReplaySessionToPlaylist(Long ts, Long playlistId, String sessionId) + throws ApiException { return addRumReplaySessionToPlaylistWithHttpInfo( ts, playlistId, sessionId, new AddRumReplaySessionToPlaylistOptionalParameters()) .getData(); @@ -94,7 +94,7 @@ ts, playlistId, sessionId, new AddRumReplaySessionToPlaylistOptionalParameters() * @return CompletableFuture<PlaylistsSession> */ public CompletableFuture addRumReplaySessionToPlaylistAsync( - Long ts, Integer playlistId, String sessionId) { + Long ts, Long playlistId, String sessionId) { return addRumReplaySessionToPlaylistWithHttpInfoAsync( ts, playlistId, sessionId, new AddRumReplaySessionToPlaylistOptionalParameters()) .thenApply( @@ -117,7 +117,7 @@ ts, playlistId, sessionId, new AddRumReplaySessionToPlaylistOptionalParameters() */ public PlaylistsSession addRumReplaySessionToPlaylist( Long ts, - Integer playlistId, + Long playlistId, String sessionId, AddRumReplaySessionToPlaylistOptionalParameters parameters) throws ApiException { @@ -138,7 +138,7 @@ public PlaylistsSession addRumReplaySessionToPlaylist( */ public CompletableFuture addRumReplaySessionToPlaylistAsync( Long ts, - Integer playlistId, + Long playlistId, String sessionId, AddRumReplaySessionToPlaylistOptionalParameters parameters) { return addRumReplaySessionToPlaylistWithHttpInfoAsync(ts, playlistId, sessionId, parameters) @@ -168,7 +168,7 @@ public CompletableFuture addRumReplaySessionToPlaylistAsync( */ public ApiResponse addRumReplaySessionToPlaylistWithHttpInfo( Long ts, - Integer playlistId, + Long playlistId, String sessionId, AddRumReplaySessionToPlaylistOptionalParameters parameters) throws ApiException { @@ -241,7 +241,7 @@ public ApiResponse addRumReplaySessionToPlaylistWithHttpInfo( public CompletableFuture> addRumReplaySessionToPlaylistWithHttpInfoAsync( Long ts, - Integer playlistId, + Long playlistId, String sessionId, AddRumReplaySessionToPlaylistOptionalParameters parameters) { Object localVarPostBody = null; @@ -327,7 +327,7 @@ public ApiResponse addRumReplaySessionToPlaylistWithHttpInfo( * @param body (required) * @throws ApiException if fails to make API call */ - public void bulkRemoveRumReplayPlaylistSessions(Integer playlistId, SessionIdArray body) + public void bulkRemoveRumReplayPlaylistSessions(Long playlistId, SessionIdArray body) throws ApiException { bulkRemoveRumReplayPlaylistSessionsWithHttpInfo(playlistId, body); } @@ -342,7 +342,7 @@ public void bulkRemoveRumReplayPlaylistSessions(Integer playlistId, SessionIdArr * @return CompletableFuture */ public CompletableFuture bulkRemoveRumReplayPlaylistSessionsAsync( - Integer playlistId, SessionIdArray body) { + Long playlistId, SessionIdArray body) { return bulkRemoveRumReplayPlaylistSessionsWithHttpInfoAsync(playlistId, body) .thenApply( response -> { @@ -366,7 +366,7 @@ public CompletableFuture bulkRemoveRumReplayPlaylistSessionsAsync( * */ public ApiResponse bulkRemoveRumReplayPlaylistSessionsWithHttpInfo( - Integer playlistId, SessionIdArray body) throws ApiException { + Long playlistId, SessionIdArray body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'playlistId' is set @@ -421,7 +421,7 @@ public ApiResponse bulkRemoveRumReplayPlaylistSessionsWithHttpInfo( * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> bulkRemoveRumReplayPlaylistSessionsWithHttpInfoAsync( - Integer playlistId, SessionIdArray body) { + Long playlistId, SessionIdArray body) { Object localVarPostBody = body; // verify the required parameter 'playlistId' is set @@ -617,7 +617,7 @@ public CompletableFuture> createRumReplayPlaylistWithHttpI * @param playlistId Unique identifier of the playlist. (required) * @throws ApiException if fails to make API call */ - public void deleteRumReplayPlaylist(Integer playlistId) throws ApiException { + public void deleteRumReplayPlaylist(Long playlistId) throws ApiException { deleteRumReplayPlaylistWithHttpInfo(playlistId); } @@ -629,7 +629,7 @@ public void deleteRumReplayPlaylist(Integer playlistId) throws ApiException { * @param playlistId Unique identifier of the playlist. (required) * @return CompletableFuture */ - public CompletableFuture deleteRumReplayPlaylistAsync(Integer playlistId) { + public CompletableFuture deleteRumReplayPlaylistAsync(Long playlistId) { return deleteRumReplayPlaylistWithHttpInfoAsync(playlistId) .thenApply( response -> { @@ -651,7 +651,7 @@ public CompletableFuture deleteRumReplayPlaylistAsync(Integer playlistId) * 429 Too many requests - * */ - public ApiResponse deleteRumReplayPlaylistWithHttpInfo(Integer playlistId) + public ApiResponse deleteRumReplayPlaylistWithHttpInfo(Long playlistId) throws ApiException { Object localVarPostBody = null; @@ -697,7 +697,7 @@ public ApiResponse deleteRumReplayPlaylistWithHttpInfo(Integer playlistId) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteRumReplayPlaylistWithHttpInfoAsync( - Integer playlistId) { + Long playlistId) { Object localVarPostBody = null; // verify the required parameter 'playlistId' is set @@ -753,7 +753,7 @@ public CompletableFuture> deleteRumReplayPlaylistWithHttpInfoA * @return Playlist * @throws ApiException if fails to make API call */ - public Playlist getRumReplayPlaylist(Integer playlistId) throws ApiException { + public Playlist getRumReplayPlaylist(Long playlistId) throws ApiException { return getRumReplayPlaylistWithHttpInfo(playlistId).getData(); } @@ -765,7 +765,7 @@ public Playlist getRumReplayPlaylist(Integer playlistId) throws ApiException { * @param playlistId Unique identifier of the playlist. (required) * @return CompletableFuture<Playlist> */ - public CompletableFuture getRumReplayPlaylistAsync(Integer playlistId) { + public CompletableFuture getRumReplayPlaylistAsync(Long playlistId) { return getRumReplayPlaylistWithHttpInfoAsync(playlistId) .thenApply( response -> { @@ -787,7 +787,7 @@ public CompletableFuture getRumReplayPlaylistAsync(Integer playlistId) * 429 Too many requests - * */ - public ApiResponse getRumReplayPlaylistWithHttpInfo(Integer playlistId) + public ApiResponse getRumReplayPlaylistWithHttpInfo(Long playlistId) throws ApiException { Object localVarPostBody = null; @@ -833,7 +833,7 @@ public ApiResponse getRumReplayPlaylistWithHttpInfo(Integer playlistId * @return CompletableFuture<ApiResponse<Playlist>> */ public CompletableFuture> getRumReplayPlaylistWithHttpInfoAsync( - Integer playlistId) { + Long playlistId) { Object localVarPostBody = null; // verify the required parameter 'playlistId' is set @@ -884,8 +884,8 @@ public CompletableFuture> getRumReplayPlaylistWithHttpInfo public static class ListRumReplayPlaylistsOptionalParameters { private String filterCreatedByUuid; private String filterQuery; - private Integer pageNumber; - private Integer pageSize; + private Long pageNumber; + private Long pageSize; /** * Set filterCreatedByUuid. @@ -917,7 +917,7 @@ public ListRumReplayPlaylistsOptionalParameters filterQuery(String filterQuery) * @param pageNumber Page number for pagination (0-indexed). (optional) * @return ListRumReplayPlaylistsOptionalParameters */ - public ListRumReplayPlaylistsOptionalParameters pageNumber(Integer pageNumber) { + public ListRumReplayPlaylistsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -928,7 +928,7 @@ public ListRumReplayPlaylistsOptionalParameters pageNumber(Integer pageNumber) { * @param pageSize Number of items per page. (optional) * @return ListRumReplayPlaylistsOptionalParameters */ - public ListRumReplayPlaylistsOptionalParameters pageSize(Integer pageSize) { + public ListRumReplayPlaylistsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -1012,8 +1012,8 @@ public ApiResponse listRumReplayPlaylistsWithHttpInfo( Object localVarPostBody = null; String filterCreatedByUuid = parameters.filterCreatedByUuid; String filterQuery = parameters.filterQuery; - Integer pageNumber = parameters.pageNumber; - Integer pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; // create path and map variables String localVarPath = "/api/v2/rum/replay/playlists"; @@ -1059,8 +1059,8 @@ public CompletableFuture> listRumReplayPlaylistsWithH Object localVarPostBody = null; String filterCreatedByUuid = parameters.filterCreatedByUuid; String filterQuery = parameters.filterQuery; - Integer pageNumber = parameters.pageNumber; - Integer pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; // create path and map variables String localVarPath = "/api/v2/rum/replay/playlists"; @@ -1102,8 +1102,8 @@ public CompletableFuture> listRumReplayPlaylistsWithH /** Manage optional parameters to listRumReplayPlaylistSessions. */ public static class ListRumReplayPlaylistSessionsOptionalParameters { - private Integer pageNumber; - private Integer pageSize; + private Long pageNumber; + private Long pageSize; /** * Set pageNumber. @@ -1111,7 +1111,7 @@ public static class ListRumReplayPlaylistSessionsOptionalParameters { * @param pageNumber Page number for pagination (0-indexed). (optional) * @return ListRumReplayPlaylistSessionsOptionalParameters */ - public ListRumReplayPlaylistSessionsOptionalParameters pageNumber(Integer pageNumber) { + public ListRumReplayPlaylistSessionsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -1122,7 +1122,7 @@ public ListRumReplayPlaylistSessionsOptionalParameters pageNumber(Integer pageNu * @param pageSize Number of items per page. (optional) * @return ListRumReplayPlaylistSessionsOptionalParameters */ - public ListRumReplayPlaylistSessionsOptionalParameters pageSize(Integer pageSize) { + public ListRumReplayPlaylistSessionsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -1137,8 +1137,7 @@ public ListRumReplayPlaylistSessionsOptionalParameters pageSize(Integer pageSize * @return PlaylistsSessionArray * @throws ApiException if fails to make API call */ - public PlaylistsSessionArray listRumReplayPlaylistSessions(Integer playlistId) - throws ApiException { + public PlaylistsSessionArray listRumReplayPlaylistSessions(Long playlistId) throws ApiException { return listRumReplayPlaylistSessionsWithHttpInfo( playlistId, new ListRumReplayPlaylistSessionsOptionalParameters()) .getData(); @@ -1153,7 +1152,7 @@ playlistId, new ListRumReplayPlaylistSessionsOptionalParameters()) * @return CompletableFuture<PlaylistsSessionArray> */ public CompletableFuture listRumReplayPlaylistSessionsAsync( - Integer playlistId) { + Long playlistId) { return listRumReplayPlaylistSessionsWithHttpInfoAsync( playlistId, new ListRumReplayPlaylistSessionsOptionalParameters()) .thenApply( @@ -1173,7 +1172,7 @@ playlistId, new ListRumReplayPlaylistSessionsOptionalParameters()) * @throws ApiException if fails to make API call */ public PlaylistsSessionArray listRumReplayPlaylistSessions( - Integer playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) + Long playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) throws ApiException { return listRumReplayPlaylistSessionsWithHttpInfo(playlistId, parameters).getData(); } @@ -1188,7 +1187,7 @@ public PlaylistsSessionArray listRumReplayPlaylistSessions( * @return CompletableFuture<PlaylistsSessionArray> */ public CompletableFuture listRumReplayPlaylistSessionsAsync( - Integer playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) { + Long playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) { return listRumReplayPlaylistSessionsWithHttpInfoAsync(playlistId, parameters) .thenApply( response -> { @@ -1212,7 +1211,7 @@ public CompletableFuture listRumReplayPlaylistSessionsAsy * */ public ApiResponse listRumReplayPlaylistSessionsWithHttpInfo( - Integer playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) + Long playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; @@ -1222,8 +1221,8 @@ public ApiResponse listRumReplayPlaylistSessionsWithHttpI 400, "Missing the required parameter 'playlistId' when calling listRumReplayPlaylistSessions"); } - Integer pageNumber = parameters.pageNumber; - Integer pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; // create path and map variables String localVarPath = "/api/v2/rum/replay/playlists/{playlist_id}/sessions" @@ -1267,7 +1266,7 @@ public ApiResponse listRumReplayPlaylistSessionsWithHttpI */ public CompletableFuture> listRumReplayPlaylistSessionsWithHttpInfoAsync( - Integer playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) { + Long playlistId, ListRumReplayPlaylistSessionsOptionalParameters parameters) { Object localVarPostBody = null; // verify the required parameter 'playlistId' is set @@ -1280,8 +1279,8 @@ public ApiResponse listRumReplayPlaylistSessionsWithHttpI + " listRumReplayPlaylistSessions")); return result; } - Integer pageNumber = parameters.pageNumber; - Integer pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; // create path and map variables String localVarPath = "/api/v2/rum/replay/playlists/{playlist_id}/sessions" @@ -1330,7 +1329,7 @@ public ApiResponse listRumReplayPlaylistSessionsWithHttpI * @param sessionId Unique identifier of the session. (required) * @throws ApiException if fails to make API call */ - public void removeRumReplaySessionFromPlaylist(Integer playlistId, String sessionId) + public void removeRumReplaySessionFromPlaylist(Long playlistId, String sessionId) throws ApiException { removeRumReplaySessionFromPlaylistWithHttpInfo(playlistId, sessionId); } @@ -1345,7 +1344,7 @@ public void removeRumReplaySessionFromPlaylist(Integer playlistId, String sessio * @return CompletableFuture */ public CompletableFuture removeRumReplaySessionFromPlaylistAsync( - Integer playlistId, String sessionId) { + Long playlistId, String sessionId) { return removeRumReplaySessionFromPlaylistWithHttpInfoAsync(playlistId, sessionId) .thenApply( response -> { @@ -1369,7 +1368,7 @@ public CompletableFuture removeRumReplaySessionFromPlaylistAsync( * */ public ApiResponse removeRumReplaySessionFromPlaylistWithHttpInfo( - Integer playlistId, String sessionId) throws ApiException { + Long playlistId, String sessionId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'playlistId' is set @@ -1426,7 +1425,7 @@ public ApiResponse removeRumReplaySessionFromPlaylistWithHttpInfo( * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> removeRumReplaySessionFromPlaylistWithHttpInfoAsync( - Integer playlistId, String sessionId) { + Long playlistId, String sessionId) { Object localVarPostBody = null; // verify the required parameter 'playlistId' is set @@ -1496,7 +1495,7 @@ public CompletableFuture> removeRumReplaySessionFromPlaylistWi * @return Playlist * @throws ApiException if fails to make API call */ - public Playlist updateRumReplayPlaylist(Integer playlistId, Playlist body) throws ApiException { + public Playlist updateRumReplayPlaylist(Long playlistId, Playlist body) throws ApiException { return updateRumReplayPlaylistWithHttpInfo(playlistId, body).getData(); } @@ -1509,8 +1508,7 @@ public Playlist updateRumReplayPlaylist(Integer playlistId, Playlist body) throw * @param body (required) * @return CompletableFuture<Playlist> */ - public CompletableFuture updateRumReplayPlaylistAsync( - Integer playlistId, Playlist body) { + public CompletableFuture updateRumReplayPlaylistAsync(Long playlistId, Playlist body) { return updateRumReplayPlaylistWithHttpInfoAsync(playlistId, body) .thenApply( response -> { @@ -1533,8 +1531,8 @@ public CompletableFuture updateRumReplayPlaylistAsync( * 429 Too many requests - * */ - public ApiResponse updateRumReplayPlaylistWithHttpInfo( - Integer playlistId, Playlist body) throws ApiException { + public ApiResponse updateRumReplayPlaylistWithHttpInfo(Long playlistId, Playlist body) + throws ApiException { Object localVarPostBody = body; // verify the required parameter 'playlistId' is set @@ -1586,7 +1584,7 @@ public ApiResponse updateRumReplayPlaylistWithHttpInfo( * @return CompletableFuture<ApiResponse<Playlist>> */ public CompletableFuture> updateRumReplayPlaylistWithHttpInfoAsync( - Integer playlistId, Playlist body) { + Long playlistId, Playlist body) { Object localVarPostBody = body; // verify the required parameter 'playlistId' is set diff --git a/src/main/java/com/datadog/api/client/v2/api/RumReplaySessionsApi.java b/src/main/java/com/datadog/api/client/v2/api/RumReplaySessionsApi.java index 3c60ae6052c..c5954aa43d4 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumReplaySessionsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumReplaySessionsApi.java @@ -46,7 +46,7 @@ public void setApiClient(ApiClient apiClient) { public static class GetSegmentsOptionalParameters { private String source; private Long ts; - private Integer maxListSize; + private Long maxListSize; private String paging; /** @@ -77,7 +77,7 @@ public GetSegmentsOptionalParameters ts(Long ts) { * @param maxListSize Maximum size in bytes for the segment list. (optional) * @return GetSegmentsOptionalParameters */ - public GetSegmentsOptionalParameters maxListSize(Integer maxListSize) { + public GetSegmentsOptionalParameters maxListSize(Long maxListSize) { this.maxListSize = maxListSize; return this; } @@ -192,7 +192,7 @@ public ApiResponse getSegmentsWithHttpInfo( } String source = parameters.source; Long ts = parameters.ts; - Integer maxListSize = parameters.maxListSize; + Long maxListSize = parameters.maxListSize; String paging = parameters.paging; // create path and map variables String localVarPath = @@ -261,7 +261,7 @@ public CompletableFuture> getSegmentsWithHttpInfoAsync( } String source = parameters.source; Long ts = parameters.ts; - Integer maxListSize = parameters.maxListSize; + Long maxListSize = parameters.maxListSize; String paging = parameters.paging; // create path and map variables String localVarPath = diff --git a/src/main/java/com/datadog/api/client/v2/api/RumReplayViewershipApi.java b/src/main/java/com/datadog/api/client/v2/api/RumReplayViewershipApi.java index 4c915de7728..e7f696e8f0d 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumReplayViewershipApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumReplayViewershipApi.java @@ -339,8 +339,8 @@ public CompletableFuture> deleteRumReplaySessionWatchWithHttpI /** Manage optional parameters to listRumReplaySessionWatchers. */ public static class ListRumReplaySessionWatchersOptionalParameters { - private Integer pageSize; - private Integer pageNumber; + private Long pageSize; + private Long pageNumber; /** * Set pageSize. @@ -348,7 +348,7 @@ public static class ListRumReplaySessionWatchersOptionalParameters { * @param pageSize Number of items per page. (optional) * @return ListRumReplaySessionWatchersOptionalParameters */ - public ListRumReplaySessionWatchersOptionalParameters pageSize(Integer pageSize) { + public ListRumReplaySessionWatchersOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -359,7 +359,7 @@ public ListRumReplaySessionWatchersOptionalParameters pageSize(Integer pageSize) * @param pageNumber Page number for pagination (0-indexed). (optional) * @return ListRumReplaySessionWatchersOptionalParameters */ - public ListRumReplaySessionWatchersOptionalParameters pageNumber(Integer pageNumber) { + public ListRumReplaySessionWatchersOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -457,8 +457,8 @@ public ApiResponse listRumReplaySessionWatchersWithHttpInfo( 400, "Missing the required parameter 'sessionId' when calling listRumReplaySessionWatchers"); } - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = "/api/v2/rum/replay/sessions/{session_id}/watchers" @@ -513,8 +513,8 @@ public CompletableFuture> listRumReplaySessionWatchers + " listRumReplaySessionWatchers")); return result; } - Integer pageSize = parameters.pageSize; - Integer pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = "/api/v2/rum/replay/sessions/{session_id}/watchers" @@ -556,11 +556,11 @@ public CompletableFuture> listRumReplaySessionWatchers /** Manage optional parameters to listRumReplayViewershipHistorySessions. */ public static class ListRumReplayViewershipHistorySessionsOptionalParameters { private Long filterWatchedAtStart; - private Integer pageNumber; + private Long pageNumber; private String filterCreatedBy; private Long filterWatchedAtEnd; private String filterSessionIds; - private Integer pageSize; + private Long pageSize; private String filterApplicationId; /** @@ -581,7 +581,7 @@ public ListRumReplayViewershipHistorySessionsOptionalParameters filterWatchedAtS * @param pageNumber Page number for pagination (0-indexed). (optional) * @return ListRumReplayViewershipHistorySessionsOptionalParameters */ - public ListRumReplayViewershipHistorySessionsOptionalParameters pageNumber(Integer pageNumber) { + public ListRumReplayViewershipHistorySessionsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -629,7 +629,7 @@ public ListRumReplayViewershipHistorySessionsOptionalParameters filterSessionIds * @param pageSize Number of items per page. (optional) * @return ListRumReplayViewershipHistorySessionsOptionalParameters */ - public ListRumReplayViewershipHistorySessionsOptionalParameters pageSize(Integer pageSize) { + public ListRumReplayViewershipHistorySessionsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -730,11 +730,11 @@ public ViewershipHistorySessionArray listRumReplayViewershipHistorySessions( ListRumReplayViewershipHistorySessionsOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; Long filterWatchedAtStart = parameters.filterWatchedAtStart; - Integer pageNumber = parameters.pageNumber; + Long pageNumber = parameters.pageNumber; String filterCreatedBy = parameters.filterCreatedBy; Long filterWatchedAtEnd = parameters.filterWatchedAtEnd; String filterSessionIds = parameters.filterSessionIds; - Integer pageSize = parameters.pageSize; + Long pageSize = parameters.pageSize; String filterApplicationId = parameters.filterApplicationId; // create path and map variables String localVarPath = "/api/v2/rum/replay/viewership-history/sessions"; @@ -788,11 +788,11 @@ public ViewershipHistorySessionArray listRumReplayViewershipHistorySessions( ListRumReplayViewershipHistorySessionsOptionalParameters parameters) { Object localVarPostBody = null; Long filterWatchedAtStart = parameters.filterWatchedAtStart; - Integer pageNumber = parameters.pageNumber; + Long pageNumber = parameters.pageNumber; String filterCreatedBy = parameters.filterCreatedBy; Long filterWatchedAtEnd = parameters.filterWatchedAtEnd; String filterSessionIds = parameters.filterSessionIds; - Integer pageSize = parameters.pageSize; + Long pageSize = parameters.pageSize; String filterApplicationId = parameters.filterApplicationId; // create path and map variables String localVarPath = "/api/v2/rum/replay/viewership-history/sessions"; diff --git a/src/main/java/com/datadog/api/client/v2/api/ScorecardsApi.java b/src/main/java/com/datadog/api/client/v2/api/ScorecardsApi.java index 85a050dfe4b..285daed5dec 100644 --- a/src/main/java/com/datadog/api/client/v2/api/ScorecardsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/ScorecardsApi.java @@ -2228,8 +2228,8 @@ public static class ListScorecardScoresOptionalParameters { private Boolean filterRuleIsCustom; private Boolean filterRuleIsEnabled; private String sort; - private Integer pageOffset; - private Integer pageLimit; + private Long pageOffset; + private Long pageLimit; /** * Set filterRuleId. @@ -2316,7 +2316,7 @@ public ListScorecardScoresOptionalParameters sort(String sort) { * @param pageOffset Offset for pagination. (optional, default to 0) * @return ListScorecardScoresOptionalParameters */ - public ListScorecardScoresOptionalParameters pageOffset(Integer pageOffset) { + public ListScorecardScoresOptionalParameters pageOffset(Long pageOffset) { this.pageOffset = pageOffset; return this; } @@ -2327,7 +2327,7 @@ public ListScorecardScoresOptionalParameters pageOffset(Integer pageOffset) { * @param pageLimit Number of scores to return. Max is 1000. (optional, default to 100) * @return ListScorecardScoresOptionalParameters */ - public ListScorecardScoresOptionalParameters pageLimit(Integer pageLimit) { + public ListScorecardScoresOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -2434,8 +2434,8 @@ public ApiResponse listScorecardScoresWithHttpInfo( Boolean filterRuleIsCustom = parameters.filterRuleIsCustom; Boolean filterRuleIsEnabled = parameters.filterRuleIsEnabled; String sort = parameters.sort; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; // create path and map variables String localVarPath = "/api/v2/scorecard/scores/{aggregation}" @@ -2512,8 +2512,8 @@ public ApiResponse listScorecardScoresWithHttpInfo( Boolean filterRuleIsCustom = parameters.filterRuleIsCustom; Boolean filterRuleIsEnabled = parameters.filterRuleIsEnabled; String sort = parameters.sort; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; // create path and map variables String localVarPath = "/api/v2/scorecard/scores/{aggregation}" diff --git a/src/main/java/com/datadog/api/client/v2/api/SeatsApi.java b/src/main/java/com/datadog/api/client/v2/api/SeatsApi.java index b6b2db47500..534d2af0764 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SeatsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SeatsApi.java @@ -181,7 +181,7 @@ public CompletableFuture> assignSeatsUserWi /** Manage optional parameters to getSeatsUsers. */ public static class GetSeatsUsersOptionalParameters { - private Integer pageLimit; + private Long pageLimit; private String pageCursor; /** @@ -190,7 +190,7 @@ public static class GetSeatsUsersOptionalParameters { * @param pageLimit Maximum number of results to return. (optional) * @return GetSeatsUsersOptionalParameters */ - public GetSeatsUsersOptionalParameters pageLimit(Integer pageLimit) { + public GetSeatsUsersOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -295,7 +295,7 @@ public ApiResponse getSeatsUsersWithHttpInfo( throw new ApiException( 400, "Missing the required parameter 'productCode' when calling getSeatsUsers"); } - Integer pageLimit = parameters.pageLimit; + Long pageLimit = parameters.pageLimit; String pageCursor = parameters.pageCursor; // create path and map variables String localVarPath = "/api/v2/seats/users"; @@ -348,7 +348,7 @@ public CompletableFuture> getSeatsUsersWithHttpIn 400, "Missing the required parameter 'productCode' when calling getSeatsUsers")); return result; } - Integer pageLimit = parameters.pageLimit; + Long pageLimit = parameters.pageLimit; String pageCursor = parameters.pageCursor; // create path and map variables String localVarPath = "/api/v2/seats/users"; diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index bcb269b2137..503625a4ace 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -57,6 +57,7 @@ import com.datadog.api.client.v2.model.MuteFindingsResponse; import com.datadog.api.client.v2.model.NodeTypesResponse; import com.datadog.api.client.v2.model.NotificationRuleResponse; +import com.datadog.api.client.v2.model.NotificationRulesListResponse; import com.datadog.api.client.v2.model.PatchNotificationRuleParameters; import com.datadog.api.client.v2.model.RunHistoricalJobRequest; import com.datadog.api.client.v2.model.SBOMComponentLicenseType; @@ -12504,10 +12505,10 @@ public ApiResponse getSignalNotificationRuleWithHttpIn * *

See {@link #getSignalNotificationRulesWithHttpInfo}. * - * @return Object + * @return NotificationRulesListResponse * @throws ApiException if fails to make API call */ - public Object getSignalNotificationRules() throws ApiException { + public NotificationRulesListResponse getSignalNotificationRules() throws ApiException { return getSignalNotificationRulesWithHttpInfo().getData(); } @@ -12516,9 +12517,9 @@ public Object getSignalNotificationRules() throws ApiException { * *

See {@link #getSignalNotificationRulesWithHttpInfoAsync}. * - * @return CompletableFuture<Object> + * @return CompletableFuture<NotificationRulesListResponse> */ - public CompletableFuture getSignalNotificationRulesAsync() { + public CompletableFuture getSignalNotificationRulesAsync() { return getSignalNotificationRulesWithHttpInfoAsync() .thenApply( response -> { @@ -12529,7 +12530,7 @@ public CompletableFuture getSignalNotificationRulesAsync() { /** * Returns the list of notification rules for security signals. * - * @return ApiResponse<Object> + * @return ApiResponse<NotificationRulesListResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -12540,7 +12541,8 @@ public CompletableFuture getSignalNotificationRulesAsync() { * *
429 Too many requests -
*/ - public ApiResponse getSignalNotificationRulesWithHttpInfo() throws ApiException { + public ApiResponse getSignalNotificationRulesWithHttpInfo() + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v2/security/signals/notification_rules"; @@ -12564,7 +12566,7 @@ public ApiResponse getSignalNotificationRulesWithHttpInfo() throws ApiEx localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -12572,9 +12574,10 @@ public ApiResponse getSignalNotificationRulesWithHttpInfo() throws ApiEx * *

See {@link #getSignalNotificationRulesWithHttpInfo}. * - * @return CompletableFuture<ApiResponse<Object>> + * @return CompletableFuture<ApiResponse<NotificationRulesListResponse>> */ - public CompletableFuture> getSignalNotificationRulesWithHttpInfoAsync() { + public CompletableFuture> + getSignalNotificationRulesWithHttpInfoAsync() { Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v2/security/signals/notification_rules"; @@ -12593,7 +12596,8 @@ public CompletableFuture> getSignalNotificationRulesWithHttp new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -12605,7 +12609,7 @@ public CompletableFuture> getSignalNotificationRulesWithHttp localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -14117,10 +14121,10 @@ public ApiResponse getVulnerabilityNotificationRuleWit * *

See {@link #getVulnerabilityNotificationRulesWithHttpInfo}. * - * @return Object + * @return NotificationRulesListResponse * @throws ApiException if fails to make API call */ - public Object getVulnerabilityNotificationRules() throws ApiException { + public NotificationRulesListResponse getVulnerabilityNotificationRules() throws ApiException { return getVulnerabilityNotificationRulesWithHttpInfo().getData(); } @@ -14129,9 +14133,9 @@ public Object getVulnerabilityNotificationRules() throws ApiException { * *

See {@link #getVulnerabilityNotificationRulesWithHttpInfoAsync}. * - * @return CompletableFuture<Object> + * @return CompletableFuture<NotificationRulesListResponse> */ - public CompletableFuture getVulnerabilityNotificationRulesAsync() { + public CompletableFuture getVulnerabilityNotificationRulesAsync() { return getVulnerabilityNotificationRulesWithHttpInfoAsync() .thenApply( response -> { @@ -14142,7 +14146,7 @@ public CompletableFuture getVulnerabilityNotificationRulesAsync() { /** * Returns the list of notification rules for security vulnerabilities. * - * @return ApiResponse<Object> + * @return ApiResponse<NotificationRulesListResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -14153,7 +14157,8 @@ public CompletableFuture getVulnerabilityNotificationRulesAsync() { * *
429 Too many requests -
*/ - public ApiResponse getVulnerabilityNotificationRulesWithHttpInfo() throws ApiException { + public ApiResponse getVulnerabilityNotificationRulesWithHttpInfo() + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v2/security/vulnerabilities/notification_rules"; @@ -14177,7 +14182,7 @@ public ApiResponse getVulnerabilityNotificationRulesWithHttpInfo() throw localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -14185,9 +14190,9 @@ public ApiResponse getVulnerabilityNotificationRulesWithHttpInfo() throw * *

See {@link #getVulnerabilityNotificationRulesWithHttpInfo}. * - * @return CompletableFuture<ApiResponse<Object>> + * @return CompletableFuture<ApiResponse<NotificationRulesListResponse>> */ - public CompletableFuture> + public CompletableFuture> getVulnerabilityNotificationRulesWithHttpInfoAsync() { Object localVarPostBody = null; // create path and map variables @@ -14207,7 +14212,8 @@ public ApiResponse getVulnerabilityNotificationRulesWithHttpInfo() throw new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -14219,7 +14225,7 @@ public ApiResponse getVulnerabilityNotificationRulesWithHttpInfo() throw localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** Manage optional parameters to listAssetsSBOMs. */ diff --git a/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java b/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java index 41b7e611ba8..566d7141bc1 100644 --- a/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java @@ -4566,8 +4566,8 @@ public CompletableFuture> listAiPromptsWithHttpIn /** Manage optional parameters to listCustomRuleRevisions. */ public static class ListCustomRuleRevisionsOptionalParameters { - private Integer pageOffset; - private Integer pageLimit; + private Long pageOffset; + private Long pageLimit; /** * Set pageOffset. @@ -4575,7 +4575,7 @@ public static class ListCustomRuleRevisionsOptionalParameters { * @param pageOffset Pagination offset (optional, default to 0) * @return ListCustomRuleRevisionsOptionalParameters */ - public ListCustomRuleRevisionsOptionalParameters pageOffset(Integer pageOffset) { + public ListCustomRuleRevisionsOptionalParameters pageOffset(Long pageOffset) { this.pageOffset = pageOffset; return this; } @@ -4586,7 +4586,7 @@ public ListCustomRuleRevisionsOptionalParameters pageOffset(Integer pageOffset) * @param pageLimit Pagination limit (optional, default to 10) * @return ListCustomRuleRevisionsOptionalParameters */ - public ListCustomRuleRevisionsOptionalParameters pageLimit(Integer pageLimit) { + public ListCustomRuleRevisionsOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -4695,10 +4695,10 @@ public PaginationIterable listCustomRuleRevisionsWithPaginat String valueGetterPath = ""; String valueSetterPath = "pageOffset"; Boolean valueSetterParamOptional = true; - Integer limit; + Long limit; if (parameters.pageLimit == null) { - limit = 10; + limit = 10l; parameters.pageLimit(limit); } else { limit = parameters.pageLimit; @@ -4768,8 +4768,8 @@ public ApiResponse listCustomRuleRevisionsWithHttpI throw new ApiException( 400, "Missing the required parameter 'ruleName' when calling listCustomRuleRevisions"); } - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; // create path and map variables String localVarPath = "/api/v2/static-analysis/custom/rulesets/{ruleset_name}/rules/{rule_name}/revisions" @@ -4852,8 +4852,8 @@ public ApiResponse listCustomRuleRevisionsWithHttpI "Missing the required parameter 'ruleName' when calling listCustomRuleRevisions")); return result; } - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; // create path and map variables String localVarPath = "/api/v2/static-analysis/custom/rulesets/{ruleset_name}/rules/{rule_name}/revisions" diff --git a/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java b/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java index 96e8da1022d..5e4b0009531 100644 --- a/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java @@ -2909,8 +2909,8 @@ public CompletableFuture> listComponentsW /** Manage optional parameters to listDegradations. */ public static class ListDegradationsOptionalParameters { private String filterPageId; - private Integer pageOffset; - private Integer pageLimit; + private Long pageOffset; + private Long pageLimit; private String include; private String filterStatus; private String sort; @@ -2932,7 +2932,7 @@ public ListDegradationsOptionalParameters filterPageId(String filterPageId) { * @param pageOffset Offset to use as the start of the page. (optional, default to 0) * @return ListDegradationsOptionalParameters */ - public ListDegradationsOptionalParameters pageOffset(Integer pageOffset) { + public ListDegradationsOptionalParameters pageOffset(Long pageOffset) { this.pageOffset = pageOffset; return this; } @@ -2943,7 +2943,7 @@ public ListDegradationsOptionalParameters pageOffset(Integer pageOffset) { * @param pageLimit The number of degradations to return per page. (optional, default to 50) * @return ListDegradationsOptionalParameters */ - public ListDegradationsOptionalParameters pageLimit(Integer pageLimit) { + public ListDegradationsOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -3061,8 +3061,8 @@ public ApiResponse listDegradationsWithHttpInfo( ListDegradationsOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; String filterPageId = parameters.filterPageId; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; String include = parameters.include; String filterStatus = parameters.filterStatus; String sort = parameters.sort; @@ -3111,8 +3111,8 @@ public CompletableFuture> listDegradationsWithHttp ListDegradationsOptionalParameters parameters) { Object localVarPostBody = null; String filterPageId = parameters.filterPageId; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; String include = parameters.include; String filterStatus = parameters.filterStatus; String sort = parameters.sort; @@ -3159,8 +3159,8 @@ public CompletableFuture> listDegradationsWithHttp /** Manage optional parameters to listMaintenances. */ public static class ListMaintenancesOptionalParameters { private String filterPageId; - private Integer pageOffset; - private Integer pageLimit; + private Long pageOffset; + private Long pageLimit; private String include; private String filterStatus; private String sort; @@ -3182,7 +3182,7 @@ public ListMaintenancesOptionalParameters filterPageId(String filterPageId) { * @param pageOffset Offset to use as the start of the page. (optional, default to 0) * @return ListMaintenancesOptionalParameters */ - public ListMaintenancesOptionalParameters pageOffset(Integer pageOffset) { + public ListMaintenancesOptionalParameters pageOffset(Long pageOffset) { this.pageOffset = pageOffset; return this; } @@ -3193,7 +3193,7 @@ public ListMaintenancesOptionalParameters pageOffset(Integer pageOffset) { * @param pageLimit The number of maintenances to return per page. (optional, default to 50) * @return ListMaintenancesOptionalParameters */ - public ListMaintenancesOptionalParameters pageLimit(Integer pageLimit) { + public ListMaintenancesOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -3311,8 +3311,8 @@ public ApiResponse listMaintenancesWithHttpInfo( ListMaintenancesOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; String filterPageId = parameters.filterPageId; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; String include = parameters.include; String filterStatus = parameters.filterStatus; String sort = parameters.sort; @@ -3361,8 +3361,8 @@ public CompletableFuture> listMaintenancesWithHttp ListMaintenancesOptionalParameters parameters) { Object localVarPostBody = null; String filterPageId = parameters.filterPageId; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; String include = parameters.include; String filterStatus = parameters.filterStatus; String sort = parameters.sort; @@ -3408,8 +3408,8 @@ public CompletableFuture> listMaintenancesWithHttp /** Manage optional parameters to listStatusPages. */ public static class ListStatusPagesOptionalParameters { - private Integer pageOffset; - private Integer pageLimit; + private Long pageOffset; + private Long pageLimit; private String filterDomainPrefix; private String include; @@ -3419,7 +3419,7 @@ public static class ListStatusPagesOptionalParameters { * @param pageOffset Offset to use as the start of the page. (optional, default to 0) * @return ListStatusPagesOptionalParameters */ - public ListStatusPagesOptionalParameters pageOffset(Integer pageOffset) { + public ListStatusPagesOptionalParameters pageOffset(Long pageOffset) { this.pageOffset = pageOffset; return this; } @@ -3430,7 +3430,7 @@ public ListStatusPagesOptionalParameters pageOffset(Integer pageOffset) { * @param pageLimit The number of status pages to return per page. (optional, default to 50) * @return ListStatusPagesOptionalParameters */ - public ListStatusPagesOptionalParameters pageLimit(Integer pageLimit) { + public ListStatusPagesOptionalParameters pageLimit(Long pageLimit) { this.pageLimit = pageLimit; return this; } @@ -3535,8 +3535,8 @@ public CompletableFuture listStatusPagesAsync( public ApiResponse listStatusPagesWithHttpInfo( ListStatusPagesOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; String filterDomainPrefix = parameters.filterDomainPrefix; String include = parameters.include; // create path and map variables @@ -3582,8 +3582,8 @@ public ApiResponse listStatusPagesWithHttpInfo( public CompletableFuture> listStatusPagesWithHttpInfoAsync( ListStatusPagesOptionalParameters parameters) { Object localVarPostBody = null; - Integer pageOffset = parameters.pageOffset; - Integer pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; + Long pageLimit = parameters.pageLimit; String filterDomainPrefix = parameters.filterDomainPrefix; String include = parameters.include; // create path and map variables diff --git a/src/main/java/com/datadog/api/client/v2/api/WidgetsApi.java b/src/main/java/com/datadog/api/client/v2/api/WidgetsApi.java index 720979455e2..16c4f6ad887 100644 --- a/src/main/java/com/datadog/api/client/v2/api/WidgetsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/WidgetsApi.java @@ -556,8 +556,8 @@ public static class SearchWidgetsOptionalParameters { private String filterTitle; private String filterTags; private String sort; - private Integer pageNumber; - private Integer pageSize; + private Long pageNumber; + private Long pageSize; /** * Set filterWidgetType. @@ -638,7 +638,7 @@ public SearchWidgetsOptionalParameters sort(String sort) { * @param pageNumber Page number for pagination (0-indexed). (optional, default to 0) * @return SearchWidgetsOptionalParameters */ - public SearchWidgetsOptionalParameters pageNumber(Integer pageNumber) { + public SearchWidgetsOptionalParameters pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } @@ -649,7 +649,7 @@ public SearchWidgetsOptionalParameters pageNumber(Integer pageNumber) { * @param pageSize Number of widgets per page. (optional, default to 50) * @return SearchWidgetsOptionalParameters */ - public SearchWidgetsOptionalParameters pageSize(Integer pageSize) { + public SearchWidgetsOptionalParameters pageSize(Long pageSize) { this.pageSize = pageSize; return this; } @@ -763,8 +763,8 @@ public ApiResponse searchWidgetsWithHttpInfo( String filterTitle = parameters.filterTitle; String filterTags = parameters.filterTags; String sort = parameters.sort; - Integer pageNumber = parameters.pageNumber; - Integer pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; // create path and map variables String localVarPath = "/api/v2/widgets/{experience_type}" @@ -834,8 +834,8 @@ public CompletableFuture> searchWidgetsWithHttpI String filterTitle = parameters.filterTitle; String filterTags = parameters.filterTags; String sort = parameters.sort; - Integer pageNumber = parameters.pageNumber; - Integer pageSize = parameters.pageSize; + Long pageNumber = parameters.pageNumber; + Long pageSize = parameters.pageSize; // create path and map variables String localVarPath = "/api/v2/widgets/{experience_type}" diff --git a/src/main/java/com/datadog/api/client/v2/model/AssignmentResult.java b/src/main/java/com/datadog/api/client/v2/model/AssignmentResult.java index 7ca11446453..5ccf4c777ee 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AssignmentResult.java +++ b/src/main/java/com/datadog/api/client/v2/model/AssignmentResult.java @@ -100,7 +100,7 @@ public AssignmentResult status(Integer status) { } /** - * HTTP-like status code describing the outcome for this finding. + * HTTP-like status code describing the outcome for this finding. maximum: 599 * * @return status */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionSetValue.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionSetValue.java index 0f0cbaab9e5..0f32313c7ed 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionSetValue.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleActionSetValue.java @@ -131,45 +131,44 @@ public CloudWorkloadSecurityAgentRuleActionSetValue deserialize( log.log(Level.FINER, "Input data does not match schema 'String'", e); } - // deserialize Integer + // deserialize Long try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (Integer.class.equals(Integer.class) - || Integer.class.equals(Long.class) - || Integer.class.equals(Float.class) - || Integer.class.equals(Double.class) - || Integer.class.equals(Boolean.class) - || Integer.class.equals(String.class)) { + if (Long.class.equals(Integer.class) + || Long.class.equals(Long.class) + || Long.class.equals(Float.class) + || Long.class.equals(Double.class) + || Long.class.equals(Boolean.class) + || Long.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((Integer.class.equals(Integer.class) || Integer.class.equals(Long.class)) + ((Long.class.equals(Integer.class) || Long.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((Integer.class.equals(Float.class) || Integer.class.equals(Double.class)) + ((Long.class.equals(Float.class) || Long.class.equals(Double.class)) && (token == JsonToken.VALUE_NUMBER_FLOAT || token == JsonToken.VALUE_NUMBER_INT)); attemptParsing |= - (Integer.class.equals(Boolean.class) + (Long.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (Integer.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= (Long.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - tmp = tree.traverse(jp.getCodec()).readValueAs(Integer.class); + tmp = tree.traverse(jp.getCodec()).readValueAs(Long.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. deserialized = tmp; match++; - log.log(Level.FINER, "Input data matches schema 'Integer'"); + log.log(Level.FINER, "Input data matches schema 'Long'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'Integer'", e); + log.log(Level.FINER, "Input data does not match schema 'Long'", e); } // deserialize Boolean @@ -249,7 +248,7 @@ public CloudWorkloadSecurityAgentRuleActionSetValue(String o) { setActualInstance(o); } - public CloudWorkloadSecurityAgentRuleActionSetValue(Integer o) { + public CloudWorkloadSecurityAgentRuleActionSetValue(Long o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } @@ -261,7 +260,7 @@ public CloudWorkloadSecurityAgentRuleActionSetValue(Boolean o) { static { schemas.put("String", new GenericType() {}); - schemas.put("Integer", new GenericType() {}); + schemas.put("Long", new GenericType() {}); schemas.put("Boolean", new GenericType() {}); JSON.registerDescendants( CloudWorkloadSecurityAgentRuleActionSetValue.class, Collections.unmodifiableMap(schemas)); @@ -274,7 +273,7 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: String, Integer, Boolean + * against the oneOf child schemas: String, Long, Boolean * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). @@ -285,7 +284,7 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(Integer.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(Long.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } @@ -298,13 +297,13 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be String, Integer, Boolean"); + throw new RuntimeException("Invalid instance type. Must be String, Long, Boolean"); } /** - * Get the actual instance, which can be the following: String, Integer, Boolean + * Get the actual instance, which can be the following: String, Long, Boolean * - * @return The actual instance (String, Integer, Boolean) + * @return The actual instance (String, Long, Boolean) */ @Override public Object getActualInstance() { @@ -323,14 +322,14 @@ public String getString() throws ClassCastException { } /** - * Get the actual instance of `Integer`. If the actual instance is not `Integer`, the - * ClassCastException will be thrown. + * Get the actual instance of `Long`. If the actual instance is not `Long`, the ClassCastException + * will be thrown. * - * @return The actual instance of `Integer` - * @throws ClassCastException if the instance is not `Integer` + * @return The actual instance of `Long` + * @throws ClassCastException if the instance is not `Long` */ - public Integer getInteger() throws ClassCastException { - return (Integer) super.getActualInstance(); + public Long getLong() throws ClassCastException { + return (Long) super.getActualInstance(); } /** diff --git a/src/main/java/com/datadog/api/client/v2/model/HamrOrgConnectionStatus.java b/src/main/java/com/datadog/api/client/v2/model/HamrOrgConnectionStatus.java index cb44cc2ec09..39a4fe8ef95 100644 --- a/src/main/java/com/datadog/api/client/v2/model/HamrOrgConnectionStatus.java +++ b/src/main/java/com/datadog/api/client/v2/model/HamrOrgConnectionStatus.java @@ -25,19 +25,19 @@ * failover - 5: RECOVERY - Recovery operation in progress */ @JsonSerialize(using = HamrOrgConnectionStatus.HamrOrgConnectionStatusSerializer.class) -public class HamrOrgConnectionStatus extends ModelEnum { +public class HamrOrgConnectionStatus extends ModelEnum { - private static final Set allowedValues = - new HashSet(Arrays.asList(0, 1, 2, 3, 4, 5)); + private static final Set allowedValues = + new HashSet(Arrays.asList(0l, 1l, 2l, 3l, 4l, 5l)); - public static final HamrOrgConnectionStatus UNSPECIFIED = new HamrOrgConnectionStatus(0); - public static final HamrOrgConnectionStatus ONBOARDING = new HamrOrgConnectionStatus(1); - public static final HamrOrgConnectionStatus PASSIVE = new HamrOrgConnectionStatus(2); - public static final HamrOrgConnectionStatus FAILOVER = new HamrOrgConnectionStatus(3); - public static final HamrOrgConnectionStatus ACTIVE = new HamrOrgConnectionStatus(4); - public static final HamrOrgConnectionStatus RECOVERY = new HamrOrgConnectionStatus(5); + public static final HamrOrgConnectionStatus UNSPECIFIED = new HamrOrgConnectionStatus(0l); + public static final HamrOrgConnectionStatus ONBOARDING = new HamrOrgConnectionStatus(1l); + public static final HamrOrgConnectionStatus PASSIVE = new HamrOrgConnectionStatus(2l); + public static final HamrOrgConnectionStatus FAILOVER = new HamrOrgConnectionStatus(3l); + public static final HamrOrgConnectionStatus ACTIVE = new HamrOrgConnectionStatus(4l); + public static final HamrOrgConnectionStatus RECOVERY = new HamrOrgConnectionStatus(5l); - HamrOrgConnectionStatus(Integer value) { + HamrOrgConnectionStatus(Long value) { super(value, allowedValues); } @@ -60,7 +60,7 @@ public void serialize( } @JsonCreator - public static HamrOrgConnectionStatus fromValue(Integer value) { + public static HamrOrgConnectionStatus fromValue(Long value) { return new HamrOrgConnectionStatus(value); } } diff --git a/src/main/java/com/datadog/api/client/v2/model/NotificationRulesListResponse.java b/src/main/java/com/datadog/api/client/v2/model/NotificationRulesListResponse.java new file mode 100644 index 00000000000..182a10508ef --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/NotificationRulesListResponse.java @@ -0,0 +1,150 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** The list of notification rules. */ +@JsonPropertyOrder({NotificationRulesListResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class NotificationRulesListResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public NotificationRulesListResponse data(List data) { + this.data = data; + for (NotificationRule item : data) { + this.unparsed |= item.unparsed; + } + return this; + } + + public NotificationRulesListResponse addDataItem(NotificationRule dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + this.unparsed |= dataItem.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return NotificationRulesListResponse + */ + @JsonAnySetter + public NotificationRulesListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this NotificationRulesListResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotificationRulesListResponse notificationRulesListResponse = (NotificationRulesListResponse) o; + return Objects.equals(this.data, notificationRulesListResponse.data) + && Objects.equals( + this.additionalProperties, notificationRulesListResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotificationRulesListResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ProjectNotificationSettings.java b/src/main/java/com/datadog/api/client/v2/model/ProjectNotificationSettings.java index f35fdb2d49d..20703b2f36e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProjectNotificationSettings.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProjectNotificationSettings.java @@ -35,7 +35,7 @@ public class ProjectNotificationSettings { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DESTINATIONS = "destinations"; - private List destinations = null; + private List destinations = null; public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; @@ -65,12 +65,12 @@ public class ProjectNotificationSettings { "notify_on_case_unassignment"; private Boolean notifyOnCaseUnassignment; - public ProjectNotificationSettings destinations(List destinations) { + public ProjectNotificationSettings destinations(List destinations) { this.destinations = destinations; return this; } - public ProjectNotificationSettings addDestinationsItem(Integer destinationsItem) { + public ProjectNotificationSettings addDestinationsItem(Long destinationsItem) { if (this.destinations == null) { this.destinations = new ArrayList<>(); } @@ -86,11 +86,11 @@ public ProjectNotificationSettings addDestinationsItem(Integer destinationsItem) @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESTINATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDestinations() { + public List getDestinations() { return destinations; } - public void setDestinations(List destinations) { + public void setDestinations(List destinations) { this.destinations = destinations; } diff --git a/src/main/java/com/datadog/api/client/v2/model/SourcemapFileAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SourcemapFileAttributes.java index 04784d76361..58b564c14c6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SourcemapFileAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SourcemapFileAttributes.java @@ -41,7 +41,7 @@ public class SourcemapFileAttributes { private String mappings; public static final String JSON_PROPERTY_MINIFIED_LINE_LENGTHS = "minifiedLineLengths"; - private List minifiedLineLengths = new ArrayList<>(); + private List minifiedLineLengths = new ArrayList<>(); public static final String JSON_PROPERTY_NAMES = "names"; private List names = new ArrayList<>(); @@ -65,7 +65,7 @@ public SourcemapFileAttributes( @JsonProperty(required = true, value = JSON_PROPERTY_FILE) String file, @JsonProperty(required = true, value = JSON_PROPERTY_MAPPINGS) String mappings, @JsonProperty(required = true, value = JSON_PROPERTY_MINIFIED_LINE_LENGTHS) - List minifiedLineLengths, + List minifiedLineLengths, @JsonProperty(required = true, value = JSON_PROPERTY_NAMES) List names, @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_ROOT) String sourceRoot, @JsonProperty(required = true, value = JSON_PROPERTY_SOURCES) List sources, @@ -123,12 +123,12 @@ public void setMappings(String mappings) { this.mappings = mappings; } - public SourcemapFileAttributes minifiedLineLengths(List minifiedLineLengths) { + public SourcemapFileAttributes minifiedLineLengths(List minifiedLineLengths) { this.minifiedLineLengths = minifiedLineLengths; return this; } - public SourcemapFileAttributes addMinifiedLineLengthsItem(Integer minifiedLineLengthsItem) { + public SourcemapFileAttributes addMinifiedLineLengthsItem(Long minifiedLineLengthsItem) { this.minifiedLineLengths.add(minifiedLineLengthsItem); return this; } @@ -140,11 +140,11 @@ public SourcemapFileAttributes addMinifiedLineLengthsItem(Integer minifiedLineLe */ @JsonProperty(JSON_PROPERTY_MINIFIED_LINE_LENGTHS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getMinifiedLineLengths() { + public List getMinifiedLineLengths() { return minifiedLineLengths; } - public void setMinifiedLineLengths(List minifiedLineLengths) { + public void setMinifiedLineLengths(List minifiedLineLengths) { this.minifiedLineLengths = minifiedLineLengths; }