diff --git a/.apigentools-info b/.apigentools-info index 10432bc3ff5..a9c8e57fbac 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-17 14:56:10.524464", - "spec_repo_commit": "c9aa3e76" + "regenerated": "2023-04-17 18:07:40.383745", + "spec_repo_commit": "25a92e6d" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-17 14:56:10.537027", - "spec_repo_commit": "c9aa3e76" + "regenerated": "2023-04-17 18:07:40.396130", + "spec_repo_commit": "25a92e6d" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index f54eca1bf49..f72f3264fbd 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -830,6 +830,7 @@ components: type: string type: array description: A mapping of Monitor ID to strings denoting where it's used. + nullable: true type: object required: - data @@ -1711,6 +1712,7 @@ components: Email notifications can be sent to specific users by using the same `@username` notation as events.' example: Message on the downtime + nullable: true type: string monitor_id: description: 'A single monitor to which the downtime applies. @@ -1846,6 +1848,7 @@ components: Email notifications can be sent to specific users by using the same `@username` notation as events.' example: Message on the downtime + nullable: true type: string monitor_id: description: 'A single monitor to which the downtime applies. @@ -3326,6 +3329,7 @@ components: mute_timeout: description: Timeout of the mute applied to your host. format: int64 + nullable: true type: integer name: description: The host name. @@ -5156,6 +5160,7 @@ components: description: 'Hash identifier of the next log to return in the list. This parameter is used for the pagination feature.' + nullable: true type: string status: description: Status of the response. @@ -9111,6 +9116,7 @@ components: created_at: description: The epoch timestamp of when the correction was created at. format: int64 + nullable: true type: integer creator: $ref: '#/components/schemas/Creator' @@ -9127,10 +9133,12 @@ components: end: description: Ending time of the correction in epoch seconds. format: int64 + nullable: true type: integer modified_at: description: The epoch timestamp of when the correction was modified at. format: int64 + nullable: true type: integer modifier: $ref: '#/components/schemas/SLOCorrectionResponseAttributesModifier' @@ -9241,6 +9249,7 @@ components: type: integer name: description: Name of the creator. + nullable: true type: string type: object SLODeleteResponse: @@ -9512,6 +9521,7 @@ components: description: The current SLI value of the SLO over the history window. example: 99.99 format: double + nullable: true type: number span_precision: description: The amount of decimal places the SLI value is accurate to for @@ -9536,6 +9546,7 @@ components: level objective. items: $ref: '#/components/schemas/SLOHistoryResponseError' + nullable: true type: array type: object SLOHistoryResponseData: @@ -9696,6 +9707,7 @@ components: description: The current SLI value of the SLO over the history window. example: 99.99 format: double + nullable: true type: number span_precision: description: The amount of decimal places the SLI value is accurate to for @@ -9708,6 +9720,7 @@ components: description: Use `sli_value` instead. example: 99.99 format: double + nullable: true type: number type: object SLOListResponse: @@ -11383,6 +11396,7 @@ components: type: string name: description: Name of the user who shared the dashboard. + nullable: true readOnly: true type: string readOnly: true @@ -15497,6 +15511,7 @@ components: configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started). In this scenario the API returns the total usage, not broken down by tags.' + nullable: true type: object UsageAttributionValues: description: Fields in Usage Summary by tag(s). @@ -16006,22 +16021,26 @@ components: ci_pipeline_indexed_spans: description: The number of spans for pipelines in the queried hour. format: int64 + nullable: true type: integer ci_test_indexed_spans: description: The number of spans for tests in the queried hour. format: int64 + nullable: true type: integer ci_visibility_pipeline_committers: description: Shows the total count of all active Git committers for Pipelines in the current month. A committer is active if they commit at least 3 times in a given month. format: int64 + nullable: true type: integer ci_visibility_test_committers: description: The total count of all active Git committers for tests in the current month. A committer is active if they commit at least 3 times in a given month. format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16047,11 +16066,13 @@ components: description: "The total number of Cloud Workload Security container hours from the start of the given hour\u2019s month until the given hour." format: int64 + nullable: true type: integer cws_host_count: description: "The total number of Cloud Workload Security host hours from the start of the given hour\u2019s month until the given hour." format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -16209,11 +16230,13 @@ components: description: "The total number of Database Monitoring host hours from the start of the given hour\u2019s month until the given hour." format: int64 + nullable: true type: integer dbm_queries_count: description: "The total number of normalized Database Monitoring queries from the start of the given hour\u2019s month until the given hour." format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -16243,15 +16266,18 @@ components: description: The high-water mark of APM ECS Fargate tasks during the given hour. format: int64 + nullable: true type: integer appsec_fargate_count: description: The Application Security Monitoring ECS Fargate tasks during the given hour. format: int64 + nullable: true type: integer avg_profiled_fargate_tasks: description: The average profiled task count for Fargate Profiling. format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -16266,6 +16292,7 @@ components: tasks_count: description: The number of Fargate tasks run. format: int64 + nullable: true type: integer type: object UsageFargateResponse: @@ -16287,6 +16314,7 @@ components: during a given hour that were running the Datadog Agent.' format: int64 + nullable: true type: integer alibaba_host_count: description: 'Contains the total number of hosts that reported through Alibaba @@ -16294,17 +16322,20 @@ components: (and were NOT running the Datadog Agent).' format: int64 + nullable: true type: integer apm_azure_app_service_host_count: description: Contains the total number of Azure App Services hosts using APM. format: int64 + nullable: true type: integer apm_host_count: description: 'Shows the total number of hosts using APM during the hour, these are counted as billable (except during trial periods).' format: int64 + nullable: true type: integer aws_host_count: description: 'Contains the total number of hosts that reported through the @@ -16312,6 +16343,7 @@ components: (and were NOT running the Datadog Agent).' format: int64 + nullable: true type: integer azure_host_count: description: 'Contains the total number of hosts that reported through Azure @@ -16319,11 +16351,13 @@ components: (and were NOT running the Datadog Agent).' format: int64 + nullable: true type: integer container_count: description: Shows the total number of containers reported by the Docker integration during the hour. format: int64 + nullable: true type: integer gcp_host_count: description: 'Contains the total number of hosts that reported through the @@ -16331,11 +16365,13 @@ components: (and were NOT running the Datadog Agent).' format: int64 + nullable: true type: integer heroku_host_count: description: Contains the total number of Heroku dynos reported by the Datadog Agent. format: int64 + nullable: true type: integer host_count: description: 'Contains the total number of billable infrastructure hosts @@ -16343,10 +16379,12 @@ components: This is the sum of `agent_host_count`, `aws_host_count`, and `gcp_host_count`.' format: int64 + nullable: true type: integer hour: description: The hour for the usage. format: date-time + nullable: true type: string infra_azure_app_service: description: 'Contains the total number of hosts that reported through the @@ -16354,16 +16392,19 @@ components: (and were NOT running the Datadog Agent).' format: int64 + nullable: true type: integer opentelemetry_apm_host_count: description: Contains the total number of hosts using APM reported by Datadog exporter for the OpenTelemetry Collector. format: int64 + nullable: true type: integer opentelemetry_host_count: description: Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16377,6 +16418,7 @@ components: (and were NOT running the Datadog Agent).' format: int64 + nullable: true type: integer type: object UsageHostsResponse: @@ -16400,6 +16442,7 @@ components: description: Contains the total number monthly active users from the start of the given hour's month until the given hour. format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16512,6 +16555,7 @@ components: description: Contains the number of different functions for each region and AWS account. format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -16520,6 +16564,7 @@ components: invocations_sum: description: Contains the sum of invocations of all functions. format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16625,6 +16670,7 @@ components: billable_ingested_bytes: description: Contains the number of billable log bytes ingested. format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -16633,35 +16679,42 @@ components: indexed_events_count: description: Contains the number of log events indexed. format: int64 + nullable: true type: integer ingested_events_bytes: description: Contains the number of log bytes ingested. format: int64 + nullable: true type: integer logs_forwarding_events_bytes: description: Contains the number of logs forwarded bytes (data available as of April 1st 2023) format: int64 + nullable: true type: integer logs_live_indexed_count: description: Contains the number of live log events indexed (data available as of December 1, 2020). format: int64 + nullable: true type: integer logs_live_ingested_bytes: description: Contains the number of live log bytes ingested (data available as of December 1, 2020). format: int64 + nullable: true type: integer logs_rehydrated_indexed_count: description: Contains the number of rehydrated log events indexed (data available as of December 1, 2020). format: int64 + nullable: true type: integer logs_rehydrated_ingested_bytes: description: Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020). format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16754,6 +16807,7 @@ components: online_archive_events_count: description: Total count of online archived events within the hour. format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16777,11 +16831,13 @@ components: avg_container_agent_count: description: Get average number of container agents for that hour. format: int64 + nullable: true type: integer host_count: description: Contains the total number of profiled hosts reporting during a given hour. format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -16878,10 +16934,12 @@ components: browser_rum_units: description: The number of browser RUM units. format: int64 + nullable: true type: integer mobile_rum_units: description: The number of mobile RUM units. format: int64 + nullable: true type: integer org_name: description: The organization name. @@ -16976,6 +17034,7 @@ components: snmp_devices: description: Contains the number of SNMP devices. format: int64 + nullable: true type: integer type: object UsageSNMPResponse: @@ -18337,6 +18396,7 @@ components: check_calls_count: description: Contains the number of Synthetics API tests run. format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -18366,6 +18426,7 @@ components: browser_check_calls_count: description: Contains the number of Synthetics Browser tests run. format: int64 + nullable: true type: integer hour: description: The hour for the usage. @@ -18503,6 +18564,7 @@ components: total_number_of_records: description: Total number of records. format: int64 + nullable: true type: integer type: object UsageTopAvgMetricsResponse: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6de67f4a321..f9461e78be2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1948,11 +1948,13 @@ components: properties: userActivationStatus: description: Whether signals will be sent. + nullable: true type: boolean userGroupByFields: description: Fields to use to group findings by when sending signals. items: type: string + nullable: true type: array type: object CloudConfigurationRuleCreatePayload: @@ -2125,6 +2127,7 @@ components: name: description: The name of the user. example: Datadog User + nullable: true type: string type: object CloudWorkloadSecurityAgentRuleData: @@ -2200,6 +2203,7 @@ components: name: description: The name of the user. example: Datadog User + nullable: true type: string type: object CloudWorkloadSecurityAgentRulesListResponse: @@ -2698,6 +2702,7 @@ components: type: string name: description: Name of the creator. + nullable: true type: string type: object DashboardListAddItemsRequest: @@ -2748,6 +2753,7 @@ components: type: string icon: description: URL to the icon of the dashboard. + nullable: true readOnly: true type: string id: @@ -11506,6 +11512,7 @@ components: type: integer name: description: The name for this user account. + nullable: true type: string uuid: description: UUID assigned by Datadog to this user account. @@ -13164,6 +13171,7 @@ components: type: string description: description: Free-form markdown description/content for the team's homepage + nullable: true type: string handle: description: The team's identifier @@ -13188,6 +13196,7 @@ components: summary: description: A brief summary of the team, derived from the `description` maxLength: 120 + nullable: true type: string user_count: description: The number of users belonging to the team @@ -14180,7 +14189,6 @@ components: type: $ref: '#/components/schemas/UserTeamType' required: - - id - type type: object UserTeamUpdateRequest: diff --git a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponse.java b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponse.java index 2c153a75438..c738f5df936 100644 --- a/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/CheckCanDeleteMonitorResponse.java @@ -15,6 +15,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Response of monitor IDs that can or can't be safely deleted. */ @JsonPropertyOrder({ @@ -29,7 +30,8 @@ public class CheckCanDeleteMonitorResponse { private CheckCanDeleteMonitorResponseData data; public static final String JSON_PROPERTY_ERRORS = "errors"; - private Map> errors = null; + private JsonNullable>> errors = + JsonNullable.>>undefined(); public CheckCanDeleteMonitorResponse() {} @@ -63,15 +65,19 @@ public void setData(CheckCanDeleteMonitorResponseData data) { } public CheckCanDeleteMonitorResponse errors(Map> errors) { - this.errors = errors; + this.errors = JsonNullable.>>of(errors); return this; } public CheckCanDeleteMonitorResponse putErrorsItem(String key, List errorsItem) { - if (this.errors == null) { - this.errors = new HashMap<>(); + if (this.errors == null || !this.errors.isPresent()) { + this.errors = JsonNullable.>>of(new HashMap<>()); + } + try { + this.errors.get().put(key, errorsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.errors.put(key, errorsItem); return this; } @@ -81,16 +87,26 @@ public CheckCanDeleteMonitorResponse putErrorsItem(String key, List erro * @return errors */ @jakarta.annotation.Nullable + @JsonIgnore + public Map> getErrors() { + return errors.orElse(null); + } + @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map> getErrors() { + public JsonNullable>> getErrors_JsonNullable() { return errors; } - public void setErrors(Map> errors) { + @JsonProperty(JSON_PROPERTY_ERRORS) + public void setErrors_JsonNullable(JsonNullable>> errors) { this.errors = errors; } + public void setErrors(Map> errors) { + this.errors = JsonNullable.>>of(errors); + } + /** Return true if this CheckCanDeleteMonitorResponse object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/Downtime.java b/src/main/java/com/datadog/api/client/v1/model/Downtime.java index 049d810d93a..6d81364065a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Downtime.java +++ b/src/main/java/com/datadog/api/client/v1/model/Downtime.java @@ -69,7 +69,7 @@ public class Downtime { private Long id; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + private JsonNullable message = JsonNullable.undefined(); public static final String JSON_PROPERTY_MONITOR_ID = "monitor_id"; private JsonNullable monitorId = JsonNullable.undefined(); @@ -257,7 +257,7 @@ public Long getId() { } public Downtime message(String message) { - this.message = message; + this.message = JsonNullable.of(message); return this; } @@ -268,16 +268,26 @@ public Downtime message(String message) { * @return message */ @jakarta.annotation.Nullable + @JsonIgnore + public String getMessage() { + return message.orElse(null); + } + @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { + public JsonNullable getMessage_JsonNullable() { return message; } - public void setMessage(String message) { + @JsonProperty(JSON_PROPERTY_MESSAGE) + public void setMessage_JsonNullable(JsonNullable message) { this.message = message; } + public void setMessage(String message) { + this.message = JsonNullable.of(message); + } + public Downtime monitorId(Long monitorId) { this.monitorId = JsonNullable.of(monitorId); return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/DowntimeChild.java b/src/main/java/com/datadog/api/client/v1/model/DowntimeChild.java index 95a46b3d1c9..09ea7fe9904 100644 --- a/src/main/java/com/datadog/api/client/v1/model/DowntimeChild.java +++ b/src/main/java/com/datadog/api/client/v1/model/DowntimeChild.java @@ -64,7 +64,7 @@ public class DowntimeChild { private Long id; public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; + private JsonNullable message = JsonNullable.undefined(); public static final String JSON_PROPERTY_MONITOR_ID = "monitor_id"; private JsonNullable monitorId = JsonNullable.undefined(); @@ -225,7 +225,7 @@ public Long getId() { } public DowntimeChild message(String message) { - this.message = message; + this.message = JsonNullable.of(message); return this; } @@ -236,16 +236,26 @@ public DowntimeChild message(String message) { * @return message */ @jakarta.annotation.Nullable + @JsonIgnore + public String getMessage() { + return message.orElse(null); + } + @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { + public JsonNullable getMessage_JsonNullable() { return message; } - public void setMessage(String message) { + @JsonProperty(JSON_PROPERTY_MESSAGE) + public void setMessage_JsonNullable(JsonNullable message) { this.message = message; } + public void setMessage(String message) { + this.message = JsonNullable.of(message); + } + public DowntimeChild monitorId(Long monitorId) { this.monitorId = JsonNullable.of(monitorId); return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/Host.java b/src/main/java/com/datadog/api/client/v1/model/Host.java index 65b0dcf3b98..4bc7aa745fa 100644 --- a/src/main/java/com/datadog/api/client/v1/model/Host.java +++ b/src/main/java/com/datadog/api/client/v1/model/Host.java @@ -15,6 +15,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Object representing a host. */ @JsonPropertyOrder({ @@ -65,7 +66,7 @@ public class Host { private HostMetrics metrics; public static final String JSON_PROPERTY_MUTE_TIMEOUT = "mute_timeout"; - private Long muteTimeout; + private JsonNullable muteTimeout = JsonNullable.undefined(); public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -287,7 +288,7 @@ public void setMetrics(HostMetrics metrics) { } public Host muteTimeout(Long muteTimeout) { - this.muteTimeout = muteTimeout; + this.muteTimeout = JsonNullable.of(muteTimeout); return this; } @@ -297,16 +298,26 @@ public Host muteTimeout(Long muteTimeout) { * @return muteTimeout */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getMuteTimeout() { + return muteTimeout.orElse(null); + } + @JsonProperty(JSON_PROPERTY_MUTE_TIMEOUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getMuteTimeout() { + public JsonNullable getMuteTimeout_JsonNullable() { return muteTimeout; } - public void setMuteTimeout(Long muteTimeout) { + @JsonProperty(JSON_PROPERTY_MUTE_TIMEOUT) + public void setMuteTimeout_JsonNullable(JsonNullable muteTimeout) { this.muteTimeout = muteTimeout; } + public void setMuteTimeout(Long muteTimeout) { + this.muteTimeout = JsonNullable.of(muteTimeout); + } + public Host name(String name) { this.name = name; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionBody.java b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionBody.java index 22d35636869..14ebc190176 100644 --- a/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionBody.java @@ -17,6 +17,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** The usage for one set of tags for one hour. */ @JsonPropertyOrder({ @@ -52,7 +53,8 @@ public class HourlyUsageAttributionBody { private String tagConfigSource; public static final String JSON_PROPERTY_TAGS = "tags"; - private Map> tags = null; + private JsonNullable>> tags = + JsonNullable.>>undefined(); public static final String JSON_PROPERTY_TOTAL_USAGE_SUM = "total_usage_sum"; private Double totalUsageSum; @@ -172,15 +174,19 @@ public void setTagConfigSource(String tagConfigSource) { } public HourlyUsageAttributionBody tags(Map> tags) { - this.tags = tags; + this.tags = JsonNullable.>>of(tags); return this; } public HourlyUsageAttributionBody putTagsItem(String key, List tagsItem) { - if (this.tags == null) { - this.tags = new HashMap<>(); + if (this.tags == null || !this.tags.isPresent()) { + this.tags = JsonNullable.>>of(new HashMap<>()); + } + try { + this.tags.get().put(key, tagsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.tags.put(key, tagsItem); return this; } @@ -196,16 +202,26 @@ public HourlyUsageAttributionBody putTagsItem(String key, List tagsItem) * @return tags */ @jakarta.annotation.Nullable + @JsonIgnore + public Map> getTags() { + return tags.orElse(null); + } + @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map> getTags() { + public JsonNullable>> getTags_JsonNullable() { return tags; } - public void setTags(Map> tags) { + @JsonProperty(JSON_PROPERTY_TAGS) + public void setTags_JsonNullable(JsonNullable>> tags) { this.tags = tags; } + public void setTags(Map> tags) { + this.tags = JsonNullable.>>of(tags); + } + public HourlyUsageAttributionBody totalUsageSum(Double totalUsageSum) { this.totalUsageSum = totalUsageSum; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsListResponse.java b/src/main/java/com/datadog/api/client/v1/model/LogsListResponse.java index 6f79c029768..cf961904c0c 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsListResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsListResponse.java @@ -13,6 +13,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Response object with all logs matching the request and pagination information. */ @JsonPropertyOrder({ @@ -28,7 +29,7 @@ public class LogsListResponse { private List logs = null; public static final String JSON_PROPERTY_NEXT_LOG_ID = "nextLogId"; - private String nextLogId; + private JsonNullable nextLogId = JsonNullable.undefined(); public static final String JSON_PROPERTY_STATUS = "status"; private String status; @@ -67,7 +68,7 @@ public void setLogs(List logs) { } public LogsListResponse nextLogId(String nextLogId) { - this.nextLogId = nextLogId; + this.nextLogId = JsonNullable.of(nextLogId); return this; } @@ -78,16 +79,26 @@ public LogsListResponse nextLogId(String nextLogId) { * @return nextLogId */ @jakarta.annotation.Nullable + @JsonIgnore + public String getNextLogId() { + return nextLogId.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NEXT_LOG_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNextLogId() { + public JsonNullable getNextLogId_JsonNullable() { return nextLogId; } - public void setNextLogId(String nextLogId) { + @JsonProperty(JSON_PROPERTY_NEXT_LOG_ID) + public void setNextLogId_JsonNullable(JsonNullable nextLogId) { this.nextLogId = nextLogId; } + public void setNextLogId(String nextLogId) { + this.nextLogId = JsonNullable.of(nextLogId); + } + public LogsListResponse status(String status) { this.status = status; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionBody.java b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionBody.java index 0c67a737237..9f1cf477614 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionBody.java @@ -17,6 +17,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Usage Summary by tag for a given organization. */ @JsonPropertyOrder({ @@ -51,7 +52,8 @@ public class MonthlyUsageAttributionBody { private String tagConfigSource; public static final String JSON_PROPERTY_TAGS = "tags"; - private Map> tags = null; + private JsonNullable>> tags = + JsonNullable.>>undefined(); public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; @@ -170,15 +172,19 @@ public void setTagConfigSource(String tagConfigSource) { } public MonthlyUsageAttributionBody tags(Map> tags) { - this.tags = tags; + this.tags = JsonNullable.>>of(tags); return this; } public MonthlyUsageAttributionBody putTagsItem(String key, List tagsItem) { - if (this.tags == null) { - this.tags = new HashMap<>(); + if (this.tags == null || !this.tags.isPresent()) { + this.tags = JsonNullable.>>of(new HashMap<>()); + } + try { + this.tags.get().put(key, tagsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.tags.put(key, tagsItem); return this; } @@ -194,16 +200,26 @@ public MonthlyUsageAttributionBody putTagsItem(String key, List tagsItem * @return tags */ @jakarta.annotation.Nullable + @JsonIgnore + public Map> getTags() { + return tags.orElse(null); + } + @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map> getTags() { + public JsonNullable>> getTags_JsonNullable() { return tags; } - public void setTags(Map> tags) { + @JsonProperty(JSON_PROPERTY_TAGS) + public void setTags_JsonNullable(JsonNullable>> tags) { this.tags = tags; } + public void setTags(Map> tags) { + this.tags = JsonNullable.>>of(tags); + } + public MonthlyUsageAttributionBody updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributes.java b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributes.java index 7ce6af4d960..3e9f0f242c3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCorrectionResponseAttributes.java @@ -36,7 +36,7 @@ public class SLOCorrectionResponseAttributes { private SLOCorrectionCategory category; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private Long createdAt; + private JsonNullable createdAt = JsonNullable.undefined(); public static final String JSON_PROPERTY_CREATOR = "creator"; private Creator creator; @@ -48,10 +48,10 @@ public class SLOCorrectionResponseAttributes { private JsonNullable duration = JsonNullable.undefined(); public static final String JSON_PROPERTY_END = "end"; - private Long end; + private JsonNullable end = JsonNullable.undefined(); public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at"; - private Long modifiedAt; + private JsonNullable modifiedAt = JsonNullable.undefined(); public static final String JSON_PROPERTY_MODIFIER = "modifier"; private JsonNullable modifier = @@ -95,7 +95,7 @@ public void setCategory(SLOCorrectionCategory category) { } public SLOCorrectionResponseAttributes createdAt(Long createdAt) { - this.createdAt = createdAt; + this.createdAt = JsonNullable.of(createdAt); return this; } @@ -105,16 +105,26 @@ public SLOCorrectionResponseAttributes createdAt(Long createdAt) { * @return createdAt */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCreatedAt() { + return createdAt.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCreatedAt() { + public JsonNullable getCreatedAt_JsonNullable() { return createdAt; } - public void setCreatedAt(Long createdAt) { + @JsonProperty(JSON_PROPERTY_CREATED_AT) + public void setCreatedAt_JsonNullable(JsonNullable createdAt) { this.createdAt = createdAt; } + public void setCreatedAt(Long createdAt) { + this.createdAt = JsonNullable.of(createdAt); + } + /** * Object describing the creator of the shared element. * @@ -180,7 +190,7 @@ public void setDuration(Long duration) { } public SLOCorrectionResponseAttributes end(Long end) { - this.end = end; + this.end = JsonNullable.of(end); return this; } @@ -190,18 +200,28 @@ public SLOCorrectionResponseAttributes end(Long end) { * @return end */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getEnd() { + return end.orElse(null); + } + @JsonProperty(JSON_PROPERTY_END) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getEnd() { + public JsonNullable getEnd_JsonNullable() { return end; } - public void setEnd(Long end) { + @JsonProperty(JSON_PROPERTY_END) + public void setEnd_JsonNullable(JsonNullable end) { this.end = end; } + public void setEnd(Long end) { + this.end = JsonNullable.of(end); + } + public SLOCorrectionResponseAttributes modifiedAt(Long modifiedAt) { - this.modifiedAt = modifiedAt; + this.modifiedAt = JsonNullable.of(modifiedAt); return this; } @@ -211,16 +231,26 @@ public SLOCorrectionResponseAttributes modifiedAt(Long modifiedAt) { * @return modifiedAt */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getModifiedAt() { + return modifiedAt.orElse(null); + } + @JsonProperty(JSON_PROPERTY_MODIFIED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getModifiedAt() { + public JsonNullable getModifiedAt_JsonNullable() { return modifiedAt; } - public void setModifiedAt(Long modifiedAt) { + @JsonProperty(JSON_PROPERTY_MODIFIED_AT) + public void setModifiedAt_JsonNullable(JsonNullable modifiedAt) { this.modifiedAt = modifiedAt; } + public void setModifiedAt(Long modifiedAt) { + this.modifiedAt = JsonNullable.of(modifiedAt); + } + public SLOCorrectionResponseAttributes modifier( SLOCorrectionResponseAttributesModifier modifier) { this.modifier = JsonNullable.of(modifier); diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOCreator.java b/src/main/java/com/datadog/api/client/v1/model/SLOCreator.java index d4bb4ca321b..c26a8f79238 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOCreator.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCreator.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** The creator of the SLO */ @JsonPropertyOrder({ @@ -29,7 +30,7 @@ public class SLOCreator { private Long id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + private JsonNullable name = JsonNullable.undefined(); public SLOCreator email(String email) { this.email = email; @@ -74,7 +75,7 @@ public void setId(Long id) { } public SLOCreator name(String name) { - this.name = name; + this.name = JsonNullable.of(name); return this; } @@ -84,16 +85,26 @@ public SLOCreator name(String name) { * @return name */ @jakarta.annotation.Nullable + @JsonIgnore + public String getName() { + return name.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { + public JsonNullable getName_JsonNullable() { return name; } - public void setName(String name) { + @JsonProperty(JSON_PROPERTY_NAME) + public void setName_JsonNullable(JsonNullable name) { this.name = name; } + public void setName(String name) { + this.name = JsonNullable.of(name); + } + /** Return true if this SLOCreator object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMonitor.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMonitor.java index 9f15fee4012..2def30f17e6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMonitor.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryMonitor.java @@ -15,6 +15,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI @@ -67,7 +68,7 @@ public class SLOHistoryMonitor { private Boolean preview; public static final String JSON_PROPERTY_SLI_VALUE = "sli_value"; - private Double sliValue; + private JsonNullable sliValue = JsonNullable.undefined(); public static final String JSON_PROPERTY_SPAN_PRECISION = "span_precision"; private Double spanPrecision; @@ -304,7 +305,7 @@ public void setPreview(Boolean preview) { } public SLOHistoryMonitor sliValue(Double sliValue) { - this.sliValue = sliValue; + this.sliValue = JsonNullable.of(sliValue); return this; } @@ -314,16 +315,26 @@ public SLOHistoryMonitor sliValue(Double sliValue) { * @return sliValue */ @jakarta.annotation.Nullable + @JsonIgnore + public Double getSliValue() { + return sliValue.orElse(null); + } + @JsonProperty(JSON_PROPERTY_SLI_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getSliValue() { + public JsonNullable getSliValue_JsonNullable() { return sliValue; } - public void setSliValue(Double sliValue) { + @JsonProperty(JSON_PROPERTY_SLI_VALUE) + public void setSliValue_JsonNullable(JsonNullable sliValue) { this.sliValue = sliValue; } + public void setSliValue(Double sliValue) { + this.sliValue = JsonNullable.of(sliValue); + } + public SLOHistoryMonitor spanPrecision(Double spanPrecision) { this.spanPrecision = spanPrecision; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponse.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponse.java index 11de70fda4e..101ebd21e6b 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistoryResponse.java @@ -13,6 +13,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** A service level objective history response. */ @JsonPropertyOrder({SLOHistoryResponse.JSON_PROPERTY_DATA, SLOHistoryResponse.JSON_PROPERTY_ERRORS}) @@ -24,7 +25,8 @@ public class SLOHistoryResponse { private SLOHistoryResponseData data; public static final String JSON_PROPERTY_ERRORS = "errors"; - private List errors = null; + private JsonNullable> errors = + JsonNullable.>undefined(); public SLOHistoryResponse data(SLOHistoryResponseData data) { this.data = data; @@ -49,19 +51,19 @@ public void setData(SLOHistoryResponseData data) { } public SLOHistoryResponse errors(List errors) { - this.errors = errors; - for (SLOHistoryResponseError item : errors) { - this.unparsed |= item.unparsed; - } + this.errors = JsonNullable.>of(errors); return this; } public SLOHistoryResponse addErrorsItem(SLOHistoryResponseError errorsItem) { - if (this.errors == null) { - this.errors = new ArrayList<>(); + if (this.errors == null || !this.errors.isPresent()) { + this.errors = JsonNullable.>of(new ArrayList<>()); + } + try { + this.errors.get().add(errorsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.errors.add(errorsItem); - this.unparsed |= errorsItem.unparsed; return this; } @@ -71,16 +73,26 @@ public SLOHistoryResponse addErrorsItem(SLOHistoryResponseError errorsItem) { * @return errors */ @jakarta.annotation.Nullable + @JsonIgnore + public List getErrors() { + return errors.orElse(null); + } + @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getErrors() { + public JsonNullable> getErrors_JsonNullable() { return errors; } - public void setErrors(List errors) { + @JsonProperty(JSON_PROPERTY_ERRORS) + public void setErrors_JsonNullable(JsonNullable> errors) { this.errors = errors; } + public void setErrors(List errors) { + this.errors = JsonNullable.>of(errors); + } + /** Return true if this SLOHistoryResponse object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOHistorySLIData.java b/src/main/java/com/datadog/api/client/v1/model/SLOHistorySLIData.java index 64a61e115d0..a476ccc53f1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOHistorySLIData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOHistorySLIData.java @@ -15,6 +15,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI @@ -67,13 +68,13 @@ public class SLOHistorySLIData { private Boolean preview; public static final String JSON_PROPERTY_SLI_VALUE = "sli_value"; - private Double sliValue; + private JsonNullable sliValue = JsonNullable.undefined(); public static final String JSON_PROPERTY_SPAN_PRECISION = "span_precision"; private Double spanPrecision; public static final String JSON_PROPERTY_UPTIME = "uptime"; - private Double uptime; + private JsonNullable uptime = JsonNullable.undefined(); public SLOHistorySLIData errorBudgetRemaining(Map errorBudgetRemaining) { this.errorBudgetRemaining = errorBudgetRemaining; @@ -309,7 +310,7 @@ public void setPreview(Boolean preview) { } public SLOHistorySLIData sliValue(Double sliValue) { - this.sliValue = sliValue; + this.sliValue = JsonNullable.of(sliValue); return this; } @@ -319,16 +320,26 @@ public SLOHistorySLIData sliValue(Double sliValue) { * @return sliValue */ @jakarta.annotation.Nullable + @JsonIgnore + public Double getSliValue() { + return sliValue.orElse(null); + } + @JsonProperty(JSON_PROPERTY_SLI_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getSliValue() { + public JsonNullable getSliValue_JsonNullable() { return sliValue; } - public void setSliValue(Double sliValue) { + @JsonProperty(JSON_PROPERTY_SLI_VALUE) + public void setSliValue_JsonNullable(JsonNullable sliValue) { this.sliValue = sliValue; } + public void setSliValue(Double sliValue) { + this.sliValue = JsonNullable.of(sliValue); + } + public SLOHistorySLIData spanPrecision(Double spanPrecision) { this.spanPrecision = spanPrecision; return this; @@ -352,7 +363,7 @@ public void setSpanPrecision(Double spanPrecision) { } public SLOHistorySLIData uptime(Double uptime) { - this.uptime = uptime; + this.uptime = JsonNullable.of(uptime); return this; } @@ -364,17 +375,27 @@ public SLOHistorySLIData uptime(Double uptime) { */ @Deprecated @jakarta.annotation.Nullable + @JsonIgnore + public Double getUptime() { + return uptime.orElse(null); + } + + @Deprecated @JsonProperty(JSON_PROPERTY_UPTIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getUptime() { + public JsonNullable getUptime_JsonNullable() { return uptime; } - @Deprecated - public void setUptime(Double uptime) { + @JsonProperty(JSON_PROPERTY_UPTIME) + public void setUptime_JsonNullable(JsonNullable uptime) { this.uptime = uptime; } + public void setUptime(Double uptime) { + this.uptime = JsonNullable.of(uptime); + } + /** Return true if this SLOHistorySLIData object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardAuthor.java b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardAuthor.java index deaf474609a..bb3315b4a6f 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SharedDashboardAuthor.java +++ b/src/main/java/com/datadog/api/client/v1/model/SharedDashboardAuthor.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** User who shared the dashboard. */ @JsonPropertyOrder({ @@ -25,7 +26,7 @@ public class SharedDashboardAuthor { private String handle; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + private JsonNullable name = JsonNullable.undefined(); /** * Identifier of the user who shared the dashboard. @@ -45,12 +46,26 @@ public String getHandle() { * @return name */ @jakarta.annotation.Nullable + @JsonIgnore + public String getName() { + + if (name == null) { + name = JsonNullable.undefined(); + } + return name.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { + public JsonNullable getName_JsonNullable() { return name; } + @JsonProperty(JSON_PROPERTY_NAME) + private void setName_JsonNullable(JsonNullable name) { + this.name = name; + } + /** Return true if this SharedDashboardAuthor object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionBody.java b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionBody.java index 3b244f8eec1..b5c32434326 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageAttributionBody.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageAttributionBody.java @@ -17,6 +17,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Usage Summary by tag for a given organization. */ @JsonPropertyOrder({ @@ -47,7 +48,8 @@ public class UsageAttributionBody { private String tagConfigSource; public static final String JSON_PROPERTY_TAGS = "tags"; - private Map> tags = null; + private JsonNullable>> tags = + JsonNullable.>>undefined(); public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; private String updatedAt; @@ -143,15 +145,19 @@ public void setTagConfigSource(String tagConfigSource) { } public UsageAttributionBody tags(Map> tags) { - this.tags = tags; + this.tags = JsonNullable.>>of(tags); return this; } public UsageAttributionBody putTagsItem(String key, List tagsItem) { - if (this.tags == null) { - this.tags = new HashMap<>(); + if (this.tags == null || !this.tags.isPresent()) { + this.tags = JsonNullable.>>of(new HashMap<>()); + } + try { + this.tags.get().put(key, tagsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.tags.put(key, tagsItem); return this; } @@ -167,16 +173,26 @@ public UsageAttributionBody putTagsItem(String key, List tagsItem) { * @return tags */ @jakarta.annotation.Nullable + @JsonIgnore + public Map> getTags() { + return tags.orElse(null); + } + @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map> getTags() { + public JsonNullable>> getTags_JsonNullable() { return tags; } - public void setTags(Map> tags) { + @JsonProperty(JSON_PROPERTY_TAGS) + public void setTags_JsonNullable(JsonNullable>> tags) { this.tags = tags; } + public void setTags(Map> tags) { + this.tags = JsonNullable.>>of(tags); + } + public UsageAttributionBody updatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityHour.java index f48d5a1160f..60ab33e49e5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCIVisibilityHour.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** CI visibility usage in a given hour. */ @JsonPropertyOrder({ @@ -26,18 +27,18 @@ public class UsageCIVisibilityHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CI_PIPELINE_INDEXED_SPANS = "ci_pipeline_indexed_spans"; - private Long ciPipelineIndexedSpans; + private JsonNullable ciPipelineIndexedSpans = JsonNullable.undefined(); public static final String JSON_PROPERTY_CI_TEST_INDEXED_SPANS = "ci_test_indexed_spans"; - private Long ciTestIndexedSpans; + private JsonNullable ciTestIndexedSpans = JsonNullable.undefined(); public static final String JSON_PROPERTY_CI_VISIBILITY_PIPELINE_COMMITTERS = "ci_visibility_pipeline_committers"; - private Long ciVisibilityPipelineCommitters; + private JsonNullable ciVisibilityPipelineCommitters = JsonNullable.undefined(); public static final String JSON_PROPERTY_CI_VISIBILITY_TEST_COMMITTERS = "ci_visibility_test_committers"; - private Long ciVisibilityTestCommitters; + private JsonNullable ciVisibilityTestCommitters = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -46,7 +47,7 @@ public class UsageCIVisibilityHour { private String publicId; public UsageCIVisibilityHour ciPipelineIndexedSpans(Long ciPipelineIndexedSpans) { - this.ciPipelineIndexedSpans = ciPipelineIndexedSpans; + this.ciPipelineIndexedSpans = JsonNullable.of(ciPipelineIndexedSpans); return this; } @@ -56,18 +57,28 @@ public UsageCIVisibilityHour ciPipelineIndexedSpans(Long ciPipelineIndexedSpans) * @return ciPipelineIndexedSpans */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCiPipelineIndexedSpans() { + return ciPipelineIndexedSpans.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CI_PIPELINE_INDEXED_SPANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCiPipelineIndexedSpans() { + public JsonNullable getCiPipelineIndexedSpans_JsonNullable() { return ciPipelineIndexedSpans; } - public void setCiPipelineIndexedSpans(Long ciPipelineIndexedSpans) { + @JsonProperty(JSON_PROPERTY_CI_PIPELINE_INDEXED_SPANS) + public void setCiPipelineIndexedSpans_JsonNullable(JsonNullable ciPipelineIndexedSpans) { this.ciPipelineIndexedSpans = ciPipelineIndexedSpans; } + public void setCiPipelineIndexedSpans(Long ciPipelineIndexedSpans) { + this.ciPipelineIndexedSpans = JsonNullable.of(ciPipelineIndexedSpans); + } + public UsageCIVisibilityHour ciTestIndexedSpans(Long ciTestIndexedSpans) { - this.ciTestIndexedSpans = ciTestIndexedSpans; + this.ciTestIndexedSpans = JsonNullable.of(ciTestIndexedSpans); return this; } @@ -77,18 +88,28 @@ public UsageCIVisibilityHour ciTestIndexedSpans(Long ciTestIndexedSpans) { * @return ciTestIndexedSpans */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCiTestIndexedSpans() { + return ciTestIndexedSpans.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CI_TEST_INDEXED_SPANS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCiTestIndexedSpans() { + public JsonNullable getCiTestIndexedSpans_JsonNullable() { return ciTestIndexedSpans; } - public void setCiTestIndexedSpans(Long ciTestIndexedSpans) { + @JsonProperty(JSON_PROPERTY_CI_TEST_INDEXED_SPANS) + public void setCiTestIndexedSpans_JsonNullable(JsonNullable ciTestIndexedSpans) { this.ciTestIndexedSpans = ciTestIndexedSpans; } + public void setCiTestIndexedSpans(Long ciTestIndexedSpans) { + this.ciTestIndexedSpans = JsonNullable.of(ciTestIndexedSpans); + } + public UsageCIVisibilityHour ciVisibilityPipelineCommitters(Long ciVisibilityPipelineCommitters) { - this.ciVisibilityPipelineCommitters = ciVisibilityPipelineCommitters; + this.ciVisibilityPipelineCommitters = JsonNullable.of(ciVisibilityPipelineCommitters); return this; } @@ -99,18 +120,29 @@ public UsageCIVisibilityHour ciVisibilityPipelineCommitters(Long ciVisibilityPip * @return ciVisibilityPipelineCommitters */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCiVisibilityPipelineCommitters() { + return ciVisibilityPipelineCommitters.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CI_VISIBILITY_PIPELINE_COMMITTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCiVisibilityPipelineCommitters() { + public JsonNullable getCiVisibilityPipelineCommitters_JsonNullable() { return ciVisibilityPipelineCommitters; } - public void setCiVisibilityPipelineCommitters(Long ciVisibilityPipelineCommitters) { + @JsonProperty(JSON_PROPERTY_CI_VISIBILITY_PIPELINE_COMMITTERS) + public void setCiVisibilityPipelineCommitters_JsonNullable( + JsonNullable ciVisibilityPipelineCommitters) { this.ciVisibilityPipelineCommitters = ciVisibilityPipelineCommitters; } + public void setCiVisibilityPipelineCommitters(Long ciVisibilityPipelineCommitters) { + this.ciVisibilityPipelineCommitters = JsonNullable.of(ciVisibilityPipelineCommitters); + } + public UsageCIVisibilityHour ciVisibilityTestCommitters(Long ciVisibilityTestCommitters) { - this.ciVisibilityTestCommitters = ciVisibilityTestCommitters; + this.ciVisibilityTestCommitters = JsonNullable.of(ciVisibilityTestCommitters); return this; } @@ -121,16 +153,27 @@ public UsageCIVisibilityHour ciVisibilityTestCommitters(Long ciVisibilityTestCom * @return ciVisibilityTestCommitters */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCiVisibilityTestCommitters() { + return ciVisibilityTestCommitters.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CI_VISIBILITY_TEST_COMMITTERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCiVisibilityTestCommitters() { + public JsonNullable getCiVisibilityTestCommitters_JsonNullable() { return ciVisibilityTestCommitters; } - public void setCiVisibilityTestCommitters(Long ciVisibilityTestCommitters) { + @JsonProperty(JSON_PROPERTY_CI_VISIBILITY_TEST_COMMITTERS) + public void setCiVisibilityTestCommitters_JsonNullable( + JsonNullable ciVisibilityTestCommitters) { this.ciVisibilityTestCommitters = ciVisibilityTestCommitters; } + public void setCiVisibilityTestCommitters(Long ciVisibilityTestCommitters) { + this.ciVisibilityTestCommitters = JsonNullable.of(ciVisibilityTestCommitters); + } + public UsageCIVisibilityHour orgName(String orgName) { this.orgName = orgName; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageCWSHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageCWSHour.java index a9daa82fae4..133020d8502 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageCWSHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageCWSHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Cloud Workload Security usage for a given organization for a given hour. */ @JsonPropertyOrder({ @@ -28,10 +29,10 @@ public class UsageCWSHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CWS_CONTAINER_COUNT = "cws_container_count"; - private Long cwsContainerCount; + private JsonNullable cwsContainerCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_CWS_HOST_COUNT = "cws_host_count"; - private Long cwsHostCount; + private JsonNullable cwsHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -45,7 +46,7 @@ public class UsageCWSHour { private String publicId; public UsageCWSHour cwsContainerCount(Long cwsContainerCount) { - this.cwsContainerCount = cwsContainerCount; + this.cwsContainerCount = JsonNullable.of(cwsContainerCount); return this; } @@ -56,18 +57,28 @@ public UsageCWSHour cwsContainerCount(Long cwsContainerCount) { * @return cwsContainerCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCwsContainerCount() { + return cwsContainerCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CWS_CONTAINER_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCwsContainerCount() { + public JsonNullable getCwsContainerCount_JsonNullable() { return cwsContainerCount; } - public void setCwsContainerCount(Long cwsContainerCount) { + @JsonProperty(JSON_PROPERTY_CWS_CONTAINER_COUNT) + public void setCwsContainerCount_JsonNullable(JsonNullable cwsContainerCount) { this.cwsContainerCount = cwsContainerCount; } + public void setCwsContainerCount(Long cwsContainerCount) { + this.cwsContainerCount = JsonNullable.of(cwsContainerCount); + } + public UsageCWSHour cwsHostCount(Long cwsHostCount) { - this.cwsHostCount = cwsHostCount; + this.cwsHostCount = JsonNullable.of(cwsHostCount); return this; } @@ -78,16 +89,26 @@ public UsageCWSHour cwsHostCount(Long cwsHostCount) { * @return cwsHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCwsHostCount() { + return cwsHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CWS_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCwsHostCount() { + public JsonNullable getCwsHostCount_JsonNullable() { return cwsHostCount; } - public void setCwsHostCount(Long cwsHostCount) { + @JsonProperty(JSON_PROPERTY_CWS_HOST_COUNT) + public void setCwsHostCount_JsonNullable(JsonNullable cwsHostCount) { this.cwsHostCount = cwsHostCount; } + public void setCwsHostCount(Long cwsHostCount) { + this.cwsHostCount = JsonNullable.of(cwsHostCount); + } + public UsageCWSHour hour(OffsetDateTime hour) { this.hour = hour; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageDBMHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageDBMHour.java index 16c66c52600..0ace88822a2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageDBMHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageDBMHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Database Monitoring usage for a given organization for a given hour. */ @JsonPropertyOrder({ @@ -28,10 +29,10 @@ public class UsageDBMHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DBM_HOST_COUNT = "dbm_host_count"; - private Long dbmHostCount; + private JsonNullable dbmHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_DBM_QUERIES_COUNT = "dbm_queries_count"; - private Long dbmQueriesCount; + private JsonNullable dbmQueriesCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -45,7 +46,7 @@ public class UsageDBMHour { private String publicId; public UsageDBMHour dbmHostCount(Long dbmHostCount) { - this.dbmHostCount = dbmHostCount; + this.dbmHostCount = JsonNullable.of(dbmHostCount); return this; } @@ -56,18 +57,28 @@ public UsageDBMHour dbmHostCount(Long dbmHostCount) { * @return dbmHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getDbmHostCount() { + return dbmHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_DBM_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getDbmHostCount() { + public JsonNullable getDbmHostCount_JsonNullable() { return dbmHostCount; } - public void setDbmHostCount(Long dbmHostCount) { + @JsonProperty(JSON_PROPERTY_DBM_HOST_COUNT) + public void setDbmHostCount_JsonNullable(JsonNullable dbmHostCount) { this.dbmHostCount = dbmHostCount; } + public void setDbmHostCount(Long dbmHostCount) { + this.dbmHostCount = JsonNullable.of(dbmHostCount); + } + public UsageDBMHour dbmQueriesCount(Long dbmQueriesCount) { - this.dbmQueriesCount = dbmQueriesCount; + this.dbmQueriesCount = JsonNullable.of(dbmQueriesCount); return this; } @@ -78,16 +89,26 @@ public UsageDBMHour dbmQueriesCount(Long dbmQueriesCount) { * @return dbmQueriesCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getDbmQueriesCount() { + return dbmQueriesCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_DBM_QUERIES_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getDbmQueriesCount() { + public JsonNullable getDbmQueriesCount_JsonNullable() { return dbmQueriesCount; } - public void setDbmQueriesCount(Long dbmQueriesCount) { + @JsonProperty(JSON_PROPERTY_DBM_QUERIES_COUNT) + public void setDbmQueriesCount_JsonNullable(JsonNullable dbmQueriesCount) { this.dbmQueriesCount = dbmQueriesCount; } + public void setDbmQueriesCount(Long dbmQueriesCount) { + this.dbmQueriesCount = JsonNullable.of(dbmQueriesCount); + } + public UsageDBMHour hour(OffsetDateTime hour) { this.hour = hour; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageFargateHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageFargateHour.java index 49568dfe637..eba9e7d6163 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageFargateHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageFargateHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Number of Fargate tasks run and hourly usage. */ @JsonPropertyOrder({ @@ -30,14 +31,14 @@ public class UsageFargateHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_APM_FARGATE_COUNT = "apm_fargate_count"; - private Long apmFargateCount; + private JsonNullable apmFargateCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_APPSEC_FARGATE_COUNT = "appsec_fargate_count"; - private Long appsecFargateCount; + private JsonNullable appsecFargateCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_AVG_PROFILED_FARGATE_TASKS = "avg_profiled_fargate_tasks"; - private Long avgProfiledFargateTasks; + private JsonNullable avgProfiledFargateTasks = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -51,10 +52,10 @@ public class UsageFargateHour { private String publicId; public static final String JSON_PROPERTY_TASKS_COUNT = "tasks_count"; - private Long tasksCount; + private JsonNullable tasksCount = JsonNullable.undefined(); public UsageFargateHour apmFargateCount(Long apmFargateCount) { - this.apmFargateCount = apmFargateCount; + this.apmFargateCount = JsonNullable.of(apmFargateCount); return this; } @@ -64,18 +65,28 @@ public UsageFargateHour apmFargateCount(Long apmFargateCount) { * @return apmFargateCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getApmFargateCount() { + return apmFargateCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_APM_FARGATE_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getApmFargateCount() { + public JsonNullable getApmFargateCount_JsonNullable() { return apmFargateCount; } - public void setApmFargateCount(Long apmFargateCount) { + @JsonProperty(JSON_PROPERTY_APM_FARGATE_COUNT) + public void setApmFargateCount_JsonNullable(JsonNullable apmFargateCount) { this.apmFargateCount = apmFargateCount; } + public void setApmFargateCount(Long apmFargateCount) { + this.apmFargateCount = JsonNullable.of(apmFargateCount); + } + public UsageFargateHour appsecFargateCount(Long appsecFargateCount) { - this.appsecFargateCount = appsecFargateCount; + this.appsecFargateCount = JsonNullable.of(appsecFargateCount); return this; } @@ -85,18 +96,28 @@ public UsageFargateHour appsecFargateCount(Long appsecFargateCount) { * @return appsecFargateCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAppsecFargateCount() { + return appsecFargateCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_APPSEC_FARGATE_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAppsecFargateCount() { + public JsonNullable getAppsecFargateCount_JsonNullable() { return appsecFargateCount; } - public void setAppsecFargateCount(Long appsecFargateCount) { + @JsonProperty(JSON_PROPERTY_APPSEC_FARGATE_COUNT) + public void setAppsecFargateCount_JsonNullable(JsonNullable appsecFargateCount) { this.appsecFargateCount = appsecFargateCount; } + public void setAppsecFargateCount(Long appsecFargateCount) { + this.appsecFargateCount = JsonNullable.of(appsecFargateCount); + } + public UsageFargateHour avgProfiledFargateTasks(Long avgProfiledFargateTasks) { - this.avgProfiledFargateTasks = avgProfiledFargateTasks; + this.avgProfiledFargateTasks = JsonNullable.of(avgProfiledFargateTasks); return this; } @@ -106,16 +127,26 @@ public UsageFargateHour avgProfiledFargateTasks(Long avgProfiledFargateTasks) { * @return avgProfiledFargateTasks */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAvgProfiledFargateTasks() { + return avgProfiledFargateTasks.orElse(null); + } + @JsonProperty(JSON_PROPERTY_AVG_PROFILED_FARGATE_TASKS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAvgProfiledFargateTasks() { + public JsonNullable getAvgProfiledFargateTasks_JsonNullable() { return avgProfiledFargateTasks; } - public void setAvgProfiledFargateTasks(Long avgProfiledFargateTasks) { + @JsonProperty(JSON_PROPERTY_AVG_PROFILED_FARGATE_TASKS) + public void setAvgProfiledFargateTasks_JsonNullable(JsonNullable avgProfiledFargateTasks) { this.avgProfiledFargateTasks = avgProfiledFargateTasks; } + public void setAvgProfiledFargateTasks(Long avgProfiledFargateTasks) { + this.avgProfiledFargateTasks = JsonNullable.of(avgProfiledFargateTasks); + } + public UsageFargateHour hour(OffsetDateTime hour) { this.hour = hour; return this; @@ -180,7 +211,7 @@ public void setPublicId(String publicId) { } public UsageFargateHour tasksCount(Long tasksCount) { - this.tasksCount = tasksCount; + this.tasksCount = JsonNullable.of(tasksCount); return this; } @@ -190,16 +221,26 @@ public UsageFargateHour tasksCount(Long tasksCount) { * @return tasksCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getTasksCount() { + return tasksCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_TASKS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTasksCount() { + public JsonNullable getTasksCount_JsonNullable() { return tasksCount; } - public void setTasksCount(Long tasksCount) { + @JsonProperty(JSON_PROPERTY_TASKS_COUNT) + public void setTasksCount_JsonNullable(JsonNullable tasksCount) { this.tasksCount = tasksCount; } + public void setTasksCount(Long tasksCount) { + this.tasksCount = JsonNullable.of(tasksCount); + } + /** Return true if this UsageFargateHour object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageHostHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageHostHour.java index 0895f7f1f9a..bcf00797f9d 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageHostHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageHostHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Number of hosts/containers recorded for each hour for a given organization. */ @JsonPropertyOrder({ @@ -40,50 +41,50 @@ public class UsageHostHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_AGENT_HOST_COUNT = "agent_host_count"; - private Long agentHostCount; + private JsonNullable agentHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_ALIBABA_HOST_COUNT = "alibaba_host_count"; - private Long alibabaHostCount; + private JsonNullable alibabaHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_COUNT = "apm_azure_app_service_host_count"; - private Long apmAzureAppServiceHostCount; + private JsonNullable apmAzureAppServiceHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_APM_HOST_COUNT = "apm_host_count"; - private Long apmHostCount; + private JsonNullable apmHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_AWS_HOST_COUNT = "aws_host_count"; - private Long awsHostCount; + private JsonNullable awsHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_AZURE_HOST_COUNT = "azure_host_count"; - private Long azureHostCount; + private JsonNullable azureHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_CONTAINER_COUNT = "container_count"; - private Long containerCount; + private JsonNullable containerCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_GCP_HOST_COUNT = "gcp_host_count"; - private Long gcpHostCount; + private JsonNullable gcpHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HEROKU_HOST_COUNT = "heroku_host_count"; - private Long herokuHostCount; + private JsonNullable herokuHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOST_COUNT = "host_count"; - private Long hostCount; + private JsonNullable hostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @JsonSerialize(using = JsonTimeSerializer.class) - private OffsetDateTime hour; + private JsonNullable hour = JsonNullable.undefined(); public static final String JSON_PROPERTY_INFRA_AZURE_APP_SERVICE = "infra_azure_app_service"; - private Long infraAzureAppService; + private JsonNullable infraAzureAppService = JsonNullable.undefined(); public static final String JSON_PROPERTY_OPENTELEMETRY_APM_HOST_COUNT = "opentelemetry_apm_host_count"; - private Long opentelemetryApmHostCount; + private JsonNullable opentelemetryApmHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_OPENTELEMETRY_HOST_COUNT = "opentelemetry_host_count"; - private Long opentelemetryHostCount; + private JsonNullable opentelemetryHostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -92,10 +93,10 @@ public class UsageHostHour { private String publicId; public static final String JSON_PROPERTY_VSPHERE_HOST_COUNT = "vsphere_host_count"; - private Long vsphereHostCount; + private JsonNullable vsphereHostCount = JsonNullable.undefined(); public UsageHostHour agentHostCount(Long agentHostCount) { - this.agentHostCount = agentHostCount; + this.agentHostCount = JsonNullable.of(agentHostCount); return this; } @@ -106,18 +107,28 @@ public UsageHostHour agentHostCount(Long agentHostCount) { * @return agentHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAgentHostCount() { + return agentHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_AGENT_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAgentHostCount() { + public JsonNullable getAgentHostCount_JsonNullable() { return agentHostCount; } - public void setAgentHostCount(Long agentHostCount) { + @JsonProperty(JSON_PROPERTY_AGENT_HOST_COUNT) + public void setAgentHostCount_JsonNullable(JsonNullable agentHostCount) { this.agentHostCount = agentHostCount; } + public void setAgentHostCount(Long agentHostCount) { + this.agentHostCount = JsonNullable.of(agentHostCount); + } + public UsageHostHour alibabaHostCount(Long alibabaHostCount) { - this.alibabaHostCount = alibabaHostCount; + this.alibabaHostCount = JsonNullable.of(alibabaHostCount); return this; } @@ -128,18 +139,28 @@ public UsageHostHour alibabaHostCount(Long alibabaHostCount) { * @return alibabaHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAlibabaHostCount() { + return alibabaHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_ALIBABA_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAlibabaHostCount() { + public JsonNullable getAlibabaHostCount_JsonNullable() { return alibabaHostCount; } - public void setAlibabaHostCount(Long alibabaHostCount) { + @JsonProperty(JSON_PROPERTY_ALIBABA_HOST_COUNT) + public void setAlibabaHostCount_JsonNullable(JsonNullable alibabaHostCount) { this.alibabaHostCount = alibabaHostCount; } + public void setAlibabaHostCount(Long alibabaHostCount) { + this.alibabaHostCount = JsonNullable.of(alibabaHostCount); + } + public UsageHostHour apmAzureAppServiceHostCount(Long apmAzureAppServiceHostCount) { - this.apmAzureAppServiceHostCount = apmAzureAppServiceHostCount; + this.apmAzureAppServiceHostCount = JsonNullable.of(apmAzureAppServiceHostCount); return this; } @@ -149,18 +170,29 @@ public UsageHostHour apmAzureAppServiceHostCount(Long apmAzureAppServiceHostCoun * @return apmAzureAppServiceHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getApmAzureAppServiceHostCount() { + return apmAzureAppServiceHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getApmAzureAppServiceHostCount() { + public JsonNullable getApmAzureAppServiceHostCount_JsonNullable() { return apmAzureAppServiceHostCount; } - public void setApmAzureAppServiceHostCount(Long apmAzureAppServiceHostCount) { + @JsonProperty(JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_COUNT) + public void setApmAzureAppServiceHostCount_JsonNullable( + JsonNullable apmAzureAppServiceHostCount) { this.apmAzureAppServiceHostCount = apmAzureAppServiceHostCount; } + public void setApmAzureAppServiceHostCount(Long apmAzureAppServiceHostCount) { + this.apmAzureAppServiceHostCount = JsonNullable.of(apmAzureAppServiceHostCount); + } + public UsageHostHour apmHostCount(Long apmHostCount) { - this.apmHostCount = apmHostCount; + this.apmHostCount = JsonNullable.of(apmHostCount); return this; } @@ -171,18 +203,28 @@ public UsageHostHour apmHostCount(Long apmHostCount) { * @return apmHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getApmHostCount() { + return apmHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_APM_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getApmHostCount() { + public JsonNullable getApmHostCount_JsonNullable() { return apmHostCount; } - public void setApmHostCount(Long apmHostCount) { + @JsonProperty(JSON_PROPERTY_APM_HOST_COUNT) + public void setApmHostCount_JsonNullable(JsonNullable apmHostCount) { this.apmHostCount = apmHostCount; } + public void setApmHostCount(Long apmHostCount) { + this.apmHostCount = JsonNullable.of(apmHostCount); + } + public UsageHostHour awsHostCount(Long awsHostCount) { - this.awsHostCount = awsHostCount; + this.awsHostCount = JsonNullable.of(awsHostCount); return this; } @@ -193,18 +235,28 @@ public UsageHostHour awsHostCount(Long awsHostCount) { * @return awsHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAwsHostCount() { + return awsHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_AWS_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAwsHostCount() { + public JsonNullable getAwsHostCount_JsonNullable() { return awsHostCount; } - public void setAwsHostCount(Long awsHostCount) { + @JsonProperty(JSON_PROPERTY_AWS_HOST_COUNT) + public void setAwsHostCount_JsonNullable(JsonNullable awsHostCount) { this.awsHostCount = awsHostCount; } + public void setAwsHostCount(Long awsHostCount) { + this.awsHostCount = JsonNullable.of(awsHostCount); + } + public UsageHostHour azureHostCount(Long azureHostCount) { - this.azureHostCount = azureHostCount; + this.azureHostCount = JsonNullable.of(azureHostCount); return this; } @@ -215,18 +267,28 @@ public UsageHostHour azureHostCount(Long azureHostCount) { * @return azureHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAzureHostCount() { + return azureHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_AZURE_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAzureHostCount() { + public JsonNullable getAzureHostCount_JsonNullable() { return azureHostCount; } - public void setAzureHostCount(Long azureHostCount) { + @JsonProperty(JSON_PROPERTY_AZURE_HOST_COUNT) + public void setAzureHostCount_JsonNullable(JsonNullable azureHostCount) { this.azureHostCount = azureHostCount; } + public void setAzureHostCount(Long azureHostCount) { + this.azureHostCount = JsonNullable.of(azureHostCount); + } + public UsageHostHour containerCount(Long containerCount) { - this.containerCount = containerCount; + this.containerCount = JsonNullable.of(containerCount); return this; } @@ -236,18 +298,28 @@ public UsageHostHour containerCount(Long containerCount) { * @return containerCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getContainerCount() { + return containerCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CONTAINER_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getContainerCount() { + public JsonNullable getContainerCount_JsonNullable() { return containerCount; } - public void setContainerCount(Long containerCount) { + @JsonProperty(JSON_PROPERTY_CONTAINER_COUNT) + public void setContainerCount_JsonNullable(JsonNullable containerCount) { this.containerCount = containerCount; } + public void setContainerCount(Long containerCount) { + this.containerCount = JsonNullable.of(containerCount); + } + public UsageHostHour gcpHostCount(Long gcpHostCount) { - this.gcpHostCount = gcpHostCount; + this.gcpHostCount = JsonNullable.of(gcpHostCount); return this; } @@ -258,18 +330,28 @@ public UsageHostHour gcpHostCount(Long gcpHostCount) { * @return gcpHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getGcpHostCount() { + return gcpHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_GCP_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getGcpHostCount() { + public JsonNullable getGcpHostCount_JsonNullable() { return gcpHostCount; } - public void setGcpHostCount(Long gcpHostCount) { + @JsonProperty(JSON_PROPERTY_GCP_HOST_COUNT) + public void setGcpHostCount_JsonNullable(JsonNullable gcpHostCount) { this.gcpHostCount = gcpHostCount; } + public void setGcpHostCount(Long gcpHostCount) { + this.gcpHostCount = JsonNullable.of(gcpHostCount); + } + public UsageHostHour herokuHostCount(Long herokuHostCount) { - this.herokuHostCount = herokuHostCount; + this.herokuHostCount = JsonNullable.of(herokuHostCount); return this; } @@ -279,18 +361,28 @@ public UsageHostHour herokuHostCount(Long herokuHostCount) { * @return herokuHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getHerokuHostCount() { + return herokuHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_HEROKU_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getHerokuHostCount() { + public JsonNullable getHerokuHostCount_JsonNullable() { return herokuHostCount; } - public void setHerokuHostCount(Long herokuHostCount) { + @JsonProperty(JSON_PROPERTY_HEROKU_HOST_COUNT) + public void setHerokuHostCount_JsonNullable(JsonNullable herokuHostCount) { this.herokuHostCount = herokuHostCount; } + public void setHerokuHostCount(Long herokuHostCount) { + this.herokuHostCount = JsonNullable.of(herokuHostCount); + } + public UsageHostHour hostCount(Long hostCount) { - this.hostCount = hostCount; + this.hostCount = JsonNullable.of(hostCount); return this; } @@ -302,18 +394,28 @@ public UsageHostHour hostCount(Long hostCount) { * @return hostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getHostCount() { + return hostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getHostCount() { + public JsonNullable getHostCount_JsonNullable() { return hostCount; } - public void setHostCount(Long hostCount) { + @JsonProperty(JSON_PROPERTY_HOST_COUNT) + public void setHostCount_JsonNullable(JsonNullable hostCount) { this.hostCount = hostCount; } + public void setHostCount(Long hostCount) { + this.hostCount = JsonNullable.of(hostCount); + } + public UsageHostHour hour(OffsetDateTime hour) { - this.hour = hour; + this.hour = JsonNullable.of(hour); return this; } @@ -323,18 +425,28 @@ public UsageHostHour hour(OffsetDateTime hour) { * @return hour */ @jakarta.annotation.Nullable + @JsonIgnore + public OffsetDateTime getHour() { + return hour.orElse(null); + } + @JsonProperty(JSON_PROPERTY_HOUR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getHour() { + public JsonNullable getHour_JsonNullable() { return hour; } - public void setHour(OffsetDateTime hour) { + @JsonProperty(JSON_PROPERTY_HOUR) + public void setHour_JsonNullable(JsonNullable hour) { this.hour = hour; } + public void setHour(OffsetDateTime hour) { + this.hour = JsonNullable.of(hour); + } + public UsageHostHour infraAzureAppService(Long infraAzureAppService) { - this.infraAzureAppService = infraAzureAppService; + this.infraAzureAppService = JsonNullable.of(infraAzureAppService); return this; } @@ -345,18 +457,28 @@ public UsageHostHour infraAzureAppService(Long infraAzureAppService) { * @return infraAzureAppService */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getInfraAzureAppService() { + return infraAzureAppService.orElse(null); + } + @JsonProperty(JSON_PROPERTY_INFRA_AZURE_APP_SERVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getInfraAzureAppService() { + public JsonNullable getInfraAzureAppService_JsonNullable() { return infraAzureAppService; } - public void setInfraAzureAppService(Long infraAzureAppService) { + @JsonProperty(JSON_PROPERTY_INFRA_AZURE_APP_SERVICE) + public void setInfraAzureAppService_JsonNullable(JsonNullable infraAzureAppService) { this.infraAzureAppService = infraAzureAppService; } + public void setInfraAzureAppService(Long infraAzureAppService) { + this.infraAzureAppService = JsonNullable.of(infraAzureAppService); + } + public UsageHostHour opentelemetryApmHostCount(Long opentelemetryApmHostCount) { - this.opentelemetryApmHostCount = opentelemetryApmHostCount; + this.opentelemetryApmHostCount = JsonNullable.of(opentelemetryApmHostCount); return this; } @@ -367,18 +489,29 @@ public UsageHostHour opentelemetryApmHostCount(Long opentelemetryApmHostCount) { * @return opentelemetryApmHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getOpentelemetryApmHostCount() { + return opentelemetryApmHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_OPENTELEMETRY_APM_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getOpentelemetryApmHostCount() { + public JsonNullable getOpentelemetryApmHostCount_JsonNullable() { return opentelemetryApmHostCount; } - public void setOpentelemetryApmHostCount(Long opentelemetryApmHostCount) { + @JsonProperty(JSON_PROPERTY_OPENTELEMETRY_APM_HOST_COUNT) + public void setOpentelemetryApmHostCount_JsonNullable( + JsonNullable opentelemetryApmHostCount) { this.opentelemetryApmHostCount = opentelemetryApmHostCount; } + public void setOpentelemetryApmHostCount(Long opentelemetryApmHostCount) { + this.opentelemetryApmHostCount = JsonNullable.of(opentelemetryApmHostCount); + } + public UsageHostHour opentelemetryHostCount(Long opentelemetryHostCount) { - this.opentelemetryHostCount = opentelemetryHostCount; + this.opentelemetryHostCount = JsonNullable.of(opentelemetryHostCount); return this; } @@ -389,16 +522,26 @@ public UsageHostHour opentelemetryHostCount(Long opentelemetryHostCount) { * @return opentelemetryHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getOpentelemetryHostCount() { + return opentelemetryHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_OPENTELEMETRY_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getOpentelemetryHostCount() { + public JsonNullable getOpentelemetryHostCount_JsonNullable() { return opentelemetryHostCount; } - public void setOpentelemetryHostCount(Long opentelemetryHostCount) { + @JsonProperty(JSON_PROPERTY_OPENTELEMETRY_HOST_COUNT) + public void setOpentelemetryHostCount_JsonNullable(JsonNullable opentelemetryHostCount) { this.opentelemetryHostCount = opentelemetryHostCount; } + public void setOpentelemetryHostCount(Long opentelemetryHostCount) { + this.opentelemetryHostCount = JsonNullable.of(opentelemetryHostCount); + } + public UsageHostHour orgName(String orgName) { this.orgName = orgName; return this; @@ -442,7 +585,7 @@ public void setPublicId(String publicId) { } public UsageHostHour vsphereHostCount(Long vsphereHostCount) { - this.vsphereHostCount = vsphereHostCount; + this.vsphereHostCount = JsonNullable.of(vsphereHostCount); return this; } @@ -453,16 +596,26 @@ public UsageHostHour vsphereHostCount(Long vsphereHostCount) { * @return vsphereHostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getVsphereHostCount() { + return vsphereHostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_VSPHERE_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getVsphereHostCount() { + public JsonNullable getVsphereHostCount_JsonNullable() { return vsphereHostCount; } - public void setVsphereHostCount(Long vsphereHostCount) { + @JsonProperty(JSON_PROPERTY_VSPHERE_HOST_COUNT) + public void setVsphereHostCount_JsonNullable(JsonNullable vsphereHostCount) { this.vsphereHostCount = vsphereHostCount; } + public void setVsphereHostCount(Long vsphereHostCount) { + this.vsphereHostCount = JsonNullable.of(vsphereHostCount); + } + /** Return true if this UsageHostHour object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementHour.java index 3a3a1a9fd69..f4e34c07451 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageIncidentManagementHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Incident management usage for a given organization for a given hour. */ @JsonPropertyOrder({ @@ -32,7 +33,7 @@ public class UsageIncidentManagementHour { private OffsetDateTime hour; public static final String JSON_PROPERTY_MONTHLY_ACTIVE_USERS = "monthly_active_users"; - private Long monthlyActiveUsers; + private JsonNullable monthlyActiveUsers = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -62,7 +63,7 @@ public void setHour(OffsetDateTime hour) { } public UsageIncidentManagementHour monthlyActiveUsers(Long monthlyActiveUsers) { - this.monthlyActiveUsers = monthlyActiveUsers; + this.monthlyActiveUsers = JsonNullable.of(monthlyActiveUsers); return this; } @@ -73,16 +74,26 @@ public UsageIncidentManagementHour monthlyActiveUsers(Long monthlyActiveUsers) { * @return monthlyActiveUsers */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getMonthlyActiveUsers() { + return monthlyActiveUsers.orElse(null); + } + @JsonProperty(JSON_PROPERTY_MONTHLY_ACTIVE_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getMonthlyActiveUsers() { + public JsonNullable getMonthlyActiveUsers_JsonNullable() { return monthlyActiveUsers; } - public void setMonthlyActiveUsers(Long monthlyActiveUsers) { + @JsonProperty(JSON_PROPERTY_MONTHLY_ACTIVE_USERS) + public void setMonthlyActiveUsers_JsonNullable(JsonNullable monthlyActiveUsers) { this.monthlyActiveUsers = monthlyActiveUsers; } + public void setMonthlyActiveUsers(Long monthlyActiveUsers) { + this.monthlyActiveUsers = JsonNullable.of(monthlyActiveUsers); + } + public UsageIncidentManagementHour orgName(String orgName) { this.orgName = orgName; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLambdaHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageLambdaHour.java index 8ca77bc845c..0c7fe3a6b16 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLambdaHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLambdaHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** * Number of lambda functions and sum of the invocations of all lambda functions for each hour for a @@ -31,7 +32,7 @@ public class UsageLambdaHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_FUNC_COUNT = "func_count"; - private Long funcCount; + private JsonNullable funcCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -39,7 +40,7 @@ public class UsageLambdaHour { private OffsetDateTime hour; public static final String JSON_PROPERTY_INVOCATIONS_SUM = "invocations_sum"; - private Long invocationsSum; + private JsonNullable invocationsSum = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -48,7 +49,7 @@ public class UsageLambdaHour { private String publicId; public UsageLambdaHour funcCount(Long funcCount) { - this.funcCount = funcCount; + this.funcCount = JsonNullable.of(funcCount); return this; } @@ -58,16 +59,26 @@ public UsageLambdaHour funcCount(Long funcCount) { * @return funcCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getFuncCount() { + return funcCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_FUNC_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getFuncCount() { + public JsonNullable getFuncCount_JsonNullable() { return funcCount; } - public void setFuncCount(Long funcCount) { + @JsonProperty(JSON_PROPERTY_FUNC_COUNT) + public void setFuncCount_JsonNullable(JsonNullable funcCount) { this.funcCount = funcCount; } + public void setFuncCount(Long funcCount) { + this.funcCount = JsonNullable.of(funcCount); + } + public UsageLambdaHour hour(OffsetDateTime hour) { this.hour = hour; return this; @@ -90,7 +101,7 @@ public void setHour(OffsetDateTime hour) { } public UsageLambdaHour invocationsSum(Long invocationsSum) { - this.invocationsSum = invocationsSum; + this.invocationsSum = JsonNullable.of(invocationsSum); return this; } @@ -100,16 +111,26 @@ public UsageLambdaHour invocationsSum(Long invocationsSum) { * @return invocationsSum */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getInvocationsSum() { + return invocationsSum.orElse(null); + } + @JsonProperty(JSON_PROPERTY_INVOCATIONS_SUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getInvocationsSum() { + public JsonNullable getInvocationsSum_JsonNullable() { return invocationsSum; } - public void setInvocationsSum(Long invocationsSum) { + @JsonProperty(JSON_PROPERTY_INVOCATIONS_SUM) + public void setInvocationsSum_JsonNullable(JsonNullable invocationsSum) { this.invocationsSum = invocationsSum; } + public void setInvocationsSum(Long invocationsSum) { + this.invocationsSum = JsonNullable.of(invocationsSum); + } + public UsageLambdaHour orgName(String orgName) { this.orgName = orgName; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageLogsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageLogsHour.java index daeafab591b..60a0f20fca4 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageLogsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageLogsHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Hour usage for logs. */ @JsonPropertyOrder({ @@ -34,7 +35,7 @@ public class UsageLogsHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_BILLABLE_INGESTED_BYTES = "billable_ingested_bytes"; - private Long billableIngestedBytes; + private JsonNullable billableIngestedBytes = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -42,28 +43,28 @@ public class UsageLogsHour { private OffsetDateTime hour; public static final String JSON_PROPERTY_INDEXED_EVENTS_COUNT = "indexed_events_count"; - private Long indexedEventsCount; + private JsonNullable indexedEventsCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_INGESTED_EVENTS_BYTES = "ingested_events_bytes"; - private Long ingestedEventsBytes; + private JsonNullable ingestedEventsBytes = JsonNullable.undefined(); public static final String JSON_PROPERTY_LOGS_FORWARDING_EVENTS_BYTES = "logs_forwarding_events_bytes"; - private Long logsForwardingEventsBytes; + private JsonNullable logsForwardingEventsBytes = JsonNullable.undefined(); public static final String JSON_PROPERTY_LOGS_LIVE_INDEXED_COUNT = "logs_live_indexed_count"; - private Long logsLiveIndexedCount; + private JsonNullable logsLiveIndexedCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_LOGS_LIVE_INGESTED_BYTES = "logs_live_ingested_bytes"; - private Long logsLiveIngestedBytes; + private JsonNullable logsLiveIngestedBytes = JsonNullable.undefined(); public static final String JSON_PROPERTY_LOGS_REHYDRATED_INDEXED_COUNT = "logs_rehydrated_indexed_count"; - private Long logsRehydratedIndexedCount; + private JsonNullable logsRehydratedIndexedCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_LOGS_REHYDRATED_INGESTED_BYTES = "logs_rehydrated_ingested_bytes"; - private Long logsRehydratedIngestedBytes; + private JsonNullable logsRehydratedIngestedBytes = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -72,7 +73,7 @@ public class UsageLogsHour { private String publicId; public UsageLogsHour billableIngestedBytes(Long billableIngestedBytes) { - this.billableIngestedBytes = billableIngestedBytes; + this.billableIngestedBytes = JsonNullable.of(billableIngestedBytes); return this; } @@ -82,16 +83,26 @@ public UsageLogsHour billableIngestedBytes(Long billableIngestedBytes) { * @return billableIngestedBytes */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getBillableIngestedBytes() { + return billableIngestedBytes.orElse(null); + } + @JsonProperty(JSON_PROPERTY_BILLABLE_INGESTED_BYTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getBillableIngestedBytes() { + public JsonNullable getBillableIngestedBytes_JsonNullable() { return billableIngestedBytes; } - public void setBillableIngestedBytes(Long billableIngestedBytes) { + @JsonProperty(JSON_PROPERTY_BILLABLE_INGESTED_BYTES) + public void setBillableIngestedBytes_JsonNullable(JsonNullable billableIngestedBytes) { this.billableIngestedBytes = billableIngestedBytes; } + public void setBillableIngestedBytes(Long billableIngestedBytes) { + this.billableIngestedBytes = JsonNullable.of(billableIngestedBytes); + } + public UsageLogsHour hour(OffsetDateTime hour) { this.hour = hour; return this; @@ -114,7 +125,7 @@ public void setHour(OffsetDateTime hour) { } public UsageLogsHour indexedEventsCount(Long indexedEventsCount) { - this.indexedEventsCount = indexedEventsCount; + this.indexedEventsCount = JsonNullable.of(indexedEventsCount); return this; } @@ -124,18 +135,28 @@ public UsageLogsHour indexedEventsCount(Long indexedEventsCount) { * @return indexedEventsCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getIndexedEventsCount() { + return indexedEventsCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_INDEXED_EVENTS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getIndexedEventsCount() { + public JsonNullable getIndexedEventsCount_JsonNullable() { return indexedEventsCount; } - public void setIndexedEventsCount(Long indexedEventsCount) { + @JsonProperty(JSON_PROPERTY_INDEXED_EVENTS_COUNT) + public void setIndexedEventsCount_JsonNullable(JsonNullable indexedEventsCount) { this.indexedEventsCount = indexedEventsCount; } + public void setIndexedEventsCount(Long indexedEventsCount) { + this.indexedEventsCount = JsonNullable.of(indexedEventsCount); + } + public UsageLogsHour ingestedEventsBytes(Long ingestedEventsBytes) { - this.ingestedEventsBytes = ingestedEventsBytes; + this.ingestedEventsBytes = JsonNullable.of(ingestedEventsBytes); return this; } @@ -145,18 +166,28 @@ public UsageLogsHour ingestedEventsBytes(Long ingestedEventsBytes) { * @return ingestedEventsBytes */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getIngestedEventsBytes() { + return ingestedEventsBytes.orElse(null); + } + @JsonProperty(JSON_PROPERTY_INGESTED_EVENTS_BYTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getIngestedEventsBytes() { + public JsonNullable getIngestedEventsBytes_JsonNullable() { return ingestedEventsBytes; } - public void setIngestedEventsBytes(Long ingestedEventsBytes) { + @JsonProperty(JSON_PROPERTY_INGESTED_EVENTS_BYTES) + public void setIngestedEventsBytes_JsonNullable(JsonNullable ingestedEventsBytes) { this.ingestedEventsBytes = ingestedEventsBytes; } + public void setIngestedEventsBytes(Long ingestedEventsBytes) { + this.ingestedEventsBytes = JsonNullable.of(ingestedEventsBytes); + } + public UsageLogsHour logsForwardingEventsBytes(Long logsForwardingEventsBytes) { - this.logsForwardingEventsBytes = logsForwardingEventsBytes; + this.logsForwardingEventsBytes = JsonNullable.of(logsForwardingEventsBytes); return this; } @@ -166,18 +197,29 @@ public UsageLogsHour logsForwardingEventsBytes(Long logsForwardingEventsBytes) { * @return logsForwardingEventsBytes */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getLogsForwardingEventsBytes() { + return logsForwardingEventsBytes.orElse(null); + } + @JsonProperty(JSON_PROPERTY_LOGS_FORWARDING_EVENTS_BYTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLogsForwardingEventsBytes() { + public JsonNullable getLogsForwardingEventsBytes_JsonNullable() { return logsForwardingEventsBytes; } - public void setLogsForwardingEventsBytes(Long logsForwardingEventsBytes) { + @JsonProperty(JSON_PROPERTY_LOGS_FORWARDING_EVENTS_BYTES) + public void setLogsForwardingEventsBytes_JsonNullable( + JsonNullable logsForwardingEventsBytes) { this.logsForwardingEventsBytes = logsForwardingEventsBytes; } + public void setLogsForwardingEventsBytes(Long logsForwardingEventsBytes) { + this.logsForwardingEventsBytes = JsonNullable.of(logsForwardingEventsBytes); + } + public UsageLogsHour logsLiveIndexedCount(Long logsLiveIndexedCount) { - this.logsLiveIndexedCount = logsLiveIndexedCount; + this.logsLiveIndexedCount = JsonNullable.of(logsLiveIndexedCount); return this; } @@ -187,18 +229,28 @@ public UsageLogsHour logsLiveIndexedCount(Long logsLiveIndexedCount) { * @return logsLiveIndexedCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getLogsLiveIndexedCount() { + return logsLiveIndexedCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_LOGS_LIVE_INDEXED_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLogsLiveIndexedCount() { + public JsonNullable getLogsLiveIndexedCount_JsonNullable() { return logsLiveIndexedCount; } - public void setLogsLiveIndexedCount(Long logsLiveIndexedCount) { + @JsonProperty(JSON_PROPERTY_LOGS_LIVE_INDEXED_COUNT) + public void setLogsLiveIndexedCount_JsonNullable(JsonNullable logsLiveIndexedCount) { this.logsLiveIndexedCount = logsLiveIndexedCount; } + public void setLogsLiveIndexedCount(Long logsLiveIndexedCount) { + this.logsLiveIndexedCount = JsonNullable.of(logsLiveIndexedCount); + } + public UsageLogsHour logsLiveIngestedBytes(Long logsLiveIngestedBytes) { - this.logsLiveIngestedBytes = logsLiveIngestedBytes; + this.logsLiveIngestedBytes = JsonNullable.of(logsLiveIngestedBytes); return this; } @@ -208,18 +260,28 @@ public UsageLogsHour logsLiveIngestedBytes(Long logsLiveIngestedBytes) { * @return logsLiveIngestedBytes */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getLogsLiveIngestedBytes() { + return logsLiveIngestedBytes.orElse(null); + } + @JsonProperty(JSON_PROPERTY_LOGS_LIVE_INGESTED_BYTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLogsLiveIngestedBytes() { + public JsonNullable getLogsLiveIngestedBytes_JsonNullable() { return logsLiveIngestedBytes; } - public void setLogsLiveIngestedBytes(Long logsLiveIngestedBytes) { + @JsonProperty(JSON_PROPERTY_LOGS_LIVE_INGESTED_BYTES) + public void setLogsLiveIngestedBytes_JsonNullable(JsonNullable logsLiveIngestedBytes) { this.logsLiveIngestedBytes = logsLiveIngestedBytes; } + public void setLogsLiveIngestedBytes(Long logsLiveIngestedBytes) { + this.logsLiveIngestedBytes = JsonNullable.of(logsLiveIngestedBytes); + } + public UsageLogsHour logsRehydratedIndexedCount(Long logsRehydratedIndexedCount) { - this.logsRehydratedIndexedCount = logsRehydratedIndexedCount; + this.logsRehydratedIndexedCount = JsonNullable.of(logsRehydratedIndexedCount); return this; } @@ -229,18 +291,29 @@ public UsageLogsHour logsRehydratedIndexedCount(Long logsRehydratedIndexedCount) * @return logsRehydratedIndexedCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getLogsRehydratedIndexedCount() { + return logsRehydratedIndexedCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_LOGS_REHYDRATED_INDEXED_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLogsRehydratedIndexedCount() { + public JsonNullable getLogsRehydratedIndexedCount_JsonNullable() { return logsRehydratedIndexedCount; } - public void setLogsRehydratedIndexedCount(Long logsRehydratedIndexedCount) { + @JsonProperty(JSON_PROPERTY_LOGS_REHYDRATED_INDEXED_COUNT) + public void setLogsRehydratedIndexedCount_JsonNullable( + JsonNullable logsRehydratedIndexedCount) { this.logsRehydratedIndexedCount = logsRehydratedIndexedCount; } + public void setLogsRehydratedIndexedCount(Long logsRehydratedIndexedCount) { + this.logsRehydratedIndexedCount = JsonNullable.of(logsRehydratedIndexedCount); + } + public UsageLogsHour logsRehydratedIngestedBytes(Long logsRehydratedIngestedBytes) { - this.logsRehydratedIngestedBytes = logsRehydratedIngestedBytes; + this.logsRehydratedIngestedBytes = JsonNullable.of(logsRehydratedIngestedBytes); return this; } @@ -250,16 +323,27 @@ public UsageLogsHour logsRehydratedIngestedBytes(Long logsRehydratedIngestedByte * @return logsRehydratedIngestedBytes */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getLogsRehydratedIngestedBytes() { + return logsRehydratedIngestedBytes.orElse(null); + } + @JsonProperty(JSON_PROPERTY_LOGS_REHYDRATED_INGESTED_BYTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLogsRehydratedIngestedBytes() { + public JsonNullable getLogsRehydratedIngestedBytes_JsonNullable() { return logsRehydratedIngestedBytes; } - public void setLogsRehydratedIngestedBytes(Long logsRehydratedIngestedBytes) { + @JsonProperty(JSON_PROPERTY_LOGS_REHYDRATED_INGESTED_BYTES) + public void setLogsRehydratedIngestedBytes_JsonNullable( + JsonNullable logsRehydratedIngestedBytes) { this.logsRehydratedIngestedBytes = logsRehydratedIngestedBytes; } + public void setLogsRehydratedIngestedBytes(Long logsRehydratedIngestedBytes) { + this.logsRehydratedIngestedBytes = JsonNullable.of(logsRehydratedIngestedBytes); + } + public UsageLogsHour orgName(String orgName) { this.orgName = orgName; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveHour.java index 255fbd4e878..e9310a13ca0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageOnlineArchiveHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Online Archive usage in a given hour. */ @JsonPropertyOrder({ @@ -33,7 +34,7 @@ public class UsageOnlineArchiveHour { public static final String JSON_PROPERTY_ONLINE_ARCHIVE_EVENTS_COUNT = "online_archive_events_count"; - private Long onlineArchiveEventsCount; + private JsonNullable onlineArchiveEventsCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -63,7 +64,7 @@ public void setHour(OffsetDateTime hour) { } public UsageOnlineArchiveHour onlineArchiveEventsCount(Long onlineArchiveEventsCount) { - this.onlineArchiveEventsCount = onlineArchiveEventsCount; + this.onlineArchiveEventsCount = JsonNullable.of(onlineArchiveEventsCount); return this; } @@ -73,16 +74,27 @@ public UsageOnlineArchiveHour onlineArchiveEventsCount(Long onlineArchiveEventsC * @return onlineArchiveEventsCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getOnlineArchiveEventsCount() { + return onlineArchiveEventsCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_ONLINE_ARCHIVE_EVENTS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getOnlineArchiveEventsCount() { + public JsonNullable getOnlineArchiveEventsCount_JsonNullable() { return onlineArchiveEventsCount; } - public void setOnlineArchiveEventsCount(Long onlineArchiveEventsCount) { + @JsonProperty(JSON_PROPERTY_ONLINE_ARCHIVE_EVENTS_COUNT) + public void setOnlineArchiveEventsCount_JsonNullable( + JsonNullable onlineArchiveEventsCount) { this.onlineArchiveEventsCount = onlineArchiveEventsCount; } + public void setOnlineArchiveEventsCount(Long onlineArchiveEventsCount) { + this.onlineArchiveEventsCount = JsonNullable.of(onlineArchiveEventsCount); + } + public UsageOnlineArchiveHour orgName(String orgName) { this.orgName = orgName; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageProfilingHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageProfilingHour.java index e6cb1f7192c..4f354380cba 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageProfilingHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageProfilingHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** The number of profiled hosts for each hour for a given organization. */ @JsonPropertyOrder({ @@ -28,10 +29,10 @@ public class UsageProfilingHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_AVG_CONTAINER_AGENT_COUNT = "avg_container_agent_count"; - private Long avgContainerAgentCount; + private JsonNullable avgContainerAgentCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOST_COUNT = "host_count"; - private Long hostCount; + private JsonNullable hostCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -45,7 +46,7 @@ public class UsageProfilingHour { private String publicId; public UsageProfilingHour avgContainerAgentCount(Long avgContainerAgentCount) { - this.avgContainerAgentCount = avgContainerAgentCount; + this.avgContainerAgentCount = JsonNullable.of(avgContainerAgentCount); return this; } @@ -55,18 +56,28 @@ public UsageProfilingHour avgContainerAgentCount(Long avgContainerAgentCount) { * @return avgContainerAgentCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getAvgContainerAgentCount() { + return avgContainerAgentCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_AVG_CONTAINER_AGENT_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getAvgContainerAgentCount() { + public JsonNullable getAvgContainerAgentCount_JsonNullable() { return avgContainerAgentCount; } - public void setAvgContainerAgentCount(Long avgContainerAgentCount) { + @JsonProperty(JSON_PROPERTY_AVG_CONTAINER_AGENT_COUNT) + public void setAvgContainerAgentCount_JsonNullable(JsonNullable avgContainerAgentCount) { this.avgContainerAgentCount = avgContainerAgentCount; } + public void setAvgContainerAgentCount(Long avgContainerAgentCount) { + this.avgContainerAgentCount = JsonNullable.of(avgContainerAgentCount); + } + public UsageProfilingHour hostCount(Long hostCount) { - this.hostCount = hostCount; + this.hostCount = JsonNullable.of(hostCount); return this; } @@ -76,16 +87,26 @@ public UsageProfilingHour hostCount(Long hostCount) { * @return hostCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getHostCount() { + return hostCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_HOST_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getHostCount() { + public JsonNullable getHostCount_JsonNullable() { return hostCount; } - public void setHostCount(Long hostCount) { + @JsonProperty(JSON_PROPERTY_HOST_COUNT) + public void setHostCount_JsonNullable(JsonNullable hostCount) { this.hostCount = hostCount; } + public void setHostCount(Long hostCount) { + this.hostCount = JsonNullable.of(hostCount); + } + public UsageProfilingHour hour(OffsetDateTime hour) { this.hour = hour; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsHour.java index abc50beb7f2..9c309e9b775 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageRumUnitsHour.java @@ -29,10 +29,10 @@ public class UsageRumUnitsHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_BROWSER_RUM_UNITS = "browser_rum_units"; - private Long browserRumUnits; + private JsonNullable browserRumUnits = JsonNullable.undefined(); public static final String JSON_PROPERTY_MOBILE_RUM_UNITS = "mobile_rum_units"; - private Long mobileRumUnits; + private JsonNullable mobileRumUnits = JsonNullable.undefined(); public static final String JSON_PROPERTY_ORG_NAME = "org_name"; private String orgName; @@ -44,7 +44,7 @@ public class UsageRumUnitsHour { private JsonNullable rumUnits = JsonNullable.undefined(); public UsageRumUnitsHour browserRumUnits(Long browserRumUnits) { - this.browserRumUnits = browserRumUnits; + this.browserRumUnits = JsonNullable.of(browserRumUnits); return this; } @@ -54,18 +54,28 @@ public UsageRumUnitsHour browserRumUnits(Long browserRumUnits) { * @return browserRumUnits */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getBrowserRumUnits() { + return browserRumUnits.orElse(null); + } + @JsonProperty(JSON_PROPERTY_BROWSER_RUM_UNITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getBrowserRumUnits() { + public JsonNullable getBrowserRumUnits_JsonNullable() { return browserRumUnits; } - public void setBrowserRumUnits(Long browserRumUnits) { + @JsonProperty(JSON_PROPERTY_BROWSER_RUM_UNITS) + public void setBrowserRumUnits_JsonNullable(JsonNullable browserRumUnits) { this.browserRumUnits = browserRumUnits; } + public void setBrowserRumUnits(Long browserRumUnits) { + this.browserRumUnits = JsonNullable.of(browserRumUnits); + } + public UsageRumUnitsHour mobileRumUnits(Long mobileRumUnits) { - this.mobileRumUnits = mobileRumUnits; + this.mobileRumUnits = JsonNullable.of(mobileRumUnits); return this; } @@ -75,16 +85,26 @@ public UsageRumUnitsHour mobileRumUnits(Long mobileRumUnits) { * @return mobileRumUnits */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getMobileRumUnits() { + return mobileRumUnits.orElse(null); + } + @JsonProperty(JSON_PROPERTY_MOBILE_RUM_UNITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getMobileRumUnits() { + public JsonNullable getMobileRumUnits_JsonNullable() { return mobileRumUnits; } - public void setMobileRumUnits(Long mobileRumUnits) { + @JsonProperty(JSON_PROPERTY_MOBILE_RUM_UNITS) + public void setMobileRumUnits_JsonNullable(JsonNullable mobileRumUnits) { this.mobileRumUnits = mobileRumUnits; } + public void setMobileRumUnits(Long mobileRumUnits) { + this.mobileRumUnits = JsonNullable.of(mobileRumUnits); + } + public UsageRumUnitsHour orgName(String orgName) { this.orgName = orgName; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSNMPHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageSNMPHour.java index 4bc7b405aad..c519a253eef 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSNMPHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSNMPHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** The number of SNMP devices for each hour for a given organization. */ @JsonPropertyOrder({ @@ -38,7 +39,7 @@ public class UsageSNMPHour { private String publicId; public static final String JSON_PROPERTY_SNMP_DEVICES = "snmp_devices"; - private Long snmpDevices; + private JsonNullable snmpDevices = JsonNullable.undefined(); public UsageSNMPHour hour(OffsetDateTime hour) { this.hour = hour; @@ -104,7 +105,7 @@ public void setPublicId(String publicId) { } public UsageSNMPHour snmpDevices(Long snmpDevices) { - this.snmpDevices = snmpDevices; + this.snmpDevices = JsonNullable.of(snmpDevices); return this; } @@ -114,16 +115,26 @@ public UsageSNMPHour snmpDevices(Long snmpDevices) { * @return snmpDevices */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getSnmpDevices() { + return snmpDevices.orElse(null); + } + @JsonProperty(JSON_PROPERTY_SNMP_DEVICES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getSnmpDevices() { + public JsonNullable getSnmpDevices_JsonNullable() { return snmpDevices; } - public void setSnmpDevices(Long snmpDevices) { + @JsonProperty(JSON_PROPERTY_SNMP_DEVICES) + public void setSnmpDevices_JsonNullable(JsonNullable snmpDevices) { this.snmpDevices = snmpDevices; } + public void setSnmpDevices(Long snmpDevices) { + this.snmpDevices = JsonNullable.of(snmpDevices); + } + /** Return true if this UsageSNMPHour object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIHour.java index d63b2657e13..d12362a7216 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsAPIHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Number of Synthetics API tests run for each hour for a given organization. */ @JsonPropertyOrder({ @@ -27,7 +28,7 @@ public class UsageSyntheticsAPIHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CHECK_CALLS_COUNT = "check_calls_count"; - private Long checkCallsCount; + private JsonNullable checkCallsCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -41,7 +42,7 @@ public class UsageSyntheticsAPIHour { private String publicId; public UsageSyntheticsAPIHour checkCallsCount(Long checkCallsCount) { - this.checkCallsCount = checkCallsCount; + this.checkCallsCount = JsonNullable.of(checkCallsCount); return this; } @@ -51,16 +52,26 @@ public UsageSyntheticsAPIHour checkCallsCount(Long checkCallsCount) { * @return checkCallsCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getCheckCallsCount() { + return checkCallsCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_CHECK_CALLS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCheckCallsCount() { + public JsonNullable getCheckCallsCount_JsonNullable() { return checkCallsCount; } - public void setCheckCallsCount(Long checkCallsCount) { + @JsonProperty(JSON_PROPERTY_CHECK_CALLS_COUNT) + public void setCheckCallsCount_JsonNullable(JsonNullable checkCallsCount) { this.checkCallsCount = checkCallsCount; } + public void setCheckCallsCount(Long checkCallsCount) { + this.checkCallsCount = JsonNullable.of(checkCallsCount); + } + public UsageSyntheticsAPIHour hour(OffsetDateTime hour) { this.hour = hour; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserHour.java b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserHour.java index 7b6907aa848..8efdb3caf37 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserHour.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageSyntheticsBrowserHour.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Number of Synthetics Browser tests run for each hour for a given organization. */ @JsonPropertyOrder({ @@ -27,7 +28,7 @@ public class UsageSyntheticsBrowserHour { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_BROWSER_CHECK_CALLS_COUNT = "browser_check_calls_count"; - private Long browserCheckCallsCount; + private JsonNullable browserCheckCallsCount = JsonNullable.undefined(); public static final String JSON_PROPERTY_HOUR = "hour"; @@ -41,7 +42,7 @@ public class UsageSyntheticsBrowserHour { private String publicId; public UsageSyntheticsBrowserHour browserCheckCallsCount(Long browserCheckCallsCount) { - this.browserCheckCallsCount = browserCheckCallsCount; + this.browserCheckCallsCount = JsonNullable.of(browserCheckCallsCount); return this; } @@ -51,16 +52,26 @@ public UsageSyntheticsBrowserHour browserCheckCallsCount(Long browserCheckCallsC * @return browserCheckCallsCount */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getBrowserCheckCallsCount() { + return browserCheckCallsCount.orElse(null); + } + @JsonProperty(JSON_PROPERTY_BROWSER_CHECK_CALLS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getBrowserCheckCallsCount() { + public JsonNullable getBrowserCheckCallsCount_JsonNullable() { return browserCheckCallsCount; } - public void setBrowserCheckCallsCount(Long browserCheckCallsCount) { + @JsonProperty(JSON_PROPERTY_BROWSER_CHECK_CALLS_COUNT) + public void setBrowserCheckCallsCount_JsonNullable(JsonNullable browserCheckCallsCount) { this.browserCheckCallsCount = browserCheckCallsCount; } + public void setBrowserCheckCallsCount(Long browserCheckCallsCount) { + this.browserCheckCallsCount = JsonNullable.of(browserCheckCallsCount); + } + public UsageSyntheticsBrowserHour hour(OffsetDateTime hour) { this.hour = hour; return this; diff --git a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsPagination.java b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsPagination.java index 383989625fa..fb6da2ffba3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsPagination.java +++ b/src/main/java/com/datadog/api/client/v1/model/UsageTopAvgMetricsPagination.java @@ -30,7 +30,7 @@ public class UsageTopAvgMetricsPagination { private JsonNullable nextRecordId = JsonNullable.undefined(); public static final String JSON_PROPERTY_TOTAL_NUMBER_OF_RECORDS = "total_number_of_records"; - private Long totalNumberOfRecords; + private JsonNullable totalNumberOfRecords = JsonNullable.undefined(); public UsageTopAvgMetricsPagination limit(Long limit) { this.limit = limit; @@ -86,7 +86,7 @@ public void setNextRecordId(String nextRecordId) { } public UsageTopAvgMetricsPagination totalNumberOfRecords(Long totalNumberOfRecords) { - this.totalNumberOfRecords = totalNumberOfRecords; + this.totalNumberOfRecords = JsonNullable.of(totalNumberOfRecords); return this; } @@ -96,16 +96,26 @@ public UsageTopAvgMetricsPagination totalNumberOfRecords(Long totalNumberOfRecor * @return totalNumberOfRecords */ @jakarta.annotation.Nullable + @JsonIgnore + public Long getTotalNumberOfRecords() { + return totalNumberOfRecords.orElse(null); + } + @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_RECORDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTotalNumberOfRecords() { + public JsonNullable getTotalNumberOfRecords_JsonNullable() { return totalNumberOfRecords; } - public void setTotalNumberOfRecords(Long totalNumberOfRecords) { + @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_RECORDS) + public void setTotalNumberOfRecords_JsonNullable(JsonNullable totalNumberOfRecords) { this.totalNumberOfRecords = totalNumberOfRecords; } + public void setTotalNumberOfRecords(Long totalNumberOfRecords) { + this.totalNumberOfRecords = JsonNullable.of(totalNumberOfRecords); + } + /** Return true if this UsageTopAvgMetricsPagination object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleComplianceSignalOptions.java b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleComplianceSignalOptions.java index b9838dc1f3c..4a64790310d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleComplianceSignalOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudConfigurationRuleComplianceSignalOptions.java @@ -13,6 +13,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** How to generate compliance signals. Useful for cloud_configuration rules only. */ @JsonPropertyOrder({ @@ -24,14 +25,14 @@ public class CloudConfigurationRuleComplianceSignalOptions { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_USER_ACTIVATION_STATUS = "userActivationStatus"; - private Boolean userActivationStatus; + private JsonNullable userActivationStatus = JsonNullable.undefined(); public static final String JSON_PROPERTY_USER_GROUP_BY_FIELDS = "userGroupByFields"; - private List userGroupByFields = null; + private JsonNullable> userGroupByFields = JsonNullable.>undefined(); public CloudConfigurationRuleComplianceSignalOptions userActivationStatus( Boolean userActivationStatus) { - this.userActivationStatus = userActivationStatus; + this.userActivationStatus = JsonNullable.of(userActivationStatus); return this; } @@ -41,28 +42,42 @@ public CloudConfigurationRuleComplianceSignalOptions userActivationStatus( * @return userActivationStatus */ @jakarta.annotation.Nullable + @JsonIgnore + public Boolean getUserActivationStatus() { + return userActivationStatus.orElse(null); + } + @JsonProperty(JSON_PROPERTY_USER_ACTIVATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUserActivationStatus() { + public JsonNullable getUserActivationStatus_JsonNullable() { return userActivationStatus; } - public void setUserActivationStatus(Boolean userActivationStatus) { + @JsonProperty(JSON_PROPERTY_USER_ACTIVATION_STATUS) + public void setUserActivationStatus_JsonNullable(JsonNullable userActivationStatus) { this.userActivationStatus = userActivationStatus; } + public void setUserActivationStatus(Boolean userActivationStatus) { + this.userActivationStatus = JsonNullable.of(userActivationStatus); + } + public CloudConfigurationRuleComplianceSignalOptions userGroupByFields( List userGroupByFields) { - this.userGroupByFields = userGroupByFields; + this.userGroupByFields = JsonNullable.>of(userGroupByFields); return this; } public CloudConfigurationRuleComplianceSignalOptions addUserGroupByFieldsItem( String userGroupByFieldsItem) { - if (this.userGroupByFields == null) { - this.userGroupByFields = new ArrayList<>(); + if (this.userGroupByFields == null || !this.userGroupByFields.isPresent()) { + this.userGroupByFields = JsonNullable.>of(new ArrayList<>()); + } + try { + this.userGroupByFields.get().add(userGroupByFieldsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.userGroupByFields.add(userGroupByFieldsItem); return this; } @@ -72,16 +87,26 @@ public CloudConfigurationRuleComplianceSignalOptions addUserGroupByFieldsItem( * @return userGroupByFields */ @jakarta.annotation.Nullable + @JsonIgnore + public List getUserGroupByFields() { + return userGroupByFields.orElse(null); + } + @JsonProperty(JSON_PROPERTY_USER_GROUP_BY_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUserGroupByFields() { + public JsonNullable> getUserGroupByFields_JsonNullable() { return userGroupByFields; } - public void setUserGroupByFields(List userGroupByFields) { + @JsonProperty(JSON_PROPERTY_USER_GROUP_BY_FIELDS) + public void setUserGroupByFields_JsonNullable(JsonNullable> userGroupByFields) { this.userGroupByFields = userGroupByFields; } + public void setUserGroupByFields(List userGroupByFields) { + this.userGroupByFields = JsonNullable.>of(userGroupByFields); + } + /** Return true if this CloudConfigurationRuleComplianceSignalOptions object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreatorAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreatorAttributes.java index 895aef9645d..0c599d5d40d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreatorAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleCreatorAttributes.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** The attributes of the user who created the Agent rule. */ @JsonPropertyOrder({ @@ -25,7 +26,7 @@ public class CloudWorkloadSecurityAgentRuleCreatorAttributes { private String handle; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + private JsonNullable name = JsonNullable.undefined(); public CloudWorkloadSecurityAgentRuleCreatorAttributes handle(String handle) { this.handle = handle; @@ -49,7 +50,7 @@ public void setHandle(String handle) { } public CloudWorkloadSecurityAgentRuleCreatorAttributes name(String name) { - this.name = name; + this.name = JsonNullable.of(name); return this; } @@ -59,16 +60,26 @@ public CloudWorkloadSecurityAgentRuleCreatorAttributes name(String name) { * @return name */ @jakarta.annotation.Nullable + @JsonIgnore + public String getName() { + return name.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { + public JsonNullable getName_JsonNullable() { return name; } - public void setName(String name) { + @JsonProperty(JSON_PROPERTY_NAME) + public void setName_JsonNullable(JsonNullable name) { this.name = name; } + public void setName(String name) { + this.name = JsonNullable.of(name); + } + /** Return true if this CloudWorkloadSecurityAgentRuleCreatorAttributes object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdaterAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdaterAttributes.java index f999096272d..f833879102a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdaterAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CloudWorkloadSecurityAgentRuleUpdaterAttributes.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** The attributes of the user who last updated the Agent rule. */ @JsonPropertyOrder({ @@ -25,7 +26,7 @@ public class CloudWorkloadSecurityAgentRuleUpdaterAttributes { private String handle; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + private JsonNullable name = JsonNullable.undefined(); public CloudWorkloadSecurityAgentRuleUpdaterAttributes handle(String handle) { this.handle = handle; @@ -49,7 +50,7 @@ public void setHandle(String handle) { } public CloudWorkloadSecurityAgentRuleUpdaterAttributes name(String name) { - this.name = name; + this.name = JsonNullable.of(name); return this; } @@ -59,16 +60,26 @@ public CloudWorkloadSecurityAgentRuleUpdaterAttributes name(String name) { * @return name */ @jakarta.annotation.Nullable + @JsonIgnore + public String getName() { + return name.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { + public JsonNullable getName_JsonNullable() { return name; } - public void setName(String name) { + @JsonProperty(JSON_PROPERTY_NAME) + public void setName_JsonNullable(JsonNullable name) { this.name = name; } + public void setName(String name) { + this.name = JsonNullable.of(name); + } + /** Return true if this CloudWorkloadSecurityAgentRuleUpdaterAttributes object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v2/model/Creator.java b/src/main/java/com/datadog/api/client/v2/model/Creator.java index 184c2f3ab0b..58f43e01e1c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Creator.java +++ b/src/main/java/com/datadog/api/client/v2/model/Creator.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Creator of the object. */ @JsonPropertyOrder({ @@ -29,7 +30,7 @@ public class Creator { private String handle; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + private JsonNullable name = JsonNullable.undefined(); public Creator email(String email) { this.email = email; @@ -74,7 +75,7 @@ public void setHandle(String handle) { } public Creator name(String name) { - this.name = name; + this.name = JsonNullable.of(name); return this; } @@ -84,16 +85,26 @@ public Creator name(String name) { * @return name */ @jakarta.annotation.Nullable + @JsonIgnore + public String getName() { + return name.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { + public JsonNullable getName_JsonNullable() { return name; } - public void setName(String name) { + @JsonProperty(JSON_PROPERTY_NAME) + public void setName_JsonNullable(JsonNullable name) { this.name = name; } + public void setName(String name) { + this.name = JsonNullable.of(name); + } + /** Return true if this Creator object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardListItem.java b/src/main/java/com/datadog/api/client/v2/model/DashboardListItem.java index 60ff9b534aa..d2737b34a11 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardListItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardListItem.java @@ -15,6 +15,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** A dashboard within a list. */ @JsonPropertyOrder({ @@ -44,7 +45,7 @@ public class DashboardListItem { private OffsetDateTime created; public static final String JSON_PROPERTY_ICON = "icon"; - private String icon; + private JsonNullable icon = JsonNullable.undefined(); public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -126,12 +127,26 @@ public OffsetDateTime getCreated() { * @return icon */ @jakarta.annotation.Nullable + @JsonIgnore + public String getIcon() { + + if (icon == null) { + icon = JsonNullable.undefined(); + } + return icon.orElse(null); + } + @JsonProperty(JSON_PROPERTY_ICON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIcon() { + public JsonNullable getIcon_JsonNullable() { return icon; } + @JsonProperty(JSON_PROPERTY_ICON) + private void setIcon_JsonNullable(JsonNullable icon) { + this.icon = icon; + } + public DashboardListItem id(String id) { this.id = id; return this; diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringTriageUser.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringTriageUser.java index d853e268810..e75ffba8e5c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringTriageUser.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringTriageUser.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Object representing a given user entity. */ @JsonPropertyOrder({ @@ -31,7 +32,7 @@ public class SecurityMonitoringTriageUser { private Long id; public static final String JSON_PROPERTY_NAME = "name"; - private String name; + private JsonNullable name = JsonNullable.undefined(); public static final String JSON_PROPERTY_UUID = "uuid"; private String uuid; @@ -87,7 +88,7 @@ public void setId(Long id) { } public SecurityMonitoringTriageUser name(String name) { - this.name = name; + this.name = JsonNullable.of(name); return this; } @@ -97,16 +98,26 @@ public SecurityMonitoringTriageUser name(String name) { * @return name */ @jakarta.annotation.Nullable + @JsonIgnore + public String getName() { + return name.orElse(null); + } + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { + public JsonNullable getName_JsonNullable() { return name; } - public void setName(String name) { + @JsonProperty(JSON_PROPERTY_NAME) + public void setName_JsonNullable(JsonNullable name) { this.name = name; } + public void setName(String name) { + this.name = JsonNullable.of(name); + } + public SecurityMonitoringTriageUser uuid(String uuid) { this.uuid = uuid; return this; diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamAttributes.java index 5378b106536..a0be5df22c4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamAttributes.java @@ -15,6 +15,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.time.OffsetDateTime; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** Team attributes */ @JsonPropertyOrder({ @@ -37,7 +38,7 @@ public class TeamAttributes { private OffsetDateTime createdAt; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; + private JsonNullable description = JsonNullable.undefined(); public static final String JSON_PROPERTY_HANDLE = "handle"; private String handle; @@ -54,7 +55,7 @@ public class TeamAttributes { private String name; public static final String JSON_PROPERTY_SUMMARY = "summary"; - private String summary; + private JsonNullable summary = JsonNullable.undefined(); public static final String JSON_PROPERTY_USER_COUNT = "user_count"; private Integer userCount; @@ -91,7 +92,7 @@ public void setCreatedAt(OffsetDateTime createdAt) { } public TeamAttributes description(String description) { - this.description = description; + this.description = JsonNullable.of(description); return this; } @@ -101,16 +102,26 @@ public TeamAttributes description(String description) { * @return description */ @jakarta.annotation.Nullable + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { + public JsonNullable getDescription_JsonNullable() { return description; } - public void setDescription(String description) { + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + public void setDescription_JsonNullable(JsonNullable description) { this.description = description; } + public void setDescription(String description) { + this.description = JsonNullable.of(description); + } + public TeamAttributes handle(String handle) { this.handle = handle; return this; @@ -185,7 +196,7 @@ public void setName(String name) { } public TeamAttributes summary(String summary) { - this.summary = summary; + this.summary = JsonNullable.of(summary); return this; } @@ -195,16 +206,26 @@ public TeamAttributes summary(String summary) { * @return summary */ @jakarta.annotation.Nullable + @JsonIgnore + public String getSummary() { + return summary.orElse(null); + } + @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSummary() { + public JsonNullable getSummary_JsonNullable() { return summary; } - public void setSummary(String summary) { + @JsonProperty(JSON_PROPERTY_SUMMARY) + public void setSummary_JsonNullable(JsonNullable summary) { this.summary = summary; } + public void setSummary(String summary) { + this.summary = JsonNullable.of(summary); + } + /** * The number of users belonging to the team maximum: 2147483647 * diff --git a/src/test/java/com/datadog/api/client/v1/api/HostsApiTest.java b/src/test/java/com/datadog/api/client/v1/api/HostsApiTest.java index 9232cac7ab8..4b77ab2f341 100644 --- a/src/test/java/com/datadog/api/client/v1/api/HostsApiTest.java +++ b/src/test/java/com/datadog/api/client/v1/api/HostsApiTest.java @@ -23,6 +23,7 @@ import java.util.TreeMap; import org.junit.BeforeClass; import org.junit.Test; +import org.openapitools.jackson.nullable.JsonNullableModule; /** API tests for HostsApi */ public class HostsApiTest extends V1ApiTest { @@ -192,6 +193,7 @@ public void hostsSearchMockedTest() throws ApiException, IOException { ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( @@ -320,6 +322,7 @@ public void hostsSearchMockedTestIncludeMutedHostsDataFalse() throws ApiExceptio ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( @@ -353,6 +356,7 @@ public void hostsSearchMockedTestIncludeMutedHostsDataTrue() throws ApiException ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( @@ -385,6 +389,7 @@ public void hostsSearchMockedTestIncludeMutedHostsDataDefault() throws ApiExcept ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( @@ -416,6 +421,7 @@ public void hostsSearchMockedTestIncludeHostsMetadataFalse() throws ApiException ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( @@ -449,6 +455,7 @@ public void hostsSearchMockedTestIncludeHostsMetadataTrue() throws ApiException, ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( @@ -481,6 +488,7 @@ public void hostsSearchMockedTestIncludeHostsMetadataDefault() throws ApiExcepti ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.registerModule(new JsonNullableModule()); HostListResponse response = unitAPI.listHosts( diff --git a/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.freeze index eb9a5a34733..65538a3ba64 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.freeze @@ -1 +1 @@ -2022-10-24T20:38:11.940Z \ No newline at end of file +2023-04-07T18:18:58.426Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.json index b34715b05cb..3c8e10e75be 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_rule_s_details_returns_Not_Found_response.json @@ -8,10 +8,10 @@ "secure": true }, "httpResponse": { - "body": "\n\n\n\n\n\n \n \n \n \n \n Error 404 | Datadog\n |\n Datadog\n \n \n \n \n \n \n \n \n \n\n\n\n\n\n
\n
\n \n \"Sad\n \"Sad\n \n
\n
\n

Arf.

\n

404 NOT FOUND

\n \n
\n
\n\n\n\n\n\n\n\n \n\n \n\n\n\n
\n
\n\n \n\n\n \n\n \n\n \n\n", + "body": "{\"errors\":[\"Not found\"]}\n", "headers": { "Content-Type": [ - "text/html; charset=utf-8" + "application/json" ] }, "statusCode": 404, diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.freeze index 164314c39fc..3560a1a9194 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.freeze @@ -1 +1 @@ -2022-10-24T21:07:24.645Z \ No newline at end of file +2023-04-07T18:12:00.967Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.json index fb8c14bd7e3..1ae1a748a05 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_rule_returns_Not_Found_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Update_an_existing_rule_returns_Not_Found_response-1666645644-NotFound\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metrics\":[],\"query\":\"@test:true\"}],\"tags\":[]}" + "json": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Update_an_existing_rule_returns_Not_Found_response-1680891120-NotFound\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metrics\":[],\"query\":\"@test:true\"}],\"tags\":[]}" }, "headers": {}, "method": "PUT", @@ -12,10 +12,10 @@ "secure": true }, "httpResponse": { - "body": "\n\n\n\n\n\n \n \n \n \n \n Error 404 | Datadog\n |\n Datadog\n \n \n \n \n \n \n \n \n \n\n\n\n\n\n
\n
\n \n \"Sad\n \"Sad\n \n
\n
\n

Arf.

\n

404 NOT FOUND

\n \n
\n
\n\n\n\n\n\n\n\n \n\n \n\n\n\n
\n
\n\n \n\n\n \n\n \n\n \n\n", + "body": "{\"errors\":[\"Not found\"]}\n", "headers": { "Content-Type": [ - "text/html; charset=utf-8" + "application/json" ] }, "statusCode": 404, @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "14d31fd5-8ad5-fe17-60f9-8f9134fbf56b" + "id": "82a91e92-bdec-8c82-5b63-9906a0d7f159" } ] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature b/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature index 49cc532dbe2..b00fe078ffd 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature @@ -572,7 +572,7 @@ Feature: Dashboards And the response "template_variables[0].available_values[0]" is equal to "my-host" And the response "template_variables[0].defaults[0]" is equal to "my-host" - @team:DataDog/dashboards + @skip-validation @team:DataDog/dashboards Scenario: Create a new dashboard with template variable defaults whose value has no length returns "Bad Request" response Given new "CreateDashboard" request And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "defaults": [""], "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]} diff --git a/src/test/resources/com/datadog/api/client/v1/api/events.feature b/src/test/resources/com/datadog/api/client/v1/api/events.feature index be176baf903..d9faefb4374 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/events.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/events.feature @@ -43,7 +43,7 @@ Feature: Events When the request is sent Then the response status is 200 OK - @team:DataDog/monitors-evaluation + @skip-validation @team:DataDog/monitors-evaluation Scenario: Post an event in the past returns "Bad Request" response Given new "CreateEvent" request And body with value {"title": "{{ unique }}", "text": "A text message.", "date_happened": 1, "tags": ["test:{{ unique_alnum }}"]} diff --git a/src/test/resources/com/datadog/api/client/v1/api/hosts.feature b/src/test/resources/com/datadog/api/client/v1/api/hosts.feature index 266957780a6..2a6838923bb 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/hosts.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/hosts.feature @@ -33,7 +33,7 @@ Feature: Hosts And the response "host_list[0].meta.agent_checks[0]" is equal to ["ntp","ntp","ntp:d884b5186b651429","OK","",""] And the response "host_list[0].meta.gohai" is equal to "{\"cpu\":{\"cache_size\":\"8192 KB\",\"cpu_cores\":\"1\",\"cpu_logical_processors\":\"1\",\"family\":\"6\",\"mhz\":\"2711.998\",\"model\":\"142\",\"model_name\":\"Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz\",\"stepping\":\"10\",\"vendor_id\":\"GenuineIntel\"},\"filesystem\":[{\"kb_size\":\"3966892\",\"mounted_on\":\"/dev\",\"name\":\"udev\"},{\"kb_size\":\"797396\",\"mounted_on\":\"/run\",\"name\":\"tmpfs\"},{\"kb_size\":\"64800356\",\"mounted_on\":\"/\",\"name\":\"/dev/mapper/vagrant--vg-root\"},{\"kb_size\":\"3986968\",\"mounted_on\":\"/dev/shm\",\"name\":\"tmpfs\"},{\"kb_size\":\"5120\",\"mounted_on\":\"/run/lock\",\"name\":\"tmpfs\"},{\"kb_size\":\"3986968\",\"mounted_on\":\"/sys/fs/cgroup\",\"name\":\"tmpfs\"},{\"kb_size\":\"488245288\",\"mounted_on\":\"/vagrant\",\"name\":\"/vagrant\"},{\"kb_size\":\"797392\",\"mounted_on\":\"/run/user/1000\",\"name\":\"tmpfs\"}],\"memory\":{\"swap_total\":\"1003516kB\",\"total\":\"7973940kB\"},\"network\":{\"interfaces\":[{\"ipv4\":\"10.0.2.15\",\"ipv4-network\":\"10.0.2.0/24\",\"ipv6\":\"fe80::a00:27ff:fec2:be11\",\"ipv6-network\":\"fe80::/64\",\"macaddress\":\"08:00:27:c2:be:11\",\"name\":\"eth0\"},{\"ipv4\":\"192.168.122.1\",\"ipv4-network\":\"192.168.122.0/24\",\"macaddress\":\"52:54:00:6f:1c:bf\",\"name\":\"virbr0\"}],\"ipaddress\":\"10.0.2.15\",\"ipaddressv6\":\"fe80::a00:27ff:fec2:be11\",\"macaddress\":\"08:00:27:c2:be:11\"},\"platform\":{\"GOOARCH\":\"amd64\",\"GOOS\":\"linux\",\"goV\":\"1.16.7\",\"hardware_platform\":\"x86_64\",\"hostname\":\"vagrant\",\"kernel_name\":\"Linux\",\"kernel_release\":\"4.15.0-29-generic\",\"kernel_version\":\"#31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018\",\"machine\":\"x86_64\",\"os\":\"GNU/Linux\",\"processor\":\"x86_64\",\"pythonV\":\"2.7.15rc1\"}}" - @team:DataDog/core-index + @skip-validation @team:DataDog/core-index Scenario: Get all hosts with metadata for your organization returns "OK" response Given new "ListHosts" request And request contains "include_hosts_metadata" parameter with value true diff --git a/src/test/resources/com/datadog/api/client/v1/api/metrics.feature b/src/test/resources/com/datadog/api/client/v1/api/metrics.feature index 578f073ad10..c1ac08aa1e1 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/metrics.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/metrics.feature @@ -161,7 +161,7 @@ Feature: Metrics When the request is sent Then the response status is 400 Bad Request - @team:DataDog/metrics-intake @team:DataDog/metrics-query + @skip-validation @team:DataDog/metrics-intake @team:DataDog/metrics-query Scenario: Submit metrics returns "Payload accepted" response Given new "SubmitMetrics" request And body with value {"series": [{"metric": "system.load.1", "type": "gauge", "points": [[{{ timestamp("now") }}, 1.1]], "tags": ["test:{{ unique_alnum }}"]}]} diff --git a/src/test/resources/com/datadog/api/client/v1/api/service_checks.feature b/src/test/resources/com/datadog/api/client/v1/api/service_checks.feature index a0bf3c20392..3244e3781dd 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/service_checks.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/service_checks.feature @@ -27,7 +27,7 @@ Feature: Service Checks When the request is sent Then the response status is 400 Bad Request - @team:DataDog/monitors-evaluation + @skip-validation @team:DataDog/monitors-evaluation Scenario: Submit a Service Check returns "Payload accepted" response Given body with value [{"check": "app.ok", "host_name": "host", "status": 0, "tags": ["test:{{ unique_alnum }}"]}] When the request is sent diff --git a/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature b/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature index 1430b8edde8..73b9a3443e3 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature @@ -15,7 +15,7 @@ Feature: Synthetics And a valid "appKeyAuth" key in the system And an instance of "Synthetics" API - @replay-only @team:DataDog/synthetics-app + @replay-only @skip-validation @team:DataDog/synthetics-app Scenario: Client is resilient to enum and oneOf deserialization errors Given new "ListTests" request When the request is sent diff --git a/src/test/resources/com/datadog/api/client/v2/api/audit.feature b/src/test/resources/com/datadog/api/client/v2/api/audit.feature index 9419f2460b8..e8f507e1c07 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/audit.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/audit.feature @@ -19,7 +19,7 @@ Feature: Audit When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/team-aaa @with-pagination + @replay-only @skip-validation @team:DataDog/team-aaa @with-pagination Scenario: Get a list of Audit Logs events returns "OK" response with pagination Given new "ListAuditLogs" request And request contains "page[limit]" parameter with value 2 @@ -41,7 +41,7 @@ Feature: Audit When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/team-aaa @with-pagination + @replay-only @skip-validation @team:DataDog/team-aaa @with-pagination Scenario: Search Audit Logs events returns "OK" response with pagination Given new "SearchAuditLogs" request And body with value {"filter": {"from": "now-15m", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"limit": 2}, "sort": "timestamp"} diff --git a/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_pipelines.feature b/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_pipelines.feature index 6b590399030..6f9935603c5 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_pipelines.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_pipelines.feature @@ -38,7 +38,7 @@ Feature: CI Visibility Pipelines When the request is sent Then the response status is 200 OK - @replay-only @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination + @replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination Scenario: Get a list of pipelines events returns "OK" response with pagination Given new "ListCIAppPipelineEvents" request And request contains "filter[from]" parameter with value "{{ timeISO('now - 30s') }}" @@ -62,7 +62,7 @@ Feature: CI Visibility Pipelines When the request is sent Then the response status is 200 OK - @replay-only @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination + @replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination Scenario: Search pipelines events returns "OK" response with pagination Given new "SearchCIAppPipelineEvents" request And body with value {"filter": {"from": "now-30s", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"limit": 2}, "sort": "timestamp"} diff --git a/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_tests.feature b/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_tests.feature index f5ff00069cc..3152496cf75 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_tests.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/ci_visibility_tests.feature @@ -38,7 +38,7 @@ Feature: CI Visibility Tests When the request is sent Then the response status is 200 OK - @replay-only @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination + @replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination Scenario: Get a list of tests events returns "OK" response with pagination Given new "ListCIAppTestEvents" request And request contains "filter[from]" parameter with value "{{ timeISO('now - 30s') }}" @@ -62,7 +62,7 @@ Feature: CI Visibility Tests When the request is sent Then the response status is 200 OK - @replay-only @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination + @replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination Scenario: Search tests events returns "OK" response with pagination Given new "SearchCIAppTestEvents" request And body with value {"filter": {"from": "now-15m", "query": "@test.status:pass AND -@language:python", "to": "now"}, "page": {"limit": 2}, "sort": "timestamp"} diff --git a/src/test/resources/com/datadog/api/client/v2/api/events.feature b/src/test/resources/com/datadog/api/client/v2/api/events.feature index 6fb2a31f24e..1b663f4fd99 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/events.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/events.feature @@ -24,7 +24,7 @@ Feature: Events When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/event-management @with-pagination + @replay-only @skip-validation @team:DataDog/event-management @with-pagination Scenario: Get a list of events returns "OK" response with pagination Given operation "ListEvents" enabled And new "ListEvents" request @@ -64,7 +64,7 @@ Feature: Events Then the response status is 200 OK And the response "data" has length 0 - @replay-only @team:DataDog/event-management @with-pagination + @replay-only @skip-validation @team:DataDog/event-management @with-pagination Scenario: Search events returns "OK" response with pagination Given operation "SearchEvents" enabled And new "SearchEvents" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/incidents.feature b/src/test/resources/com/datadog/api/client/v2/api/incidents.feature index 5be7c16be1b..3e70df63734 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/incidents.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/incidents.feature @@ -332,7 +332,7 @@ Feature: Incidents Then the response status is 200 OK And the response "data[0].type" is equal to "incidents" - @replay-only @team:DataDog/incident-app @with-pagination + @replay-only @skip-validation @team:DataDog/incident-app @with-pagination Scenario: Get a list of incidents returns "OK" response with pagination Given operation "ListIncidents" enabled And new "ListIncidents" request @@ -468,7 +468,7 @@ Feature: Incidents When the request is sent Then the response status is 404 Not Found - @team:DataDog/incident-app + @skip-validation @team:DataDog/incident-app Scenario: Search for incidents returns "OK" response Given operation "SearchIncidents" enabled And there is a valid "incident" in the system @@ -479,7 +479,7 @@ Feature: Incidents And the response "data.type" is equal to "incidents_search_results" And the response "data.attributes.incidents[0].data.type" is equal to "incidents" - @replay-only @team:DataDog/incident-app @with-pagination + @replay-only @skip-validation @team:DataDog/incident-app @with-pagination Scenario: Search for incidents returns "OK" response with pagination Given operation "SearchIncidents" enabled And new "SearchIncidents" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/logs.feature b/src/test/resources/com/datadog/api/client/v2/api/logs.feature index dc4dcbcfcd2..7fe62d9173c 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/logs.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/logs.feature @@ -55,7 +55,7 @@ Feature: Logs When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/logs-app @with-pagination + @replay-only @skip-validation @team:DataDog/logs-app @with-pagination Scenario: Get a list of logs returns "OK" response with pagination Given a valid "appKeyAuth" key in the system And new "ListLogsGet" request @@ -94,7 +94,7 @@ Feature: Logs Then the response status is 200 OK And the response "data" has length 0 - @replay-only @team:DataDog/logs-app @with-pagination + @replay-only @skip-validation @team:DataDog/logs-app @with-pagination Scenario: Search logs returns "OK" response with pagination Given a valid "appKeyAuth" key in the system And new "ListLogs" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/metrics.feature b/src/test/resources/com/datadog/api/client/v2/api/metrics.feature index 5fad316de1b..ff1b750c8f1 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/metrics.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/metrics.feature @@ -56,7 +56,7 @@ Feature: Metrics When the request is sent Then the response status is 409 Conflict - @replay-only @team:DataDog/points-aggregation + @replay-only @skip-validation @team:DataDog/points-aggregation Scenario: Create a tag configuration returns "Created" response Given a valid "appKeyAuth" key in the system And new "CreateTagConfiguration" request @@ -66,7 +66,7 @@ Feature: Metrics When the request is sent Then the response status is 201 Created - @replay-only @team:DataDog/points-aggregation + @replay-only @skip-validation @team:DataDog/points-aggregation Scenario: Delete a tag configuration returns "No Content" response Given there is a valid "metric" in the system And there is a valid "metric_tag_configuration" in the system @@ -133,7 +133,7 @@ Feature: Metrics When the request is sent Then the response status is 404 Not Found - @team:DataDog/points-aggregation + @skip-validation @team:DataDog/points-aggregation Scenario: List active tags and aggregations returns "Success" response Given a valid "appKeyAuth" key in the system And there is a valid "metric" in the system @@ -159,7 +159,7 @@ Feature: Metrics When the request is sent Then the response status is 404 Not Found - @team:DataDog/points-aggregation + @skip-validation @team:DataDog/points-aggregation Scenario: List distinct metric volumes by metric name returns "Success" response Given a valid "appKeyAuth" key in the system And there is a valid "metric" in the system @@ -178,7 +178,7 @@ Feature: Metrics When the request is sent Then the response status is 404 Not Found - @replay-only @team:DataDog/points-aggregation + @replay-only @skip-validation @team:DataDog/points-aggregation Scenario: List tag configuration by name returns "Success" response Given a valid "appKeyAuth" key in the system And there is a valid "metric" in the system @@ -205,7 +205,7 @@ Feature: Metrics When the request is sent Then the response status is 404 Not Found - @replay-only @team:DataDog/points-aggregation + @replay-only @skip-validation @team:DataDog/points-aggregation Scenario: List tags by metric name returns "Success" response Given a valid "appKeyAuth" key in the system And there is a valid "metric" in the system @@ -326,7 +326,7 @@ Feature: Metrics When the request is sent Then the response status is 200 Success - @team:DataDog/metrics-query + @skip-validation @team:DataDog/metrics-query Scenario: Timeseries cross product query returns "Bad Request" response Given a valid "appKeyAuth" key in the system And operation "QueryTimeseriesData" enabled @@ -355,7 +355,7 @@ Feature: Metrics When the request is sent Then the response status is 400 Bad Request - @replay-only @team:DataDog/points-aggregation + @replay-only @skip-validation @team:DataDog/points-aggregation Scenario: Update a tag configuration returns "OK" response Given a valid "appKeyAuth" key in the system And there is a valid "metric" in the system diff --git a/src/test/resources/com/datadog/api/client/v2/api/monitors.feature b/src/test/resources/com/datadog/api/client/v2/api/monitors.feature index 46297e1ae4e..7f98218f9a3 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/monitors.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/monitors.feature @@ -11,7 +11,7 @@ Feature: Monitors And a valid "appKeyAuth" key in the system And an instance of "Monitors" API - @team:DataDog/monitor-app + @skip-validation @team:DataDog/monitor-app Scenario: Create a monitor configuration policy returns "Bad Request" response Given new "CreateMonitorConfigPolicy" request And body with value {"data": {"attributes": {"policy_type": "INVALID", "policy": {"tag_key": "datacenter", "tag_key_required": true, "valid_tag_values": ["prod", "staging"]}}, "type": "monitor-config-policy"}} diff --git a/src/test/resources/com/datadog/api/client/v2/api/processes.feature b/src/test/resources/com/datadog/api/client/v2/api/processes.feature index 998a4309278..b8aa114a509 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/processes.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/processes.feature @@ -22,7 +22,7 @@ Feature: Processes When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/processes @with-pagination + @replay-only @skip-validation @team:DataDog/processes @with-pagination Scenario: Get all processes returns "OK" response with pagination Given request contains "page[limit]" parameter with value 2 When the request with pagination is sent diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum.feature b/src/test/resources/com/datadog/api/client/v2/api/rum.feature index 711806381f4..3bcead89906 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum.feature @@ -85,7 +85,7 @@ Feature: RUM When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/rum-backend @with-pagination + @replay-only @skip-validation @team:DataDog/rum-backend @with-pagination Scenario: Get a list of RUM events returns "OK" response with pagination Given new "ListRUMEvents" request And request contains "page[limit]" parameter with value 2 @@ -119,7 +119,7 @@ Feature: RUM When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/rum-backend @with-pagination + @replay-only @skip-validation @team:DataDog/rum-backend @with-pagination Scenario: Search RUM events returns "OK" response with pagination Given new "SearchRUMEvents" request And body with value {"filter": {"from": "now-15m", "query": "@type:session AND @session.type:user", "to": "now"}, "options": {"time_offset": 0, "timezone": "GMT"}, "page": {"limit": 2}, "sort": "timestamp"} diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index 276ac3d42ec..e91b7382e7d 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -212,7 +212,7 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/k9-cloud-security-platform @with-pagination + @replay-only @skip-validation @team:DataDog/k9-cloud-security-platform @with-pagination Scenario: Get a list of security signals returns "OK" response with pagination Given new "SearchSecurityMonitoringSignals" request And body with value {"filter": {"from": "{{ timeISO("now-15m") }}", "query": "security:attack status:high", "to": "{{ timeISO("now") }}"}, "page": {"limit": 2}, "sort": "timestamp"} @@ -232,7 +232,7 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @replay-only @team:DataDog/k9-cloud-security-platform @with-pagination + @replay-only @skip-validation @team:DataDog/k9-cloud-security-platform @with-pagination Scenario: Get a quick list of security signals returns "OK" response with pagination Given new "ListSecurityMonitoringSignals" request And request contains "page[limit]" parameter with value 2 @@ -313,7 +313,7 @@ Feature: Security Monitoring Scenario: Modify the triage assignee of a security signal returns "Bad Request" response Given new "EditSecurityMonitoringSignalAssignee" request And request contains "signal_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"assignee": {"uuid": "773b045d-ccf8-4808-bd3b-955ef6a8c940"}}}} + And body with value {"data": {"attributes": {"assignee": {"name": null, "uuid": "773b045d-ccf8-4808-bd3b-955ef6a8c940"}}}} When the request is sent Then the response status is 400 Bad Request @@ -321,7 +321,7 @@ Feature: Security Monitoring Scenario: Modify the triage assignee of a security signal returns "Not Found" response Given new "EditSecurityMonitoringSignalAssignee" request And request contains "signal_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"assignee": {"uuid": "773b045d-ccf8-4808-bd3b-955ef6a8c940"}}}} + And body with value {"data": {"attributes": {"assignee": {"name": null, "uuid": "773b045d-ccf8-4808-bd3b-955ef6a8c940"}}}} When the request is sent Then the response status is 404 Not Found diff --git a/src/test/resources/com/datadog/api/client/v2/api/service_definition.feature b/src/test/resources/com/datadog/api/client/v2/api/service_definition.feature index ed4999b578c..6083dacfe75 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/service_definition.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/service_definition.feature @@ -106,7 +106,7 @@ Feature: Service Definition Then the response status is 200 OK And the response "data[0].attributes.meta.ingestion-source" is equal to "api" - @replay-only @team:DataDog/service-catalog @with-pagination + @replay-only @skip-validation @team:DataDog/service-catalog @with-pagination Scenario: Get all service definitions returns "OK" response with pagination Given new "ListServiceDefinitions" request And request contains "page[size]" parameter with value 2