From 026971001bbdd1a6c763180f97f270bc3dd94fe8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 11 Apr 2023 20:42:07 +0000 Subject: [PATCH] Regenerate client from commit 9b02c84d of spec repo --- .apigentools-info | 8 +- .generator/schemas/v1/openapi.yaml | 9 +- .generator/schemas/v2/openapi.yaml | 7 +- .../api/client/v1/api/UsageMeteringApi.java | 20 +++-- .../api/client/v1/model/UsageSummaryDate.java | 3 + .../client/v1/model/UsageSummaryDateOrg.java | 3 + .../client/v1/model/UsageSummaryResponse.java | 3 + .../api/client/v2/api/UsageMeteringApi.java | 90 ++++++++++--------- 8 files changed, 84 insertions(+), 59 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index a3be717367a..62cd90ba274 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-11 13:58:07.893056", - "spec_repo_commit": "27919220" + "regenerated": "2023-04-11 20:40:44.790896", + "spec_repo_commit": "9b02c84d" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-11 13:58:07.909090", - "spec_repo_commit": "27919220" + "regenerated": "2023-04-11 20:40:44.803533", + "spec_repo_commit": "9b02c84d" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0fdaa9e78a2..39649a45dca 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -16763,6 +16763,7 @@ components: format: int64 type: integer audit_logs_lines_indexed_sum: + deprecated: true description: Shows the sum of audit logs lines indexed over all hours in the current date for all organizations. format: int64 @@ -17164,6 +17165,7 @@ components: format: int64 type: integer audit_logs_lines_indexed_sum: + deprecated: true description: Shows the sum of all audit logs lines indexed over all hours in the current date for the given org. format: int64 @@ -17568,6 +17570,7 @@ components: format: int64 type: integer audit_logs_lines_indexed_agg_sum: + deprecated: true description: Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations. format: int64 @@ -28073,12 +28076,10 @@ paths: - Usage Metering /api/v1/usage/audit_logs: get: + deprecated: true description: 'Get hourly usage for audit logs. - **Note:** hourly usage data for all products is now available in the [Get - hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). - Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) - for the associated migration guide.' + **Note:** This endpoint has been deprecated.' operationId: GetUsageAuditLogs parameters: - description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e701619e11e..6de67f4a321 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -23154,8 +23154,7 @@ paths: - description: 'Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, - `application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`, - `cloud_cost_management`, + `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cspm`, `custom_events`, `cws`, `dbm`, `fargate`, @@ -23168,7 +23167,9 @@ paths: `sds`, `snmp`, `synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and - `timeseries`.' + `timeseries`. + + The following product family has been **deprecated**: `audit_logs`.' in: query name: filter[product_families] required: true diff --git a/src/main/java/com/datadog/api/client/v1/api/UsageMeteringApi.java b/src/main/java/com/datadog/api/client/v1/api/UsageMeteringApi.java index a9b924fd034..d41199ce7ae 100644 --- a/src/main/java/com/datadog/api/client/v1/api/UsageMeteringApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/UsageMeteringApi.java @@ -2537,7 +2537,9 @@ public GetUsageAuditLogsOptionalParameters endHr(OffsetDateTime endHr) { * for usage beginning at this hour. (required) * @return UsageAuditLogsResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public UsageAuditLogsResponse getUsageAuditLogs(OffsetDateTime startHr) throws ApiException { return getUsageAuditLogsWithHttpInfo(startHr, new GetUsageAuditLogsOptionalParameters()) .getData(); @@ -2551,7 +2553,9 @@ public UsageAuditLogsResponse getUsageAuditLogs(OffsetDateTime startHr) throws A * @param startHr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] * for usage beginning at this hour. (required) * @return CompletableFuture<UsageAuditLogsResponse> + * @deprecated */ + @Deprecated public CompletableFuture getUsageAuditLogsAsync(OffsetDateTime startHr) { return getUsageAuditLogsWithHttpInfoAsync(startHr, new GetUsageAuditLogsOptionalParameters()) .thenApply( @@ -2570,7 +2574,9 @@ public CompletableFuture getUsageAuditLogsAsync(OffsetDa * @param parameters Optional parameters for the request. * @return UsageAuditLogsResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public UsageAuditLogsResponse getUsageAuditLogs( OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) throws ApiException { return getUsageAuditLogsWithHttpInfo(startHr, parameters).getData(); @@ -2585,7 +2591,9 @@ public UsageAuditLogsResponse getUsageAuditLogs( * for usage beginning at this hour. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<UsageAuditLogsResponse> + * @deprecated */ + @Deprecated public CompletableFuture getUsageAuditLogsAsync( OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) { return getUsageAuditLogsWithHttpInfoAsync(startHr, parameters) @@ -2596,12 +2604,7 @@ public CompletableFuture getUsageAuditLogsAsync( } /** - * Get hourly usage for audit logs. Note: hourly usage data for all products is - * now available in the Get - * hourly usage by product family API. Refer to Migrating - * from the V1 Hourly Usage APIs to V2 for the associated migration guide. + * Get hourly usage for audit logs. Note: This endpoint has been deprecated. * * @param startHr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] * for usage beginning at this hour. (required) @@ -2617,7 +2620,10 @@ public CompletableFuture getUsageAuditLogsAsync( * 403 Forbidden - User is not authorized - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse getUsageAuditLogsWithHttpInfo( OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; @@ -2666,7 +2672,9 @@ public ApiResponse getUsageAuditLogsWithHttpInfo( * for usage beginning at this hour. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<UsageAuditLogsResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> getUsageAuditLogsWithHttpInfoAsync( OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) { Object localVarPostBody = null; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java index 252f04ad2b9..34f822fcaa6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java @@ -496,7 +496,9 @@ public UsageSummaryDate auditLogsLinesIndexedSum(Long auditLogsLinesIndexedSum) * organizations. * * @return auditLogsLinesIndexedSum + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUDIT_LOGS_LINES_INDEXED_SUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -504,6 +506,7 @@ public Long getAuditLogsLinesIndexedSum() { return auditLogsLinesIndexedSum; } + @Deprecated public void setAuditLogsLinesIndexedSum(Long auditLogsLinesIndexedSum) { this.auditLogsLinesIndexedSum = auditLogsLinesIndexedSum; } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java index de8c1a5fb8c..7300e2fe81f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryDateOrg.java @@ -497,7 +497,9 @@ public UsageSummaryDateOrg auditLogsLinesIndexedSum(Long auditLogsLinesIndexedSu * org. * * @return auditLogsLinesIndexedSum + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUDIT_LOGS_LINES_INDEXED_SUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -505,6 +507,7 @@ public Long getAuditLogsLinesIndexedSum() { return auditLogsLinesIndexedSum; } + @Deprecated public void setAuditLogsLinesIndexedSum(Long auditLogsLinesIndexedSum) { this.auditLogsLinesIndexedSum = auditLogsLinesIndexedSum; } diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java index abb6f95da14..675a4328906 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSummaryResponse.java @@ -557,7 +557,9 @@ public UsageSummaryResponse auditLogsLinesIndexedAggSum(Long auditLogsLinesIndex * organizations. * * @return auditLogsLinesIndexedAggSum + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUDIT_LOGS_LINES_INDEXED_AGG_SUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -565,6 +567,7 @@ public Long getAuditLogsLinesIndexedAggSum() { return auditLogsLinesIndexedAggSum; } + @Deprecated public void setAuditLogsLinesIndexedAggSum(Long auditLogsLinesIndexedAggSum) { this.auditLogsLinesIndexedAggSum = auditLogsLinesIndexedAggSum; } diff --git a/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java b/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java index 612d93e5c4d..63ac8c98c45 100644 --- a/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java @@ -816,16 +816,17 @@ public GetHourlyUsageOptionalParameters pageNextRecordId(String pageNextRecordId * for usage beginning at this hour. (required) * @param filterProductFamilies Comma separated list of product families to retrieve. Available * families are all, analyzed_logs, application_security - * , audit_logs, audit_trail, serverless, - * ci_app, cloud_cost_management, cspm, custom_events - * , cws, dbm, fargate, infra_hosts - * , incident_management, indexed_logs, indexed_spans, - * ingested_spans, iot, lambda_traced_invocations, - * logs, network_flows, network_hosts, + * , audit_trail, serverless, ci_app, + * cloud_cost_management, cspm, custom_events, cws + * , dbm, fargate, infra_hosts, + * incident_management, indexed_logs, indexed_spans, + * ingested_spans, iot, lambda_traced_invocations, logs + * , network_flows, network_hosts, * observability_pipelines, online_archive, profiling, * rum, rum_browser_sessions, rum_mobile_sessions, sds * , snmp, synthetics_api, synthetics_browser, - * synthetics_parallel_testing, and timeseries. (required) + * synthetics_parallel_testing, and timeseries. The following + * product family has been deprecated: audit_logs. (required) * @return HourlyUsageResponse * @throws ApiException if fails to make API call */ @@ -845,16 +846,17 @@ filterTimestampStart, filterProductFamilies, new GetHourlyUsageOptionalParameter * for usage beginning at this hour. (required) * @param filterProductFamilies Comma separated list of product families to retrieve. Available * families are all, analyzed_logs, application_security - * , audit_logs, audit_trail, serverless, - * ci_app, cloud_cost_management, cspm, custom_events - * , cws, dbm, fargate, infra_hosts - * , incident_management, indexed_logs, indexed_spans, - * ingested_spans, iot, lambda_traced_invocations, - * logs, network_flows, network_hosts, + * , audit_trail, serverless, ci_app, + * cloud_cost_management, cspm, custom_events, cws + * , dbm, fargate, infra_hosts, + * incident_management, indexed_logs, indexed_spans, + * ingested_spans, iot, lambda_traced_invocations, logs + * , network_flows, network_hosts, * observability_pipelines, online_archive, profiling, * rum, rum_browser_sessions, rum_mobile_sessions, sds * , snmp, synthetics_api, synthetics_browser, - * synthetics_parallel_testing, and timeseries. (required) + * synthetics_parallel_testing, and timeseries. The following + * product family has been deprecated: audit_logs. (required) * @return CompletableFuture<HourlyUsageResponse> */ public CompletableFuture getHourlyUsageAsync( @@ -876,16 +878,17 @@ filterTimestampStart, filterProductFamilies, new GetHourlyUsageOptionalParameter * for usage beginning at this hour. (required) * @param filterProductFamilies Comma separated list of product families to retrieve. Available * families are all, analyzed_logs, application_security - * , audit_logs, audit_trail, serverless, - * ci_app, cloud_cost_management, cspm, custom_events - * , cws, dbm, fargate, infra_hosts - * , incident_management, indexed_logs, indexed_spans, - * ingested_spans, iot, lambda_traced_invocations, - * logs, network_flows, network_hosts, + * , audit_trail, serverless, ci_app, + * cloud_cost_management, cspm, custom_events, cws + * , dbm, fargate, infra_hosts, + * incident_management, indexed_logs, indexed_spans, + * ingested_spans, iot, lambda_traced_invocations, logs + * , network_flows, network_hosts, * observability_pipelines, online_archive, profiling, * rum, rum_browser_sessions, rum_mobile_sessions, sds * , snmp, synthetics_api, synthetics_browser, - * synthetics_parallel_testing, and timeseries. (required) + * synthetics_parallel_testing, and timeseries. The following + * product family has been deprecated: audit_logs. (required) * @param parameters Optional parameters for the request. * @return HourlyUsageResponse * @throws ApiException if fails to make API call @@ -908,16 +911,17 @@ public HourlyUsageResponse getHourlyUsage( * for usage beginning at this hour. (required) * @param filterProductFamilies Comma separated list of product families to retrieve. Available * families are all, analyzed_logs, application_security - * , audit_logs, audit_trail, serverless, - * ci_app, cloud_cost_management, cspm, custom_events - * , cws, dbm, fargate, infra_hosts - * , incident_management, indexed_logs, indexed_spans, - * ingested_spans, iot, lambda_traced_invocations, - * logs, network_flows, network_hosts, + * , audit_trail, serverless, ci_app, + * cloud_cost_management, cspm, custom_events, cws + * , dbm, fargate, infra_hosts, + * incident_management, indexed_logs, indexed_spans, + * ingested_spans, iot, lambda_traced_invocations, logs + * , network_flows, network_hosts, * observability_pipelines, online_archive, profiling, * rum, rum_browser_sessions, rum_mobile_sessions, sds * , snmp, synthetics_api, synthetics_browser, - * synthetics_parallel_testing, and timeseries. (required) + * synthetics_parallel_testing, and timeseries. The following + * product family has been deprecated: audit_logs. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<HourlyUsageResponse> */ @@ -939,16 +943,17 @@ public CompletableFuture getHourlyUsageAsync( * for usage beginning at this hour. (required) * @param filterProductFamilies Comma separated list of product families to retrieve. Available * families are all, analyzed_logs, application_security - * , audit_logs, audit_trail, serverless, - * ci_app, cloud_cost_management, cspm, custom_events - * , cws, dbm, fargate, infra_hosts - * , incident_management, indexed_logs, indexed_spans, - * ingested_spans, iot, lambda_traced_invocations, - * logs, network_flows, network_hosts, + * , audit_trail, serverless, ci_app, + * cloud_cost_management, cspm, custom_events, cws + * , dbm, fargate, infra_hosts, + * incident_management, indexed_logs, indexed_spans, + * ingested_spans, iot, lambda_traced_invocations, logs + * , network_flows, network_hosts, * observability_pipelines, online_archive, profiling, * rum, rum_browser_sessions, rum_mobile_sessions, sds * , snmp, synthetics_api, synthetics_browser, - * synthetics_parallel_testing, and timeseries. (required) + * synthetics_parallel_testing, and timeseries. The following + * product family has been deprecated: audit_logs. (required) * @param parameters Optional parameters for the request. * @return ApiResponse<HourlyUsageResponse> * @throws ApiException if fails to make API call @@ -1034,16 +1039,17 @@ public ApiResponse getHourlyUsageWithHttpInfo( * for usage beginning at this hour. (required) * @param filterProductFamilies Comma separated list of product families to retrieve. Available * families are all, analyzed_logs, application_security - * , audit_logs, audit_trail, serverless, - * ci_app, cloud_cost_management, cspm, custom_events - * , cws, dbm, fargate, infra_hosts - * , incident_management, indexed_logs, indexed_spans, - * ingested_spans, iot, lambda_traced_invocations, - * logs, network_flows, network_hosts, + * , audit_trail, serverless, ci_app, + * cloud_cost_management, cspm, custom_events, cws + * , dbm, fargate, infra_hosts, + * incident_management, indexed_logs, indexed_spans, + * ingested_spans, iot, lambda_traced_invocations, logs + * , network_flows, network_hosts, * observability_pipelines, online_archive, profiling, * rum, rum_browser_sessions, rum_mobile_sessions, sds * , snmp, synthetics_api, synthetics_browser, - * synthetics_parallel_testing, and timeseries. (required) + * synthetics_parallel_testing, and timeseries. The following + * product family has been deprecated: audit_logs. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<HourlyUsageResponse>> */